@mmerterden/multi-agent-pipeline 23.3.0 → 23.4.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 +44 -0
- package/README.md +25 -6
- package/README.tr.md +26 -7
- package/docs/adr/0008-installer-modularization-and-secret-leak-defense.md +1 -1
- package/docs/adr/0010-own-code-graph.md +299 -8
- package/docs/architecture.md +3 -3
- package/docs/ecosystem.md +10 -10
- package/docs/engineering.md +4 -4
- package/docs/facts.json +8 -8
- package/docs/features.md +5 -5
- package/docs/performance.md +17 -17
- package/install/_dev-only-files.mjs +9 -0
- package/install/claude.mjs +28 -2
- package/install/templates/claude-hooks.json +32 -1
- package/manifest.json +223 -155
- package/package.json +11 -3
- package/pipeline/commands/multi-agent/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/design-check/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/diff-explain/SKILL.md +3 -3
- package/pipeline/commands/multi-agent/graph/SKILL.md +57 -24
- package/pipeline/commands/multi-agent/pair/SKILL.md +92 -0
- package/pipeline/commands/multi-agent/prune-prompts/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/search/SKILL.md +7 -1
- package/pipeline/commands/multi-agent/status/SKILL.md +4 -0
- package/pipeline/commands/multi-agent/sync/SKILL.md +3 -3
- package/pipeline/contract/CHANGELOG.md +49 -0
- package/pipeline/contract/build.mjs +13 -1
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/fixtures/runs-awaiting-question.json +4 -1
- package/pipeline/contract/fixtures/runs-empty.json +1 -1
- package/pipeline/contract/fixtures/runs-failed.json +4 -1
- package/pipeline/contract/fixtures/runs-old-schema.json +3 -0
- package/pipeline/contract/fixtures/runs-pr-opened-redacted.json +4 -1
- package/pipeline/contract/fixtures/runs-pr-opened.json +4 -1
- package/pipeline/contract/fixtures/runs-running.json +4 -1
- package/pipeline/contract/manifest.json +28 -15
- package/pipeline/contract/types/index.d.ts +55 -3
- package/pipeline/lib/detach-self.mjs +95 -0
- package/pipeline/lib/public-mcp-servers.mjs +33 -0
- package/pipeline/lib/rotated-log.mjs +93 -0
- package/pipeline/lib/tls-trust.mjs +29 -0
- package/pipeline/lib/usage-lifecycle.mjs +9 -11
- package/pipeline/lib/usage-names.generated.mjs +614 -0
- package/pipeline/lib/usage-run-key.mjs +235 -0
- package/pipeline/lib/usage-vocab.mjs +210 -0
- package/pipeline/multi-agent-refs/analysis/intake.md +2 -2
- package/pipeline/multi-agent-refs/analysis/render.md +1 -1
- package/pipeline/multi-agent-refs/channels/generator.md +4 -5
- package/pipeline/multi-agent-refs/cross-cli-contract.md +3 -3
- package/pipeline/multi-agent-refs/design-check/scope-and-ledger.md +1 -1
- package/pipeline/multi-agent-refs/features/code-graph.md +146 -11
- package/pipeline/multi-agent-refs/features/code-intelligence.md +16 -14
- package/pipeline/multi-agent-refs/features/dev-critic.md +7 -7
- package/pipeline/multi-agent-refs/features/model-fallback.md +6 -4
- package/pipeline/multi-agent-refs/features/remote-control.md +252 -0
- package/pipeline/multi-agent-refs/features/review-delta.md +1 -1
- package/pipeline/multi-agent-refs/features/review-file-set.md +3 -3
- package/pipeline/multi-agent-refs/features/review-multi-repo.md +1 -1
- package/pipeline/multi-agent-refs/features/session-brief.md +42 -0
- package/pipeline/multi-agent-refs/features/skill-conformance.md +3 -3
- package/pipeline/multi-agent-refs/features/usage-reporting.md +252 -24
- package/pipeline/multi-agent-refs/help/en.md +3 -2
- package/pipeline/multi-agent-refs/help/tr.md +3 -2
- package/pipeline/multi-agent-refs/knowledge.md +1 -1
- package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +1 -1
- package/pipeline/multi-agent-refs/phases/operations.md +2 -2
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +13 -12
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +4 -4
- package/pipeline/multi-agent-refs/phases/phase-3-review.md +2 -0
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +1 -1
- package/pipeline/multi-agent-refs/platform-parity.md +2 -2
- package/pipeline/multi-agent-refs/wiki-capture.md +3 -17
- package/pipeline/office/index.html +1207 -233
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/rules/outside-the-pipeline.md +1 -1
- package/pipeline/schemas/activity.schema.json +23 -0
- package/pipeline/schemas/agent-state.schema.json +6 -1
- package/pipeline/schemas/code-graph-calls.schema.json +254 -0
- package/pipeline/schemas/code-graph-docs.schema.json +223 -0
- package/pipeline/schemas/code-graph-infra.schema.json +227 -0
- package/pipeline/schemas/code-graph.schema.json +2 -2
- package/pipeline/schemas/examples/design-check-config.json +27 -0
- package/pipeline/schemas/learning-curve.schema.json +67 -0
- package/pipeline/schemas/office-jobs.json +69 -2
- package/pipeline/schemas/office-jobs.schema.json +8 -1
- package/pipeline/schemas/phases.json +5 -0
- package/pipeline/schemas/phases.schema.json +8 -0
- package/pipeline/schemas/prefs.schema.json +46 -12
- package/pipeline/schemas/runs-index.schema.json +17 -0
- package/pipeline/schemas/toolkit-path-params.json +84 -8
- package/pipeline/scripts/README.md +1 -0
- package/pipeline/scripts/_code-graph.mjs +184 -103
- package/pipeline/scripts/_contract-core.mjs +1 -1
- package/pipeline/scripts/_contract-routes-office.mjs +21 -0
- package/pipeline/scripts/_diff-impact.mjs +21 -2
- package/pipeline/scripts/_graph-sidecars.mjs +372 -0
- package/pipeline/scripts/_http-post.mjs +103 -115
- package/pipeline/scripts/_safe-read.mjs +57 -0
- package/pipeline/scripts/_skill-practices.mjs +26 -0
- package/pipeline/scripts/_strip-code.mjs +380 -0
- package/pipeline/scripts/activity-snapshot.mjs +13 -1
- package/pipeline/scripts/aggregate-metrics.mjs +3 -5
- package/pipeline/scripts/call-graph/index.mjs +78 -0
- package/pipeline/scripts/call-graph/lang/cpp.mjs +308 -0
- package/pipeline/scripts/call-graph/lang/csharp.mjs +130 -0
- package/pipeline/scripts/call-graph/lang/go.mjs +303 -0
- package/pipeline/scripts/call-graph/lang/java.mjs +370 -0
- package/pipeline/scripts/call-graph/lang/kotlin.mjs +397 -0
- package/pipeline/scripts/call-graph/lang/python.mjs +399 -0
- package/pipeline/scripts/call-graph/lang/rust.mjs +345 -0
- package/pipeline/scripts/call-graph/lang/shared.mjs +230 -0
- package/pipeline/scripts/call-graph/lang/swift.mjs +432 -0
- package/pipeline/scripts/call-graph/lang/typescript.mjs +692 -0
- package/pipeline/scripts/call-graph/lex.mjs +396 -0
- package/pipeline/scripts/call-graph/platform.mjs +86 -0
- package/pipeline/scripts/call-graph/profiles.mjs +89 -0
- package/pipeline/scripts/call-graph/resolve.mjs +1125 -0
- package/pipeline/scripts/call-graph/scan.mjs +267 -0
- package/pipeline/scripts/code-graph-rules/android.json +7 -2
- package/pipeline/scripts/code-graph-rules/cpp.json +99 -0
- package/pipeline/scripts/code-graph-rules/csharp.json +102 -0
- package/pipeline/scripts/code-graph-rules/go.json +2 -1
- package/pipeline/scripts/code-graph-rules/ios.json +3 -1
- package/pipeline/scripts/code-graph-rules/java.json +76 -0
- package/pipeline/scripts/code-graph-rules/node.json +7 -2
- package/pipeline/scripts/code-graph-rules/python.json +6 -2
- package/pipeline/scripts/code-graph-rules/rust.json +105 -0
- package/pipeline/scripts/contract-server.mjs +1 -0
- package/pipeline/scripts/feedback-send.mjs +26 -26
- package/pipeline/scripts/gate-ledger.mjs +2 -1
- package/pipeline/scripts/gen-usage-names.mjs +124 -0
- package/pipeline/scripts/graph-affected.mjs +109 -20
- package/pipeline/scripts/graph-build.mjs +95 -15
- package/pipeline/scripts/graph-export.mjs +272 -0
- package/pipeline/scripts/graph-hint.mjs +15 -2
- package/pipeline/scripts/graph-query.mjs +305 -26
- package/pipeline/scripts/graph-report.mjs +187 -1
- package/pipeline/scripts/health-report.mjs +3 -4
- package/pipeline/scripts/infra/docs.mjs +317 -0
- package/pipeline/scripts/infra/extract.mjs +998 -0
- package/pipeline/scripts/infra/graph.mjs +245 -0
- package/pipeline/scripts/infra/yaml-lite.mjs +311 -0
- package/pipeline/scripts/job-launch.mjs +67 -2
- package/pipeline/scripts/learning-curve.mjs +288 -178
- package/pipeline/scripts/log-metric.sh +10 -1
- package/pipeline/scripts/note-agent-event.mjs +3 -4
- package/pipeline/scripts/note-command-use.mjs +333 -0
- package/pipeline/scripts/note-command-use.sh +126 -0
- package/pipeline/scripts/note-mcp-call.sh +89 -0
- package/pipeline/scripts/note-mcp-failure.mjs +272 -1
- package/pipeline/scripts/note-session.sh +62 -3
- package/pipeline/scripts/note-skill-use.mjs +58 -2
- package/pipeline/scripts/office-build.mjs +115 -1
- package/pipeline/scripts/office-memory.mjs +14 -5
- package/pipeline/scripts/pair.mjs +333 -0
- package/pipeline/scripts/pre-push-check.sh +1 -1
- package/pipeline/scripts/remote/cbor.mjs +128 -0
- package/pipeline/scripts/remote/contract.mjs +98 -0
- package/pipeline/scripts/remote/handler.mjs +317 -0
- package/pipeline/scripts/remote/handles.mjs +57 -0
- package/pipeline/scripts/remote/lifecycle.mjs +186 -0
- package/pipeline/scripts/remote/listener.mjs +204 -0
- package/pipeline/scripts/remote/lockout.mjs +103 -0
- package/pipeline/scripts/remote/nonces.mjs +61 -0
- package/pipeline/scripts/remote/pairing.mjs +519 -0
- package/pipeline/scripts/remote/qr-encode.mjs +459 -0
- package/pipeline/scripts/remote/store.mjs +188 -0
- package/pipeline/scripts/remote/transport.mjs +211 -0
- package/pipeline/scripts/remote/verbs.json +70 -0
- package/pipeline/scripts/remote/verbs.mjs +217 -0
- package/pipeline/scripts/remote/webauthn.mjs +169 -0
- package/pipeline/scripts/remote/wire.mjs +364 -0
- package/pipeline/scripts/remote-listener.mjs +83 -0
- package/pipeline/scripts/route-learn.mjs +4 -4
- package/pipeline/scripts/run-kill.mjs +1 -1
- package/pipeline/scripts/run-write.mjs +13 -2
- package/pipeline/scripts/runs-index.mjs +30 -3
- package/pipeline/scripts/search-logs.sh +9 -0
- package/pipeline/scripts/session-brief.mjs +458 -0
- package/pipeline/scripts/session-brief.sh +130 -0
- package/pipeline/scripts/test-gap-rules/cpp.json +25 -0
- package/pipeline/scripts/test-gap-rules/csharp.json +20 -0
- package/pipeline/scripts/test-gap-rules/java.json +20 -0
- package/pipeline/scripts/test-gap-rules/rust.json +14 -0
- package/pipeline/scripts/token-budget-report.mjs +3 -2
- package/pipeline/scripts/uninstall.mjs +29 -0
- package/pipeline/scripts/usage-access.mjs +16 -31
- package/pipeline/scripts/usage-health.mjs +31 -62
- package/pipeline/scripts/usage-register-beacon.mjs +11 -22
- package/pipeline/scripts/usage-register.mjs +39 -29
- package/pipeline/scripts/usage-report.mjs +579 -178
- package/pipeline/scripts/validate-code-graph.mjs +361 -111
- package/pipeline/scripts/write-state.mjs +39 -0
- package/pipeline/skills/.skill-manifest.json +21 -17
- package/pipeline/skills/.skills-index.json +13 -2
- package/pipeline/skills/shared/README.md +5 -4
- package/pipeline/skills/shared/core/multi-agent-design-check/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-diff-explain/SKILL.md +3 -3
- package/pipeline/skills/shared/core/multi-agent-graph/SKILL.md +55 -21
- package/pipeline/skills/shared/core/multi-agent-pair/SKILL.md +41 -0
- package/pipeline/skills/shared/core/multi-agent-prune-prompts/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +3 -3
- package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +2 -3
- package/pipeline/skills/shared/external/app-store-optimization/references/keyword-research-methodology.md +2 -2
- package/pipeline/skills/shared/external/app-store-optimization/references/product-page-variants.md +2 -2
- package/pipeline/skills/shared/external/app-store-review/SKILL.md +11 -4
- package/pipeline/skills/shared/external/build-settings-audit/SKILL.md +1 -1
- package/pipeline/skills/shared/external/build-time-benchmark/SKILL.md +5 -5
- package/pipeline/skills/shared/external/build-time-fixes/SKILL.md +5 -5
- package/pipeline/skills/shared/external/build-time-optimizer/SKILL.md +6 -6
- package/pipeline/skills/shared/external/free-llm-apis/references/providers.md +1 -0
- package/pipeline/skills/shared/external/ios-coding-standard/references/STANDARD.md +2 -2
- package/pipeline/skills/shared/external/ios-haptics/references/core-haptics.md +1 -1
- package/pipeline/skills/shared/external/localization-reuse-map/references/publish-and-snapshot.md +1 -1
- package/pipeline/skills/shared/external/package-build-audit/SKILL.md +3 -3
- package/pipeline/skills/shared/external/reverse-engineer-own-app/SKILL.md +2 -3
- package/pipeline/skills/shared/external/swift-compile-hotspots/SKILL.md +2 -2
- package/pipeline/skills/shared/external/weatherkit/SKILL.md +5 -6
- package/pipeline/skills/skills-index.md +3 -2
- package/docs/FIGMA_PIPELINE.md +0 -137
- package/pipeline/lib/identifier-scan.mjs +0 -156
- package/pipeline/scripts/publish-staged.mjs +0 -324
- package/pipeline/skills/shared/external/ios-coding-standard/scripts/check_structure.py +0 -765
|
@@ -26,7 +26,7 @@ the file first; never inline it). The repo's own `.claude/skills` come first.
|
|
|
26
26
|
`ai-common-toolkit` and `ai-analyst-toolkit` are on everywhere. Nothing enabled
|
|
27
27
|
is a normal state.
|
|
28
28
|
|
|
29
|
-
**multi-agent MCP.** <!-- fact:toolCount -->
|
|
29
|
+
**multi-agent MCP.** <!-- fact:toolCount -->259<!-- /fact --> tools, most for a running app: `ios_get_ui_tree` /
|
|
30
30
|
`android_get_ui_tree`, `ios_list_crashes` / `android_list_crashes`, `design_*`,
|
|
31
31
|
`ios_app_store_audit`, `ios_testflight_validate`. Use them instead of guessing
|
|
32
32
|
about on-screen state. Not registered is a silent no-op.
|
|
@@ -22,6 +22,18 @@
|
|
|
22
22
|
"description": "A session or subagent whose transcript changed within this window has a desk.",
|
|
23
23
|
"x-sensitivity": "none"
|
|
24
24
|
},
|
|
25
|
+
"costBudget": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["maxUsd", "warnPct", "onExceed"],
|
|
29
|
+
"x-sensitivity": "none",
|
|
30
|
+
"description": "The cost budget from prefs.global.costBudget, present only while it is enabled and valid. A run's spend (a table's estUsd) is judged against it: ok under warnPct of maxUsd, warn from there to maxUsd, exceeded above.",
|
|
31
|
+
"properties": {
|
|
32
|
+
"maxUsd": { "type": "number", "exclusiveMinimum": 0 },
|
|
33
|
+
"warnPct": { "type": "number", "minimum": 1, "maximum": 99 },
|
|
34
|
+
"onExceed": { "enum": ["warn", "halt"] }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
25
37
|
"counts": {
|
|
26
38
|
"type": "object",
|
|
27
39
|
"additionalProperties": false,
|
|
@@ -112,6 +124,8 @@
|
|
|
112
124
|
"now",
|
|
113
125
|
"status",
|
|
114
126
|
"waitingForYou",
|
|
127
|
+
"waitingSince",
|
|
128
|
+
"waitingSinceSource",
|
|
115
129
|
"pendingQuestion",
|
|
116
130
|
"tokens",
|
|
117
131
|
"estUsd",
|
|
@@ -425,6 +439,15 @@
|
|
|
425
439
|
},
|
|
426
440
|
"description": "The pull request the run opened, by number only."
|
|
427
441
|
},
|
|
442
|
+
"waitingSince": {
|
|
443
|
+
"type": ["string", "null"],
|
|
444
|
+
"format": "date-time",
|
|
445
|
+
"description": "When the run began waiting for a person: its own record of when it parked, else its state file's modification time. Null when the run is not waiting, and for a session no run tracks."
|
|
446
|
+
},
|
|
447
|
+
"waitingSinceSource": {
|
|
448
|
+
"enum": ["state", "file-time", null],
|
|
449
|
+
"description": "Where waitingSince came from: state is exact, file-time is approximate because a rewrite of the file moves it. Null when waitingSince is null."
|
|
450
|
+
},
|
|
428
451
|
"waitingFor": {
|
|
429
452
|
"enum": [
|
|
430
453
|
"maturity",
|
|
@@ -619,6 +619,11 @@
|
|
|
619
619
|
"type": ["string", "null"],
|
|
620
620
|
"format": "date-time"
|
|
621
621
|
},
|
|
622
|
+
"waitingSince": {
|
|
623
|
+
"type": ["string", "null"],
|
|
624
|
+
"format": "date-time",
|
|
625
|
+
"description": "When the run began to wait for a person: stamped by write-state.mjs and gate-ledger.mjs on entering a wait (waitingFor set, or status awaiting_input or awaiting-user-test-main-checkout), kept while that wait goes on, null once it ends. The office reads it as when the run parked."
|
|
626
|
+
},
|
|
622
627
|
"haltReason": {
|
|
623
628
|
"type": ["string", "null"],
|
|
624
629
|
"description": "Set when a phase halts on a hard error (validator failed twice, no subagent returned, dispatch error past fallback, lock irrecoverable). Format '<phase>:<cause>'. Surfaced to the user and cleared on successful resume. See operations.md 'Halt visibility'."
|
|
@@ -2090,7 +2095,7 @@
|
|
|
2090
2095
|
"items": {
|
|
2091
2096
|
"type": "string"
|
|
2092
2097
|
},
|
|
2093
|
-
"description": "The LANGUAGE census (ios, python, node, go, docker, monorepo), written by Phase 1 Step 2 and read by graph-build.mjs --stack, the dev-critic checklist selector and the Phase 3 reviewer skill tables. Deliberately not narrowed to the stacks[] vocabulary: graph-build accepts ios|android|node|python|go and has no notion of web or backend. Phase docs have instructed this write since before the schema existed, and additionalProperties is false, so it is declared here rather than silently invalid."
|
|
2098
|
+
"description": "The LANGUAGE census (ios, python, node, go, docker, monorepo), written by Phase 1 Step 2 and read by graph-build.mjs --stack, the dev-critic checklist selector and the Phase 3 reviewer skill tables. Deliberately not narrowed to the stacks[] vocabulary: graph-build accepts ios|android|node|python|go|rust|java|csharp|cpp and has no notion of web or backend. Phase docs have instructed this write since before the schema existed, and additionalProperties is false, so it is declared here rather than silently invalid."
|
|
2094
2099
|
},
|
|
2095
2100
|
"evidenceCapability": {
|
|
2096
2101
|
"type": ["object", "null"],
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/multi-agent-ecosystem/multi-agent-pipeline/schemas/code-graph-calls.schema.json",
|
|
4
|
+
"title": "Code graph calls sidecar",
|
|
5
|
+
"description": "Function and method nodes and the calls edges between them, stored beside code-graph.json (code-graph.calls.json). Built by default by graph-build.mjs. Every calls edge carries how it was derived (via) and a confidence; a guess is never certain.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"sidecar",
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"parent",
|
|
11
|
+
"generatedAt",
|
|
12
|
+
"stats",
|
|
13
|
+
"truncated",
|
|
14
|
+
"nodes",
|
|
15
|
+
"edges"
|
|
16
|
+
],
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"properties": {
|
|
19
|
+
"sidecar": {
|
|
20
|
+
"const": "calls"
|
|
21
|
+
},
|
|
22
|
+
"schemaVersion": {
|
|
23
|
+
"const": "1.0.0"
|
|
24
|
+
},
|
|
25
|
+
"parent": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": ["generatedAt"],
|
|
28
|
+
"description": "The build of the main graph this sidecar was made against. A reader that finds a different generatedAt in the main graph does not join it.",
|
|
29
|
+
"properties": {
|
|
30
|
+
"generatedAt": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"baseCommit": {
|
|
34
|
+
"type": ["string", "null"]
|
|
35
|
+
},
|
|
36
|
+
"stack": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"nodes": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"minimum": 0
|
|
42
|
+
},
|
|
43
|
+
"edges": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"minimum": 0
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"generatedAt": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"stats": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": ["nodes", "edges"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"nodes": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"minimum": 0
|
|
59
|
+
},
|
|
60
|
+
"edges": {
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"minimum": 0
|
|
63
|
+
},
|
|
64
|
+
"calls": {
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"minimum": 0
|
|
67
|
+
},
|
|
68
|
+
"callFilesSkipped": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": 0
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"truncated": {
|
|
75
|
+
"description": "null when the layer is whole; otherwise how much a node or edge cap cut.",
|
|
76
|
+
"oneOf": [
|
|
77
|
+
{
|
|
78
|
+
"type": "null"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "object",
|
|
82
|
+
"required": ["edges", "nodes", "reason"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"edges": {
|
|
85
|
+
"type": "integer",
|
|
86
|
+
"minimum": 0
|
|
87
|
+
},
|
|
88
|
+
"nodes": {
|
|
89
|
+
"type": "integer",
|
|
90
|
+
"minimum": 0
|
|
91
|
+
},
|
|
92
|
+
"reason": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"nodes": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["id", "kind", "name", "degree"],
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"properties": {
|
|
106
|
+
"id": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"maxLength": 4096
|
|
109
|
+
},
|
|
110
|
+
"kind": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"enum": ["symbol"]
|
|
113
|
+
},
|
|
114
|
+
"name": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"maxLength": 4096
|
|
117
|
+
},
|
|
118
|
+
"path": {
|
|
119
|
+
"type": ["string", "null"]
|
|
120
|
+
},
|
|
121
|
+
"line": {
|
|
122
|
+
"type": "integer",
|
|
123
|
+
"minimum": 1
|
|
124
|
+
},
|
|
125
|
+
"startLine": {
|
|
126
|
+
"type": "integer",
|
|
127
|
+
"minimum": 1
|
|
128
|
+
},
|
|
129
|
+
"endLine": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 1
|
|
132
|
+
},
|
|
133
|
+
"symbolKind": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"owner": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "The type that declares a method."
|
|
139
|
+
},
|
|
140
|
+
"nested": {
|
|
141
|
+
"type": "boolean"
|
|
142
|
+
},
|
|
143
|
+
"isTest": {
|
|
144
|
+
"type": "boolean"
|
|
145
|
+
},
|
|
146
|
+
"degree": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 0,
|
|
149
|
+
"description": "Always 0 in a sidecar: a layer never changes the structural degree of a node."
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"edges": {
|
|
155
|
+
"type": "array",
|
|
156
|
+
"items": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"required": ["from", "to", "kind"],
|
|
159
|
+
"additionalProperties": false,
|
|
160
|
+
"properties": {
|
|
161
|
+
"from": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"to": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
"kind": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"enum": ["defines", "calls"]
|
|
170
|
+
},
|
|
171
|
+
"via": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"description": "How the edge was derived."
|
|
174
|
+
},
|
|
175
|
+
"confidence": {
|
|
176
|
+
"enum": ["high", "medium", "low"]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"allOf": [
|
|
180
|
+
{
|
|
181
|
+
"if": {
|
|
182
|
+
"properties": {
|
|
183
|
+
"kind": {
|
|
184
|
+
"const": "calls"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"required": ["kind"]
|
|
188
|
+
},
|
|
189
|
+
"then": {
|
|
190
|
+
"required": ["via", "confidence"],
|
|
191
|
+
"properties": {
|
|
192
|
+
"via": {
|
|
193
|
+
"enum": [
|
|
194
|
+
"typed-receiver",
|
|
195
|
+
"self-receiver",
|
|
196
|
+
"super-receiver",
|
|
197
|
+
"static-receiver",
|
|
198
|
+
"implicit-self",
|
|
199
|
+
"same-file",
|
|
200
|
+
"same-package",
|
|
201
|
+
"same-directory",
|
|
202
|
+
"import",
|
|
203
|
+
"module-member",
|
|
204
|
+
"interface-member",
|
|
205
|
+
"ambiguous-overload",
|
|
206
|
+
"constructor",
|
|
207
|
+
"dispatch",
|
|
208
|
+
"inherited",
|
|
209
|
+
"chained-return-type",
|
|
210
|
+
"unique-name",
|
|
211
|
+
"name-arity"
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"annotations": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"description": "Fields to add to a node the main graph already has, by id. Only owner.",
|
|
223
|
+
"additionalProperties": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"additionalProperties": false,
|
|
226
|
+
"properties": {
|
|
227
|
+
"owner": {
|
|
228
|
+
"type": "string"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"coverage": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"properties": {
|
|
236
|
+
"callAnalysisSkipped": {
|
|
237
|
+
"type": "array",
|
|
238
|
+
"items": {
|
|
239
|
+
"type": "object",
|
|
240
|
+
"required": ["path", "reason"],
|
|
241
|
+
"properties": {
|
|
242
|
+
"path": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
"reason": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/multi-agent-ecosystem/multi-agent-pipeline/schemas/code-graph-docs.schema.json",
|
|
4
|
+
"title": "Code graph docs sidecar",
|
|
5
|
+
"description": "Documentation sections and rationale comments with the mentions and explains edges that tie them to code, stored beside code-graph.json (code-graph.docs.json). Opt in with graph-build.mjs --docs or the per-repo settings file.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"sidecar",
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"parent",
|
|
11
|
+
"generatedAt",
|
|
12
|
+
"stats",
|
|
13
|
+
"truncated",
|
|
14
|
+
"nodes",
|
|
15
|
+
"edges",
|
|
16
|
+
"manifest"
|
|
17
|
+
],
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"properties": {
|
|
20
|
+
"sidecar": {
|
|
21
|
+
"const": "docs"
|
|
22
|
+
},
|
|
23
|
+
"schemaVersion": {
|
|
24
|
+
"const": "1.0.0"
|
|
25
|
+
},
|
|
26
|
+
"parent": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["generatedAt"],
|
|
29
|
+
"description": "The build of the main graph this sidecar was made against. A reader that finds a different generatedAt in the main graph does not join it.",
|
|
30
|
+
"properties": {
|
|
31
|
+
"generatedAt": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"baseCommit": {
|
|
35
|
+
"type": ["string", "null"]
|
|
36
|
+
},
|
|
37
|
+
"stack": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"nodes": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": 0
|
|
43
|
+
},
|
|
44
|
+
"edges": {
|
|
45
|
+
"type": "integer",
|
|
46
|
+
"minimum": 0
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"generatedAt": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"stats": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"required": ["nodes", "edges"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"nodes": {
|
|
58
|
+
"type": "integer",
|
|
59
|
+
"minimum": 0
|
|
60
|
+
},
|
|
61
|
+
"edges": {
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"minimum": 0
|
|
64
|
+
},
|
|
65
|
+
"docs": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
"minimum": 0
|
|
68
|
+
},
|
|
69
|
+
"rationale": {
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"minimum": 0
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"truncated": {
|
|
76
|
+
"description": "null when the layer is whole; otherwise how much a node or edge cap cut.",
|
|
77
|
+
"oneOf": [
|
|
78
|
+
{
|
|
79
|
+
"type": "null"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": ["edges", "nodes", "reason"],
|
|
84
|
+
"properties": {
|
|
85
|
+
"edges": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"minimum": 0
|
|
88
|
+
},
|
|
89
|
+
"nodes": {
|
|
90
|
+
"type": "integer",
|
|
91
|
+
"minimum": 0
|
|
92
|
+
},
|
|
93
|
+
"reason": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"nodes": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"required": ["id", "kind", "name", "degree"],
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"properties": {
|
|
107
|
+
"id": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"maxLength": 4096
|
|
110
|
+
},
|
|
111
|
+
"kind": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": ["file", "doc", "rationale"]
|
|
114
|
+
},
|
|
115
|
+
"name": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"maxLength": 4096
|
|
118
|
+
},
|
|
119
|
+
"path": {
|
|
120
|
+
"type": ["string", "null"]
|
|
121
|
+
},
|
|
122
|
+
"line": {
|
|
123
|
+
"type": "integer",
|
|
124
|
+
"minimum": 1
|
|
125
|
+
},
|
|
126
|
+
"startLine": {
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"minimum": 1
|
|
129
|
+
},
|
|
130
|
+
"endLine": {
|
|
131
|
+
"type": "integer",
|
|
132
|
+
"minimum": 1
|
|
133
|
+
},
|
|
134
|
+
"symbolKind": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"owner": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "The type that declares a method."
|
|
140
|
+
},
|
|
141
|
+
"nested": {
|
|
142
|
+
"type": "boolean"
|
|
143
|
+
},
|
|
144
|
+
"isTest": {
|
|
145
|
+
"type": "boolean"
|
|
146
|
+
},
|
|
147
|
+
"degree": {
|
|
148
|
+
"type": "integer",
|
|
149
|
+
"minimum": 0,
|
|
150
|
+
"description": "Always 0 in a sidecar: a layer never changes the structural degree of a node."
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"edges": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"items": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"required": ["from", "to", "kind"],
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"properties": {
|
|
162
|
+
"from": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"to": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"kind": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"enum": ["defines", "mentions", "explains"]
|
|
171
|
+
},
|
|
172
|
+
"via": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "How the edge was derived."
|
|
175
|
+
},
|
|
176
|
+
"confidence": {
|
|
177
|
+
"enum": ["certain", "high", "medium", "low"]
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"manifest": {
|
|
183
|
+
"type": "object",
|
|
184
|
+
"description": "relpath -> {size, mtimeMs} of every file this layer read. An edit to one of them, a removal, or a new file of the kind the layer reads marks the layer stale.",
|
|
185
|
+
"additionalProperties": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"required": ["size", "mtimeMs"],
|
|
188
|
+
"additionalProperties": false,
|
|
189
|
+
"properties": {
|
|
190
|
+
"size": {
|
|
191
|
+
"type": "integer",
|
|
192
|
+
"minimum": 0
|
|
193
|
+
},
|
|
194
|
+
"mtimeMs": {
|
|
195
|
+
"type": "integer",
|
|
196
|
+
"minimum": 0
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"coverage": {
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"skipped": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"description": "Files left unread because the collection time budget ran out.",
|
|
207
|
+
"items": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"required": ["path", "reason"],
|
|
210
|
+
"properties": {
|
|
211
|
+
"path": {
|
|
212
|
+
"type": "string"
|
|
213
|
+
},
|
|
214
|
+
"reason": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|