agent-doc-system 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +269 -0
- package/README.md +97 -112
- package/adapters/ansible.mjs +306 -0
- package/adapters/cache.mjs +8 -2
- package/adapters/contract-consumers.mjs +1 -1
- package/adapters/database.mjs +18 -4
- package/adapters/events.mjs +1 -1
- package/adapters/github-actions.mjs +244 -85
- package/adapters/go.mjs +1 -1
- package/adapters/index.mjs +5 -2
- package/adapters/object-store.mjs +2 -2
- package/adapters/python.mjs +1142 -0
- package/adapters/resource-client.mjs +1 -1
- package/adapters/rust.mjs +987 -0
- package/adapters/typescript.mjs +1 -1
- package/bin/agentdoc.mjs +60 -44
- package/bin/commands.mjs +169 -0
- package/bin/usage.txt +5 -3
- package/core/audit.mjs +55 -4
- package/core/authority/engine.mjs +27 -4
- package/core/codes.mjs +11 -0
- package/core/compile.mjs +263 -13
- package/core/dependents.mjs +42 -0
- package/core/descriptors.mjs +5 -2
- package/core/discover.mjs +60 -9
- package/core/fsx.mjs +27 -4
- package/core/graph.mjs +1 -1
- package/core/impact.mjs +55 -44
- package/core/normative.mjs +171 -0
- package/core/query.mjs +18 -8
- package/core/scaffold.mjs +87 -22
- package/core/sourcescan.mjs +11 -2
- package/core/toml.mjs +463 -140
- package/core/yaml.mjs +5 -3
- package/docs/ADAPTERS.md +232 -7
- package/docs/AUTHORITY.md +10 -1
- package/docs/BENCHMARK.md +68 -0
- package/docs/CI.md +3 -1
- package/docs/EVALS.md +33 -2
- package/docs/MIGRATION.md +76 -6
- package/docs/QUERY.md +53 -4
- package/docs/SPEC.md +22 -0
- package/docs/assets/readme/agentdoc-hero.webp +0 -0
- package/docs/assets/readme/agentdoc-in-action.webp +0 -0
- package/docs/assets/readme/how-agentdoc-works.webp +0 -0
- package/docs/assets/readme/why-agentdoc.webp +0 -0
- package/docs/ci/github-actions.yml +1 -1
- package/evals/harness.mjs +32 -6
- package/evals/scenarios/fixture-b-03-change-shared-lib.json +8 -1
- package/evals/scenarios/fixture-c-03-shared-vocabulary.json +7 -1
- package/evals/scenarios/fixture-e-01-change-shared-lib.json +14 -0
- package/evals/scenarios/fixture-e-02-change-manifest.json +9 -0
- package/evals/scenarios/fixture-e-03-local-module.json +9 -0
- package/evals/scenarios/fixture-e-04-ambiguous-crate.json +14 -0
- package/evals/scenarios/fixture-f-01-change-shared-lib.json +9 -0
- package/evals/scenarios/fixture-f-02-change-manifest.json +9 -0
- package/evals/scenarios/fixture-f-03-shadowed-import.json +9 -0
- package/evals/scenarios/fixture-f-04-nested-workspace.json +9 -0
- package/evals/scenarios/fixture-f-05-alembic-database.json +9 -0
- package/evals/scenarios/fixture-f-06-unittest-job.json +9 -0
- package/package.json +2 -1
- package/schemas/common.schema.json +40 -0
- package/schemas/component.schema.json +5 -1
- package/schemas/config.schema.json +117 -1
- package/skills/agent-doc-system/SKILL.md +5 -1
- package/skills/agent-doc-system/references/cli.md +12 -4
- package/skills/agent-doc-system/references/create-migrate.md +28 -6
- package/templates/ci.yml +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// the package. When more than one Resource of the type exists the fact is left
|
|
11
11
|
// unresolved: an ambiguous match must never become an edge.
|
|
12
12
|
|
|
13
|
-
const POOL_HINT = /(createPool|new Pool|pg\.Pool|pgxpool|sql\.Open|mysql\.createConnection|Pool\(|DataSource|prisma\.(datasource|client)|DATABASE_URL|DB_DSN|redis|minio|Client\()/;
|
|
13
|
+
const POOL_HINT = /(createPool|new Pool|pg\.Pool|PgPool|pgxpool|psycopg2?\.connect|asyncpg\.(?:connect|create_pool)|sql\.Open|mysql\.createConnection|Pool\(|DataSource|prisma\.(datasource|client)|DATABASE_URL|DB_DSN|redis\.Redis|redis|minio|Client\(|sqlx::migrate!|tokio_postgres|tokio-postgres|deadpool|sea_orm|sea-orm|diesel::|create_engine\s*\(|\bDATABASES\s*=)/;
|
|
14
14
|
|
|
15
15
|
export function resolveClientResources(ctx, unit, compRef, provRec) {
|
|
16
16
|
const declared = ctx.externalMatchers().filter((x) => x.resourceType);
|