@interf/compiler 0.9.5 → 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.
Files changed (214) hide show
  1. package/README.md +96 -92
  2. package/TRADEMARKS.md +2 -13
  3. package/agent-skills/interf-actions/SKILL.md +95 -36
  4. package/agent-skills/interf-actions/references/cli.md +118 -51
  5. package/builtin-methods/interf-default/README.md +3 -4
  6. package/builtin-methods/interf-default/compile/stages/shape/SKILL.md +2 -2
  7. package/builtin-methods/interf-default/compile/stages/summarize/SKILL.md +2 -1
  8. package/builtin-methods/interf-default/improve/SKILL.md +1 -1
  9. package/builtin-methods/interf-default/method.json +10 -4
  10. package/builtin-methods/interf-default/method.schema.json +0 -9
  11. package/builtin-methods/interf-default/use/query/SKILL.md +5 -5
  12. package/dist/cli/commands/compile.d.ts +8 -25
  13. package/dist/cli/commands/compile.js +75 -360
  14. package/dist/cli/commands/doctor.js +1 -1
  15. package/dist/cli/commands/login.d.ts +7 -0
  16. package/dist/cli/commands/login.js +39 -0
  17. package/dist/cli/commands/logout.d.ts +2 -0
  18. package/dist/cli/commands/logout.js +16 -0
  19. package/dist/cli/commands/method.d.ts +2 -0
  20. package/dist/cli/commands/method.js +113 -0
  21. package/dist/cli/commands/prep.d.ts +2 -0
  22. package/dist/cli/commands/prep.js +134 -0
  23. package/dist/cli/commands/reset.d.ts +8 -1
  24. package/dist/cli/commands/reset.js +47 -26
  25. package/dist/cli/commands/runs.d.ts +2 -0
  26. package/dist/cli/commands/runs.js +120 -0
  27. package/dist/cli/commands/status.d.ts +6 -1
  28. package/dist/cli/commands/status.js +68 -111
  29. package/dist/cli/commands/test.d.ts +6 -14
  30. package/dist/cli/commands/test.js +65 -181
  31. package/dist/cli/commands/web.d.ts +0 -9
  32. package/dist/cli/commands/web.js +147 -120
  33. package/dist/cli/commands/wizard.d.ts +9 -0
  34. package/dist/cli/commands/wizard.js +442 -0
  35. package/dist/cli/index.d.ts +7 -6
  36. package/dist/cli/index.js +13 -10
  37. package/dist/compiler-ui/404.html +1 -1
  38. package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
  39. package/dist/compiler-ui/__next._full.txt +3 -3
  40. package/dist/compiler-ui/__next._head.txt +1 -1
  41. package/dist/compiler-ui/__next._index.txt +2 -2
  42. package/dist/compiler-ui/__next._tree.txt +2 -2
  43. package/dist/compiler-ui/_next/static/chunks/{18a8f2jkv3z.c.css → 045gole2ojo3g.css} +1 -1
  44. package/dist/compiler-ui/_next/static/chunks/{177mvn4rse235.js → 17t-lulmyawg5.js} +9 -9
  45. package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
  46. package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
  47. package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
  48. package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
  49. package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
  50. package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
  51. package/dist/compiler-ui/_not-found.html +1 -1
  52. package/dist/compiler-ui/_not-found.txt +2 -2
  53. package/dist/compiler-ui/index.html +1 -1
  54. package/dist/compiler-ui/index.txt +3 -3
  55. package/dist/packages/agents/lib/shells.d.ts +1 -1
  56. package/dist/packages/agents/lib/shells.js +111 -52
  57. package/dist/packages/agents/lib/user-config.d.ts +4 -2
  58. package/dist/packages/agents/lib/user-config.js +15 -7
  59. package/dist/packages/compiler/compiled-paths.d.ts +9 -2
  60. package/dist/packages/compiler/compiled-paths.js +30 -15
  61. package/dist/packages/compiler/compiled-pipeline.js +23 -3
  62. package/dist/packages/compiler/compiled-stage-plan.js +4 -0
  63. package/dist/packages/compiler/compiled-target.d.ts +1 -1
  64. package/dist/packages/compiler/compiled-target.js +1 -1
  65. package/dist/packages/compiler/index.d.ts +1 -0
  66. package/dist/packages/compiler/index.js +1 -0
  67. package/dist/packages/compiler/lib/schema.d.ts +26 -31
  68. package/dist/packages/compiler/lib/schema.js +1 -12
  69. package/dist/packages/compiler/method-runs.d.ts +2 -3
  70. package/dist/packages/compiler/method-runs.js +2 -3
  71. package/dist/packages/compiler/reset.js +3 -1
  72. package/dist/packages/compiler/runtime-contracts.js +0 -3
  73. package/dist/packages/compiler/runtime-prompt.js +1 -1
  74. package/dist/packages/compiler/source-files.d.ts +46 -0
  75. package/dist/packages/compiler/source-files.js +149 -0
  76. package/dist/packages/compiler/state-artifacts.d.ts +3 -2
  77. package/dist/packages/compiler/state-artifacts.js +4 -3
  78. package/dist/packages/compiler/state-io.d.ts +3 -2
  79. package/dist/packages/compiler/state-io.js +11 -5
  80. package/dist/packages/compiler/state-paths.d.ts +2 -1
  81. package/dist/packages/compiler/state-paths.js +6 -3
  82. package/dist/packages/compiler/state-view.d.ts +3 -2
  83. package/dist/packages/compiler/state-view.js +18 -28
  84. package/dist/packages/compiler/state.d.ts +4 -4
  85. package/dist/packages/compiler/state.js +3 -3
  86. package/dist/packages/contracts/index.d.ts +1 -1
  87. package/dist/packages/contracts/lib/preparation-paths.d.ts +117 -0
  88. package/dist/packages/contracts/lib/preparation-paths.js +177 -0
  89. package/dist/packages/contracts/lib/schema.d.ts +85 -5
  90. package/dist/packages/contracts/lib/schema.js +46 -1
  91. package/dist/packages/execution/lib/schema.d.ts +50 -50
  92. package/dist/packages/execution/lib/schema.js +1 -1
  93. package/dist/packages/local-service/action-definitions.d.ts +14 -14
  94. package/dist/packages/local-service/action-definitions.js +27 -28
  95. package/dist/packages/local-service/action-planner.js +2 -1
  96. package/dist/packages/local-service/client.d.ts +51 -52
  97. package/dist/packages/local-service/client.js +132 -140
  98. package/dist/packages/local-service/connection-config.d.ts +38 -0
  99. package/dist/packages/local-service/connection-config.js +75 -0
  100. package/dist/packages/local-service/index.d.ts +11 -7
  101. package/dist/packages/local-service/index.js +6 -4
  102. package/dist/packages/local-service/instance-paths.d.ts +100 -0
  103. package/dist/packages/local-service/instance-paths.js +165 -0
  104. package/dist/packages/local-service/lib/schema.d.ts +405 -2297
  105. package/dist/packages/local-service/lib/schema.js +146 -62
  106. package/dist/packages/local-service/native-run-handlers.js +3 -3
  107. package/dist/packages/local-service/preparation-store.d.ts +92 -0
  108. package/dist/packages/local-service/preparation-store.js +171 -0
  109. package/dist/packages/local-service/routes.d.ts +33 -16
  110. package/dist/packages/local-service/routes.js +44 -20
  111. package/dist/packages/local-service/run-observability.js +11 -11
  112. package/dist/packages/local-service/runtime-caches.d.ts +76 -0
  113. package/dist/packages/local-service/runtime-caches.js +191 -0
  114. package/dist/packages/local-service/runtime-event-applier.d.ts +12 -0
  115. package/dist/packages/local-service/runtime-event-applier.js +177 -0
  116. package/dist/packages/local-service/runtime-persistence.d.ts +47 -0
  117. package/dist/packages/local-service/runtime-persistence.js +137 -0
  118. package/dist/packages/local-service/runtime-proposal-helpers.d.ts +35 -0
  119. package/dist/packages/local-service/runtime-proposal-helpers.js +251 -0
  120. package/dist/packages/local-service/runtime-resource-builders.d.ts +52 -0
  121. package/dist/packages/local-service/runtime-resource-builders.js +149 -0
  122. package/dist/packages/local-service/runtime.d.ts +197 -43
  123. package/dist/packages/local-service/runtime.js +800 -974
  124. package/dist/packages/local-service/server.d.ts +15 -0
  125. package/dist/packages/local-service/server.js +641 -273
  126. package/dist/packages/local-service/service-registry.d.ts +47 -0
  127. package/dist/packages/local-service/service-registry.js +137 -0
  128. package/dist/packages/method-authoring/method-authoring.d.ts +1 -1
  129. package/dist/packages/method-authoring/method-authoring.js +2 -2
  130. package/dist/packages/method-authoring/method-improvement.js +1 -1
  131. package/dist/packages/method-package/builtin-compiled-method.d.ts +4 -5
  132. package/dist/packages/method-package/builtin-compiled-method.js +8 -14
  133. package/dist/packages/method-package/context-interface.d.ts +4 -40
  134. package/dist/packages/method-package/context-interface.js +1 -23
  135. package/dist/packages/method-package/interf-method-package.d.ts +4 -4
  136. package/dist/packages/method-package/interf-method-package.js +21 -33
  137. package/dist/packages/method-package/local-methods.d.ts +10 -6
  138. package/dist/packages/method-package/local-methods.js +57 -39
  139. package/dist/packages/method-package/method-definitions.d.ts +8 -34
  140. package/dist/packages/method-package/method-definitions.js +49 -37
  141. package/dist/packages/method-package/method-helpers.d.ts +1 -13
  142. package/dist/packages/method-package/method-helpers.js +8 -42
  143. package/dist/packages/method-package/method-stage-runner.js +2 -2
  144. package/dist/packages/method-package/user-methods.d.ts +17 -0
  145. package/dist/packages/method-package/user-methods.js +77 -0
  146. package/dist/packages/project-model/index.d.ts +0 -1
  147. package/dist/packages/project-model/index.js +0 -1
  148. package/dist/packages/project-model/interf-detect.d.ts +8 -3
  149. package/dist/packages/project-model/interf-detect.js +34 -34
  150. package/dist/packages/project-model/interf-scaffold.d.ts +3 -3
  151. package/dist/packages/project-model/interf-scaffold.js +23 -32
  152. package/dist/packages/project-model/lib/schema.js +38 -1
  153. package/dist/packages/project-model/preparation-entries.d.ts +5 -5
  154. package/dist/packages/project-model/preparation-entries.js +14 -14
  155. package/dist/packages/project-model/source-config.d.ts +11 -11
  156. package/dist/packages/project-model/source-config.js +74 -46
  157. package/dist/packages/project-model/source-folders.d.ts +5 -5
  158. package/dist/packages/project-model/source-folders.js +14 -14
  159. package/dist/packages/shared/filesystem.d.ts +7 -0
  160. package/dist/packages/shared/filesystem.js +97 -10
  161. package/dist/packages/testing/lib/schema.d.ts +10 -10
  162. package/dist/packages/testing/lib/schema.js +2 -2
  163. package/dist/packages/testing/readiness-check-run.d.ts +4 -4
  164. package/dist/packages/testing/readiness-check-run.js +36 -36
  165. package/dist/packages/testing/test-execution.js +6 -6
  166. package/dist/packages/testing/test-paths.js +4 -3
  167. package/dist/packages/testing/test-sandbox.d.ts +0 -1
  168. package/dist/packages/testing/test-sandbox.js +14 -30
  169. package/dist/packages/testing/test-targets.d.ts +1 -1
  170. package/dist/packages/testing/test-targets.js +6 -6
  171. package/dist/packages/testing/test.d.ts +1 -1
  172. package/dist/packages/testing/test.js +1 -1
  173. package/package.json +3 -4
  174. package/CHANGELOG.md +0 -93
  175. package/LICENSE +0 -183
  176. package/dist/cli/commands/action-input-cli.d.ts +0 -25
  177. package/dist/cli/commands/action-input-cli.js +0 -73
  178. package/dist/cli/commands/control-path.d.ts +0 -11
  179. package/dist/cli/commands/control-path.js +0 -72
  180. package/dist/cli/commands/create-method-wizard.d.ts +0 -64
  181. package/dist/cli/commands/create-method-wizard.js +0 -434
  182. package/dist/cli/commands/create.d.ts +0 -6
  183. package/dist/cli/commands/create.js +0 -183
  184. package/dist/cli/commands/default.d.ts +0 -2
  185. package/dist/cli/commands/default.js +0 -39
  186. package/dist/cli/commands/executor-flow.d.ts +0 -29
  187. package/dist/cli/commands/executor-flow.js +0 -163
  188. package/dist/cli/commands/init.d.ts +0 -26
  189. package/dist/cli/commands/init.js +0 -771
  190. package/dist/cli/commands/list.d.ts +0 -2
  191. package/dist/cli/commands/list.js +0 -30
  192. package/dist/cli/commands/preparation-action.d.ts +0 -8
  193. package/dist/cli/commands/preparation-action.js +0 -29
  194. package/dist/cli/commands/preparation-picker.d.ts +0 -5
  195. package/dist/cli/commands/preparation-picker.js +0 -36
  196. package/dist/cli/commands/preparation-selection.d.ts +0 -6
  197. package/dist/cli/commands/preparation-selection.js +0 -11
  198. package/dist/cli/commands/service-action-flow.d.ts +0 -9
  199. package/dist/cli/commands/service-action-flow.js +0 -19
  200. package/dist/cli/commands/source-config-wizard.d.ts +0 -51
  201. package/dist/cli/commands/source-config-wizard.js +0 -670
  202. package/dist/cli/commands/verify.d.ts +0 -2
  203. package/dist/cli/commands/verify.js +0 -94
  204. package/dist/packages/compiler/raw-snapshot.d.ts +0 -49
  205. package/dist/packages/compiler/raw-snapshot.js +0 -101
  206. package/dist/packages/method-package/index.d.ts +0 -11
  207. package/dist/packages/method-package/index.js +0 -11
  208. package/dist/packages/method-package/method-stage-policy.d.ts +0 -5
  209. package/dist/packages/method-package/method-stage-policy.js +0 -31
  210. package/dist/packages/project-model/project-paths.d.ts +0 -12
  211. package/dist/packages/project-model/project-paths.js +0 -33
  212. /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → C6vVfy3aeYuIO3d2AoNvC}/_buildManifest.js +0 -0
  213. /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → C6vVfy3aeYuIO3d2AoNvC}/_clientMiddlewareManifest.js +0 -0
  214. /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → C6vVfy3aeYuIO3d2AoNvC}/_ssgManifest.js +0 -0
@@ -10,47 +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 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 status Show deterministic health for the Portable Context agents use
20
- interf verify <check> [stageId] Run deterministic verification checks
21
- interf web Start Interf Compiler UI and the local Interf service
22
- interf reset <scope> Reset generated Portable Context state while keeping source files and the local Method package
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 init
34
+ ## interf web
30
35
 
31
36
  ```text
32
- interf init
37
+ interf web [subcommand]
38
+
39
+ Open Interf Compiler UI; manage the engine instance for this Workspace
33
40
 
34
- Set up Interf or open the Preparation wizard
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 Show help [boolean]
38
- --version Show version number [boolean]
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 create
58
+ ## interf prep
42
59
 
43
60
  ```text
44
- interf create [type]
61
+ interf prep <subcommand>
45
62
 
46
- Create a Preparation or reusable Method
63
+ Manage preparations on the connected instance
47
64
 
48
- Positionals:
49
- type Type to create (`preparation` or `method`) [string]
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
72
  --help Show help [boolean]
53
73
  --version Show version number [boolean]
74
+ --url Override the active connection URL [string]
75
+ --token Override the active bearer token [string]
54
76
  ```
55
77
 
56
78
  ## interf compile
@@ -63,13 +85,23 @@ Prepare files and write Portable Context agents can use
63
85
  Options:
64
86
  --help Show help [boolean]
65
87
  --version Show version number [boolean]
66
- --preparation Preparation id to compile when this Source Folder has more than one Preparation [string]
67
- --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
68
92
  mit [number]
69
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
70
94
  op limit [number]
71
95
  --keep-stage-shells Keep every executed stage shell under .interf/runtime/execution-shells for review instead of pruning successful shells
72
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]
73
105
  ```
74
106
 
75
107
  ## interf test
@@ -87,46 +119,58 @@ Options:
87
119
  [choices: "both", "source-files", "portable-context"]
88
120
  ```
89
121
 
90
- ## interf web
122
+ ## interf method
91
123
 
92
124
  ```text
93
- interf web
125
+ interf method <subcommand>
126
+
127
+ Manage Methods in your user library (install, publish, remove, list)
94
128
 
95
- Start Interf Compiler UI and the local Interf service
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/
96
134
 
97
135
  Options:
98
- --help Show help [boolean]
99
- --version Show version number [boolean]
100
- --host Host for the local Interf service [string]
101
- --port Port for the local Interf service [number]
102
- --control-path Folder where Interf stores local config, Methods, runs, and portable context [string]
103
- --source-folder Source Folder to prepare when initializing a new Interf Workspace [string]
136
+ --help Show help [boolean]
137
+ --version Show version number [boolean]
104
138
  ```
105
139
 
106
- ## interf doctor
140
+ ## interf runs
107
141
 
108
142
  ```text
109
- interf doctor
143
+ interf runs <subcommand>
110
144
 
111
- Check local executor configuration before a real local run
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
112
153
 
113
154
  Options:
114
155
  --help Show help [boolean]
115
156
  --version Show version number [boolean]
116
- --live Run a real executor preflight against the configured local agent [boolean] [default: false]
117
- --json Print machine-readable doctor output [boolean] [default: false]
118
157
  ```
119
158
 
120
- ## interf list
159
+ ## interf runs fetch
121
160
 
122
161
  ```text
123
- interf list
162
+ interf runs fetch <run-id>
124
163
 
125
- List saved Preparations in this Source Folder
164
+ Copy the portable context produced by a compile run to <abs-path>
165
+
166
+ Positionals:
167
+ run-id Compile run id to fetch [string] [required]
126
168
 
127
169
  Options:
128
- --help Show help [boolean]
129
- --version Show version number [boolean]
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]
130
174
  ```
131
175
 
132
176
  ## interf status
@@ -136,28 +180,37 @@ interf status
136
180
 
137
181
  Show deterministic health for the Portable Context agents use
138
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
+
139
197
  Options:
140
198
  --help Show help [boolean]
141
199
  --version Show version number [boolean]
142
- --watch Poll the local Interf service for live run status [boolean] [default: false]
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]
143
202
  ```
144
203
 
145
- ## interf verify
204
+ ## interf logout
146
205
 
147
206
  ```text
148
- interf verify <check> [stageId]
207
+ interf logout
149
208
 
150
- Run deterministic verification checks
151
-
152
- Positionals:
153
- check Check to run (`stage`, `portable-context`, or `method`) [string] [required]
154
- stageId Stage id when using `verify stage <stage-id>` [string]
209
+ Clear the active Interf instance connection
155
210
 
156
211
  Options:
157
212
  --help Show help [boolean]
158
213
  --version Show version number [boolean]
159
- --path Path to a Method package when using `verify method` [string]
160
- --json Print JSON output [boolean] [default: false]
161
214
  ```
162
215
 
163
216
  ## interf reset
@@ -174,3 +227,17 @@ Options:
174
227
  --help Show help [boolean]
175
228
  --version Show version number [boolean]
176
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 raw files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents running the readiness checks this task depends on.
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: raw, runtime; writes: summaries)
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: raw, summaries, knowledge-entities, knowledge-claims, knowledge-indexes, runtime; writes: knowledge-indexes, home)
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 `raw/` 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 raw.
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": "raw/example.md",`
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 raw source files
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 raw files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents running the readiness checks this task depends on."
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 in `raw/` while shaping and write focused notes that preserve bounded values plus provenance.",
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 `raw/`.
7
+ 2. Browse `knowledge/` before source re-checks.
8
8
  3. Use `summaries/` for source-grounded evidence.
9
- 4. Use `raw/` for direct quotes, verification, exact table lookups, and chart-derived values.
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 under `raw/`
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 `raw/` to confirm the source page, metric family, or provenance, not to replace a good compiled bounded read with a mismatched range
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 in `raw/` and then answer
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,28 +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
- import { choosePreparationConfig } from "./preparation-picker.js";
6
- export declare const compileCommand: CommandModule;
7
- interface CompileCommandDeps {
8
- choosePreparationConfig: typeof choosePreparationConfig;
9
- confirm: typeof p.confirm;
10
- detectInterf: typeof detectInterf;
11
- resolveInteractiveCompileLoopOverrides: typeof resolveInteractiveCompileLoopOverrides;
2
+ interface CompileArgs {
3
+ prepId: string;
4
+ watch?: boolean;
5
+ quiet?: boolean;
6
+ idempotencyKey?: string;
7
+ url?: string;
8
+ token?: string;
12
9
  }
13
- export interface CompileCommandResult {
14
- compiledPath: string;
15
- testedDuringCompile: boolean;
16
- }
17
- export declare function runCompileCommand(argv?: Record<string, unknown>, deps?: Partial<CompileCommandDeps>): Promise<CompileCommandResult | null>;
18
- export declare function resolveInteractiveCompileLoopOverrides(options: {
19
- compiledPath: string;
20
- compiledConfig: SourcePreparationConfig | null;
21
- maxAttemptsOverride: number | null;
22
- maxLoopsOverride: number | null;
23
- }): Promise<{
24
- compiledConfig: SourcePreparationConfig | null;
25
- maxAttemptsOverride: number | null;
26
- maxLoopsOverride: number | null;
27
- } | null>;
10
+ export declare const compileCommand: CommandModule<unknown, CompileArgs>;
28
11
  export {};