@interf/compiler 0.33.0 → 0.50.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/README.md +122 -226
- package/dist/cli/commands/agents.js +1 -32
- package/dist/cli/commands/benchmark.d.ts +2 -3
- package/dist/cli/commands/benchmark.js +1 -31
- package/dist/cli/commands/build-plan.js +26 -50
- package/dist/cli/commands/build.d.ts +2 -3
- package/dist/cli/commands/build.js +1 -31
- package/dist/cli/commands/graphs.js +177 -32
- package/dist/cli/commands/mcp.d.ts +1 -0
- package/dist/cli/commands/mcp.js +223 -126
- package/dist/cli/commands/project.js +10 -36
- package/dist/cli/commands/reset.d.ts +2 -3
- package/dist/cli/commands/reset.js +1 -22
- package/dist/cli/commands/runs.js +86 -33
- package/dist/cli/commands/status.js +3 -24
- package/dist/cli/commands/traces.js +1 -29
- package/dist/cli/commands/wizard.js +17 -29
- package/dist/cli/lib/http-client.d.ts +39 -0
- package/dist/cli/lib/http-client.js +73 -0
- package/dist/packages/build-plans/authoring/brief.d.ts +25 -4
- package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +42 -1
- package/dist/packages/build-plans/authoring/build-plan-authoring.js +470 -63
- package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +9 -0
- package/dist/packages/build-plans/authoring/build-plan-edit-session.js +27 -10
- package/dist/packages/build-plans/authoring/build-plan-improvement.js +62 -8
- package/dist/packages/build-plans/authoring/lib/build-plan-edit-utils.d.ts +1 -0
- package/dist/packages/build-plans/package/build-plan-definitions.d.ts +0 -1
- package/dist/packages/build-plans/package/build-plan-definitions.js +5 -3
- package/dist/packages/build-plans/package/build-plan-stage-runner.d.ts +1 -0
- package/dist/packages/build-plans/package/build-plan-stage-runner.js +2 -1
- package/dist/packages/build-plans/package/builtin-build-plan.d.ts +2 -2
- package/dist/packages/build-plans/package/builtin-build-plan.js +3 -3
- package/dist/packages/build-plans/package/context-interface.d.ts +3 -0
- package/dist/packages/build-plans/package/context-interface.js +5 -5
- package/dist/packages/build-plans/package/interf-build-plan-package.js +22 -22
- package/dist/packages/build-plans/package/local-build-plans.d.ts +10 -5
- package/dist/packages/build-plans/package/local-build-plans.js +57 -32
- package/dist/packages/contracts/index.d.ts +4 -3
- package/dist/packages/contracts/index.js +2 -1
- package/dist/packages/contracts/lib/context-graph-layer.d.ts +161 -0
- package/dist/packages/contracts/lib/context-graph-layer.js +216 -0
- package/dist/packages/contracts/lib/project-paths.d.ts +7 -0
- package/dist/packages/contracts/lib/project-paths.js +9 -0
- package/dist/packages/contracts/lib/project-schema.d.ts +264 -1
- package/dist/packages/contracts/lib/project-schema.js +38 -13
- package/dist/packages/contracts/lib/schema.d.ts +556 -23
- package/dist/packages/contracts/lib/schema.js +279 -18
- package/dist/packages/contracts/utils/filesystem.d.ts +1 -0
- package/dist/packages/contracts/utils/filesystem.js +29 -1
- package/dist/packages/projects/lib/schema.d.ts +6 -8
- package/dist/packages/projects/lib/schema.js +3 -1
- package/dist/packages/projects/source-config.d.ts +0 -5
- package/dist/packages/projects/source-config.js +9 -22
- package/dist/packages/runtime/actions/fields.d.ts +4 -0
- package/dist/packages/runtime/actions/form-builders.js +79 -31
- package/dist/packages/runtime/actions/form-validators.js +9 -3
- package/dist/packages/runtime/actions/helpers.js +3 -3
- package/dist/packages/runtime/actions/registry.d.ts +1 -1
- package/dist/packages/runtime/actions/registry.js +1 -1
- package/dist/packages/runtime/actions/requests.d.ts +1 -1
- package/dist/packages/runtime/actions/requests.js +12 -6
- package/dist/packages/runtime/actions/schemas.d.ts +7 -0
- package/dist/packages/runtime/actions/schemas.js +1 -0
- package/dist/packages/runtime/agent-handoff.js +8 -7
- package/dist/packages/runtime/agents/lib/execution-profile.d.ts +14 -0
- package/dist/packages/runtime/agents/lib/execution-profile.js +23 -0
- package/dist/packages/runtime/agents/lib/execution.js +14 -8
- package/dist/packages/runtime/agents/lib/executors.d.ts +1 -0
- package/dist/packages/runtime/agents/lib/executors.js +11 -2
- package/dist/packages/runtime/agents/lib/logs.d.ts +10 -0
- package/dist/packages/runtime/agents/lib/logs.js +32 -8
- package/dist/packages/runtime/agents/lib/preflight.js +4 -1
- package/dist/packages/runtime/agents/lib/render.d.ts +18 -0
- package/dist/packages/runtime/agents/lib/render.js +44 -18
- package/dist/packages/runtime/agents/lib/shell-templates.js +105 -63
- package/dist/packages/runtime/agents/lib/shells.d.ts +29 -0
- package/dist/packages/runtime/agents/lib/shells.js +158 -32
- package/dist/packages/runtime/agents/lib/source-context-scan.d.ts +10 -0
- package/dist/packages/runtime/agents/lib/source-context-scan.js +388 -0
- package/dist/packages/runtime/agents/lib/status.js +1 -14
- package/dist/packages/runtime/agents/lib/string-utils.d.ts +16 -0
- package/dist/packages/runtime/agents/lib/string-utils.js +36 -0
- package/dist/packages/runtime/agents/lib/types.d.ts +1 -0
- package/dist/packages/runtime/agents/providers/codex.js +2 -0
- package/dist/packages/runtime/agents/role-executors.js +2 -1
- package/dist/packages/runtime/auth/session-store.js +11 -3
- package/dist/packages/runtime/benchmark-question-draft.d.ts +3 -0
- package/dist/packages/runtime/benchmark-question-draft.js +57 -28
- package/dist/packages/runtime/build/artifact-status.d.ts +1 -1
- package/dist/packages/runtime/build/artifact-status.js +1 -1
- package/dist/packages/runtime/build/build-evidence.d.ts +2 -1
- package/dist/packages/runtime/build/build-evidence.js +11 -5
- package/dist/packages/runtime/build/build-pipeline.js +89 -5
- package/dist/packages/runtime/build/build-stage-plan.js +3 -1
- package/dist/packages/runtime/build/build-stage-runner.js +169 -32
- package/dist/packages/runtime/build/build-target.d.ts +3 -0
- package/dist/packages/runtime/build/build-target.js +25 -1
- package/dist/packages/runtime/build/check-evaluator.d.ts +1 -1
- package/dist/packages/runtime/build/check-evaluator.js +655 -4
- package/dist/packages/runtime/build/context-graph-paths.d.ts +13 -0
- package/dist/packages/runtime/build/context-graph-paths.js +27 -0
- package/dist/packages/runtime/build/index.d.ts +2 -2
- package/dist/packages/runtime/build/index.js +2 -2
- package/dist/packages/runtime/build/inspect-map.d.ts +10 -0
- package/dist/packages/runtime/build/inspect-map.js +270 -0
- package/dist/packages/runtime/build/lib/schema.d.ts +246 -53
- package/dist/packages/runtime/build/lib/schema.js +173 -15
- package/dist/packages/runtime/build/native-entrypoint.d.ts +2 -0
- package/dist/packages/runtime/build/native-entrypoint.js +286 -0
- package/dist/packages/runtime/build/runtime-contracts.js +9 -3
- package/dist/packages/runtime/build/runtime-log-paths.d.ts +3 -0
- package/dist/packages/runtime/build/runtime-log-paths.js +16 -0
- package/dist/packages/runtime/build/runtime-prompt.js +6 -4
- package/dist/packages/runtime/build/runtime-runs.js +63 -10
- package/dist/packages/runtime/build/runtime-types.d.ts +4 -1
- package/dist/packages/runtime/build/runtime.d.ts +3 -1
- package/dist/packages/runtime/build/runtime.js +3 -1
- package/dist/packages/runtime/build/source-files.js +11 -2
- package/dist/packages/runtime/build/source-inventory.d.ts +1 -0
- package/dist/packages/runtime/build/source-inventory.js +246 -7
- package/dist/packages/runtime/build/source-manifest.d.ts +11 -0
- package/dist/packages/runtime/build/source-manifest.js +30 -2
- package/dist/packages/runtime/build/stage-evidence.js +80 -11
- package/dist/packages/runtime/build/stage-manifest.d.ts +45 -0
- package/dist/packages/runtime/build/stage-manifest.js +1125 -0
- package/dist/packages/runtime/build/stage-reuse.js +12 -0
- package/dist/packages/runtime/build/stage-session.d.ts +81 -0
- package/dist/packages/runtime/build/stage-session.js +308 -0
- package/dist/packages/runtime/build/state-io.js +10 -11
- package/dist/packages/runtime/build/state-view.js +1 -1
- package/dist/packages/runtime/build/state.d.ts +1 -1
- package/dist/packages/runtime/build/state.js +1 -1
- package/dist/packages/runtime/build/summary-coverage-index.d.ts +21 -0
- package/dist/packages/runtime/build/summary-coverage-index.js +189 -0
- package/dist/packages/runtime/build/traces.js +3 -3
- package/dist/packages/runtime/build/validate-context-graph.d.ts +1 -1
- package/dist/packages/runtime/build/validate-context-graph.js +5 -5
- package/dist/packages/runtime/build/validate.d.ts +1 -1
- package/dist/packages/runtime/build/validate.js +1 -1
- package/dist/packages/runtime/client.d.ts +3 -3
- package/dist/packages/runtime/client.js +8 -13
- package/dist/packages/runtime/context-checks.js +13 -0
- package/dist/packages/runtime/context-graph-scaffold.js +2 -1
- package/dist/packages/runtime/context-graph-semantic-graph.d.ts +9 -0
- package/dist/packages/runtime/context-graph-semantic-graph.js +416 -0
- package/dist/packages/runtime/execution/lib/schema.d.ts +34 -31
- package/dist/packages/runtime/index.d.ts +2 -2
- package/dist/packages/runtime/index.js +1 -1
- package/dist/packages/runtime/native-run-handlers.d.ts +38 -0
- package/dist/packages/runtime/native-run-handlers.js +52 -33
- package/dist/packages/runtime/plan-artifact-contract.js +1 -1
- package/dist/packages/runtime/project-source-state.d.ts +4 -4
- package/dist/packages/runtime/project-source-state.js +5 -2
- package/dist/packages/runtime/project-store.d.ts +5 -0
- package/dist/packages/runtime/project-store.js +30 -3
- package/dist/packages/runtime/requested-artifacts.js +1 -1
- package/dist/packages/runtime/run-observability.js +9 -4
- package/dist/packages/runtime/runtime-action-proposals.js +3 -3
- package/dist/packages/runtime/runtime-build-plans.js +47 -3
- package/dist/packages/runtime/runtime-build-runs.js +9 -16
- package/dist/packages/runtime/runtime-caches.d.ts +26 -0
- package/dist/packages/runtime/runtime-caches.js +47 -0
- package/dist/packages/runtime/runtime-jobs.js +6 -6
- package/dist/packages/runtime/runtime-project-mutations.js +1 -0
- package/dist/packages/runtime/runtime-project-reads.d.ts +4 -1
- package/dist/packages/runtime/runtime-project-reads.js +229 -36
- package/dist/packages/runtime/runtime-proposal-helpers.js +6 -6
- package/dist/packages/runtime/runtime-resource-builders.d.ts +4 -2
- package/dist/packages/runtime/runtime-resource-builders.js +16 -14
- package/dist/packages/runtime/runtime-status.d.ts +14 -0
- package/dist/packages/runtime/runtime-status.js +15 -0
- package/dist/packages/runtime/runtime-verify-runs.js +6 -5
- package/dist/packages/runtime/runtime.d.ts +439 -22
- package/dist/packages/runtime/runtime.js +16 -2
- package/dist/packages/runtime/schemas/actions.d.ts +24 -0
- package/dist/packages/runtime/schemas/agents.d.ts +28 -0
- package/dist/packages/runtime/schemas/agents.js +33 -0
- package/dist/packages/runtime/schemas/build-plans.d.ts +181 -8
- package/dist/packages/runtime/schemas/build-plans.js +36 -2
- package/dist/packages/runtime/schemas/context-graphs.d.ts +1522 -0
- package/dist/packages/runtime/schemas/context-graphs.js +110 -0
- package/dist/packages/runtime/schemas/files.d.ts +7 -347
- package/dist/packages/runtime/schemas/files.js +1 -24
- package/dist/packages/runtime/schemas/index.d.ts +1 -0
- package/dist/packages/runtime/schemas/index.js +1 -0
- package/dist/packages/runtime/schemas/jobs.js +4 -0
- package/dist/packages/runtime/schemas/projects.d.ts +48 -21
- package/dist/packages/runtime/schemas/projects.js +34 -10
- package/dist/packages/runtime/schemas/runs.d.ts +1009 -240
- package/dist/packages/runtime/schemas/runs.js +17 -0
- package/dist/packages/runtime/service/openapi.js +1 -0
- package/dist/packages/runtime/service/operations.d.ts +1666 -145
- package/dist/packages/runtime/service/operations.js +147 -17
- package/dist/packages/runtime/service/routes.d.ts +11 -3
- package/dist/packages/runtime/service/routes.js +11 -3
- package/dist/packages/runtime/service/server-app-boot.js +2 -2
- package/dist/packages/runtime/service/server-helpers.d.ts +11 -0
- package/dist/packages/runtime/service/server-helpers.js +19 -0
- package/dist/packages/runtime/service/server-routes-action-proposals.js +4 -2
- package/dist/packages/runtime/service/server-routes-agents.js +19 -85
- package/dist/packages/runtime/service/server-routes-build-plans.js +14 -11
- package/dist/packages/runtime/service/server-routes-project-context.js +102 -7
- package/dist/packages/runtime/service/server-routes-project-jobs.js +19 -12
- package/dist/packages/runtime/service/server-routes-project-runs.js +5 -2
- package/dist/packages/runtime/service/server-routes-projects.js +6 -2
- package/dist/packages/runtime/service/server-routes-runs.js +11 -4
- package/dist/packages/runtime/verify/lib/schema.js +12 -0
- package/dist/packages/runtime/verify/test-file-guard.d.ts +2 -0
- package/dist/packages/runtime/verify/test-file-guard.js +29 -0
- package/dist/packages/runtime/verify/verify-execution.d.ts +7 -0
- package/dist/packages/runtime/verify/verify-execution.js +109 -35
- package/dist/packages/runtime/verify/verify-paths.d.ts +1 -0
- package/dist/packages/runtime/verify/verify-paths.js +4 -0
- package/dist/packages/runtime/verify/verify-specs.js +49 -39
- package/dist/packages/runtime/wire-schemas.d.ts +1 -1
- package/dist/packages/runtime/wire-schemas.js +1 -1
- package/package.json +2 -8
- package/public-repo/CONTRIBUTING.md +10 -3
- package/public-repo/README.md +122 -226
- package/public-repo/build-plans/interf-default/README.md +15 -12
- package/public-repo/build-plans/interf-default/build/stages/entrypoint/SKILL.md +74 -0
- package/public-repo/build-plans/interf-default/build/stages/knowledge/SKILL.md +95 -0
- package/public-repo/build-plans/interf-default/build/stages/summarize/SKILL.md +38 -5
- package/public-repo/build-plans/interf-default/build-plan.json +27 -23
- package/public-repo/build-plans/interf-default/build-plan.schema.json +24 -20
- package/public-repo/build-plans/interf-default/use/query/SKILL.md +8 -7
- package/public-repo/openapi/local-service.openapi.json +11637 -4213
- package/public-repo/skills/interf/SKILL.md +174 -134
- package/dist/packages/runtime/build/runtime-paths.d.ts +0 -8
- package/dist/packages/runtime/build/runtime-paths.js +0 -26
- package/dist/packages/runtime/build/state-paths.d.ts +0 -7
- package/dist/packages/runtime/build/state-paths.js +0 -22
- package/public-repo/build-plans/interf-default/build/stages/shape/SKILL.md +0 -34
- package/public-repo/build-plans/interf-default/build/stages/structure/SKILL.md +0 -28
|
@@ -25,6 +25,9 @@ export declare const RequestedArtifactOutputSchema: z.ZodObject<{
|
|
|
25
25
|
frontmatter_required_keys: "frontmatter_required_keys";
|
|
26
26
|
frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
|
|
27
27
|
source_refs_required: "source_refs_required";
|
|
28
|
+
summary_backlinks_present: "summary_backlinks_present";
|
|
29
|
+
knowledge_web_connectivity: "knowledge_web_connectivity";
|
|
30
|
+
graph_notes_connected: "graph_notes_connected";
|
|
28
31
|
wikilinks_valid: "wikilinks_valid";
|
|
29
32
|
must_not_contain: "must_not_contain";
|
|
30
33
|
must_contain: "must_contain";
|
|
@@ -67,6 +70,9 @@ export declare const RequestedArtifactSchema: z.ZodPipe<z.ZodTransform<unknown,
|
|
|
67
70
|
frontmatter_required_keys: "frontmatter_required_keys";
|
|
68
71
|
frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
|
|
69
72
|
source_refs_required: "source_refs_required";
|
|
73
|
+
summary_backlinks_present: "summary_backlinks_present";
|
|
74
|
+
knowledge_web_connectivity: "knowledge_web_connectivity";
|
|
75
|
+
graph_notes_connected: "graph_notes_connected";
|
|
70
76
|
wikilinks_valid: "wikilinks_valid";
|
|
71
77
|
must_not_contain: "must_not_contain";
|
|
72
78
|
must_contain: "must_contain";
|
|
@@ -131,6 +137,9 @@ export declare const BuildPlanAuthoringArtifactRequirementSchema: z.ZodObject<{
|
|
|
131
137
|
frontmatter_required_keys: "frontmatter_required_keys";
|
|
132
138
|
frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
|
|
133
139
|
source_refs_required: "source_refs_required";
|
|
140
|
+
summary_backlinks_present: "summary_backlinks_present";
|
|
141
|
+
knowledge_web_connectivity: "knowledge_web_connectivity";
|
|
142
|
+
graph_notes_connected: "graph_notes_connected";
|
|
134
143
|
wikilinks_valid: "wikilinks_valid";
|
|
135
144
|
must_not_contain: "must_not_contain";
|
|
136
145
|
must_contain: "must_contain";
|
|
@@ -175,6 +184,9 @@ export declare const BuildPlanAuthoringBriefInputSchema: z.ZodObject<{
|
|
|
175
184
|
frontmatter_required_keys: "frontmatter_required_keys";
|
|
176
185
|
frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
|
|
177
186
|
source_refs_required: "source_refs_required";
|
|
187
|
+
summary_backlinks_present: "summary_backlinks_present";
|
|
188
|
+
knowledge_web_connectivity: "knowledge_web_connectivity";
|
|
189
|
+
graph_notes_connected: "graph_notes_connected";
|
|
178
190
|
wikilinks_valid: "wikilinks_valid";
|
|
179
191
|
must_not_contain: "must_not_contain";
|
|
180
192
|
must_contain: "must_contain";
|
|
@@ -242,6 +254,9 @@ export declare const BuildPlanAuthoringBriefInputSchema: z.ZodObject<{
|
|
|
242
254
|
frontmatter_required_keys: "frontmatter_required_keys";
|
|
243
255
|
frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
|
|
244
256
|
source_refs_required: "source_refs_required";
|
|
257
|
+
summary_backlinks_present: "summary_backlinks_present";
|
|
258
|
+
knowledge_web_connectivity: "knowledge_web_connectivity";
|
|
259
|
+
graph_notes_connected: "graph_notes_connected";
|
|
245
260
|
wikilinks_valid: "wikilinks_valid";
|
|
246
261
|
must_not_contain: "must_not_contain";
|
|
247
262
|
must_contain: "must_contain";
|
|
@@ -287,6 +302,9 @@ export declare const BuildPlanAuthoringBriefSchema: z.ZodPipe<z.ZodObject<{
|
|
|
287
302
|
frontmatter_required_keys: "frontmatter_required_keys";
|
|
288
303
|
frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
|
|
289
304
|
source_refs_required: "source_refs_required";
|
|
305
|
+
summary_backlinks_present: "summary_backlinks_present";
|
|
306
|
+
knowledge_web_connectivity: "knowledge_web_connectivity";
|
|
307
|
+
graph_notes_connected: "graph_notes_connected";
|
|
290
308
|
wikilinks_valid: "wikilinks_valid";
|
|
291
309
|
must_not_contain: "must_not_contain";
|
|
292
310
|
must_contain: "must_contain";
|
|
@@ -354,6 +372,9 @@ export declare const BuildPlanAuthoringBriefSchema: z.ZodPipe<z.ZodObject<{
|
|
|
354
372
|
frontmatter_required_keys: "frontmatter_required_keys";
|
|
355
373
|
frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
|
|
356
374
|
source_refs_required: "source_refs_required";
|
|
375
|
+
summary_backlinks_present: "summary_backlinks_present";
|
|
376
|
+
knowledge_web_connectivity: "knowledge_web_connectivity";
|
|
377
|
+
graph_notes_connected: "graph_notes_connected";
|
|
357
378
|
wikilinks_valid: "wikilinks_valid";
|
|
358
379
|
must_not_contain: "must_not_contain";
|
|
359
380
|
must_contain: "must_contain";
|
|
@@ -377,7 +398,7 @@ export declare const BuildPlanAuthoringBriefSchema: z.ZodPipe<z.ZodObject<{
|
|
|
377
398
|
output?: {
|
|
378
399
|
checks: {
|
|
379
400
|
id: string;
|
|
380
|
-
kind: "file_exists" | "source_manifest_valid" | "min_file_count" | "min_file_count_matches_source" | "source_summary_folders" | "source_page_coverage" | "frontmatter_valid" | "frontmatter_required_keys" | "frontmatter_nonempty_keys" | "source_refs_required" | "wikilinks_valid" | "must_not_contain" | "must_contain" | "qa_match";
|
|
401
|
+
kind: "file_exists" | "source_manifest_valid" | "min_file_count" | "min_file_count_matches_source" | "source_summary_folders" | "source_page_coverage" | "frontmatter_valid" | "frontmatter_required_keys" | "frontmatter_nonempty_keys" | "source_refs_required" | "summary_backlinks_present" | "knowledge_web_connectivity" | "graph_notes_connected" | "wikilinks_valid" | "must_not_contain" | "must_contain" | "qa_match";
|
|
381
402
|
required: boolean;
|
|
382
403
|
description?: string | undefined;
|
|
383
404
|
params?: Record<string, unknown> | undefined;
|
|
@@ -409,7 +430,7 @@ export declare const BuildPlanAuthoringBriefSchema: z.ZodPipe<z.ZodObject<{
|
|
|
409
430
|
};
|
|
410
431
|
checks: {
|
|
411
432
|
id: string;
|
|
412
|
-
kind: "file_exists" | "source_manifest_valid" | "min_file_count" | "min_file_count_matches_source" | "source_summary_folders" | "source_page_coverage" | "frontmatter_valid" | "frontmatter_required_keys" | "frontmatter_nonempty_keys" | "source_refs_required" | "wikilinks_valid" | "must_not_contain" | "must_contain" | "qa_match";
|
|
433
|
+
kind: "file_exists" | "source_manifest_valid" | "min_file_count" | "min_file_count_matches_source" | "source_summary_folders" | "source_page_coverage" | "frontmatter_valid" | "frontmatter_required_keys" | "frontmatter_nonempty_keys" | "source_refs_required" | "summary_backlinks_present" | "knowledge_web_connectivity" | "graph_notes_connected" | "wikilinks_valid" | "must_not_contain" | "must_contain" | "qa_match";
|
|
413
434
|
required: boolean;
|
|
414
435
|
description?: string | undefined;
|
|
415
436
|
params?: Record<string, unknown> | undefined;
|
|
@@ -444,7 +465,7 @@ export declare const BuildPlanAuthoringBriefSchema: z.ZodPipe<z.ZodObject<{
|
|
|
444
465
|
output?: {
|
|
445
466
|
checks: {
|
|
446
467
|
id: string;
|
|
447
|
-
kind: "file_exists" | "source_manifest_valid" | "min_file_count" | "min_file_count_matches_source" | "source_summary_folders" | "source_page_coverage" | "frontmatter_valid" | "frontmatter_required_keys" | "frontmatter_nonempty_keys" | "source_refs_required" | "wikilinks_valid" | "must_not_contain" | "must_contain" | "qa_match";
|
|
468
|
+
kind: "file_exists" | "source_manifest_valid" | "min_file_count" | "min_file_count_matches_source" | "source_summary_folders" | "source_page_coverage" | "frontmatter_valid" | "frontmatter_required_keys" | "frontmatter_nonempty_keys" | "source_refs_required" | "summary_backlinks_present" | "knowledge_web_connectivity" | "graph_notes_connected" | "wikilinks_valid" | "must_not_contain" | "must_contain" | "qa_match";
|
|
448
469
|
required: boolean;
|
|
449
470
|
description?: string | undefined;
|
|
450
471
|
params?: Record<string, unknown> | undefined;
|
|
@@ -498,7 +519,7 @@ export declare const BuildPlanAuthoringBriefSchema: z.ZodPipe<z.ZodObject<{
|
|
|
498
519
|
};
|
|
499
520
|
checks: {
|
|
500
521
|
id: string;
|
|
501
|
-
kind: "file_exists" | "source_manifest_valid" | "min_file_count" | "min_file_count_matches_source" | "source_summary_folders" | "source_page_coverage" | "frontmatter_valid" | "frontmatter_required_keys" | "frontmatter_nonempty_keys" | "source_refs_required" | "wikilinks_valid" | "must_not_contain" | "must_contain" | "qa_match";
|
|
522
|
+
kind: "file_exists" | "source_manifest_valid" | "min_file_count" | "min_file_count_matches_source" | "source_summary_folders" | "source_page_coverage" | "frontmatter_valid" | "frontmatter_required_keys" | "frontmatter_nonempty_keys" | "source_refs_required" | "summary_backlinks_present" | "knowledge_web_connectivity" | "graph_notes_connected" | "wikilinks_valid" | "must_not_contain" | "must_contain" | "qa_match";
|
|
502
523
|
required: boolean;
|
|
503
524
|
description?: string | undefined;
|
|
504
525
|
params?: Record<string, unknown> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentExecutor } from "../../runtime/agents/lib/executors.js";
|
|
2
|
-
import { validateBuildPlanPackage } from "../package/local-build-plans.js";
|
|
2
|
+
import { validateBuildPlanPackage, type BuildPlanValidationResult } from "../package/local-build-plans.js";
|
|
3
3
|
import type { BuildPlanAuthoringArtifactRequirement, BuildPlanContextCheckDraft, RequestedArtifact, SourceContext } from "./brief.js";
|
|
4
4
|
/**
|
|
5
5
|
* Walk build-plan.json after a successful authoring run and fill in
|
|
@@ -9,6 +9,47 @@ import type { BuildPlanAuthoringArtifactRequirement, BuildPlanContextCheckDraft,
|
|
|
9
9
|
* touched so the runtime can surface that to the user.
|
|
10
10
|
*/
|
|
11
11
|
export declare function ensureStageRoles(buildPlanPath: string): string[];
|
|
12
|
+
/**
|
|
13
|
+
* IMPROVE-loop tailoring NON-REGRESSION guard (the improve-path analogue of the
|
|
14
|
+
* draft-time tailoring guard).
|
|
15
|
+
*
|
|
16
|
+
* The draft guard (`validateTailoringGuard`) is an absolute "this plan must
|
|
17
|
+
* name something from the Source" check, correct for a from-scratch draft. It
|
|
18
|
+
* is the WRONG shape for the improvement loop: a user may select and improve a
|
|
19
|
+
* plan that is generic by design (the shipped `interf-default` carries no
|
|
20
|
+
* draft-time tailoring at all), and the absolute guard would reject every
|
|
21
|
+
* legitimate improvement to it the moment the Source vocabulary happened not to
|
|
22
|
+
* collide with the plan's generic wording. Running the absolute guard on
|
|
23
|
+
* improve would therefore false-reject faithful improvements, not just
|
|
24
|
+
* de-tailoring ones.
|
|
25
|
+
*
|
|
26
|
+
* The real C1 threat is narrower and is what this guards: an improvement edit
|
|
27
|
+
* must not take a plan that WAS tailored to the Source and strip that tailoring
|
|
28
|
+
* back to a generic skeleton. So this is a before/after DELTA check against the
|
|
29
|
+
* SAME scanned Source inventory: if the pre-edit plan was tailored and the
|
|
30
|
+
* post-edit plan is not, the edit de-tailored the plan and is rejected. A plan
|
|
31
|
+
* that was already generic before the edit (e.g. `interf-default`) has no
|
|
32
|
+
* tailoring to lose, so the guard is a no-op for it — improve is free to refine
|
|
33
|
+
* it without being forced to invent Source-specific vocabulary. With no
|
|
34
|
+
* Source inventory available (no Source binding, unreadable Source), there is
|
|
35
|
+
* nothing to compare and the guard is likewise a no-op.
|
|
36
|
+
*/
|
|
37
|
+
export declare function validateImproveTailoringNonRegression(beforeBuildPlanPath: string, afterBuildPlanPath: string, sourceContext: SourceContext | null): string[];
|
|
38
|
+
/**
|
|
39
|
+
* Lifecycle guards that apply to EVERY lifecycle stage that mutates a Build
|
|
40
|
+
* Plan package (authoring draft AND self-improvement loop): the base package
|
|
41
|
+
* validation plus the product-critical structural invariants a self-improvement
|
|
42
|
+
* run must not be allowed to silently strip —
|
|
43
|
+
* `summary_backlinks_present` (no orphaned CITED summary),
|
|
44
|
+
* `graph_notes_connected` (the WHOLE-graph connectivity floor: no uncited-summary
|
|
45
|
+
* or any-note island), and the canonical-top-level-layer rule (core content stays
|
|
46
|
+
* under `summaries/`, `knowledge/`, `artifacts/`, or `home.md`).
|
|
47
|
+
*
|
|
48
|
+
* The authoring-only guards (scaffold-removal, artifact-requirements, tailoring)
|
|
49
|
+
* live in `validateAuthoredBuildPlanPackage` because they are draft-time
|
|
50
|
+
* concerns, not improvement concerns.
|
|
51
|
+
*/
|
|
52
|
+
export declare function validateLifecycleBuildPlanPackage(buildPlanPath: string): BuildPlanValidationResult;
|
|
12
53
|
interface BuildPlanAuthoringRunResult {
|
|
13
54
|
status: "updated" | "no-change" | "invalid" | "executor-failed";
|
|
14
55
|
changed: boolean;
|