@interf/compiler 0.3.3 → 0.4.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 +137 -243
- package/builtin-workflows/interf/README.md +19 -0
- package/builtin-workflows/interf/compile/stages/shape/SKILL.md +28 -0
- package/builtin-workflows/interf/compile/stages/structure/SKILL.md +18 -0
- package/builtin-workflows/interf/compile/stages/summarize/SKILL.md +18 -0
- package/builtin-workflows/interf/improve/SKILL.md +18 -0
- package/builtin-workflows/interf/use/query/SKILL.md +28 -0
- package/builtin-workflows/interf/workflow.json +120 -0
- package/builtin-workflows/interf/workspace.schema.json +75 -0
- package/dist/bin.d.ts +0 -1
- package/dist/bin.js +0 -1
- package/dist/commands/compile-controller.d.ts +14 -0
- package/dist/commands/compile-controller.js +409 -0
- package/dist/commands/compile.d.ts +8 -9
- package/dist/commands/compile.js +151 -153
- package/dist/commands/create-workflow-wizard.d.ts +4 -2
- package/dist/commands/create-workflow-wizard.js +33 -31
- package/dist/commands/create.d.ts +0 -1
- package/dist/commands/create.js +16 -12
- package/dist/commands/default.d.ts +0 -1
- package/dist/commands/default.js +1 -2
- package/dist/commands/doctor.d.ts +0 -1
- package/dist/commands/doctor.js +7 -22
- package/dist/commands/executor-flow.d.ts +0 -1
- package/dist/commands/executor-flow.js +0 -1
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.js +72 -15
- package/dist/commands/list.d.ts +0 -1
- package/dist/commands/list.js +0 -1
- package/dist/commands/reset.d.ts +0 -1
- package/dist/commands/reset.js +0 -1
- package/dist/commands/source-config-wizard.d.ts +28 -7
- package/dist/commands/source-config-wizard.js +159 -63
- package/dist/commands/status.d.ts +0 -1
- package/dist/commands/status.js +0 -1
- package/dist/commands/test-flow.d.ts +20 -10
- package/dist/commands/test-flow.js +89 -23
- package/dist/commands/test.d.ts +0 -1
- package/dist/commands/test.js +36 -72
- package/dist/commands/verify.d.ts +0 -1
- package/dist/commands/verify.js +0 -1
- package/dist/commands/workspace-flow.d.ts +3 -3
- package/dist/commands/workspace-flow.js +30 -12
- package/dist/index.d.ts +5 -6
- package/dist/index.js +3 -4
- package/dist/lib/agent-args.d.ts +0 -1
- package/dist/lib/agent-args.js +0 -1
- package/dist/lib/agent-constants.d.ts +0 -1
- package/dist/lib/agent-constants.js +0 -1
- package/dist/lib/agent-detection.d.ts +0 -1
- package/dist/lib/agent-detection.js +0 -1
- package/dist/lib/agent-execution.d.ts +0 -1
- package/dist/lib/agent-execution.js +47 -12
- package/dist/lib/agent-logs.d.ts +0 -1
- package/dist/lib/agent-logs.js +0 -1
- package/dist/lib/agent-preflight.d.ts +0 -1
- package/dist/lib/agent-preflight.js +1 -2
- package/dist/lib/agent-render.d.ts +0 -1
- package/dist/lib/agent-render.js +0 -1
- package/dist/lib/agent-shells.d.ts +30 -3
- package/dist/lib/agent-shells.js +527 -63
- package/dist/lib/agent-status.d.ts +0 -1
- package/dist/lib/agent-status.js +0 -1
- package/dist/lib/agent-types.d.ts +0 -1
- package/dist/lib/agent-types.js +0 -1
- package/dist/lib/agents.d.ts +0 -9
- package/dist/lib/agents.js +0 -9
- package/dist/lib/chart-guidance.d.ts +1 -0
- package/dist/lib/chart-guidance.js +8 -0
- package/dist/lib/config.d.ts +0 -3
- package/dist/lib/config.js +0 -5
- package/dist/lib/discovery.d.ts +0 -1
- package/dist/lib/discovery.js +0 -1
- package/dist/lib/execution-profile.d.ts +0 -1
- package/dist/lib/execution-profile.js +0 -1
- package/dist/lib/executors.d.ts +0 -1
- package/dist/lib/executors.js +0 -1
- package/dist/lib/filesystem.d.ts +0 -1
- package/dist/lib/filesystem.js +0 -1
- package/dist/lib/interf-bootstrap.d.ts +0 -1
- package/dist/lib/interf-bootstrap.js +6 -2
- package/dist/lib/interf-detect.d.ts +2 -2
- package/dist/lib/interf-detect.js +25 -8
- package/dist/lib/interf-scaffold.d.ts +0 -1
- package/dist/lib/interf-scaffold.js +54 -21
- package/dist/lib/interf-workflow-package.d.ts +18 -1
- package/dist/lib/interf-workflow-package.js +164 -23
- package/dist/lib/interf.d.ts +1 -2
- package/dist/lib/interf.js +1 -2
- package/dist/lib/local-workflows.d.ts +10 -5
- package/dist/lib/local-workflows.js +208 -97
- package/dist/lib/logger.d.ts +0 -1
- package/dist/lib/logger.js +0 -1
- package/dist/lib/obsidian.d.ts +0 -1
- package/dist/lib/obsidian.js +0 -1
- package/dist/lib/parse.d.ts +0 -1
- package/dist/lib/parse.js +0 -1
- package/dist/lib/registry.d.ts +0 -1
- package/dist/lib/registry.js +0 -1
- package/dist/lib/runtime-acceptance.d.ts +0 -1
- package/dist/lib/runtime-acceptance.js +1 -2
- package/dist/lib/runtime-contracts.d.ts +0 -1
- package/dist/lib/runtime-contracts.js +14 -8
- package/dist/lib/runtime-paths.d.ts +0 -1
- package/dist/lib/runtime-paths.js +5 -10
- package/dist/lib/runtime-prompt.d.ts +0 -1
- package/dist/lib/runtime-prompt.js +8 -23
- package/dist/lib/runtime-reconcile.d.ts +0 -1
- package/dist/lib/runtime-reconcile.js +7 -3
- package/dist/lib/runtime-runs.d.ts +0 -1
- package/dist/lib/runtime-runs.js +4 -5
- package/dist/lib/runtime-types.d.ts +0 -1
- package/dist/lib/runtime-types.js +0 -1
- package/dist/lib/runtime.d.ts +0 -1
- package/dist/lib/runtime.js +0 -1
- package/dist/lib/schema.d.ts +356 -51
- package/dist/lib/schema.js +189 -54
- package/dist/lib/source-config.d.ts +17 -8
- package/dist/lib/source-config.js +125 -11
- package/dist/lib/state-artifacts.d.ts +0 -1
- package/dist/lib/state-artifacts.js +0 -1
- package/dist/lib/state-health.d.ts +0 -1
- package/dist/lib/state-health.js +2 -3
- package/dist/lib/state-io.d.ts +1 -1
- package/dist/lib/state-io.js +9 -10
- package/dist/lib/state-paths.d.ts +0 -1
- package/dist/lib/state-paths.js +5 -11
- package/dist/lib/state-view.d.ts +0 -1
- package/dist/lib/state-view.js +7 -8
- package/dist/lib/state.d.ts +0 -1
- package/dist/lib/state.js +0 -1
- package/dist/lib/summarize-plan.d.ts +0 -1
- package/dist/lib/summarize-plan.js +3 -3
- package/dist/lib/test-execution.d.ts +14 -0
- package/dist/lib/{benchmark-execution.js → test-execution.js} +122 -120
- package/dist/lib/test-matrices.d.ts +90 -0
- package/dist/lib/test-matrices.js +96 -0
- package/dist/lib/test-paths.d.ts +12 -0
- package/dist/lib/test-paths.js +44 -0
- package/dist/lib/test-profile-presets.d.ts +57 -0
- package/dist/lib/test-profile-presets.js +50 -0
- package/dist/lib/test-sandbox.d.ts +11 -0
- package/dist/lib/{benchmark-sandbox.js → test-sandbox.js} +18 -13
- package/dist/lib/test-specs.d.ts +7 -0
- package/dist/lib/test-specs.js +114 -0
- package/dist/lib/test-targets.d.ts +5 -0
- package/dist/lib/test-targets.js +38 -0
- package/dist/lib/test-types.d.ts +17 -0
- package/dist/lib/test-types.js +1 -0
- package/dist/lib/test.d.ts +4 -0
- package/dist/lib/test.js +3 -0
- package/dist/lib/user-config.d.ts +0 -1
- package/dist/lib/user-config.js +0 -1
- package/dist/lib/util.d.ts +0 -2
- package/dist/lib/util.js +0 -2
- package/dist/lib/validate-helpers.d.ts +0 -1
- package/dist/lib/validate-helpers.js +0 -1
- package/dist/lib/validate-workspace.d.ts +0 -1
- package/dist/lib/validate-workspace.js +34 -25
- package/dist/lib/validate.d.ts +0 -1
- package/dist/lib/validate.js +55 -9
- package/dist/lib/workflow-abi.d.ts +138 -0
- package/dist/lib/workflow-abi.js +181 -0
- package/dist/lib/workflow-definitions.d.ts +26 -5
- package/dist/lib/workflow-definitions.js +105 -168
- package/dist/lib/workflow-helpers.d.ts +1 -2
- package/dist/lib/workflow-helpers.js +32 -21
- package/dist/lib/workflow-improvement.d.ts +22 -0
- package/dist/lib/workflow-improvement.js +396 -0
- package/dist/lib/workflow-review-paths.d.ts +10 -0
- package/dist/lib/workflow-review-paths.js +27 -0
- package/dist/lib/workflow-stage-runner.d.ts +1 -1
- package/dist/lib/workflow-stage-runner.js +4 -1
- package/dist/lib/workflows.d.ts +1 -2
- package/dist/lib/workflows.js +1 -2
- package/dist/lib/workspace-compile.d.ts +0 -1
- package/dist/lib/workspace-compile.js +146 -109
- package/dist/lib/workspace-home.d.ts +5 -0
- package/dist/lib/workspace-home.js +32 -0
- package/dist/lib/workspace-layout.d.ts +2 -0
- package/dist/lib/workspace-layout.js +60 -0
- package/dist/lib/workspace-paths.d.ts +41 -0
- package/dist/lib/workspace-paths.js +107 -0
- package/dist/lib/workspace-raw.d.ts +20 -2
- package/dist/lib/workspace-raw.js +6 -8
- package/dist/lib/workspace-reset.d.ts +0 -1
- package/dist/lib/workspace-reset.js +27 -5
- package/dist/lib/workspace-schema.d.ts +1 -10
- package/dist/lib/workspace-schema.js +16 -74
- package/package.json +17 -16
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js.map +0 -1
- package/dist/commands/compile.d.ts.map +0 -1
- package/dist/commands/compile.js.map +0 -1
- package/dist/commands/create-workflow-wizard.d.ts.map +0 -1
- package/dist/commands/create-workflow-wizard.js.map +0 -1
- package/dist/commands/create.d.ts.map +0 -1
- package/dist/commands/create.js.map +0 -1
- package/dist/commands/default.d.ts.map +0 -1
- package/dist/commands/default.js.map +0 -1
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/executor-flow.d.ts.map +0 -1
- package/dist/commands/executor-flow.js.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/list.d.ts.map +0 -1
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/reset.d.ts.map +0 -1
- package/dist/commands/reset.js.map +0 -1
- package/dist/commands/source-config-wizard.d.ts.map +0 -1
- package/dist/commands/source-config-wizard.js.map +0 -1
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/test-flow.d.ts.map +0 -1
- package/dist/commands/test-flow.js.map +0 -1
- package/dist/commands/test.d.ts.map +0 -1
- package/dist/commands/test.js.map +0 -1
- package/dist/commands/verify.d.ts.map +0 -1
- package/dist/commands/verify.js.map +0 -1
- package/dist/commands/workspace-flow.d.ts.map +0 -1
- package/dist/commands/workspace-flow.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/agent-args.d.ts.map +0 -1
- package/dist/lib/agent-args.js.map +0 -1
- package/dist/lib/agent-constants.d.ts.map +0 -1
- package/dist/lib/agent-constants.js.map +0 -1
- package/dist/lib/agent-detection.d.ts.map +0 -1
- package/dist/lib/agent-detection.js.map +0 -1
- package/dist/lib/agent-execution.d.ts.map +0 -1
- package/dist/lib/agent-execution.js.map +0 -1
- package/dist/lib/agent-logs.d.ts.map +0 -1
- package/dist/lib/agent-logs.js.map +0 -1
- package/dist/lib/agent-preflight.d.ts.map +0 -1
- package/dist/lib/agent-preflight.js.map +0 -1
- package/dist/lib/agent-render.d.ts.map +0 -1
- package/dist/lib/agent-render.js.map +0 -1
- package/dist/lib/agent-shells.d.ts.map +0 -1
- package/dist/lib/agent-shells.js.map +0 -1
- package/dist/lib/agent-skills.d.ts +0 -21
- package/dist/lib/agent-skills.d.ts.map +0 -1
- package/dist/lib/agent-skills.js +0 -215
- package/dist/lib/agent-skills.js.map +0 -1
- package/dist/lib/agent-status.d.ts.map +0 -1
- package/dist/lib/agent-status.js.map +0 -1
- package/dist/lib/agent-types.d.ts.map +0 -1
- package/dist/lib/agent-types.js.map +0 -1
- package/dist/lib/agents.d.ts.map +0 -1
- package/dist/lib/agents.js.map +0 -1
- package/dist/lib/benchmark-execution.d.ts +0 -13
- package/dist/lib/benchmark-execution.d.ts.map +0 -1
- package/dist/lib/benchmark-execution.js.map +0 -1
- package/dist/lib/benchmark-paths.d.ts +0 -13
- package/dist/lib/benchmark-paths.d.ts.map +0 -1
- package/dist/lib/benchmark-paths.js +0 -44
- package/dist/lib/benchmark-paths.js.map +0 -1
- package/dist/lib/benchmark-sandbox.d.ts +0 -12
- package/dist/lib/benchmark-sandbox.d.ts.map +0 -1
- package/dist/lib/benchmark-sandbox.js.map +0 -1
- package/dist/lib/benchmark-specs.d.ts +0 -8
- package/dist/lib/benchmark-specs.d.ts.map +0 -1
- package/dist/lib/benchmark-specs.js +0 -115
- package/dist/lib/benchmark-specs.js.map +0 -1
- package/dist/lib/benchmark-targets.d.ts +0 -5
- package/dist/lib/benchmark-targets.d.ts.map +0 -1
- package/dist/lib/benchmark-targets.js +0 -38
- package/dist/lib/benchmark-targets.js.map +0 -1
- package/dist/lib/benchmark-types.d.ts +0 -18
- package/dist/lib/benchmark-types.d.ts.map +0 -1
- package/dist/lib/benchmark-types.js +0 -2
- package/dist/lib/benchmark-types.js.map +0 -1
- package/dist/lib/benchmark.d.ts +0 -5
- package/dist/lib/benchmark.d.ts.map +0 -1
- package/dist/lib/benchmark.js +0 -4
- package/dist/lib/benchmark.js.map +0 -1
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/config.js.map +0 -1
- package/dist/lib/discovery.d.ts.map +0 -1
- package/dist/lib/discovery.js.map +0 -1
- package/dist/lib/eval-packs.d.ts +0 -158
- package/dist/lib/eval-packs.d.ts.map +0 -1
- package/dist/lib/eval-packs.js +0 -149
- package/dist/lib/eval-packs.js.map +0 -1
- package/dist/lib/execution-profile.d.ts.map +0 -1
- package/dist/lib/execution-profile.js.map +0 -1
- package/dist/lib/executors.d.ts.map +0 -1
- package/dist/lib/executors.js.map +0 -1
- package/dist/lib/filesystem.d.ts.map +0 -1
- package/dist/lib/filesystem.js.map +0 -1
- package/dist/lib/interf-bootstrap.d.ts.map +0 -1
- package/dist/lib/interf-bootstrap.js.map +0 -1
- package/dist/lib/interf-detect.d.ts.map +0 -1
- package/dist/lib/interf-detect.js.map +0 -1
- package/dist/lib/interf-scaffold.d.ts.map +0 -1
- package/dist/lib/interf-scaffold.js.map +0 -1
- package/dist/lib/interf-workflow-package.d.ts.map +0 -1
- package/dist/lib/interf-workflow-package.js.map +0 -1
- package/dist/lib/interf.d.ts.map +0 -1
- package/dist/lib/interf.js.map +0 -1
- package/dist/lib/local-workflows.d.ts.map +0 -1
- package/dist/lib/local-workflows.js.map +0 -1
- package/dist/lib/logger.d.ts.map +0 -1
- package/dist/lib/logger.js.map +0 -1
- package/dist/lib/obsidian.d.ts.map +0 -1
- package/dist/lib/obsidian.js.map +0 -1
- package/dist/lib/parse.d.ts.map +0 -1
- package/dist/lib/parse.js.map +0 -1
- package/dist/lib/registry.d.ts.map +0 -1
- package/dist/lib/registry.js.map +0 -1
- package/dist/lib/runtime-acceptance.d.ts.map +0 -1
- package/dist/lib/runtime-acceptance.js.map +0 -1
- package/dist/lib/runtime-contracts.d.ts.map +0 -1
- package/dist/lib/runtime-contracts.js.map +0 -1
- package/dist/lib/runtime-paths.d.ts.map +0 -1
- package/dist/lib/runtime-paths.js.map +0 -1
- package/dist/lib/runtime-prompt.d.ts.map +0 -1
- package/dist/lib/runtime-prompt.js.map +0 -1
- package/dist/lib/runtime-reconcile.d.ts.map +0 -1
- package/dist/lib/runtime-reconcile.js.map +0 -1
- package/dist/lib/runtime-runs.d.ts.map +0 -1
- package/dist/lib/runtime-runs.js.map +0 -1
- package/dist/lib/runtime-types.d.ts.map +0 -1
- package/dist/lib/runtime-types.js.map +0 -1
- package/dist/lib/runtime.d.ts.map +0 -1
- package/dist/lib/runtime.js.map +0 -1
- package/dist/lib/schema.d.ts.map +0 -1
- package/dist/lib/schema.js.map +0 -1
- package/dist/lib/source-config.d.ts.map +0 -1
- package/dist/lib/source-config.js.map +0 -1
- package/dist/lib/state-artifacts.d.ts.map +0 -1
- package/dist/lib/state-artifacts.js.map +0 -1
- package/dist/lib/state-health.d.ts.map +0 -1
- package/dist/lib/state-health.js.map +0 -1
- package/dist/lib/state-io.d.ts.map +0 -1
- package/dist/lib/state-io.js.map +0 -1
- package/dist/lib/state-paths.d.ts.map +0 -1
- package/dist/lib/state-paths.js.map +0 -1
- package/dist/lib/state-view.d.ts.map +0 -1
- package/dist/lib/state-view.js.map +0 -1
- package/dist/lib/state.d.ts.map +0 -1
- package/dist/lib/state.js.map +0 -1
- package/dist/lib/summarize-plan.d.ts.map +0 -1
- package/dist/lib/summarize-plan.js.map +0 -1
- package/dist/lib/user-config.d.ts.map +0 -1
- package/dist/lib/user-config.js.map +0 -1
- package/dist/lib/util.d.ts.map +0 -1
- package/dist/lib/util.js.map +0 -1
- package/dist/lib/validate-helpers.d.ts.map +0 -1
- package/dist/lib/validate-helpers.js.map +0 -1
- package/dist/lib/validate-workspace.d.ts.map +0 -1
- package/dist/lib/validate-workspace.js.map +0 -1
- package/dist/lib/validate.d.ts.map +0 -1
- package/dist/lib/validate.js.map +0 -1
- package/dist/lib/workflow-definitions.d.ts.map +0 -1
- package/dist/lib/workflow-definitions.js.map +0 -1
- package/dist/lib/workflow-helpers.d.ts.map +0 -1
- package/dist/lib/workflow-helpers.js.map +0 -1
- package/dist/lib/workflow-stage-runner.d.ts.map +0 -1
- package/dist/lib/workflow-stage-runner.js.map +0 -1
- package/dist/lib/workflow-starter-docs.d.ts +0 -7
- package/dist/lib/workflow-starter-docs.d.ts.map +0 -1
- package/dist/lib/workflow-starter-docs.js +0 -3
- package/dist/lib/workflow-starter-docs.js.map +0 -1
- package/dist/lib/workflows.d.ts.map +0 -1
- package/dist/lib/workflows.js.map +0 -1
- package/dist/lib/workspace-compile.d.ts.map +0 -1
- package/dist/lib/workspace-compile.js.map +0 -1
- package/dist/lib/workspace-docs.d.ts +0 -3
- package/dist/lib/workspace-docs.d.ts.map +0 -1
- package/dist/lib/workspace-docs.js +0 -82
- package/dist/lib/workspace-docs.js.map +0 -1
- package/dist/lib/workspace-raw.d.ts.map +0 -1
- package/dist/lib/workspace-raw.js.map +0 -1
- package/dist/lib/workspace-reset.d.ts.map +0 -1
- package/dist/lib/workspace-reset.js.map +0 -1
- package/dist/lib/workspace-schema.d.ts.map +0 -1
- package/dist/lib/workspace-schema.js.map +0 -1
- package/skills/benchmark/SKILL.md +0 -122
- package/skills/workflow/create/SKILL.md +0 -141
- package/skills/workspace/shape/SKILL.md +0 -15
- package/skills/workspace/structure/SKILL.md +0 -15
- package/skills/workspace/summarize/SKILL.md +0 -15
- package/templates/workspace/README.md +0 -24
- package/templates/workspace/interfignore +0 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare function extractAgentFailureStatus(event: Record<string, unknown>): string | null;
|
|
2
2
|
export declare function classifyTerminalVisibleStatus(text: string | null | undefined): "done" | "failure" | null;
|
|
3
3
|
export declare function hasAgentStalled(lastActivityAt: number, now: number, stallTimeoutMs: number | null | undefined): boolean;
|
|
4
|
-
//# sourceMappingURL=agent-status.d.ts.map
|
package/dist/lib/agent-status.js
CHANGED
package/dist/lib/agent-types.js
CHANGED
package/dist/lib/agents.d.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import type { Agent } from "./agent-types.js";
|
|
2
|
-
export { refreshInterfSkills, inspectInterfSkills, ensureRequiredSkill, extractRequiredSkill, } from "./agent-skills.js";
|
|
3
|
-
export type { InterfSkillHealth } from "./agent-skills.js";
|
|
4
1
|
export type { Agent, AgentAutomationReadiness, AgentPreflightOptions, AgentPreflightResult, SpawnAgentOptions, } from "./agent-types.js";
|
|
5
2
|
export { detectAgents, supportsAutomatedRuns, resolveAgent, } from "./agent-detection.js";
|
|
6
3
|
export { buildAgentPreflightPrompt, runAgentPreflight, ensureAgentAutomatedRunReady, } from "./agent-preflight.js";
|
|
7
4
|
export { spawnAgent, } from "./agent-execution.js";
|
|
8
5
|
export { buildAgentArgs } from "./agent-args.js";
|
|
9
6
|
export { extractAgentFailureStatus, classifyTerminalVisibleStatus, hasAgentStalled, } from "./agent-status.js";
|
|
10
|
-
export declare function installSkills(agents?: Agent[]): {
|
|
11
|
-
agent: string;
|
|
12
|
-
skill: string;
|
|
13
|
-
success: boolean;
|
|
14
|
-
}[];
|
|
15
|
-
//# sourceMappingURL=agents.d.ts.map
|
package/dist/lib/agents.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import { installSkills as installSkillsCore } from "./agent-skills.js";
|
|
2
|
-
import { detectAgents } from "./agent-detection.js";
|
|
3
|
-
// Re-export skill functions so existing imports from "./agents.js" still resolve.
|
|
4
|
-
export { refreshInterfSkills, inspectInterfSkills, ensureRequiredSkill, extractRequiredSkill, } from "./agent-skills.js";
|
|
5
1
|
export { detectAgents, supportsAutomatedRuns, resolveAgent, } from "./agent-detection.js";
|
|
6
2
|
export { buildAgentPreflightPrompt, runAgentPreflight, ensureAgentAutomatedRunReady, } from "./agent-preflight.js";
|
|
7
3
|
export { spawnAgent, } from "./agent-execution.js";
|
|
8
4
|
export { buildAgentArgs } from "./agent-args.js";
|
|
9
5
|
export { extractAgentFailureStatus, classifyTerminalVisibleStatus, hasAgentStalled, } from "./agent-status.js";
|
|
10
|
-
// Keep the legacy facade shape so existing "./agents.js" imports stay stable.
|
|
11
|
-
export function installSkills(agents) {
|
|
12
|
-
return installSkillsCore(agents ?? detectAgents());
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CHART_APPROXIMATION_NOTES: readonly ["When a chart-derived value is approximate, use a bounded range instead of a pseudo-exact number.", "Match the granularity of the visible axis labels or bands. Do not invent finer precision than the chart supports.", "Keep the answer inside the visible tick band unless the chart supports a tighter bound.", "Use an upper-half or lower-half band only when the mark clearly sits there.", "If a mark touches or nearly touches a labeled gridline, anchor the answer at that gridline or the immediately adjacent half-band.", "Do not widen a chart-derived range across multiple visible bands unless the chart genuinely supports that uncertainty."];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const CHART_APPROXIMATION_NOTES = [
|
|
2
|
+
"When a chart-derived value is approximate, use a bounded range instead of a pseudo-exact number.",
|
|
3
|
+
"Match the granularity of the visible axis labels or bands. Do not invent finer precision than the chart supports.",
|
|
4
|
+
"Keep the answer inside the visible tick band unless the chart supports a tighter bound.",
|
|
5
|
+
"Use an upper-half or lower-half band only when the mark clearly sits there.",
|
|
6
|
+
"If a mark touches or nearly touches a labeled gridline, anchor the answer at that gridline or the immediately adjacent half-band.",
|
|
7
|
+
"Do not widen a chart-derived range across multiple visible bands unless the chart genuinely supports that uncertainty.",
|
|
8
|
+
];
|
package/dist/lib/config.d.ts
CHANGED
package/dist/lib/config.js
CHANGED
|
@@ -5,11 +5,6 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
5
5
|
const __dirname = dirname(__filename);
|
|
6
6
|
// Package root (dist/lib/ → package root)
|
|
7
7
|
export const PACKAGE_ROOT = join(__dirname, "..", "..");
|
|
8
|
-
// Bundled skills shipped with the package
|
|
9
|
-
export const SKILLS_DIR = join(PACKAGE_ROOT, "skills");
|
|
10
|
-
// Workspace helper files
|
|
11
|
-
export const WORKSPACE_INTERFIGNORE = join(PACKAGE_ROOT, "templates", "workspace", "interfignore");
|
|
12
8
|
// User config
|
|
13
9
|
export const INTERF_HOME = join(homedir(), ".interf");
|
|
14
10
|
export const REGISTRY_PATH = join(INTERF_HOME, "registry.json");
|
|
15
|
-
//# sourceMappingURL=config.js.map
|
package/dist/lib/discovery.d.ts
CHANGED
package/dist/lib/discovery.js
CHANGED
|
@@ -15,4 +15,3 @@ export declare function applyInternalAcceptanceExecutionProfileDefaults(agent: A
|
|
|
15
15
|
export declare function hasWorkflowExecutionProfile(profile: WorkflowExecutionProfile | null | undefined): boolean;
|
|
16
16
|
export declare function formatWorkflowExecutionProfile(profile: WorkflowExecutionProfile | null | undefined): string | null;
|
|
17
17
|
export {};
|
|
18
|
-
//# sourceMappingURL=execution-profile.d.ts.map
|
package/dist/lib/executors.d.ts
CHANGED
package/dist/lib/executors.js
CHANGED
package/dist/lib/filesystem.d.ts
CHANGED
package/dist/lib/filesystem.js
CHANGED
|
@@ -8,7 +8,11 @@ export function refreshWorkspaceBootstrapGuidance(dirPath) {
|
|
|
8
8
|
return false;
|
|
9
9
|
const workspaceName = config.name ?? basename(dirPath);
|
|
10
10
|
const workflowId = config.workflow ?? "interf";
|
|
11
|
+
const workflowOriginSelected = config.workflow_origin?.selected ?? workflowId;
|
|
12
|
+
const workflowLocalDraft = config.workflow_origin?.local_draft === true;
|
|
11
13
|
const about = typeof config.about === "string" && config.about.length > 0 ? config.about : undefined;
|
|
12
|
-
return projectWorkspaceQueryShell(dirPath, workspaceName, workflowId, about
|
|
14
|
+
return projectWorkspaceQueryShell(dirPath, workspaceName, workflowId, about, {
|
|
15
|
+
workflowOriginSelected,
|
|
16
|
+
workflowLocalDraft,
|
|
17
|
+
});
|
|
13
18
|
}
|
|
14
|
-
//# sourceMappingURL=interf-bootstrap.js.map
|
|
@@ -8,9 +8,10 @@ export interface ResolvedWorkspace {
|
|
|
8
8
|
export declare const INTERF_CONTAINER_NAME = "interf";
|
|
9
9
|
export declare const WORKSPACE_CONTAINER_NAME = "workspaces";
|
|
10
10
|
export declare const WORKFLOW_CONTAINER_NAME = "workflows";
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const TEST_CONTAINER_NAME = "tests";
|
|
12
12
|
export declare const INTERF_CONFIG_FILE = "interf.json";
|
|
13
13
|
export declare const WORKFLOW_PACKAGE_DIR = "workflow";
|
|
14
|
+
export declare function prepareWorkspaceLayout(dirPath: string): boolean;
|
|
14
15
|
export declare function readInterfConfig(dirPath: string): InterfConfig | null;
|
|
15
16
|
export declare function hasSourceFolderInput(config: InterfConfig | null | undefined): config is InterfConfig & {
|
|
16
17
|
source: {
|
|
@@ -31,4 +32,3 @@ export declare function listWorkspacesForSourceFolder(sourcePath: string): Array
|
|
|
31
32
|
export declare function assertWorkspaceContainer(sourcePath: string): string;
|
|
32
33
|
export declare function assertWritableTargetDir(dirPath: string, label: string): void;
|
|
33
34
|
export declare function assertWorkspaceName(name: string, label: string): void;
|
|
34
|
-
//# sourceMappingURL=interf-detect.d.ts.map
|
|
@@ -2,15 +2,23 @@ import { existsSync, readdirSync, statSync, } from "node:fs";
|
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
3
|
import { warnInterf } from "./logger.js";
|
|
4
4
|
import { readJsonFileWithSchema } from "./parse.js";
|
|
5
|
+
import { resolveSourceControlPathForWorkspace, workspaceInterfConfigPath, } from "./workspace-paths.js";
|
|
6
|
+
import { normalizeLegacyWorkspaceLayout, workspaceNeedsLegacyLayoutNormalization, } from "./workspace-layout.js";
|
|
5
7
|
import { InterfConfigSchema, } from "./schema.js";
|
|
6
8
|
export const INTERF_CONTAINER_NAME = "interf";
|
|
7
9
|
export const WORKSPACE_CONTAINER_NAME = "workspaces";
|
|
8
10
|
export const WORKFLOW_CONTAINER_NAME = "workflows";
|
|
9
|
-
export const
|
|
11
|
+
export const TEST_CONTAINER_NAME = "tests";
|
|
10
12
|
export const INTERF_CONFIG_FILE = "interf.json";
|
|
11
13
|
export const WORKFLOW_PACKAGE_DIR = "workflow";
|
|
14
|
+
export function prepareWorkspaceLayout(dirPath) {
|
|
15
|
+
if (!workspaceNeedsLegacyLayoutNormalization(dirPath)) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return normalizeLegacyWorkspaceLayout(dirPath);
|
|
19
|
+
}
|
|
12
20
|
export function readInterfConfig(dirPath) {
|
|
13
|
-
const configPath =
|
|
21
|
+
const configPath = workspaceInterfConfigPath(dirPath);
|
|
14
22
|
if (!existsSync(configPath))
|
|
15
23
|
return null;
|
|
16
24
|
return readJsonFileWithSchema(configPath, "Interf config", InterfConfigSchema);
|
|
@@ -19,6 +27,7 @@ export function hasSourceFolderInput(config) {
|
|
|
19
27
|
return typeof config?.source?.path === "string" && config.source.path.length > 0;
|
|
20
28
|
}
|
|
21
29
|
export function detectInterf(cwd) {
|
|
30
|
+
prepareWorkspaceLayout(cwd);
|
|
22
31
|
const config = readInterfConfig(cwd);
|
|
23
32
|
if (config)
|
|
24
33
|
return { path: cwd, config };
|
|
@@ -34,14 +43,21 @@ export function resolveWorkspace(cwd) {
|
|
|
34
43
|
config: detected.config,
|
|
35
44
|
};
|
|
36
45
|
}
|
|
37
|
-
export function resolveSourceFolderPath(workspacePath, config =
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
export function resolveSourceFolderPath(workspacePath, config = null) {
|
|
47
|
+
prepareWorkspaceLayout(workspacePath);
|
|
48
|
+
const resolvedConfig = config ?? readInterfConfig(workspacePath);
|
|
49
|
+
if (hasSourceFolderInput(resolvedConfig)) {
|
|
50
|
+
return resolve(workspacePath, resolvedConfig.source.path);
|
|
40
51
|
}
|
|
41
52
|
return resolve(workspacePath, "raw");
|
|
42
53
|
}
|
|
43
54
|
export function resolveSourceControlPath(workspacePath) {
|
|
44
|
-
|
|
55
|
+
prepareWorkspaceLayout(workspacePath);
|
|
56
|
+
const config = readInterfConfig(workspacePath);
|
|
57
|
+
if (typeof config?.source?.control_path === "string" && config.source.control_path.length > 0) {
|
|
58
|
+
return resolve(workspacePath, config.source.control_path);
|
|
59
|
+
}
|
|
60
|
+
return resolveSourceControlPathForWorkspace(workspacePath);
|
|
45
61
|
}
|
|
46
62
|
function listWorkspaceEntries(containerPath) {
|
|
47
63
|
if (!existsSync(containerPath))
|
|
@@ -66,6 +82,7 @@ function listWorkspaceEntries(containerPath) {
|
|
|
66
82
|
}
|
|
67
83
|
})
|
|
68
84
|
.map((entryPath) => {
|
|
85
|
+
prepareWorkspaceLayout(entryPath);
|
|
69
86
|
const config = readInterfConfig(entryPath);
|
|
70
87
|
return config ? { path: entryPath, config } : null;
|
|
71
88
|
})
|
|
@@ -87,7 +104,7 @@ export function assertWorkspaceContainer(sourcePath) {
|
|
|
87
104
|
const entryPath = join(interfRoot, entry);
|
|
88
105
|
if (entry === WORKSPACE_CONTAINER_NAME ||
|
|
89
106
|
entry === WORKFLOW_CONTAINER_NAME ||
|
|
90
|
-
entry ===
|
|
107
|
+
entry === TEST_CONTAINER_NAME) {
|
|
91
108
|
try {
|
|
92
109
|
return !statSync(entryPath).isDirectory();
|
|
93
110
|
}
|
|
@@ -122,6 +139,7 @@ export function assertWorkspaceContainer(sourcePath) {
|
|
|
122
139
|
warnInterf(`Warning: failed to inspect Interf entry at ${entryPath}: ${error instanceof Error ? error.message : String(error)}`);
|
|
123
140
|
return true;
|
|
124
141
|
}
|
|
142
|
+
prepareWorkspaceLayout(entryPath);
|
|
125
143
|
return !readInterfConfig(entryPath);
|
|
126
144
|
});
|
|
127
145
|
if (unexpectedEntries.length > 0) {
|
|
@@ -145,4 +163,3 @@ export function assertWorkspaceName(name, label) {
|
|
|
145
163
|
throw new Error(`${label} name must be a safe slug with lowercase letters, numbers, and dashes only: ${name}`);
|
|
146
164
|
}
|
|
147
165
|
}
|
|
148
|
-
//# sourceMappingURL=interf-detect.js.map
|
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mkdirSync, writeFileSync, } from "node:fs";
|
|
2
2
|
import { basename, join } from "node:path";
|
|
3
|
-
import { WORKSPACE_INTERFIGNORE } from "./config.js";
|
|
4
3
|
import { getWorkspaceWorkflow } from "./workflow-definitions.js";
|
|
5
4
|
import { refreshWorkspaceArtifacts, saveState, initWorkspaceState, } from "./state.js";
|
|
5
|
+
import { saveEmptyWorkspaceInventory } from "./state-io.js";
|
|
6
6
|
import { writeObsidianDefaults } from "./obsidian.js";
|
|
7
|
-
import { assertWorkspaceContainer, assertWritableTargetDir, assertWorkspaceName,
|
|
7
|
+
import { assertWorkspaceContainer, assertWritableTargetDir, assertWorkspaceName, } from "./interf-detect.js";
|
|
8
8
|
import { refreshWorkspaceBootstrapGuidance } from "./interf-bootstrap.js";
|
|
9
|
-
import {
|
|
9
|
+
import { seedWorkspaceWorkflowPackage } from "./interf-workflow-package.js";
|
|
10
10
|
import { syncWorkspaceRawSnapshot } from "./workspace-raw.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
import { findSourceWorkspaceConfig, loadSourceFolderConfig, saveWorkspaceInterfConfig, } from "./source-config.js";
|
|
12
|
+
import { defaultControlPathForWorkspace } from "./workspace-paths.js";
|
|
13
|
+
import { renderUncompiledWorkspaceHome } from "./workspace-home.js";
|
|
14
|
+
const DEFAULT_INTERFIGNORE = [
|
|
15
|
+
".claude/",
|
|
16
|
+
".codex/",
|
|
17
|
+
".agents/",
|
|
18
|
+
".cursor/",
|
|
19
|
+
".interf/tests/",
|
|
20
|
+
".interf/tests/targets/sandboxes/",
|
|
21
|
+
".interf/runtime/",
|
|
22
|
+
".obsidian/",
|
|
23
|
+
"",
|
|
24
|
+
].join("\n");
|
|
14
25
|
export function createWorkspace(name, sourcePath, workflowId = "interf", about) {
|
|
15
26
|
assertWorkspaceName(name, "Workspace");
|
|
16
27
|
const containerPath = assertWorkspaceContainer(sourcePath);
|
|
@@ -18,33 +29,56 @@ export function createWorkspace(name, sourcePath, workflowId = "interf", about)
|
|
|
18
29
|
const workspacePath = join(containerPath, name);
|
|
19
30
|
assertWritableTargetDir(workspacePath, "Workspace");
|
|
20
31
|
mkdirSync(workspacePath, { recursive: true });
|
|
32
|
+
const savedWorkspace = findSourceWorkspaceConfig(loadSourceFolderConfig(sourcePath), name);
|
|
21
33
|
const selectedWorkflow = getWorkspaceWorkflow(workflowId, { sourcePath });
|
|
22
|
-
|
|
34
|
+
const resolvedAbout = about ?? savedWorkspace?.about;
|
|
35
|
+
saveWorkspaceInterfConfig(workspacePath, {
|
|
23
36
|
type: "workspace",
|
|
24
37
|
name,
|
|
25
|
-
...(
|
|
38
|
+
...(resolvedAbout ? { about: resolvedAbout } : {}),
|
|
26
39
|
workflow: selectedWorkflow.id,
|
|
40
|
+
...(typeof savedWorkspace?.max_attempts === "number"
|
|
41
|
+
? { max_attempts: savedWorkspace.max_attempts }
|
|
42
|
+
: {}),
|
|
43
|
+
...(typeof savedWorkspace?.max_loops === "number"
|
|
44
|
+
? { max_loops: savedWorkspace.max_loops }
|
|
45
|
+
: {}),
|
|
46
|
+
checks: savedWorkspace?.checks ?? [],
|
|
47
|
+
workflow_origin: {
|
|
48
|
+
selected: selectedWorkflow.id,
|
|
49
|
+
local_draft: false,
|
|
50
|
+
},
|
|
27
51
|
source: {
|
|
28
52
|
path: "./raw",
|
|
53
|
+
control_path: defaultControlPathForWorkspace(workspacePath),
|
|
29
54
|
},
|
|
30
55
|
});
|
|
31
56
|
mkdirSync(join(workspacePath, "raw"), { recursive: true });
|
|
32
57
|
syncWorkspaceRawSnapshot(workspacePath, sourcePath);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
58
|
+
writeFileSync(join(workspacePath, ".interfignore"), DEFAULT_INTERFIGNORE);
|
|
59
|
+
seedWorkspaceWorkflowPackage({
|
|
60
|
+
workspacePath,
|
|
61
|
+
sourcePath,
|
|
62
|
+
workflowId: selectedWorkflow.id,
|
|
63
|
+
});
|
|
37
64
|
refreshWorkspaceBootstrapGuidance(workspacePath);
|
|
38
|
-
writeFileSync(join(workspacePath, "home.md"),
|
|
39
|
-
|
|
40
|
-
"",
|
|
41
|
-
"
|
|
42
|
-
|
|
65
|
+
writeFileSync(join(workspacePath, "home.md"), renderUncompiledWorkspaceHome(name, about));
|
|
66
|
+
writeFileSync(join(workspacePath, ".gitignore"), [
|
|
67
|
+
"raw/",
|
|
68
|
+
"summaries/",
|
|
69
|
+
"knowledge/",
|
|
70
|
+
".claude/",
|
|
71
|
+
".codex/",
|
|
72
|
+
".agents/",
|
|
73
|
+
".cursor/",
|
|
74
|
+
".interf/tests/",
|
|
75
|
+
".interf/tests/targets/sandboxes/",
|
|
76
|
+
".interf/runtime/",
|
|
77
|
+
".obsidian/",
|
|
43
78
|
"",
|
|
44
79
|
].join("\n"));
|
|
45
|
-
writeFileSync(join(workspacePath, ".gitignore"), "raw/\nsummaries/\nknowledge/\n.interf/\n.obsidian/\n");
|
|
46
80
|
saveState(workspacePath, initWorkspaceState());
|
|
47
|
-
|
|
81
|
+
saveEmptyWorkspaceInventory(workspacePath);
|
|
48
82
|
refreshWorkspaceArtifacts(workspacePath, { ensureViewSpec: true });
|
|
49
83
|
writeObsidianDefaults(workspacePath, "workspace");
|
|
50
84
|
return workspacePath;
|
|
@@ -52,4 +86,3 @@ export function createWorkspace(name, sourcePath, workflowId = "interf", about)
|
|
|
52
86
|
export function defaultWorkspaceNameForSource(sourcePath) {
|
|
53
87
|
return basename(sourcePath);
|
|
54
88
|
}
|
|
55
|
-
//# sourceMappingURL=interf-scaffold.js.map
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
import { type WorkflowDefinition } from "./workflow-definitions.js";
|
|
2
2
|
export declare function writeWorkspaceWorkflowPackage(workspacePath: string, workflow: WorkflowDefinition<string>): void;
|
|
3
|
-
|
|
3
|
+
export declare function writeWorkflowPackageToDir(workflowDir: string, workflow: WorkflowDefinition<string>, options?: {
|
|
4
|
+
overwrite?: boolean;
|
|
5
|
+
}): void;
|
|
6
|
+
export declare function seedWorkspaceWorkflowPackage(options: {
|
|
7
|
+
workspacePath: string;
|
|
8
|
+
sourcePath: string;
|
|
9
|
+
workflowId: string;
|
|
10
|
+
}): void;
|
|
11
|
+
export declare function createLocalWorkflowPackageFromTemplate(options: {
|
|
12
|
+
sourcePath: string;
|
|
13
|
+
baseWorkflowId: string;
|
|
14
|
+
workflowId: string;
|
|
15
|
+
label: string;
|
|
16
|
+
hint: string;
|
|
17
|
+
summarizeBias: string;
|
|
18
|
+
structureBias: string;
|
|
19
|
+
shapeBias: string;
|
|
20
|
+
}): string;
|