Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
/*
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Use of this source code is governed by a BSD-style
|
|
* license that can be found in the LICENSE file or at
|
|
* https://developers.google.com/open-source/licenses/bsd
|
|
*/
|
|
|
|
#ifndef WRITER_H
|
|
#define WRITER_H
|
|
|
|
#include "basics.h"
|
|
#include "block.h"
|
|
#include "tree.h"
|
|
#include "reftable-writer.h"
|
|
|
|
struct reftable_writer {
|
|
ssize_t (*write)(void *, const void *, size_t);
|
|
int (*flush)(void *);
|
|
void *write_arg;
|
|
int pending_padding;
|
|
struct reftable_buf last_key;
|
|
/* Scratch buffer used to avoid allocations. */
|
|
struct reftable_buf scratch;
|
|
|
|
/* offset of next block to write. */
|
|
uint64_t next;
|
|
uint64_t min_update_index, max_update_index;
|
|
struct reftable_write_options opts;
|
|
|
|
/* memory buffer for writing */
|
|
uint8_t *block;
|
|
|
|
/* writer for the current section. NULL or points to
|
|
* block_writer_data */
|
|
struct block_writer *block_writer;
|
|
|
|
struct block_writer block_writer_data;
|
|
|
|
/* pending index records for the current section */
|
|
struct reftable_index_record *index;
|
|
size_t index_len;
|
|
size_t index_cap;
|
|
|
|
/*
|
|
* tree for use with tsearch; used to populate the 'o' inverse OID
|
|
* map */
|
|
struct tree_node *obj_index_tree;
|
|
|
|
struct reftable_stats stats;
|
|
};
|
|
|
|
#endif
|