Download the PHP package papi-ai/ingest-gitingest without Composer
On this page you can find all versions of the php package papi-ai/ingest-gitingest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download papi-ai/ingest-gitingest
More information about papi-ai/ingest-gitingest
Files in papi-ai/ingest-gitingest
Package ingest-gitingest
Short Description Remote repository ingestion for PapiAI via the gitingest CLI
License MIT
Informations about the package ingest-gitingest
papi-ai/ingest-gitingest
Remote repository ingestion for PapiAI, via the gitingest CLI.
Install
The gitingest binary is a runtime requirement, not a Composer dependency.
Usage
Private repositories take a token, which gitingest also reads from GITHUB_TOKEN:
When to use this, and when not to
Use it for remote sources. Hand it a GitHub URL and it clones, filters and returns a digest, which a pure-PHP walker cannot do without reimplementing a clone. It also gives parity with what people already paste into models by hand.
For local paths, use NativeIngestor instead. gitingest handles them perfectly well, but
shelling out to Python to walk a directory PHP can walk itself buys nothing and puts a dependency
on the common path. supports() returns true for both, so ask NativeIngestor first when routing.
Behaviour
gitingest returns a finished prompt. This adapter parses it back into a RepositoryDigest, so
callers can re-render at any budget through the same renderer every other ingestor uses. Parsing
keys on the framing gitingest itself emits (a 48-character rule, then FILE: <path>), and those
constants live in papi-ai/ingest so both ends agree.
A missing binary throws before any work happens, with the install command in the message. The
check resolves PATH rather than spawning anything, so asking costs nothing.
Remote state has no local mtimes or git blobs to hash, so the fingerprint is a hash of the digest gitingest returned: it changes exactly when what came back changes.
Depth
Depth::Full and Depth::Tree work out of the box. Depth::Api needs a symbol extractor, the
same as everywhere else:
Asking for Api without one throws rather than quietly returning a tree.
License
MIT, Marcello Duarte