@interf/compiler 0.2.4 → 0.3.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 (240) hide show
  1. package/README.md +194 -148
  2. package/dist/commands/benchmark.d.ts.map +1 -1
  3. package/dist/commands/benchmark.js +60 -351
  4. package/dist/commands/benchmark.js.map +1 -1
  5. package/dist/commands/compile.d.ts.map +1 -1
  6. package/dist/commands/compile.js +43 -110
  7. package/dist/commands/compile.js.map +1 -1
  8. package/dist/commands/create-workflow-wizard.d.ts +4 -25
  9. package/dist/commands/create-workflow-wizard.d.ts.map +1 -1
  10. package/dist/commands/create-workflow-wizard.js +29 -214
  11. package/dist/commands/create-workflow-wizard.js.map +1 -1
  12. package/dist/commands/create.d.ts +2 -11
  13. package/dist/commands/create.d.ts.map +1 -1
  14. package/dist/commands/create.js +72 -455
  15. package/dist/commands/create.js.map +1 -1
  16. package/dist/commands/default.d.ts.map +1 -1
  17. package/dist/commands/default.js +16 -28
  18. package/dist/commands/default.js.map +1 -1
  19. package/dist/commands/init.d.ts.map +1 -1
  20. package/dist/commands/init.js +71 -337
  21. package/dist/commands/init.js.map +1 -1
  22. package/dist/commands/list.d.ts.map +1 -1
  23. package/dist/commands/list.js +12 -22
  24. package/dist/commands/list.js.map +1 -1
  25. package/dist/commands/reset.d.ts.map +1 -1
  26. package/dist/commands/reset.js +27 -124
  27. package/dist/commands/reset.js.map +1 -1
  28. package/dist/commands/source-config-wizard.d.ts +13 -6
  29. package/dist/commands/source-config-wizard.d.ts.map +1 -1
  30. package/dist/commands/source-config-wizard.js +93 -59
  31. package/dist/commands/source-config-wizard.js.map +1 -1
  32. package/dist/commands/status.d.ts.map +1 -1
  33. package/dist/commands/status.js +60 -56
  34. package/dist/commands/status.js.map +1 -1
  35. package/dist/commands/verify.d.ts.map +1 -1
  36. package/dist/commands/verify.js +59 -98
  37. package/dist/commands/verify.js.map +1 -1
  38. package/dist/index.d.ts +7 -7
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +4 -6
  41. package/dist/index.js.map +1 -1
  42. package/dist/lib/agent-constants.js +1 -1
  43. package/dist/lib/agent-constants.js.map +1 -1
  44. package/dist/lib/benchmark-execution.d.ts.map +1 -1
  45. package/dist/lib/benchmark-execution.js +7 -16
  46. package/dist/lib/benchmark-execution.js.map +1 -1
  47. package/dist/lib/benchmark-targets.d.ts +3 -4
  48. package/dist/lib/benchmark-targets.d.ts.map +1 -1
  49. package/dist/lib/benchmark-targets.js +9 -55
  50. package/dist/lib/benchmark-targets.js.map +1 -1
  51. package/dist/lib/benchmark-types.d.ts +2 -3
  52. package/dist/lib/benchmark-types.d.ts.map +1 -1
  53. package/dist/lib/benchmark.d.ts +1 -1
  54. package/dist/lib/benchmark.d.ts.map +1 -1
  55. package/dist/lib/benchmark.js +1 -1
  56. package/dist/lib/benchmark.js.map +1 -1
  57. package/dist/lib/config.d.ts +1 -2
  58. package/dist/lib/config.d.ts.map +1 -1
  59. package/dist/lib/config.js +2 -4
  60. package/dist/lib/config.js.map +1 -1
  61. package/dist/lib/discovery.d.ts +1 -1
  62. package/dist/lib/discovery.d.ts.map +1 -1
  63. package/dist/lib/discovery.js +7 -2
  64. package/dist/lib/discovery.js.map +1 -1
  65. package/dist/lib/eval-packs.d.ts +6 -52
  66. package/dist/lib/eval-packs.d.ts.map +1 -1
  67. package/dist/lib/eval-packs.js +11 -39
  68. package/dist/lib/eval-packs.js.map +1 -1
  69. package/dist/lib/interf-bootstrap.d.ts +3 -5
  70. package/dist/lib/interf-bootstrap.d.ts.map +1 -1
  71. package/dist/lib/interf-bootstrap.js +10 -57
  72. package/dist/lib/interf-bootstrap.js.map +1 -1
  73. package/dist/lib/interf-detect.d.ts +13 -11
  74. package/dist/lib/interf-detect.d.ts.map +1 -1
  75. package/dist/lib/interf-detect.js +59 -45
  76. package/dist/lib/interf-detect.js.map +1 -1
  77. package/dist/lib/interf-scaffold.d.ts +2 -5
  78. package/dist/lib/interf-scaffold.d.ts.map +1 -1
  79. package/dist/lib/interf-scaffold.js +98 -235
  80. package/dist/lib/interf-scaffold.js.map +1 -1
  81. package/dist/lib/interf-workflow-package.d.ts +1 -2
  82. package/dist/lib/interf-workflow-package.d.ts.map +1 -1
  83. package/dist/lib/interf-workflow-package.js +94 -90
  84. package/dist/lib/interf-workflow-package.js.map +1 -1
  85. package/dist/lib/interf.d.ts +4 -5
  86. package/dist/lib/interf.d.ts.map +1 -1
  87. package/dist/lib/interf.js +3 -6
  88. package/dist/lib/interf.js.map +1 -1
  89. package/dist/lib/local-workflows.d.ts +9 -8
  90. package/dist/lib/local-workflows.d.ts.map +1 -1
  91. package/dist/lib/local-workflows.js +42 -94
  92. package/dist/lib/local-workflows.js.map +1 -1
  93. package/dist/lib/obsidian.d.ts +1 -5
  94. package/dist/lib/obsidian.d.ts.map +1 -1
  95. package/dist/lib/obsidian.js +11 -165
  96. package/dist/lib/obsidian.js.map +1 -1
  97. package/dist/lib/registry.d.ts +6 -17
  98. package/dist/lib/registry.d.ts.map +1 -1
  99. package/dist/lib/registry.js +36 -50
  100. package/dist/lib/registry.js.map +1 -1
  101. package/dist/lib/runtime-contracts.d.ts +2 -3
  102. package/dist/lib/runtime-contracts.d.ts.map +1 -1
  103. package/dist/lib/runtime-contracts.js +10 -9
  104. package/dist/lib/runtime-contracts.js.map +1 -1
  105. package/dist/lib/runtime-reconcile.d.ts +2 -5
  106. package/dist/lib/runtime-reconcile.d.ts.map +1 -1
  107. package/dist/lib/runtime-reconcile.js +23 -176
  108. package/dist/lib/runtime-reconcile.js.map +1 -1
  109. package/dist/lib/runtime-runs.d.ts.map +1 -1
  110. package/dist/lib/runtime-runs.js +52 -57
  111. package/dist/lib/runtime-runs.js.map +1 -1
  112. package/dist/lib/runtime-types.d.ts +5 -6
  113. package/dist/lib/runtime-types.d.ts.map +1 -1
  114. package/dist/lib/runtime.d.ts +2 -2
  115. package/dist/lib/runtime.d.ts.map +1 -1
  116. package/dist/lib/runtime.js +1 -1
  117. package/dist/lib/runtime.js.map +1 -1
  118. package/dist/lib/schema.d.ts +53 -312
  119. package/dist/lib/schema.d.ts.map +1 -1
  120. package/dist/lib/schema.js +39 -206
  121. package/dist/lib/schema.js.map +1 -1
  122. package/dist/lib/source-config.d.ts +7 -7
  123. package/dist/lib/source-config.d.ts.map +1 -1
  124. package/dist/lib/source-config.js +55 -62
  125. package/dist/lib/source-config.js.map +1 -1
  126. package/dist/lib/state-artifacts.d.ts +5 -11
  127. package/dist/lib/state-artifacts.d.ts.map +1 -1
  128. package/dist/lib/state-artifacts.js +8 -18
  129. package/dist/lib/state-artifacts.js.map +1 -1
  130. package/dist/lib/state-health.d.ts +4 -8
  131. package/dist/lib/state-health.d.ts.map +1 -1
  132. package/dist/lib/state-health.js +27 -223
  133. package/dist/lib/state-health.js.map +1 -1
  134. package/dist/lib/state-io.d.ts +7 -12
  135. package/dist/lib/state-io.d.ts.map +1 -1
  136. package/dist/lib/state-io.js +26 -93
  137. package/dist/lib/state-io.js.map +1 -1
  138. package/dist/lib/state-view.d.ts +4 -6
  139. package/dist/lib/state-view.d.ts.map +1 -1
  140. package/dist/lib/state-view.js +62 -101
  141. package/dist/lib/state-view.js.map +1 -1
  142. package/dist/lib/state.d.ts +5 -5
  143. package/dist/lib/state.d.ts.map +1 -1
  144. package/dist/lib/state.js +4 -4
  145. package/dist/lib/state.js.map +1 -1
  146. package/dist/lib/summarize-plan.d.ts +2 -2
  147. package/dist/lib/summarize-plan.d.ts.map +1 -1
  148. package/dist/lib/summarize-plan.js +13 -13
  149. package/dist/lib/summarize-plan.js.map +1 -1
  150. package/dist/lib/{validate-kb.d.ts → validate-workspace.d.ts} +8 -8
  151. package/dist/lib/validate-workspace.d.ts.map +1 -0
  152. package/dist/lib/{validate-kb.js → validate-workspace.js} +44 -46
  153. package/dist/lib/validate-workspace.js.map +1 -0
  154. package/dist/lib/validate.d.ts +5 -7
  155. package/dist/lib/validate.d.ts.map +1 -1
  156. package/dist/lib/validate.js +6 -19
  157. package/dist/lib/validate.js.map +1 -1
  158. package/dist/lib/workflow-definitions.d.ts +14 -50
  159. package/dist/lib/workflow-definitions.d.ts.map +1 -1
  160. package/dist/lib/workflow-definitions.js +74 -349
  161. package/dist/lib/workflow-definitions.js.map +1 -1
  162. package/dist/lib/workflow-helpers.d.ts +3 -4
  163. package/dist/lib/workflow-helpers.d.ts.map +1 -1
  164. package/dist/lib/workflow-helpers.js +15 -49
  165. package/dist/lib/workflow-helpers.js.map +1 -1
  166. package/dist/lib/workflow-stage-runner.d.ts +1 -2
  167. package/dist/lib/workflow-stage-runner.d.ts.map +1 -1
  168. package/dist/lib/workflow-stage-runner.js +4 -6
  169. package/dist/lib/workflow-stage-runner.js.map +1 -1
  170. package/dist/lib/workflow-starter-docs.d.ts +3 -5
  171. package/dist/lib/workflow-starter-docs.d.ts.map +1 -1
  172. package/dist/lib/workflow-starter-docs.js +2 -17
  173. package/dist/lib/workflow-starter-docs.js.map +1 -1
  174. package/dist/lib/workflows.d.ts +9 -14
  175. package/dist/lib/workflows.d.ts.map +1 -1
  176. package/dist/lib/workflows.js +13 -30
  177. package/dist/lib/workflows.js.map +1 -1
  178. package/dist/lib/workspace-compile.d.ts +50 -0
  179. package/dist/lib/workspace-compile.d.ts.map +1 -0
  180. package/dist/lib/{workflows-kb.js → workspace-compile.js} +81 -89
  181. package/dist/lib/workspace-compile.js.map +1 -0
  182. package/package.json +9 -9
  183. package/skills/benchmark/SKILL.md +16 -24
  184. package/skills/workflow/create/SKILL.md +7 -14
  185. package/templates/workspace/README.md +23 -0
  186. package/templates/workspace/interfignore +2 -0
  187. package/dist/lib/bundled-templates.d.ts +0 -5
  188. package/dist/lib/bundled-templates.d.ts.map +0 -1
  189. package/dist/lib/bundled-templates.js +0 -23
  190. package/dist/lib/bundled-templates.js.map +0 -1
  191. package/dist/lib/interf-compile-plan.d.ts +0 -12
  192. package/dist/lib/interf-compile-plan.d.ts.map +0 -1
  193. package/dist/lib/interf-compile-plan.js +0 -143
  194. package/dist/lib/interf-compile-plan.js.map +0 -1
  195. package/dist/lib/validate-interface.d.ts +0 -79
  196. package/dist/lib/validate-interface.d.ts.map +0 -1
  197. package/dist/lib/validate-interface.js +0 -535
  198. package/dist/lib/validate-interface.js.map +0 -1
  199. package/dist/lib/validate-kb.d.ts.map +0 -1
  200. package/dist/lib/validate-kb.js.map +0 -1
  201. package/dist/lib/workflows-interface-contracts.d.ts +0 -24
  202. package/dist/lib/workflows-interface-contracts.d.ts.map +0 -1
  203. package/dist/lib/workflows-interface-contracts.js +0 -304
  204. package/dist/lib/workflows-interface-contracts.js.map +0 -1
  205. package/dist/lib/workflows-interface.d.ts +0 -72
  206. package/dist/lib/workflows-interface.d.ts.map +0 -1
  207. package/dist/lib/workflows-interface.js +0 -377
  208. package/dist/lib/workflows-interface.js.map +0 -1
  209. package/dist/lib/workflows-kb.d.ts +0 -50
  210. package/dist/lib/workflows-kb.d.ts.map +0 -1
  211. package/dist/lib/workflows-kb.js.map +0 -1
  212. package/skills/interface/analyze/SKILL.md +0 -191
  213. package/skills/interface/compile/SKILL.md +0 -152
  214. package/skills/interface/compile/references/output-format.md +0 -48
  215. package/skills/interface/create/SKILL.md +0 -87
  216. package/skills/interface/create/references/compile-plan-format.md +0 -109
  217. package/skills/interface/create/references/workflows.md +0 -35
  218. package/skills/interface/query/SKILL.md +0 -48
  219. package/skills/interface/retrieve/SKILL.md +0 -133
  220. package/skills/knowledge-base/compile/SKILL.md +0 -196
  221. package/skills/knowledge-base/compile/references/output-format.md +0 -48
  222. package/skills/knowledge-base/compile/references/stage-claims.md +0 -60
  223. package/skills/knowledge-base/compile/references/stage-entities.md +0 -46
  224. package/skills/knowledge-base/query/SKILL.md +0 -45
  225. package/skills/knowledge-base/summarize/SKILL.md +0 -152
  226. package/templates/interface/README.md +0 -159
  227. package/templates/interface/interfaces.md +0 -102
  228. package/templates/knowledge-base/README.md +0 -137
  229. package/templates/knowledge-base/interfignore +0 -19
  230. package/templates/knowledge-base/registry.md +0 -118
  231. package/templates/workflow-package/README.md +0 -16
  232. package/templates/workflow-package/create/SKILL.md +0 -8
  233. package/templates/workflow-package/interface-query/SKILL.md +0 -29
  234. package/templates/workflow-package/interface-stage/SKILL.md +0 -13
  235. package/templates/workflow-package/knowledge-base-query/SKILL.md +0 -36
  236. package/templates/workflow-package/knowledge-base-stage/SKILL.md +0 -13
  237. package/templates/workflow-starters/interface/interf/README.md +0 -13
  238. package/templates/workflow-starters/interface/interf/create/SKILL.md +0 -15
  239. package/templates/workflow-starters/knowledge-base/interf/README.md +0 -13
  240. package/templates/workflow-starters/knowledge-base/karpathy/README.md +0 -13
@@ -1,14 +1,12 @@
1
- import { existsSync, mkdirSync, copyFileSync, writeFileSync, } from "node:fs";
2
- import { join, resolve, relative } from "node:path";
3
- import { KNOWLEDGE_BASE_INTERFIGNORE } from "./config.js";
4
- import { getInterfaceWorkflow, getKnowledgeBaseWorkflow, listInterfaceWorkflowChoices, listKnowledgeBaseInterfaceWorkflowChoices, } from "./workflow-definitions.js";
5
- import { refreshKnowledgeBaseArtifacts, saveState, initKnowledgeBaseState, initInterfaceState, refreshInterfaceArtifacts, } from "./state.js";
1
+ import { copyFileSync, existsSync, mkdirSync, writeFileSync, } from "node:fs";
2
+ import { basename, join } from "node:path";
3
+ import { WORKSPACE_INTERFIGNORE } from "./config.js";
4
+ import { getWorkspaceWorkflow } from "./workflow-definitions.js";
5
+ import { refreshWorkspaceArtifacts, saveState, initWorkspaceState, } from "./state.js";
6
6
  import { writeObsidianDefaults } from "./obsidian.js";
7
- import { assertKnowledgeBaseContainer, assertWritableTargetDir, assertWorkspaceName, INTERF_CONFIG_FILE, } from "./interf-detect.js";
8
- import { resolveKnowledgeBaseSourcePath, } from "./interf-detect.js";
9
- import { renderClaudeBootstrap, topKnowledgeBaseManualPreflightBlock, topInterfaceManualPreflightBlock, buildWorkspaceRuntimeControlLines, buildWorkspaceAgentLayerLines, } from "./interf-bootstrap.js";
10
- import { formatWorkflowStageFolders, formatWorkflowStageSequence, writeInterfaceCompilePlanTemplate, } from "./interf-compile-plan.js";
11
- import { writeKnowledgeBaseWorkflowPackage, writeInterfaceWorkflowPackage, } from "./interf-workflow-package.js";
7
+ import { assertWorkspaceContainer, assertWritableTargetDir, assertWorkspaceName, INTERF_CONFIG_FILE, } from "./interf-detect.js";
8
+ import { renderClaudeBootstrap } from "./interf-bootstrap.js";
9
+ import { writeWorkspaceWorkflowPackage } from "./interf-workflow-package.js";
12
10
  function writeInterfConfigFile(dirPath, config) {
13
11
  writeFileSync(join(dirPath, INTERF_CONFIG_FILE), `${JSON.stringify(config, null, 2)}\n`);
14
12
  }
@@ -16,240 +14,105 @@ function writeAgentBootstrapFiles(dirPath, content) {
16
14
  writeFileSync(join(dirPath, "AGENTS.md"), content);
17
15
  writeFileSync(join(dirPath, "CLAUDE.md"), renderClaudeBootstrap(content));
18
16
  }
19
- export function createKnowledgeBase(name, sourcePath, workflowId = "interf") {
20
- return createKnowledgeBaseWithWorkflow(name, sourcePath, workflowId);
17
+ function renderWorkspaceAgents(name, workflowId, about) {
18
+ return [
19
+ `# ${name}`,
20
+ "",
21
+ "This is an Interf compiled workspace.",
22
+ "It is a file-based layer on top of the raw files, built for agents to navigate, retrieve evidence, and answer more accurately.",
23
+ "",
24
+ ...(about
25
+ ? [
26
+ `About: ${about}`,
27
+ "",
28
+ ]
29
+ : []),
30
+ "## First question: required preflight",
31
+ "",
32
+ "Before describing this workspace or answering from compiled notes:",
33
+ "",
34
+ "1. Read `workflow/use/query/SKILL.md` now.",
35
+ "2. Confirm `home.md`, `knowledge/`, and `summaries/` are reachable.",
36
+ "3. Inspect `.interf/source-access.json` and open one `suggested_checks` path immediately.",
37
+ "4. If the environment asks for permission, request it right away instead of guessing.",
38
+ "5. `Raw access: confirmed` is allowed only after you actually open and inspect that raw file. A plain existence check is not enough.",
39
+ "6. Start the answer with exactly `Raw access: confirmed` or `Raw access: unavailable`.",
40
+ "",
41
+ "## How this workspace works",
42
+ "",
43
+ "- `interf.json` points back to the source folder via `source.path`.",
44
+ `- Workflow: \`${workflowId}\`.`,
45
+ "- `workflow/` is the local editable method package for this workspace.",
46
+ "- `workflow/use/query/` defines how agents should use this workspace manually.",
47
+ "- `workflow/compile/stages/` defines stage-specific local docs for automated runs.",
48
+ "- `summaries/` contains per-file evidence objects.",
49
+ "- `knowledge/` contains the cross-file knowledge layer and navigation structure.",
50
+ "- `home.md` is the starting note.",
51
+ "- `.interf/run.json`, `.interf/health.json`, `.interf/view-spec.json`, and `.interf/source-access.json` are CLI-owned runtime artifacts.",
52
+ "",
53
+ "## Manual query rules",
54
+ "",
55
+ "- Prefer `home.md`, `knowledge/`, and `summaries/` before raw files.",
56
+ "- Read `workflow/use/query/SKILL.md` before answering substantive questions.",
57
+ "- Use raw files for quotes, verification, ambiguity, or evidence the compiled layer does not expose well.",
58
+ "- If exact chart, table, or image-derived evidence matters, inspect the raw source and say whether the answer was text-derived, table-derived, or chart-derived.",
59
+ "- Do not claim raw verification after only checking that a file exists.",
60
+ "",
61
+ "## Commands",
62
+ "",
63
+ "```",
64
+ "interf compile build this compiled workspace",
65
+ "interf benchmark run checks against compiled workspaces",
66
+ "interf verify summarize verify summary coverage",
67
+ "interf verify compile verify compile outputs",
68
+ "interf status show deterministic health",
69
+ "```",
70
+ "",
71
+ "## Rules",
72
+ "",
73
+ "- Do not modify raw source files.",
74
+ "- Treat compiled notes as working retrieval artifacts, not final truth.",
75
+ "- When confidence is low, follow links outward or verify against raw files before answering strongly.",
76
+ "",
77
+ ].join("\n");
21
78
  }
22
- export function createKnowledgeBaseWithWorkflow(name, sourcePath, workflowId = "interf") {
23
- assertWorkspaceName(name, "Knowledge base");
24
- const containerPath = assertKnowledgeBaseContainer(sourcePath);
79
+ export function createWorkspace(name, sourcePath, workflowId = "interf", about) {
80
+ assertWorkspaceName(name, "Workspace");
81
+ const containerPath = assertWorkspaceContainer(sourcePath);
25
82
  mkdirSync(containerPath, { recursive: true });
26
- const knowledgeBasePath = join(containerPath, name);
27
- assertWritableTargetDir(knowledgeBasePath, "Knowledge base");
28
- mkdirSync(knowledgeBasePath, { recursive: true });
29
- const selectedWorkflow = getKnowledgeBaseWorkflow(workflowId, { sourcePath });
30
- const interfaceTemplates = selectedWorkflow.interfaceTemplates ?? listInterfaceWorkflowChoices(sourcePath);
31
- const knowledgeBaseStageFolders = formatWorkflowStageFolders(selectedWorkflow.stages);
32
- const knowledgeBaseStageSequence = formatWorkflowStageSequence(selectedWorkflow.stages);
33
- writeInterfConfigFile(knowledgeBasePath, {
34
- type: "knowledge-base",
83
+ const workspacePath = join(containerPath, name);
84
+ assertWritableTargetDir(workspacePath, "Workspace");
85
+ mkdirSync(workspacePath, { recursive: true });
86
+ const selectedWorkflow = getWorkspaceWorkflow(workflowId, { sourcePath });
87
+ writeInterfConfigFile(workspacePath, {
88
+ type: "workspace",
35
89
  name,
90
+ ...(about ? { about } : {}),
36
91
  workflow: selectedWorkflow.id,
37
92
  source: {
38
- path: "../..",
93
+ path: "../../..",
39
94
  },
40
95
  });
41
- // .interfignore
42
- if (existsSync(KNOWLEDGE_BASE_INTERFIGNORE)) {
43
- copyFileSync(KNOWLEDGE_BASE_INTERFIGNORE, join(knowledgeBasePath, ".interfignore"));
96
+ if (existsSync(WORKSPACE_INTERFIGNORE)) {
97
+ copyFileSync(WORKSPACE_INTERFIGNORE, join(workspacePath, ".interfignore"));
44
98
  }
45
- writeKnowledgeBaseWorkflowPackage(knowledgeBasePath, selectedWorkflow, interfaceTemplates);
46
- // Agent bootstrap docs
47
- writeAgentBootstrapFiles(knowledgeBasePath, [
48
- `# ${name}`,
49
- ``,
50
- ...topKnowledgeBaseManualPreflightBlock(),
51
- `This is the main Interf knowledge base — the primary local knowledge layer over the source files in the attached folder above this named folder.`,
52
- ``,
53
- `## How this knowledge base works`,
54
- ``,
55
- `- \`interf.json\` — config. Points to the source folder via \`source.path\`.`,
56
- `- Workflow: \`${selectedWorkflow.id}\` (${selectedWorkflow.label}). This is the methodology you chose for this knowledge base.`,
57
- `- Interf generates a stage contract from that workflow each time you run \`interf compile\`.`,
58
- `- \`workflow/\` — the local editable method package for this knowledge base.`,
59
- `- \`workflow/workflow.json\` — stage graph and contract kinds for the selected workflow.`,
60
- `- \`workflow/create/\` — create-time setup notes for this workflow.`,
61
- `- \`workflow/compile/stages/\` — one stage folder per compile stage: ${knowledgeBaseStageFolders}.`,
62
- `- \`workflow/use/query/\` — manual-use guidance when an agent is answering questions from this knowledge base.`,
63
- `- \`workflow/interfaces/\` — interface workflow templates available on top of this knowledge base.`,
64
- `- \`summaries/\` — per-file evidence objects. One per source file.`,
65
- `- \`knowledge/\` — the durable cross-file knowledge layer built by compile.`,
66
- `- \`home.md\` — start here. Overview of what's been built.`,
67
- ...buildWorkspaceRuntimeControlLines("knowledge-base"),
68
- `- \`interfaces/\` — task-specific interfaces for specific jobs or perspectives built on top of this knowledge base.`,
69
- `- \`.interf/source-access.json\` — quick raw-file access check for manual agents.`,
70
- `- Source files live in the grandparent folder (\`../../\`). They are never modified by interf.`,
71
- `- Default agent entrypoint is this knowledge-base workspace.`,
72
- `- Automated compile workers run from this workspace and read local \`AGENTS.md\`, \`.interf/stage-contract.json\`, and workflow docs here.`,
73
- `- If your coding agent is sandboxed to the current directory tree and raw source access is blocked, relaunch from the source folder or grant the source folder alongside this workspace.`,
74
- `- Before relying on raw files directly, inspect \`.interf/source-access.json\` and open one path from \`suggested_checks\`. \`Raw access: confirmed\` requires actually inspecting that file; a plain existence check is not enough. These are canonical absolute source-file paths so they still work from nested interfaces. If raw paths are not reachable, fall back to \`summaries/\` and say raw fallback is unavailable.`,
75
- ``,
76
- `## Manual access checklist`,
77
- ``,
78
- `Use this checklist on the first substantive manual question so you do not get stuck later in the session:`,
79
- ``,
80
- `1. Read this \`AGENTS.md\` and then \`workflow/use/query/SKILL.md\`.`,
81
- `2. Confirm the compiled knowledge-base surface is reachable: \`home.md\`, \`knowledge/\`, and \`summaries/\`.`,
82
- `3. Run the raw-source preflight via \`.interf/source-access.json\` immediately and open one suggested raw file. If the environment asks for permission, request it right away.`,
83
- `4. \`Raw access: confirmed\` is allowed only after you actually inspect that file. A plain existence check is not enough.`,
84
- `5. After that preflight, start the answer with exactly \`Raw access: confirmed\` or \`Raw access: unavailable\`.`,
85
- ``,
86
- `## Preferred operation`,
87
- ``,
88
- `Use the Interf CLI for normal operations:`,
89
- ``,
90
- `\`\`\``,
91
- `interf compile compile this knowledge base`,
92
- `interf verify summarize verify summary coverage and quality`,
93
- `interf verify compile verify graph/inventory consistency`,
94
- `interf create interface create an interface`,
95
- `interf status show compile health`,
96
- `\`\`\``,
97
- ``,
98
- `## For agents without the CLI`,
99
- ``,
100
- `Start with \`workflow/use/query/SKILL.md\`, then \`home.md\`. Browse \`knowledge/\` for entities and claims. Use \`summaries/\` for deeper evidence. Access source files at \`../../\` only when the raw-source gate says they are actually reachable.`,
101
- ...buildWorkspaceAgentLayerLines(knowledgeBaseStageFolders, "knowledge base"),
102
- `Navigation ladder: \`AGENTS.md\` -> local \`workflow/use/query/SKILL.md\` -> \`home.md\` -> local \`knowledge/\` indexes and notes -> linked \`summaries/\` evidence -> raw source files only when needed and actually reachable.`,
103
- `Backlinks and outward wikilinks are part of the interface. If a note links to a summary or another knowledge note, follow that link before guessing from one file in isolation.`,
104
- `If a question seems answerable from the current note but confidence is low, expand outward through linked summaries and related notes first. Use raw files mainly for verification, direct quotes, ambiguity, or missing context.`,
105
- `Raw-source gate: before giving an answer that depends on original source files, inspect \`.interf/source-access.json\` and open one path from \`suggested_checks\`. Do not claim raw verification after only checking that the file exists.`,
106
- `If that raw-file check fails or the agent asks for permission and the user has not granted it, do not claim raw-file verification. Say explicitly that raw source access is unavailable in this session and limit the answer to compiled summaries and knowledge artifacts.`,
107
- `If the question depends on exact figures from PDFs, charts, tables, or other visuals, inspect the raw source and say whether the answer is text-derived, table-derived, or chart-derived.`,
108
- `When answering knowledge-base-wide questions, do not rely on a few hand-picked files. First verify summarize/compile integrity via \`.interf/inventory.json\`, \`.interf/health.json\`, or \`interf verify summarize --json\` and \`interf verify compile --json\`, then drill into the relevant summaries.`,
109
- `Treat summary titles as source-grounded descriptions, not absolute truth. Broader semantic claims should come from \`knowledge/\`, not from over-reading a single summary filename.`,
110
- ``,
111
- `## Obsidian (optional)`,
112
- ``,
113
- `If Obsidian viewer defaults are enabled, this knowledge base gets minimal graph defaults and Interf attempts to register this named folder with Obsidian.`,
114
- `If the running app does not pick it up immediately, reopen Obsidian or add the folder once via Manage vaults.`,
115
- ``,
116
- `## Rules`,
117
- ``,
118
- `- Do not modify source files in the grandparent folder.`,
119
- `- Follow prose-as-title: summary filenames are claims, not slugs.`,
120
- `- Follow wiki-link-as-prose: links read as sentences.`,
121
- ``,
99
+ writeWorkspaceWorkflowPackage(workspacePath, selectedWorkflow);
100
+ writeAgentBootstrapFiles(workspacePath, renderWorkspaceAgents(name, selectedWorkflow.id, about));
101
+ writeFileSync(join(workspacePath, "home.md"), [
102
+ `# ${name} — Home`,
103
+ "",
104
+ "Not yet compiled. Run `interf compile` to build this compiled workspace.",
105
+ ...(about ? ["", `About: ${about}`] : []),
106
+ "",
122
107
  ].join("\n"));
123
- // home.md
124
- writeFileSync(join(knowledgeBasePath, "home.md"), `# ${name} — Home\n\nNot yet compiled. Run \`interf compile\` to execute the workflow-defined compile stages for this knowledge base (${knowledgeBaseStageSequence}).\n`);
125
- // .gitignore
126
- writeFileSync(join(knowledgeBasePath, ".gitignore"), "summaries/\nknowledge/\n.interf/\n.obsidian/\n");
127
- // Init state
128
- saveState(knowledgeBasePath, initKnowledgeBaseState());
129
- writeFileSync(join(knowledgeBasePath, ".interf", "inventory.json"), JSON.stringify({
130
- total: 0,
131
- files: [],
132
- }, null, 2) + "\n");
133
- refreshKnowledgeBaseArtifacts(knowledgeBasePath, { ensureViewSpec: true });
134
- writeObsidianDefaults(knowledgeBasePath, "knowledge-base");
135
- return knowledgeBasePath;
136
- }
137
- export function createInterface(name, knowledgeBasePath, knowledgeBaseName, workflowId = "interf") {
138
- return createInterfaceWithWorkflow(name, knowledgeBasePath, knowledgeBaseName, workflowId);
108
+ writeFileSync(join(workspacePath, ".gitignore"), "summaries/\nknowledge/\n.interf/\n.obsidian/\n");
109
+ saveState(workspacePath, initWorkspaceState());
110
+ writeFileSync(join(workspacePath, ".interf", "inventory.json"), JSON.stringify({ total: 0, files: [] }, null, 2) + "\n");
111
+ refreshWorkspaceArtifacts(workspacePath, { ensureViewSpec: true });
112
+ writeObsidianDefaults(workspacePath, "workspace");
113
+ return workspacePath;
139
114
  }
140
- export function createInterfaceWithWorkflow(name, knowledgeBasePath, knowledgeBaseName, workflowId = "interf") {
141
- assertWorkspaceName(name, "Interface");
142
- const interfacesDir = join(knowledgeBasePath, "interfaces");
143
- mkdirSync(interfacesDir, { recursive: true });
144
- const dirPath = resolve(interfacesDir, name);
145
- assertWritableTargetDir(dirPath, `Interface "${name}"`);
146
- mkdirSync(dirPath, { recursive: true });
147
- const knowledgeBaseRelativePath = relative(dirPath, knowledgeBasePath) || ".";
148
- const selectedWorkflow = listKnowledgeBaseInterfaceWorkflowChoices(knowledgeBasePath).find((candidate) => candidate.id === workflowId) ?? getInterfaceWorkflow(workflowId, { sourcePath: resolveKnowledgeBaseSourcePath(knowledgeBasePath) });
149
- const interfaceStageFolders = formatWorkflowStageFolders(selectedWorkflow.stages);
150
- const interfaceStageSequence = formatWorkflowStageSequence(selectedWorkflow.stages);
151
- writeInterfConfigFile(dirPath, {
152
- type: "interface",
153
- name,
154
- workflow: selectedWorkflow.id,
155
- knowledge_base: {
156
- path: knowledgeBaseRelativePath,
157
- },
158
- });
159
- // .gitignore
160
- writeFileSync(join(dirPath, ".gitignore"), "knowledge/\nbriefs/\nsummaries/\n.interf/\n.obsidian/\n");
161
- writeInterfaceWorkflowPackage(dirPath, selectedWorkflow);
162
- // Agent bootstrap docs
163
- writeAgentBootstrapFiles(dirPath, [
164
- `# ${name}`,
165
- ``,
166
- ...topInterfaceManualPreflightBlock(),
167
- `This is an Interf interface — a task-specific agent-ready workspace built on top of the \`${knowledgeBaseName}\` knowledge base for one job, perspective, or workflow.`,
168
- ``,
169
- `## How this interface works`,
170
- ``,
171
- `- \`interf.json\` — config. Points to the main knowledge base via \`knowledge_base.path\`.`,
172
- `- Workflow: \`${selectedWorkflow.id}\` (${selectedWorkflow.label}). This is the methodology you chose for this interface.`,
173
- `- Interf generates a stage contract from that workflow each time you run \`interf compile\`.`,
174
- `- \`workflow/\` — the local editable method package for this interface.`,
175
- `- \`workflow/workflow.json\` — stage graph and contract kinds for the selected interface workflow.`,
176
- `- \`workflow/create/\` — create-time setup notes for this interface workflow.`,
177
- `- \`workflow/compile/stages/\` — one stage folder per compile stage: ${interfaceStageFolders}.`,
178
- `- \`workflow/use/query/\` — interface-local manual-use guidance.`,
179
- `- \`../../workflow/use/query/\` — parent knowledge-base manual-use guidance. Use it when local interface artifacts are insufficient before any raw-source fallback.`,
180
- `- \`compile-plan.md\` — interface execution plan for the workflow-defined compile stages (${interfaceStageSequence}). It is the initial runtime hypothesis, not the final word.`,
181
- `- \`knowledge/\` — this interface's local entities, claims, and indexes.`,
182
- `- \`briefs/\` — hero documents for this use case.`,
183
- `- \`summaries/\` — interface-local summaries or periodic summaries when this interface needs them. These are not the main knowledge-base summaries.`,
184
- ...buildWorkspaceRuntimeControlLines("interface"),
185
- `- \`home.md\` — start here.`,
186
- `- Knowledge-base raw-file quick check is at \`../../.interf/source-access.json\`.`,
187
- `- Main knowledge base is at \`../../\`. Knowledge-base summaries are at \`../../summaries/\`.`,
188
- `- Agent access hierarchy for this interface is: local interface artifacts -> parent knowledge-base artifacts -> raw source files only when needed.`,
189
- `- Default agent entrypoint is this interface workspace.`,
190
- `- Automated compile workers run from this workspace and start with local \`AGENTS.md\`, then parent knowledge-base entrypoints and workflow docs.`,
191
- `- If your coding agent is sandboxed to the current directory tree and raw source access is blocked, relaunch from the source folder or grant access to both the source root and this interface.`,
192
- `- Before raw-file fallback, verify that the parent knowledge base is reachable by opening \`../../AGENTS.md\`, \`../../home.md\`, or a summary under \`../../summaries/\`.`,
193
- `- Before relying on raw files directly, inspect \`../../.interf/source-access.json\` and open one path from \`suggested_checks\`. \`Raw access: confirmed\` requires actually inspecting that file; a plain existence check is not enough. These are canonical absolute source-file paths shared by the parent knowledge base. If raw paths are not reachable, continue from knowledge-base summaries and say raw fallback is unavailable.`,
194
- `- In Obsidian, browse this interface from the parent knowledge-base workspace so links to knowledge-base summaries and source files remain navigable.`,
195
- ``,
196
- `## Manual access checklist`,
197
- ``,
198
- `Use this checklist on the first substantive manual question so you do not get stuck later in the session:`,
199
- ``,
200
- `1. Read this \`AGENTS.md\` and then local \`workflow/use/query/SKILL.md\`.`,
201
- `2. Confirm the local interface surface is reachable: \`home.md\`, \`knowledge/\`, \`briefs/\`, and any local \`summaries/\`.`,
202
- `3. Confirm the parent knowledge base is reachable: \`../../AGENTS.md\`, \`../../home.md\`, and parent summaries.`,
203
- `4. Run the raw-source preflight through \`../../.interf/source-access.json\` immediately and open one suggested raw file. If the environment asks for permission, request it right away.`,
204
- `5. \`Raw access: confirmed\` is allowed only after you actually inspect that file. A plain existence check is not enough.`,
205
- `6. After that preflight, start the answer with exactly \`Raw access: confirmed\` or \`Raw access: unavailable\`.`,
206
- ``,
207
- `## Preferred operation`,
208
- ``,
209
- `Use the Interf CLI:`,
210
- ``,
211
- `\`\`\``,
212
- `interf verify interface-plan verify the scaffold and compile plan`,
213
- `interf compile compile this interface`,
214
- `interf verify retrieve verify retrieval proof before analyze/compile`,
215
- `interf status show compile health`,
216
- `\`\`\``,
217
- ``,
218
- `## For agents without the CLI`,
219
- ``,
220
- `Read \`compile-plan.md\` for the execution plan. Start with \`workflow/use/query/SKILL.md\`, then \`home.md\`. Browse \`knowledge/\` for local entities, claims, and indexes. Use \`briefs/\` and local \`summaries/\` as high-level entry points. If that is insufficient, load \`../../workflow/use/query/SKILL.md\` and use the parent knowledge-base query loop before any raw fallback.`,
221
- ...buildWorkspaceAgentLayerLines(interfaceStageFolders, "interface"),
222
- `Navigation ladder: \`AGENTS.md\` -> local \`workflow/use/query/SKILL.md\` -> \`home.md\` -> local \`knowledge/\`, \`briefs/\`, and local \`summaries/\` -> parent \`../../workflow/use/query/SKILL.md\` -> parent \`../../home.md\`, \`../../knowledge/\`, and \`../../summaries/\` -> raw source files only when needed and actually reachable.`,
223
- `Knowledge-base gate: before raw fallback, verify that \`../../AGENTS.md\`, \`../../home.md\`, or a parent summary in \`../../summaries/\` is reachable from this session.`,
224
- `Backlinks and outward wikilinks are part of the interface. Follow linked claims, entities, briefs, and parent summaries before treating the current note as a complete answer.`,
225
- `If a question seems answerable from the current note but confidence is low, expand outward through the parent knowledge-base query loop first. Use raw files mainly for verification, direct quotes, ambiguity, or missing context.`,
226
- `Raw-source gate: before giving an answer that depends on original source files, inspect \`../../.interf/source-access.json\` and open one path from \`suggested_checks\`. Do not claim raw verification after only checking that the file exists.`,
227
- `If that raw-file check fails or the agent asks for permission and the user has not granted it, do not claim raw-file verification. Say explicitly that raw source access is unavailable in this session and limit the answer to compiled knowledge-base and interface artifacts.`,
228
- `If the question depends on exact figures from PDFs, charts, tables, or other visuals, inspect the raw source and say whether the answer is text-derived, table-derived, or chart-derived.`,
229
- `If you are using Obsidian, open the parent knowledge-base workspace rather than this interface folder alone. Standalone interface workspaces cannot resolve links into the parent knowledge base.`,
230
- `Do not synthesize from the main knowledge base until the interface plan and retrieve coverage are both proved. Check \`compile-plan.md\`, \`.interf/coverage.json\`, \`.interf/relevant.json\`, and \`.interf/health.json\` first.`,
231
- `If a stage is active, \`.interf/stage-contract.json\` and \`.interf/run.json\` are the durable source of truth for what the harness expects and which executor is running.`,
232
- `Run \`interf verify interface-plan --json\` after creation and \`interf verify retrieve --json\` before analyze/compile if you need deterministic pass/fail checks.`,
233
- `For interface questions, the expected loop is: scan summary frontmatter -> review candidate abstracts -> expand through links if needed -> refine the runtime from evidence -> answer with evidence.`,
234
- ``,
235
- `## Rules`,
236
- ``,
237
- `- All outputs are local to this interface.`,
238
- `- Do not modify the main knowledge base or source files.`,
239
- `- Prefer evidence-linked notes over summaries without sources.`,
240
- ``,
241
- ].join("\n"));
242
- // home.md
243
- writeFileSync(join(dirPath, "home.md"), `# ${name} — Home\n\nNot yet compiled. Run \`interf compile\` to start interface compilation.\n\nThis interface reads from the parent knowledge base at \`../../\`. In Obsidian, open the parent knowledge-base workspace so links to knowledge-base summaries and source files resolve correctly.\n`);
244
- writeInterfaceCompilePlanTemplate(dirPath, {
245
- workflowId: selectedWorkflow.id,
246
- sourcePath: resolveKnowledgeBaseSourcePath(knowledgeBasePath),
247
- interfaceName: name,
248
- });
249
- // Init state
250
- saveState(dirPath, initInterfaceState());
251
- refreshInterfaceArtifacts(dirPath, { ensureViewSpec: true });
252
- writeObsidianDefaults(dirPath, "interface", { registerVault: false });
253
- return dirPath;
115
+ export function defaultWorkspaceNameForSource(sourcePath) {
116
+ return basename(sourcePath);
254
117
  }
255
118
  //# sourceMappingURL=interf-scaffold.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interf-scaffold.js","sourceRoot":"","sources":["../../src/lib/interf-scaffold.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACZ,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,yCAAyC,GAG1C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,6BAA6B,EAC7B,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,o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CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CACxD,CAAC;IACF,yBAAyB,CAAC,aAAa,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;IACnE,qBAAqB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IAElD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,UAAkB;IAC9D,OAAO,QAAQ,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC"}
@@ -1,4 +1,3 @@
1
1
  import { type WorkflowDefinition } from "./workflow-definitions.js";
2
- export declare function writeKnowledgeBaseWorkflowPackage(knowledgeBasePath: string, workflow: WorkflowDefinition<string>, interfaceTemplates: WorkflowDefinition<string>[]): void;
3
- export declare function writeInterfaceWorkflowPackage(interfacePath: string, workflow: WorkflowDefinition<string>): void;
2
+ export declare function writeWorkspaceWorkflowPackage(workspacePath: string, workflow: WorkflowDefinition<string>): void;
4
3
  //# sourceMappingURL=interf-workflow-package.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interf-workflow-package.d.ts","sourceRoot":"","sources":["../../src/lib/interf-workflow-package.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,2BAA2B,CAAC;AAsJnC,wBAAgB,iCAAiC,CAC/C,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,EACpC,kBAAkB,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAAE,GAC/C,IAAI,CAyBN;AAED,wBAAgB,6BAA6B,CAC3C,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,GACnC,IAAI,CAEN"}
1
+ {"version":3,"file":"interf-workflow-package.d.ts","sourceRoot":"","sources":["../../src/lib/interf-workflow-package.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,2BAA2B,CAAC;AA2InC,wBAAgB,6BAA6B,CAC3C,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,GACnC,IAAI,CAuBN"}