@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
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
* Source binding shape on the API. The only Source kind Interf accepts is
|
|
4
|
-
* `local-folder`. Remote storage kinds will be re-introduced when a real
|
|
5
|
-
* variant ships; see `internal/iterations/0.23-service-variant-parking-lot.md`.
|
|
6
|
-
*/
|
|
7
|
-
export declare const SourceBindingSchema: z.ZodObject<{
|
|
8
|
-
kind: z.ZodLiteral<"local-folder">;
|
|
9
|
-
locator: z.ZodString;
|
|
10
|
-
}, z.core.$strict>;
|
|
2
|
+
export { SourceBindingSchema, type SourceBinding } from "../../contracts/lib/schema.js";
|
|
11
3
|
/** Body of `POST /v1/projects` — the project create request. */
|
|
12
4
|
export declare const ProjectCreateRequestSchema: z.ZodObject<{
|
|
13
5
|
id: z.ZodString;
|
|
14
6
|
source: z.ZodObject<{
|
|
15
|
-
kind: z.
|
|
7
|
+
kind: z.ZodEnum<{
|
|
8
|
+
"local-folder": "local-folder";
|
|
9
|
+
}>;
|
|
16
10
|
locator: z.ZodString;
|
|
17
11
|
}, z.core.$strict>;
|
|
12
|
+
intent: z.ZodString;
|
|
18
13
|
build_plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
14
|
}, z.core.$strict>;
|
|
20
15
|
/** Body of `PATCH /v1/projects/<id>` — update mutable project fields. */
|
|
21
16
|
export declare const ProjectUpdateRequestSchema: z.ZodObject<{
|
|
17
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
22
18
|
build_plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
19
|
}, z.core.$strict>;
|
|
24
20
|
export declare const ProjectDeleteResponseSchema: z.ZodObject<{
|
|
@@ -29,11 +25,15 @@ export declare const ProjectWireShapeSchema: z.ZodObject<{
|
|
|
29
25
|
id: z.ZodString;
|
|
30
26
|
project_id: z.ZodOptional<z.ZodString>;
|
|
31
27
|
source: z.ZodObject<{
|
|
32
|
-
kind: z.
|
|
28
|
+
kind: z.ZodEnum<{
|
|
29
|
+
"local-folder": "local-folder";
|
|
30
|
+
}>;
|
|
33
31
|
locator: z.ZodString;
|
|
34
32
|
}, z.core.$strict>;
|
|
33
|
+
intent: z.ZodString;
|
|
35
34
|
build_plan_id: z.ZodNullable<z.ZodString>;
|
|
36
35
|
config_path: z.ZodString;
|
|
36
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
context_graph: z.ZodObject<{
|
|
38
38
|
kind: z.ZodEnum<{
|
|
39
39
|
"local-path": "local-path";
|
|
@@ -48,6 +48,7 @@ export declare const ContextGraphMappingSchema: z.ZodObject<{
|
|
|
48
48
|
project: z.ZodString;
|
|
49
49
|
path: z.ZodNullable<z.ZodString>;
|
|
50
50
|
exists: z.ZodBoolean;
|
|
51
|
+
intent: z.ZodString;
|
|
51
52
|
build_plan_id: z.ZodNullable<z.ZodString>;
|
|
52
53
|
latest_build_run_id: z.ZodNullable<z.ZodString>;
|
|
53
54
|
latest_benchmark_run_id: z.ZodNullable<z.ZodString>;
|
|
@@ -60,23 +61,29 @@ export declare const ProjectResourceSchema: z.ZodObject<{
|
|
|
60
61
|
id: z.ZodString;
|
|
61
62
|
name: z.ZodString;
|
|
62
63
|
source: z.ZodObject<{
|
|
63
|
-
kind: z.
|
|
64
|
+
kind: z.ZodEnum<{
|
|
65
|
+
"local-folder": "local-folder";
|
|
66
|
+
}>;
|
|
64
67
|
locator: z.ZodString;
|
|
65
68
|
}, z.core.$strict>;
|
|
69
|
+
intent: z.ZodString;
|
|
66
70
|
config: z.ZodObject<{
|
|
67
71
|
id: z.ZodOptional<z.ZodString>;
|
|
68
72
|
name: z.ZodString;
|
|
73
|
+
intent: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
69
74
|
path: z.ZodString;
|
|
70
75
|
build_plan: z.ZodOptional<z.ZodString>;
|
|
71
76
|
latest_context_graph_run_id: z.ZodOptional<z.ZodString>;
|
|
72
77
|
}, z.core.$strict>;
|
|
73
78
|
config_path: z.ZodString;
|
|
74
79
|
source_path: z.ZodString;
|
|
80
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
81
|
build_plan_id: z.ZodNullable<z.ZodString>;
|
|
76
82
|
context_graph: z.ZodObject<{
|
|
77
83
|
project: z.ZodString;
|
|
78
84
|
path: z.ZodNullable<z.ZodString>;
|
|
79
85
|
exists: z.ZodBoolean;
|
|
86
|
+
intent: z.ZodString;
|
|
80
87
|
build_plan_id: z.ZodNullable<z.ZodString>;
|
|
81
88
|
latest_build_run_id: z.ZodNullable<z.ZodString>;
|
|
82
89
|
latest_benchmark_run_id: z.ZodNullable<z.ZodString>;
|
|
@@ -88,14 +95,14 @@ export declare const ProjectResourceSchema: z.ZodObject<{
|
|
|
88
95
|
generated_at: z.ZodString;
|
|
89
96
|
project: z.ZodString;
|
|
90
97
|
status: z.ZodEnum<{
|
|
91
|
-
failed: "failed";
|
|
92
98
|
ready: "ready";
|
|
99
|
+
"not-ready": "not-ready";
|
|
100
|
+
failed: "failed";
|
|
93
101
|
"not-configured": "not-configured";
|
|
94
102
|
"not-built": "not-built";
|
|
95
103
|
building: "building";
|
|
96
104
|
built: "built";
|
|
97
105
|
checking: "checking";
|
|
98
|
-
"not-ready": "not-ready";
|
|
99
106
|
stale: "stale";
|
|
100
107
|
}>;
|
|
101
108
|
ready: z.ZodBoolean;
|
|
@@ -115,14 +122,14 @@ export declare const ProjectResourceSchema: z.ZodObject<{
|
|
|
115
122
|
}>;
|
|
116
123
|
ok: z.ZodBoolean;
|
|
117
124
|
status: z.ZodOptional<z.ZodEnum<{
|
|
118
|
-
failed: "failed";
|
|
119
125
|
ready: "ready";
|
|
126
|
+
"not-ready": "not-ready";
|
|
127
|
+
failed: "failed";
|
|
120
128
|
"not-configured": "not-configured";
|
|
121
129
|
"not-built": "not-built";
|
|
122
130
|
building: "building";
|
|
123
131
|
built: "built";
|
|
124
132
|
checking: "checking";
|
|
125
|
-
"not-ready": "not-ready";
|
|
126
133
|
stale: "stale";
|
|
127
134
|
}>>;
|
|
128
135
|
summary: z.ZodString;
|
|
@@ -164,14 +171,14 @@ export declare const ProjectResourceSchema: z.ZodObject<{
|
|
|
164
171
|
}>;
|
|
165
172
|
ok: z.ZodBoolean;
|
|
166
173
|
status: z.ZodOptional<z.ZodEnum<{
|
|
167
|
-
failed: "failed";
|
|
168
174
|
ready: "ready";
|
|
175
|
+
"not-ready": "not-ready";
|
|
176
|
+
failed: "failed";
|
|
169
177
|
"not-configured": "not-configured";
|
|
170
178
|
"not-built": "not-built";
|
|
171
179
|
building: "building";
|
|
172
180
|
built: "built";
|
|
173
181
|
checking: "checking";
|
|
174
|
-
"not-ready": "not-ready";
|
|
175
182
|
stale: "stale";
|
|
176
183
|
}>>;
|
|
177
184
|
summary: z.ZodString;
|
|
@@ -189,9 +196,9 @@ export declare const ProjectResourceSchema: z.ZodObject<{
|
|
|
189
196
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
197
|
artifact_id: z.ZodString;
|
|
191
198
|
status: z.ZodEnum<{
|
|
199
|
+
ready: "ready";
|
|
192
200
|
failed: "failed";
|
|
193
201
|
skipped: "skipped";
|
|
194
|
-
ready: "ready";
|
|
195
202
|
not_ready: "not_ready";
|
|
196
203
|
}>;
|
|
197
204
|
built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -208,6 +215,9 @@ export declare const ProjectResourceSchema: z.ZodObject<{
|
|
|
208
215
|
frontmatter_required_keys: "frontmatter_required_keys";
|
|
209
216
|
frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
|
|
210
217
|
source_refs_required: "source_refs_required";
|
|
218
|
+
summary_backlinks_present: "summary_backlinks_present";
|
|
219
|
+
knowledge_web_connectivity: "knowledge_web_connectivity";
|
|
220
|
+
graph_notes_connected: "graph_notes_connected";
|
|
211
221
|
wikilinks_valid: "wikilinks_valid";
|
|
212
222
|
must_not_contain: "must_not_contain";
|
|
213
223
|
must_contain: "must_contain";
|
|
@@ -257,6 +267,12 @@ export declare const ResetRequestSchema: z.ZodObject<{
|
|
|
257
267
|
all: "all";
|
|
258
268
|
}>;
|
|
259
269
|
}, z.core.$strict>;
|
|
270
|
+
export declare const ProjectResetRequestSchema: z.ZodObject<{
|
|
271
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
272
|
+
build: "build";
|
|
273
|
+
all: "all";
|
|
274
|
+
}>>;
|
|
275
|
+
}, z.core.$strict>;
|
|
260
276
|
export declare const ResetResultSchema: z.ZodObject<{
|
|
261
277
|
kind: z.ZodLiteral<"interf-reset-result">;
|
|
262
278
|
version: z.ZodLiteral<1>;
|
|
@@ -275,6 +291,10 @@ export declare const BenchmarkQuestionDraftCreateRequestSchema: z.ZodObject<{
|
|
|
275
291
|
intent: z.ZodOptional<z.ZodString>;
|
|
276
292
|
target_count: z.ZodDefault<z.ZodNumber>;
|
|
277
293
|
}, z.core.$strict>;
|
|
294
|
+
export declare const ProjectBenchmarkQuestionDraftCreateRequestSchema: z.ZodObject<{
|
|
295
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
296
|
+
target_count: z.ZodDefault<z.ZodNumber>;
|
|
297
|
+
}, z.core.$strict>;
|
|
278
298
|
export declare const BenchmarkQuestionDraftRuntimeRequestSchema: z.ZodObject<{
|
|
279
299
|
project: z.ZodString;
|
|
280
300
|
intent: z.ZodOptional<z.ZodString>;
|
|
@@ -299,17 +319,23 @@ export declare const BenchmarkQuestionDraftResultSchema: z.ZodObject<{
|
|
|
299
319
|
source_files: z.ZodOptional<z.ZodString>;
|
|
300
320
|
context_graph: z.ZodOptional<z.ZodString>;
|
|
301
321
|
}, z.core.$strict>>;
|
|
322
|
+
shell_path: z.ZodOptional<z.ZodString>;
|
|
323
|
+
reasoning_path: z.ZodOptional<z.ZodString>;
|
|
302
324
|
}, z.core.$strict>;
|
|
303
325
|
export declare const ProjectListResponseSchema: z.ZodObject<{
|
|
304
326
|
projects: z.ZodArray<z.ZodObject<{
|
|
305
327
|
id: z.ZodString;
|
|
306
328
|
project_id: z.ZodOptional<z.ZodString>;
|
|
307
329
|
source: z.ZodObject<{
|
|
308
|
-
kind: z.
|
|
330
|
+
kind: z.ZodEnum<{
|
|
331
|
+
"local-folder": "local-folder";
|
|
332
|
+
}>;
|
|
309
333
|
locator: z.ZodString;
|
|
310
334
|
}, z.core.$strict>;
|
|
335
|
+
intent: z.ZodString;
|
|
311
336
|
build_plan_id: z.ZodNullable<z.ZodString>;
|
|
312
337
|
config_path: z.ZodString;
|
|
338
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
339
|
context_graph: z.ZodObject<{
|
|
314
340
|
kind: z.ZodEnum<{
|
|
315
341
|
"local-path": "local-path";
|
|
@@ -321,7 +347,6 @@ export declare const ProjectListResponseSchema: z.ZodObject<{
|
|
|
321
347
|
context_graph_path: z.ZodOptional<z.ZodString>;
|
|
322
348
|
}, z.core.$strict>>;
|
|
323
349
|
}, z.core.$strict>;
|
|
324
|
-
export type SourceBinding = z.infer<typeof SourceBindingSchema>;
|
|
325
350
|
export type ProjectCreateRequest = z.infer<typeof ProjectCreateRequestSchema>;
|
|
326
351
|
export type ProjectUpdateRequest = z.infer<typeof ProjectUpdateRequestSchema>;
|
|
327
352
|
export type ProjectDeleteResponse = z.infer<typeof ProjectDeleteResponseSchema>;
|
|
@@ -332,8 +357,10 @@ export type ProjectResource = z.infer<typeof ProjectResourceSchema>;
|
|
|
332
357
|
export type ProjectSetupResult = z.infer<typeof ProjectSetupResultSchema>;
|
|
333
358
|
export type ProjectChangeResult = z.infer<typeof ProjectChangeResultSchema>;
|
|
334
359
|
export type ResetRequest = z.infer<typeof ResetRequestSchema>;
|
|
360
|
+
export type ProjectResetRequest = z.infer<typeof ProjectResetRequestSchema>;
|
|
335
361
|
export type ResetResult = z.infer<typeof ResetResultSchema>;
|
|
336
362
|
export type BenchmarkQuestionDraftCreateRequest = z.infer<typeof BenchmarkQuestionDraftCreateRequestSchema>;
|
|
363
|
+
export type ProjectBenchmarkQuestionDraftCreateRequest = z.infer<typeof ProjectBenchmarkQuestionDraftCreateRequestSchema>;
|
|
337
364
|
export type BenchmarkQuestionDraftRuntimeRequest = z.infer<typeof BenchmarkQuestionDraftRuntimeRequestSchema>;
|
|
338
365
|
export type BenchmarkQuestionDraftResult = z.infer<typeof BenchmarkQuestionDraftResultSchema>;
|
|
339
366
|
export type ProjectListResponse = z.infer<typeof ProjectListResponseSchema>;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ProjectConfigSchema, BenchmarkCheckSchema, } from "../../projects/lib/schema.js";
|
|
3
|
-
import { ArtifactStatusSchema, ProjectIdSchema, ReadinessSchema, BuildPlanIdSchema, } from "../../contracts/lib/schema.js";
|
|
3
|
+
import { ArtifactStatusSchema, ProjectIdSchema, ProjectIntentSchema, ReadinessSchema, BuildPlanIdSchema, SourceBindingSchema, } from "../../contracts/lib/schema.js";
|
|
4
4
|
import { ArtifactLocatorSchema } from "./files.js";
|
|
5
|
-
|
|
6
|
-
* Source binding shape on the API. The only Source kind Interf accepts is
|
|
7
|
-
* `local-folder`. Remote storage kinds will be re-introduced when a real
|
|
8
|
-
* variant ships; see `internal/iterations/0.23-service-variant-parking-lot.md`.
|
|
9
|
-
*/
|
|
10
|
-
export const SourceBindingSchema = z.object({
|
|
11
|
-
kind: z.literal("local-folder"),
|
|
12
|
-
locator: z.string().min(1),
|
|
13
|
-
}).strict();
|
|
5
|
+
export { SourceBindingSchema } from "../../contracts/lib/schema.js";
|
|
14
6
|
/** Body of `POST /v1/projects` — the project create request. */
|
|
15
7
|
export const ProjectCreateRequestSchema = z.object({
|
|
16
8
|
id: ProjectIdSchema,
|
|
17
9
|
source: SourceBindingSchema,
|
|
10
|
+
intent: ProjectIntentSchema,
|
|
18
11
|
/**
|
|
19
12
|
* Selected Build Plan id. Optional because a Project can be created
|
|
20
13
|
* before a Build Plan is selected or drafted.
|
|
@@ -23,6 +16,7 @@ export const ProjectCreateRequestSchema = z.object({
|
|
|
23
16
|
}).strict();
|
|
24
17
|
/** Body of `PATCH /v1/projects/<id>` — update mutable project fields. */
|
|
25
18
|
export const ProjectUpdateRequestSchema = z.object({
|
|
19
|
+
intent: ProjectIntentSchema.optional(),
|
|
26
20
|
build_plan_id: BuildPlanIdSchema.nullable().optional(),
|
|
27
21
|
}).strict();
|
|
28
22
|
export const ProjectDeleteResponseSchema = z.object({
|
|
@@ -34,8 +28,14 @@ export const ProjectWireShapeSchema = z.object({
|
|
|
34
28
|
/** Stable alias for `id` — agents and clients should prefer `project_id`. */
|
|
35
29
|
project_id: ProjectIdSchema.optional(),
|
|
36
30
|
source: SourceBindingSchema,
|
|
31
|
+
intent: ProjectIntentSchema,
|
|
37
32
|
build_plan_id: BuildPlanIdSchema.nullable(),
|
|
38
33
|
config_path: z.string().min(1),
|
|
34
|
+
/**
|
|
35
|
+
* Last-modified time of the Project's `interf.json` (ISO 8601). Recency
|
|
36
|
+
* signal the Projects list sorts newest-first by. Null when unreadable.
|
|
37
|
+
*/
|
|
38
|
+
updated_at: z.string().min(1).nullable().optional(),
|
|
39
39
|
/** Locator pointing at the Context Graph for this Project. */
|
|
40
40
|
context_graph: ArtifactLocatorSchema,
|
|
41
41
|
/** Filesystem path inside the Context Graph locator (convenience for local clients). */
|
|
@@ -45,6 +45,7 @@ export const ContextGraphMappingSchema = z.object({
|
|
|
45
45
|
project: ProjectIdSchema,
|
|
46
46
|
path: z.string().min(1).nullable(),
|
|
47
47
|
exists: z.boolean(),
|
|
48
|
+
intent: ProjectIntentSchema,
|
|
48
49
|
build_plan_id: BuildPlanIdSchema.nullable(),
|
|
49
50
|
latest_build_run_id: z.string().min(1).nullable(),
|
|
50
51
|
latest_benchmark_run_id: z.string().min(1).nullable(),
|
|
@@ -57,9 +58,16 @@ export const ProjectResourceSchema = z.object({
|
|
|
57
58
|
id: ProjectIdSchema,
|
|
58
59
|
name: ProjectIdSchema,
|
|
59
60
|
source: SourceBindingSchema,
|
|
61
|
+
intent: ProjectIntentSchema,
|
|
60
62
|
config: ProjectConfigSchema,
|
|
61
63
|
config_path: z.string().min(1),
|
|
62
64
|
source_path: z.string().min(1),
|
|
65
|
+
/**
|
|
66
|
+
* Last-modified time of the Project's config file (`interf.json`), ISO 8601.
|
|
67
|
+
* Migration-free recency signal: clients sort the Projects list newest-first
|
|
68
|
+
* by this. Null when the config file mtime can't be read.
|
|
69
|
+
*/
|
|
70
|
+
updated_at: z.string().min(1).nullable().optional(),
|
|
63
71
|
build_plan_id: BuildPlanIdSchema.nullable(),
|
|
64
72
|
context_graph: ContextGraphMappingSchema,
|
|
65
73
|
context_graph_path: z.string().min(1).nullable(),
|
|
@@ -105,6 +113,12 @@ export const ResetRequestSchema = z.object({
|
|
|
105
113
|
project: ProjectIdSchema,
|
|
106
114
|
scope: z.enum(["build", "all"]),
|
|
107
115
|
}).strict();
|
|
116
|
+
export const ProjectResetRequestSchema = ResetRequestSchema
|
|
117
|
+
.omit({ project: true })
|
|
118
|
+
.extend({
|
|
119
|
+
scope: ResetRequestSchema.shape.scope.default("build"),
|
|
120
|
+
})
|
|
121
|
+
.strict();
|
|
108
122
|
export const ResetResultSchema = z.object({
|
|
109
123
|
kind: z.literal("interf-reset-result"),
|
|
110
124
|
version: z.literal(1),
|
|
@@ -121,6 +135,9 @@ export const BenchmarkQuestionDraftCreateRequestSchema = z.object({
|
|
|
121
135
|
intent: z.string().min(1).optional(),
|
|
122
136
|
target_count: z.number().int().min(1).max(8).default(4),
|
|
123
137
|
}).strict();
|
|
138
|
+
export const ProjectBenchmarkQuestionDraftCreateRequestSchema = BenchmarkQuestionDraftCreateRequestSchema
|
|
139
|
+
.omit({ project: true, source_folder_path: true })
|
|
140
|
+
.strict();
|
|
124
141
|
export const BenchmarkQuestionDraftRuntimeRequestSchema = BenchmarkQuestionDraftCreateRequestSchema.extend({
|
|
125
142
|
source_folder_path: z.string().min(1),
|
|
126
143
|
}).strict();
|
|
@@ -130,6 +147,13 @@ export const BenchmarkQuestionDraftResultSchema = z.object({
|
|
|
130
147
|
source_files: z.string().min(1).optional(),
|
|
131
148
|
context_graph: z.string().min(1).optional(),
|
|
132
149
|
}).strict().optional(),
|
|
150
|
+
// Preserved, inspectable drafting shell: the absolute path to the frozen shell
|
|
151
|
+
// and to its agent-reasoning transcript. Present when the draft ran with
|
|
152
|
+
// durable Project job storage (the launched path). They index the rich
|
|
153
|
+
// artifact from the LocalJobRun record, the graph-less analogue of a stage
|
|
154
|
+
// session's shell_path + reasoning_path.
|
|
155
|
+
shell_path: z.string().min(1).optional(),
|
|
156
|
+
reasoning_path: z.string().min(1).optional(),
|
|
133
157
|
}).strict();
|
|
134
158
|
export const ProjectListResponseSchema = z.object({
|
|
135
159
|
projects: z.array(ProjectWireShapeSchema),
|