@interf/compiler 0.9.4 → 0.13.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 +96 -91
- package/TRADEMARKS.md +2 -13
- package/agent-skills/interf-actions/SKILL.md +97 -32
- package/agent-skills/interf-actions/references/cli.md +124 -71
- package/builtin-methods/interf-default/README.md +3 -4
- package/builtin-methods/interf-default/compile/stages/shape/SKILL.md +2 -2
- package/builtin-methods/interf-default/compile/stages/summarize/SKILL.md +2 -1
- package/builtin-methods/interf-default/improve/SKILL.md +1 -1
- package/builtin-methods/interf-default/method.json +10 -4
- package/builtin-methods/interf-default/method.schema.json +0 -9
- package/builtin-methods/interf-default/use/query/SKILL.md +5 -5
- package/dist/cli/commands/compile.d.ts +9 -31
- package/dist/cli/commands/compile.js +75 -388
- package/dist/cli/commands/doctor.js +1 -1
- package/dist/cli/commands/login.d.ts +7 -0
- package/dist/cli/commands/login.js +39 -0
- package/dist/cli/commands/logout.d.ts +2 -0
- package/dist/cli/commands/logout.js +16 -0
- package/dist/cli/commands/method.d.ts +2 -0
- package/dist/cli/commands/method.js +113 -0
- package/dist/cli/commands/prep.d.ts +2 -0
- package/dist/cli/commands/prep.js +134 -0
- package/dist/cli/commands/reset.d.ts +8 -1
- package/dist/cli/commands/reset.js +47 -15
- package/dist/cli/commands/runs.d.ts +2 -0
- package/dist/cli/commands/runs.js +120 -0
- package/dist/cli/commands/status.d.ts +6 -1
- package/dist/cli/commands/status.js +61 -220
- package/dist/cli/commands/test.d.ts +6 -15
- package/dist/cli/commands/test.js +63 -342
- package/dist/cli/commands/web.d.ts +0 -9
- package/dist/cli/commands/web.js +140 -367
- package/dist/cli/commands/wizard.d.ts +9 -0
- package/dist/cli/commands/wizard.js +442 -0
- package/dist/cli/index.d.ts +7 -6
- package/dist/cli/index.js +13 -10
- package/dist/compiler-ui/404.html +1 -1
- package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
- package/dist/compiler-ui/__next._full.txt +3 -3
- package/dist/compiler-ui/__next._head.txt +1 -1
- package/dist/compiler-ui/__next._index.txt +2 -2
- package/dist/compiler-ui/__next._tree.txt +2 -2
- package/dist/compiler-ui/_next/static/chunks/045gole2ojo3g.css +3 -0
- package/dist/compiler-ui/_next/static/chunks/17t-lulmyawg5.js +89 -0
- package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
- package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
- package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
- package/dist/compiler-ui/_not-found.html +1 -1
- package/dist/compiler-ui/_not-found.txt +2 -2
- package/dist/compiler-ui/index.html +1 -1
- package/dist/compiler-ui/index.txt +3 -3
- package/dist/index.d.ts +0 -23
- package/dist/index.js +0 -16
- package/dist/packages/agents/lib/shells.d.ts +1 -1
- package/dist/packages/agents/lib/shells.js +113 -54
- package/dist/packages/agents/lib/user-config.d.ts +4 -2
- package/dist/packages/agents/lib/user-config.js +15 -7
- package/dist/packages/compiler/compiled-paths.d.ts +9 -2
- package/dist/packages/compiler/compiled-paths.js +30 -15
- package/dist/packages/compiler/compiled-pipeline.js +23 -3
- package/dist/packages/compiler/compiled-stage-plan.js +4 -0
- package/dist/packages/compiler/compiled-target.d.ts +1 -1
- package/dist/packages/compiler/compiled-target.js +1 -1
- package/dist/packages/compiler/index.d.ts +1 -0
- package/dist/packages/compiler/index.js +1 -0
- package/dist/packages/compiler/lib/schema.d.ts +27 -32
- package/dist/packages/compiler/lib/schema.js +2 -13
- package/dist/packages/compiler/method-runs.d.ts +2 -3
- package/dist/packages/compiler/method-runs.js +2 -3
- package/dist/packages/compiler/reset.js +3 -1
- package/dist/packages/compiler/runtime-contracts.js +0 -3
- package/dist/packages/compiler/runtime-prompt.js +1 -1
- package/dist/packages/compiler/source-files.d.ts +46 -0
- package/dist/packages/compiler/source-files.js +149 -0
- package/dist/packages/compiler/state-artifacts.d.ts +3 -2
- package/dist/packages/compiler/state-artifacts.js +4 -3
- package/dist/packages/compiler/state-io.d.ts +3 -2
- package/dist/packages/compiler/state-io.js +11 -5
- package/dist/packages/compiler/state-paths.d.ts +2 -1
- package/dist/packages/compiler/state-paths.js +6 -3
- package/dist/packages/compiler/state-view.d.ts +3 -2
- package/dist/packages/compiler/state-view.js +18 -28
- package/dist/packages/compiler/state.d.ts +4 -4
- package/dist/packages/compiler/state.js +3 -3
- package/dist/packages/contracts/index.d.ts +1 -1
- package/dist/packages/contracts/lib/preparation-paths.d.ts +117 -0
- package/dist/packages/contracts/lib/preparation-paths.js +177 -0
- package/dist/packages/contracts/lib/schema.d.ts +85 -6
- package/dist/packages/contracts/lib/schema.js +46 -2
- package/dist/packages/execution/lib/schema.d.ts +50 -57
- package/dist/packages/execution/lib/schema.js +1 -2
- package/dist/packages/local-service/action-definitions.d.ts +246 -0
- package/dist/packages/local-service/action-definitions.js +1147 -0
- package/dist/packages/local-service/action-planner.d.ts +9 -0
- package/dist/packages/local-service/action-planner.js +135 -0
- package/dist/packages/local-service/action-values.d.ts +1 -23
- package/dist/packages/local-service/action-values.js +1 -31
- package/dist/packages/local-service/client.d.ts +76 -46
- package/dist/packages/local-service/client.js +184 -149
- package/dist/packages/local-service/connection-config.d.ts +38 -0
- package/dist/packages/local-service/connection-config.js +75 -0
- package/dist/packages/local-service/index.d.ts +14 -7
- package/dist/packages/local-service/index.js +8 -4
- package/dist/packages/local-service/instance-paths.d.ts +100 -0
- package/dist/packages/local-service/instance-paths.js +165 -0
- package/dist/packages/local-service/lib/schema.d.ts +689 -2575
- package/dist/packages/local-service/lib/schema.js +260 -101
- package/dist/packages/local-service/native-run-handlers.d.ts +23 -0
- package/dist/{cli/commands/compile-controller.js → packages/local-service/native-run-handlers.js} +204 -20
- package/dist/packages/local-service/preparation-store.d.ts +92 -0
- package/dist/packages/local-service/preparation-store.js +171 -0
- package/dist/{cli/commands/check-draft.d.ts → packages/local-service/readiness-check-draft.d.ts} +2 -2
- package/dist/packages/local-service/routes.d.ts +33 -11
- package/dist/packages/local-service/routes.js +44 -15
- package/dist/packages/local-service/run-observability.js +25 -27
- package/dist/packages/local-service/runtime-caches.d.ts +76 -0
- package/dist/packages/local-service/runtime-caches.js +191 -0
- package/dist/packages/local-service/runtime-event-applier.d.ts +12 -0
- package/dist/packages/local-service/runtime-event-applier.js +177 -0
- package/dist/packages/local-service/runtime-persistence.d.ts +47 -0
- package/dist/packages/local-service/runtime-persistence.js +137 -0
- package/dist/packages/local-service/runtime-proposal-helpers.d.ts +35 -0
- package/dist/packages/local-service/runtime-proposal-helpers.js +251 -0
- package/dist/packages/local-service/runtime-resource-builders.d.ts +52 -0
- package/dist/packages/local-service/runtime-resource-builders.js +149 -0
- package/dist/packages/local-service/runtime.d.ts +201 -44
- package/dist/packages/local-service/runtime.js +1062 -1106
- package/dist/packages/local-service/server.d.ts +15 -0
- package/dist/packages/local-service/server.js +651 -233
- package/dist/packages/local-service/service-registry.d.ts +47 -0
- package/dist/packages/local-service/service-registry.js +137 -0
- package/dist/packages/method-authoring/method-authoring.d.ts +1 -1
- package/dist/packages/method-authoring/method-authoring.js +2 -2
- package/dist/packages/method-authoring/method-improvement.js +1 -1
- package/dist/packages/method-package/builtin-compiled-method.d.ts +4 -5
- package/dist/packages/method-package/builtin-compiled-method.js +8 -14
- package/dist/packages/method-package/context-interface.d.ts +4 -40
- package/dist/packages/method-package/context-interface.js +1 -23
- package/dist/packages/method-package/interf-method-package.d.ts +4 -4
- package/dist/packages/method-package/interf-method-package.js +21 -33
- package/dist/packages/method-package/local-methods.d.ts +10 -6
- package/dist/packages/method-package/local-methods.js +57 -39
- package/dist/packages/method-package/method-definitions.d.ts +8 -34
- package/dist/packages/method-package/method-definitions.js +49 -37
- package/dist/packages/method-package/method-helpers.d.ts +1 -13
- package/dist/packages/method-package/method-helpers.js +8 -42
- package/dist/packages/method-package/method-review-paths.d.ts +1 -1
- package/dist/packages/method-package/method-review-paths.js +5 -5
- package/dist/packages/method-package/method-stage-runner.js +2 -2
- package/dist/packages/method-package/user-methods.d.ts +17 -0
- package/dist/packages/method-package/user-methods.js +77 -0
- package/dist/packages/project-model/index.d.ts +1 -1
- package/dist/packages/project-model/index.js +1 -1
- package/dist/packages/project-model/interf-detect.d.ts +8 -3
- package/dist/packages/project-model/interf-detect.js +34 -34
- package/dist/packages/project-model/interf-scaffold.d.ts +3 -3
- package/dist/packages/project-model/interf-scaffold.js +23 -32
- package/dist/packages/project-model/lib/schema.js +38 -1
- package/dist/packages/project-model/preparation-entries.d.ts +11 -0
- package/dist/packages/project-model/preparation-entries.js +49 -0
- package/dist/packages/project-model/source-config.d.ts +11 -10
- package/dist/packages/project-model/source-config.js +83 -44
- package/dist/packages/project-model/source-folders.d.ts +5 -5
- package/dist/packages/project-model/source-folders.js +14 -14
- package/dist/packages/shared/filesystem.d.ts +7 -0
- package/dist/packages/shared/filesystem.js +97 -10
- package/dist/packages/testing/lib/schema.d.ts +12 -13
- package/dist/packages/testing/lib/schema.js +4 -5
- package/dist/packages/testing/readiness-check-run.d.ts +7 -7
- package/dist/packages/testing/readiness-check-run.js +46 -51
- package/dist/packages/testing/test-execution.js +6 -6
- package/dist/packages/testing/test-paths.js +4 -3
- package/dist/packages/testing/test-sandbox.d.ts +0 -1
- package/dist/packages/testing/test-sandbox.js +14 -30
- package/dist/packages/testing/test-targets.d.ts +1 -1
- package/dist/packages/testing/test-targets.js +6 -6
- package/dist/packages/testing/test.d.ts +1 -1
- package/dist/packages/testing/test.js +1 -1
- package/package.json +6 -26
- package/LICENSE +0 -183
- package/dist/cli/commands/compile-controller.d.ts +0 -17
- package/dist/cli/commands/compiled-flow.d.ts +0 -25
- package/dist/cli/commands/compiled-flow.js +0 -112
- package/dist/cli/commands/control-path.d.ts +0 -11
- package/dist/cli/commands/control-path.js +0 -72
- package/dist/cli/commands/create-method-wizard.d.ts +0 -76
- package/dist/cli/commands/create-method-wizard.js +0 -465
- package/dist/cli/commands/create.d.ts +0 -8
- package/dist/cli/commands/create.js +0 -189
- package/dist/cli/commands/default.d.ts +0 -2
- package/dist/cli/commands/default.js +0 -39
- package/dist/cli/commands/executor-flow.d.ts +0 -29
- package/dist/cli/commands/executor-flow.js +0 -163
- package/dist/cli/commands/init.d.ts +0 -11
- package/dist/cli/commands/init.js +0 -784
- package/dist/cli/commands/list.d.ts +0 -2
- package/dist/cli/commands/list.js +0 -30
- package/dist/cli/commands/preparation-selection.d.ts +0 -6
- package/dist/cli/commands/preparation-selection.js +0 -11
- package/dist/cli/commands/source-config-wizard.d.ts +0 -52
- package/dist/cli/commands/source-config-wizard.js +0 -680
- package/dist/cli/commands/test-flow.d.ts +0 -58
- package/dist/cli/commands/test-flow.js +0 -231
- package/dist/cli/commands/verify.d.ts +0 -2
- package/dist/cli/commands/verify.js +0 -94
- package/dist/compiler-ui/_next/static/chunks/0d~8t0zm6545p.js +0 -118
- package/dist/compiler-ui/_next/static/chunks/0xnel.ax9a.2c.css +0 -3
- package/dist/packages/compiler/raw-snapshot.d.ts +0 -49
- package/dist/packages/compiler/raw-snapshot.js +0 -101
- package/dist/packages/method-package/index.d.ts +0 -11
- package/dist/packages/method-package/index.js +0 -11
- package/dist/packages/method-package/method-stage-policy.d.ts +0 -5
- package/dist/packages/method-package/method-stage-policy.js +0 -31
- package/dist/packages/project-model/project-paths.d.ts +0 -12
- package/dist/packages/project-model/project-paths.js +0 -33
- /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → C6vVfy3aeYuIO3d2AoNvC}/_buildManifest.js +0 -0
- /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → C6vVfy3aeYuIO3d2AoNvC}/_clientMiddlewareManifest.js +0 -0
- /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → C6vVfy3aeYuIO3d2AoNvC}/_ssgManifest.js +0 -0
- /package/dist/{cli/commands/check-draft.js → packages/local-service/readiness-check-draft.js} +0 -0
|
@@ -10,51 +10,69 @@ This snapshot is bundled with the `interf-actions` skill. The installed `interf`
|
|
|
10
10
|
interf
|
|
11
11
|
|
|
12
12
|
Commands:
|
|
13
|
-
interf init
|
|
14
|
-
interf compile
|
|
15
|
-
interf test
|
|
16
|
-
interf create [type]
|
|
17
|
-
interf doctor
|
|
18
|
-
interf list
|
|
19
|
-
interf
|
|
20
|
-
interf
|
|
21
|
-
interf
|
|
22
|
-
interf
|
|
13
|
+
interf init Set up Interf or open the Preparation wizard
|
|
14
|
+
interf compile Prepare files and write Portable Context agents can use
|
|
15
|
+
interf test Run readiness checks against source files and Portable Context
|
|
16
|
+
interf create [type] Create a Preparation or reusable Method
|
|
17
|
+
interf doctor Check local executor configuration before a real local run
|
|
18
|
+
interf list List saved Preparations in this Source Folder
|
|
19
|
+
interf list-methods List Methods available in this Source Folder (built-in + local drafts)
|
|
20
|
+
interf method <subcommand> Manage Methods in your user library (install, publish, remove, list)
|
|
21
|
+
interf runs <subcommand> Inspect, fetch, or cancel compile runs (status, watch, list, fetch, cancel)
|
|
22
|
+
interf status Show deterministic health for the Portable Context agents use
|
|
23
|
+
interf web [subcommand] Open Interf Compiler UI; manage the engine instance for this Workspace
|
|
24
|
+
interf reset <scope> Reset generated Portable Context state while keeping source files and the local Method package
|
|
25
|
+
interf prep <subcommand> Manage preparations on the connected instance
|
|
26
|
+
interf login Set the active Interf instance connection (URL + optional bearer token)
|
|
27
|
+
interf logout Clear the active Interf instance connection
|
|
23
28
|
|
|
24
29
|
Options:
|
|
25
30
|
--help Show help [boolean]
|
|
26
31
|
--version Show version number [boolean]
|
|
27
32
|
```
|
|
28
33
|
|
|
29
|
-
## interf
|
|
34
|
+
## interf web
|
|
30
35
|
|
|
31
36
|
```text
|
|
32
|
-
interf
|
|
37
|
+
interf web [subcommand]
|
|
38
|
+
|
|
39
|
+
Open Interf Compiler UI; manage the engine instance for this Workspace
|
|
33
40
|
|
|
34
|
-
|
|
41
|
+
Commands:
|
|
42
|
+
interf web stop Deregister this workspace from the engine instance (and shut it down if last)
|
|
43
|
+
interf web status Show engine-instance status: registered workspaces, active runs, idle time
|
|
44
|
+
interf web Start (or attach to) the engine instance for this Workspace and open Interf Compiler UI. Other CLI commands auto-start this in the backgrou
|
|
45
|
+
nd — running it explicitly is only needed for the UI. [default]
|
|
35
46
|
|
|
36
47
|
Options:
|
|
37
|
-
--help
|
|
38
|
-
--version
|
|
48
|
+
--help Show help [boolean]
|
|
49
|
+
--version Show version number [boolean]
|
|
50
|
+
--host Host for the local Interf service (only when starting a fresh instance) [string]
|
|
51
|
+
--port Port for the local Interf service (only when starting a fresh instance) [number]
|
|
52
|
+
--control-path Folder where Interf stores local config, Methods, runs, and portable context [string]
|
|
53
|
+
--source-folder Source Folder to prepare when initializing a new Interf Workspace [string]
|
|
54
|
+
--background Run as the detached background instance the auto-bootstrap path uses; suppresses interactive hints. Set INTERF_WEB_NO_AUTOSTART=1 to disable
|
|
55
|
+
auto-start. [boolean] [default: false]
|
|
39
56
|
```
|
|
40
57
|
|
|
41
|
-
## interf
|
|
58
|
+
## interf prep
|
|
42
59
|
|
|
43
60
|
```text
|
|
44
|
-
interf
|
|
61
|
+
interf prep <subcommand>
|
|
45
62
|
|
|
46
|
-
|
|
63
|
+
Manage preparations on the connected instance
|
|
47
64
|
|
|
48
|
-
|
|
49
|
-
|
|
65
|
+
Commands:
|
|
66
|
+
interf prep ls List preparations
|
|
67
|
+
interf prep create <prep-id> Create a preparation
|
|
68
|
+
interf prep show <prep-id> Show a preparation's full record
|
|
69
|
+
interf prep rm <prep-id> Delete a preparation
|
|
50
70
|
|
|
51
71
|
Options:
|
|
52
|
-
--help
|
|
53
|
-
--version
|
|
54
|
-
--
|
|
55
|
-
--
|
|
56
|
-
--effort Override the model reasoning effort for this run [string]
|
|
57
|
-
--timeout-ms Interrupt the local executor after this much inactivity [number]
|
|
72
|
+
--help Show help [boolean]
|
|
73
|
+
--version Show version number [boolean]
|
|
74
|
+
--url Override the active connection URL [string]
|
|
75
|
+
--token Override the active bearer token [string]
|
|
58
76
|
```
|
|
59
77
|
|
|
60
78
|
## interf compile
|
|
@@ -67,17 +85,23 @@ Prepare files and write Portable Context agents can use
|
|
|
67
85
|
Options:
|
|
68
86
|
--help Show help [boolean]
|
|
69
87
|
--version Show version number [boolean]
|
|
70
|
-
--
|
|
71
|
-
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--preparation Preparation id to compile when this Source Folder has more than one Preparation [string]
|
|
75
|
-
--max-attempts Retry the prepare run and run saved readiness checks with the same Method until the Preparation is ready or reaches this total attempt li
|
|
88
|
+
--method Method id to compile against this Source Folder. Resolves to the saved Preparation that uses this Method, or asks if more than one bindin
|
|
89
|
+
g exists. [string]
|
|
90
|
+
--preparation Saved Preparation id to compile (advanced; use --method for the Method-first form). [string]
|
|
91
|
+
--max-attempts Retry the compile run and run saved readiness checks with the same Method until the Preparation is ready or reaches this total attempt li
|
|
76
92
|
mit [number]
|
|
77
93
|
--max-loops After retries fail, let Interf edit the Method and run saved readiness checks on new Method variations for this Preparation up to this lo
|
|
78
94
|
op limit [number]
|
|
79
95
|
--keep-stage-shells Keep every executed stage shell under .interf/runtime/execution-shells for review instead of pruning successful shells
|
|
80
96
|
[boolean] [default: false]
|
|
97
|
+
--auto-create When --method has no matching saved Preparation: --auto-create creates one without prompting; --no-auto-create refuses to create. Default
|
|
98
|
+
: prompt on TTY, auto-create otherwise. [boolean]
|
|
99
|
+
--source Source Folder path the auto-created Preparation should bind to. Relative paths resolve against --workspace. Default: '.'. [string]
|
|
100
|
+
--as Name to use when auto-creating a Preparation. The portable context lands at <workspace>/<as>/. Default: derived from --method id.[string]
|
|
101
|
+
--watch Block until the compile run finishes; tail stage status. Default is async return-with-id (use `interf runs status <id>` to check later).
|
|
102
|
+
[boolean] [default: false]
|
|
103
|
+
--idempotency-key Opaque key sent as X-Interf-Idempotency-Key. The local service caches the key for an hour and returns the original run id on retries inst
|
|
104
|
+
ead of starting a fresh run. [string]
|
|
81
105
|
```
|
|
82
106
|
|
|
83
107
|
## interf test
|
|
@@ -88,59 +112,65 @@ interf test
|
|
|
88
112
|
Run readiness checks against source files and Portable Context
|
|
89
113
|
|
|
90
114
|
Options:
|
|
91
|
-
--help
|
|
92
|
-
--version
|
|
93
|
-
--
|
|
94
|
-
--
|
|
95
|
-
--effort Override the model reasoning effort for this run [string]
|
|
96
|
-
--timeout-ms Interrupt the local executor after this much inactivity [number]
|
|
97
|
-
--preparation Preparation id to check when this Source Folder has more than one Preparation [string]
|
|
98
|
-
--target Check source files, Portable Context, or both. Default: both when Portable Context exists, otherwise source files.
|
|
115
|
+
--help Show help [boolean]
|
|
116
|
+
--version Show version number [boolean]
|
|
117
|
+
--preparation Preparation id to check when this Source Folder has more than one Preparation [string]
|
|
118
|
+
--target Check source files, Portable Context, or both. Default: both when Portable Context exists, otherwise source files.
|
|
99
119
|
[choices: "both", "source-files", "portable-context"]
|
|
100
|
-
--keep-sandboxes Keep every readiness-check sandbox for review instead of pruning successful ones [boolean] [default: false]
|
|
101
|
-
--agents Comma-separated local agents to use for readiness checks, or `all`. Example: --agents claude-code,codex [string]
|
|
102
120
|
```
|
|
103
121
|
|
|
104
|
-
## interf
|
|
122
|
+
## interf method
|
|
105
123
|
|
|
106
124
|
```text
|
|
107
|
-
interf
|
|
125
|
+
interf method <subcommand>
|
|
108
126
|
|
|
109
|
-
|
|
127
|
+
Manage Methods in your user library (install, publish, remove, list)
|
|
128
|
+
|
|
129
|
+
Commands:
|
|
130
|
+
interf method install <path> Copy a Method package from a path into your user library at ~/.interf/methods/<id>/
|
|
131
|
+
interf method publish <id> Promote a workspace draft Method to your user library at ~/.interf/methods/<id>/
|
|
132
|
+
interf method remove <id> Remove a Method from your user library at ~/.interf/methods/<id>/
|
|
133
|
+
interf method list List Methods installed in your user library at ~/.interf/methods/
|
|
110
134
|
|
|
111
135
|
Options:
|
|
112
|
-
--help
|
|
113
|
-
--version
|
|
114
|
-
--host Host for the local Interf service [string]
|
|
115
|
-
--port Port for the local Interf service [number]
|
|
116
|
-
--control-path Folder where Interf stores local config, Methods, runs, and portable context [string]
|
|
117
|
-
--source-folder Source Folder to prepare when initializing a new Interf Workspace [string]
|
|
136
|
+
--help Show help [boolean]
|
|
137
|
+
--version Show version number [boolean]
|
|
118
138
|
```
|
|
119
139
|
|
|
120
|
-
## interf
|
|
140
|
+
## interf runs
|
|
121
141
|
|
|
122
142
|
```text
|
|
123
|
-
interf
|
|
143
|
+
interf runs <subcommand>
|
|
124
144
|
|
|
125
|
-
|
|
145
|
+
Inspect, fetch, or cancel compile runs (status, watch, list, fetch, cancel)
|
|
146
|
+
|
|
147
|
+
Commands:
|
|
148
|
+
interf runs status <run-id> Show the current state of a compile run by id
|
|
149
|
+
interf runs watch <run-id> Block until the named compile run finishes; tail stage status
|
|
150
|
+
interf runs list List recent compile runs in this Workspace
|
|
151
|
+
interf runs fetch <run-id> Copy the portable context produced by a compile run to <abs-path>
|
|
152
|
+
interf runs cancel <run-id> Cancel an in-flight compile run
|
|
126
153
|
|
|
127
154
|
Options:
|
|
128
155
|
--help Show help [boolean]
|
|
129
156
|
--version Show version number [boolean]
|
|
130
|
-
--live Run a real executor preflight against the configured local agent [boolean] [default: false]
|
|
131
|
-
--json Print machine-readable doctor output [boolean] [default: false]
|
|
132
157
|
```
|
|
133
158
|
|
|
134
|
-
## interf
|
|
159
|
+
## interf runs fetch
|
|
135
160
|
|
|
136
161
|
```text
|
|
137
|
-
interf
|
|
162
|
+
interf runs fetch <run-id>
|
|
163
|
+
|
|
164
|
+
Copy the portable context produced by a compile run to <abs-path>
|
|
138
165
|
|
|
139
|
-
|
|
166
|
+
Positionals:
|
|
167
|
+
run-id Compile run id to fetch [string] [required]
|
|
140
168
|
|
|
141
169
|
Options:
|
|
142
|
-
--help
|
|
143
|
-
--version
|
|
170
|
+
--help Show help [boolean]
|
|
171
|
+
--version Show version number [boolean]
|
|
172
|
+
--to Absolute destination path. Must be empty or non-existent unless --overwrite is set. [string] [required]
|
|
173
|
+
--overwrite Allow copying into a destination that already has files. [boolean] [default: false]
|
|
144
174
|
```
|
|
145
175
|
|
|
146
176
|
## interf status
|
|
@@ -150,28 +180,37 @@ interf status
|
|
|
150
180
|
|
|
151
181
|
Show deterministic health for the Portable Context agents use
|
|
152
182
|
|
|
183
|
+
Options:
|
|
184
|
+
--help Show help [boolean]
|
|
185
|
+
--version Show version number [boolean]
|
|
186
|
+
--watch Poll the local Interf service for live run status [boolean] [default: false]
|
|
187
|
+
--instance Show only engine-instance status (workspaces, runs, idle); skip workspace details [boolean] [default: false]
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## interf login
|
|
191
|
+
|
|
192
|
+
```text
|
|
193
|
+
interf login
|
|
194
|
+
|
|
195
|
+
Set the active Interf instance connection (URL + optional bearer token)
|
|
196
|
+
|
|
153
197
|
Options:
|
|
154
198
|
--help Show help [boolean]
|
|
155
199
|
--version Show version number [boolean]
|
|
156
|
-
--
|
|
200
|
+
--url Engine URL, e.g. https://api.interf.cloud or http://127.0.0.1:4873 [string] [required]
|
|
201
|
+
--token Bearer token for non-loopback connections [string]
|
|
157
202
|
```
|
|
158
203
|
|
|
159
|
-
## interf
|
|
204
|
+
## interf logout
|
|
160
205
|
|
|
161
206
|
```text
|
|
162
|
-
interf
|
|
163
|
-
|
|
164
|
-
Run deterministic verification checks
|
|
207
|
+
interf logout
|
|
165
208
|
|
|
166
|
-
|
|
167
|
-
check Check to run (`stage`, `portable-context`, or `method`) [string] [required]
|
|
168
|
-
stageId Stage id when using `verify stage <stage-id>` [string]
|
|
209
|
+
Clear the active Interf instance connection
|
|
169
210
|
|
|
170
211
|
Options:
|
|
171
212
|
--help Show help [boolean]
|
|
172
213
|
--version Show version number [boolean]
|
|
173
|
-
--path Path to a Method package when using `verify method` [string]
|
|
174
|
-
--json Print JSON output [boolean] [default: false]
|
|
175
214
|
```
|
|
176
215
|
|
|
177
216
|
## interf reset
|
|
@@ -188,3 +227,17 @@ Options:
|
|
|
188
227
|
--help Show help [boolean]
|
|
189
228
|
--version Show version number [boolean]
|
|
190
229
|
```
|
|
230
|
+
|
|
231
|
+
## interf doctor
|
|
232
|
+
|
|
233
|
+
```text
|
|
234
|
+
interf doctor
|
|
235
|
+
|
|
236
|
+
Check local executor configuration before a real local run
|
|
237
|
+
|
|
238
|
+
Options:
|
|
239
|
+
--help Show help [boolean]
|
|
240
|
+
--version Show version number [boolean]
|
|
241
|
+
--live Run a real executor preflight against the configured local agent [boolean] [default: false]
|
|
242
|
+
--json Print machine-readable doctor output [boolean] [default: false]
|
|
243
|
+
```
|
|
@@ -5,11 +5,10 @@ Built-in file-processing Method: summarize source-grounded evidence, structure c
|
|
|
5
5
|
## Purpose
|
|
6
6
|
|
|
7
7
|
- General portable-context Method for agent use
|
|
8
|
-
- Compile mixed
|
|
8
|
+
- Compile mixed source files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents running the readiness checks this task depends on.
|
|
9
9
|
|
|
10
10
|
## Zones
|
|
11
11
|
|
|
12
|
-
- `raw` — input directory at `raw`
|
|
13
12
|
- `summaries` — working directory at `summaries`
|
|
14
13
|
- `knowledge-entities` — output directory at `knowledge/entities`
|
|
15
14
|
- `knowledge-claims` — output directory at `knowledge/claims`
|
|
@@ -19,9 +18,9 @@ Built-in file-processing Method: summarize source-grounded evidence, structure c
|
|
|
19
18
|
|
|
20
19
|
## Stages
|
|
21
20
|
|
|
22
|
-
- `summarize` — Turn source files into per-file summaries. (compiled-file-evidence; reads:
|
|
21
|
+
- `summarize` — Turn source files into per-file summaries. (compiled-file-evidence; reads: runtime; writes: summaries)
|
|
23
22
|
- `structure` — Build the cross-file knowledge structure from the summaries. (compiled-knowledge-structure; reads: summaries, runtime; writes: knowledge-entities, knowledge-claims, knowledge-indexes)
|
|
24
|
-
- `shape` — Shape the final portable context around the saved task focus and readiness checks. (compiled-query-shape; reads:
|
|
23
|
+
- `shape` — Shape the final portable context around the saved task focus and readiness checks. (compiled-query-shape; reads: summaries, knowledge-entities, knowledge-claims, knowledge-indexes, runtime; writes: knowledge-indexes, home)
|
|
25
24
|
|
|
26
25
|
## Why `home.md` exists here
|
|
27
26
|
|
|
@@ -25,7 +25,7 @@ Contract type: `compiled-query-shape`
|
|
|
25
25
|
- Use the saved task focus and readiness checks to bias the final portable context toward the job it should be especially good at.
|
|
26
26
|
- Do not copy expected answers into the final portable context just because the checks imply them.
|
|
27
27
|
- Prefer the saved summary evidence and structured notes when they already preserve the bounded chart/table reads plus provenance you need.
|
|
28
|
-
- Reopen
|
|
29
|
-
- If a saved readiness check depends on chart-derived or table-derived values, carry the final bounded reads forward into focused notes with provenance instead of repeatedly recomputing them from
|
|
28
|
+
- Reopen source references during shaping only when the compiled layer is missing the needed value, the metric family is ambiguous, or the earlier bounded read is clearly inconsistent.
|
|
29
|
+
- If a saved readiness check depends on chart-derived or table-derived values, carry the final bounded reads forward into focused notes with provenance instead of repeatedly recomputing them from source files.
|
|
30
30
|
- Prefer better routing, prioritization, and focused navigation over speculative synthesis.
|
|
31
31
|
- Any wikilinks you add to `home.md` or indexes must resolve to real compiled note basenames or explicit relative paths.
|
|
@@ -10,7 +10,7 @@ Contract type: `compiled-file-evidence`
|
|
|
10
10
|
- Required opening shape:
|
|
11
11
|
- `---`
|
|
12
12
|
- `{`
|
|
13
|
-
- ` "source": "
|
|
13
|
+
- ` "source": "example.md",`
|
|
14
14
|
- ` "source_kind": "markdown",`
|
|
15
15
|
- ` "evidence_tier": "primary",`
|
|
16
16
|
- ` "truth_mode": "source-grounded",`
|
|
@@ -29,6 +29,7 @@ Contract type: `compiled-file-evidence`
|
|
|
29
29
|
## Notes
|
|
30
30
|
|
|
31
31
|
- Favor conservative, source-grounded summaries that preserve evidence tiers and leave broader synthesis for later stages.
|
|
32
|
+
- Read `runtime/stage-inputs.json` for the exact source references assigned to this stage.
|
|
32
33
|
- For large reports or decks, capture scope, headline evidence, and chart/table routing in one light pass.
|
|
33
34
|
- As soon as one report summary can state scope, headline metrics, and chart/table routing, stop reading and write the summary batch plus runtime artifacts immediately.
|
|
34
35
|
- Keep scratch extraction commands single-purpose and non-destructive.
|
|
@@ -12,7 +12,7 @@ Default loop:
|
|
|
12
12
|
4. Keep `method.json`, `method.schema.json`, and any changed stage docs aligned.
|
|
13
13
|
|
|
14
14
|
Guardrails:
|
|
15
|
-
- do not edit checks, test specs, or
|
|
15
|
+
- do not edit checks, test specs, or source files
|
|
16
16
|
- do not hardcode expected answers into Method docs
|
|
17
17
|
- keep this package standalone; do not rely on runtime inheritance
|
|
18
18
|
- prefer small, defensible Method changes over random churn
|
|
@@ -7,8 +7,16 @@
|
|
|
7
7
|
},
|
|
8
8
|
"purpose": {
|
|
9
9
|
"label": "Built-in portable-context Method for agent use",
|
|
10
|
-
"task_hint": "Compile mixed
|
|
10
|
+
"task_hint": "Compile mixed source files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents running the readiness checks this task depends on."
|
|
11
11
|
},
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"id": "source",
|
|
15
|
+
"label": "Source",
|
|
16
|
+
"description": "Source references assigned to each stage by Interf runtime.",
|
|
17
|
+
"required": true
|
|
18
|
+
}
|
|
19
|
+
],
|
|
12
20
|
"label": "Built-in Interf Method",
|
|
13
21
|
"hint": "Built-in file-processing Method: summarize source-grounded evidence, structure cross-file connections, and shape portable context around the saved readiness checks.",
|
|
14
22
|
"stages": [
|
|
@@ -19,7 +27,6 @@
|
|
|
19
27
|
"contract_type": "compiled-file-evidence",
|
|
20
28
|
"skill_dir": "summarize",
|
|
21
29
|
"reads": [
|
|
22
|
-
"raw",
|
|
23
30
|
"runtime"
|
|
24
31
|
],
|
|
25
32
|
"writes": [
|
|
@@ -86,7 +93,6 @@
|
|
|
86
93
|
"contract_type": "compiled-query-shape",
|
|
87
94
|
"skill_dir": "shape",
|
|
88
95
|
"reads": [
|
|
89
|
-
"raw",
|
|
90
96
|
"summaries",
|
|
91
97
|
"knowledge-entities",
|
|
92
98
|
"knowledge-claims",
|
|
@@ -137,7 +143,7 @@
|
|
|
137
143
|
"shape": [
|
|
138
144
|
"Use the saved task focus and readiness checks to bias the final portable context toward the job it should be especially good at.",
|
|
139
145
|
"Do not copy expected answers into the final portable context just because the checks imply them.",
|
|
140
|
-
"If a saved readiness check depends on chart-derived or table-derived values, verify the needed evidence
|
|
146
|
+
"If a saved readiness check depends on chart-derived or table-derived values, verify the needed evidence through source references while shaping and write focused notes that preserve bounded values plus provenance.",
|
|
141
147
|
"Prefer better routing, prioritization, and focused navigation over speculative synthesis.",
|
|
142
148
|
"Any wikilinks you add to `home.md` or indexes must resolve to real compiled note basenames or explicit relative paths."
|
|
143
149
|
]
|
|
@@ -4,15 +4,6 @@
|
|
|
4
4
|
"target_type": "compiled",
|
|
5
5
|
"label": "Interf built-in Method schema",
|
|
6
6
|
"zones": [
|
|
7
|
-
{
|
|
8
|
-
"id": "raw",
|
|
9
|
-
"role": "input",
|
|
10
|
-
"path": "raw",
|
|
11
|
-
"kind": "directory",
|
|
12
|
-
"required": true,
|
|
13
|
-
"owned_by": [],
|
|
14
|
-
"description": "Preparation-local raw snapshot copied from the source folder for direct evidence and verification."
|
|
15
|
-
},
|
|
16
7
|
{
|
|
17
8
|
"id": "summaries",
|
|
18
9
|
"role": "working",
|
|
@@ -4,15 +4,15 @@ This file is the editable authoring source for the generated native local `inter
|
|
|
4
4
|
|
|
5
5
|
Default loop:
|
|
6
6
|
1. Read `home.md` first.
|
|
7
|
-
2. Browse `knowledge/` before
|
|
7
|
+
2. Browse `knowledge/` before source re-checks.
|
|
8
8
|
3. Use `summaries/` for source-grounded evidence.
|
|
9
|
-
4. Use `
|
|
9
|
+
4. Use `.interf/runtime/source-snapshot.json` for direct quotes, verification, exact table lookups, and chart-derived values.
|
|
10
10
|
|
|
11
11
|
Answering rule:
|
|
12
|
-
- do not modify files
|
|
12
|
+
- do not modify source files while answering
|
|
13
13
|
- when a number is chart-derived, say that explicitly
|
|
14
14
|
- if the compiled layer already contains a bounded chart-derived read for the exact metric and year the user asked about, answer from that compiled read first
|
|
15
|
-
- use
|
|
15
|
+
- use source references to confirm the source page, metric family, or provenance, not to replace a good compiled bounded read with a mismatched range
|
|
16
16
|
- when the compiled layer preserves a bounded chart-derived range, keep that bounded range in the answer instead of collapsing it to a midpoint or pseudo-exact single value
|
|
17
17
|
- match the granularity of the visible axis labels or bands and do not invent finer precision than the chart supports
|
|
18
18
|
- when reading charts, verify you are on the correct metric family and year before answering
|
|
@@ -23,6 +23,6 @@ Answering rule:
|
|
|
23
23
|
- if a mark touches or nearly touches a labeled gridline, anchor the answer at that gridline or the immediately adjacent half-band.
|
|
24
24
|
- do not widen a chart-derived range across multiple visible bands unless the chart genuinely supports that uncertainty.
|
|
25
25
|
- if multiple compiled notes mention the same chart read, keep the answer consistent with the most focused compiled note rather than synthesizing a new midpoint or shifted band
|
|
26
|
-
- when the compiled layer is insufficient, verify
|
|
26
|
+
- when the compiled layer is insufficient, verify against source references and then answer
|
|
27
27
|
|
|
28
28
|
You can edit this file to bias manual question-answering behavior for this portable context.
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
import * as p from "@clack/prompts";
|
|
2
|
-
import { detectInterf } from "../../packages/project-model/interf.js";
|
|
3
|
-
import type { SourcePreparationConfig } from "../../packages/project-model/lib/schema.js";
|
|
4
1
|
import type { CommandModule } from "yargs";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
confirm: typeof p.confirm;
|
|
13
|
-
detectInterf: typeof detectInterf;
|
|
14
|
-
ensureCompiledFromConfig: typeof ensureCompiledFromConfig;
|
|
15
|
-
resolveInteractiveCompileLoopOverrides: typeof resolveInteractiveCompileLoopOverrides;
|
|
16
|
-
resolveOrConfigureLocalExecutor: typeof resolveOrConfigureLocalExecutor;
|
|
17
|
-
runConfiguredCompiledCompile: typeof runConfiguredCompiledCompile;
|
|
2
|
+
interface CompileArgs {
|
|
3
|
+
prepId: string;
|
|
4
|
+
watch?: boolean;
|
|
5
|
+
quiet?: boolean;
|
|
6
|
+
idempotencyKey?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
token?: string;
|
|
18
9
|
}
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
testedDuringCompile: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function runCompileCommand(argv?: Record<string, unknown>, deps?: Partial<CompileCommandDeps>): Promise<CompileCommandResult | null>;
|
|
24
|
-
export declare function resolveInteractiveCompileLoopOverrides(options: {
|
|
25
|
-
compiledPath: string;
|
|
26
|
-
compiledConfig: SourcePreparationConfig | null;
|
|
27
|
-
maxAttemptsOverride: number | null;
|
|
28
|
-
maxLoopsOverride: number | null;
|
|
29
|
-
}): Promise<{
|
|
30
|
-
compiledConfig: SourcePreparationConfig | null;
|
|
31
|
-
maxAttemptsOverride: number | null;
|
|
32
|
-
maxLoopsOverride: number | null;
|
|
33
|
-
} | null>;
|
|
10
|
+
export declare const compileCommand: CommandModule<unknown, CompileArgs>;
|
|
11
|
+
export {};
|