@interf/compiler 0.6.1 → 0.6.4
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 +106 -80
- package/builtin-workflows/interf/README.md +5 -5
- package/builtin-workflows/interf/compile/stages/shape/SKILL.md +4 -4
- package/builtin-workflows/interf/improve/SKILL.md +2 -2
- package/builtin-workflows/interf/use/query/SKILL.md +1 -1
- package/builtin-workflows/interf/workflow.json +6 -6
- package/builtin-workflows/interf/workflow.schema.json +1 -1
- package/dist/bin.js +2 -28
- package/dist/{commands → cli/commands}/check-draft.d.ts +2 -2
- package/dist/{commands → cli/commands}/check-draft.js +16 -16
- package/dist/{commands → cli/commands}/compile-controller.d.ts +3 -3
- package/dist/{commands → cli/commands}/compile-controller.js +37 -35
- package/dist/{commands → cli/commands}/compile.d.ts +2 -2
- package/dist/{commands → cli/commands}/compile.js +15 -11
- package/dist/{commands → cli/commands}/compiled-flow.d.ts +3 -4
- package/dist/{commands → cli/commands}/compiled-flow.js +9 -14
- package/dist/{commands → cli/commands}/create-workflow-wizard.d.ts +3 -3
- package/dist/{commands → cli/commands}/create-workflow-wizard.js +64 -37
- package/dist/{commands → cli/commands}/create.d.ts +1 -1
- package/dist/{commands → cli/commands}/create.js +15 -18
- package/dist/{commands → cli/commands}/dataset-selection.d.ts +1 -1
- package/dist/{commands → cli/commands}/default.js +3 -3
- package/dist/{commands → cli/commands}/doctor.js +5 -6
- package/dist/{commands → cli/commands}/executor-flow.d.ts +1 -1
- package/dist/{commands → cli/commands}/executor-flow.js +13 -16
- package/dist/{commands → cli/commands}/init.d.ts +4 -1
- package/dist/{commands → cli/commands}/init.js +162 -77
- package/dist/{commands → cli/commands}/list.js +6 -6
- package/dist/{commands → cli/commands}/reset.js +4 -4
- package/dist/{commands → cli/commands}/source-config-wizard.d.ts +9 -4
- package/dist/{commands → cli/commands}/source-config-wizard.js +168 -94
- package/dist/{commands → cli/commands}/status.js +20 -11
- package/dist/{commands → cli/commands}/test-flow.d.ts +13 -4
- package/dist/{commands → cli/commands}/test-flow.js +52 -48
- package/dist/cli/commands/test.d.ts +14 -0
- package/dist/{commands → cli/commands}/test.js +40 -24
- package/dist/{commands → cli/commands}/verify.js +4 -4
- package/dist/cli/index.d.ts +21 -0
- package/dist/cli/index.js +33 -0
- package/dist/index.d.ts +22 -11
- package/dist/index.js +15 -6
- package/dist/lib/agent-args.d.ts +1 -4
- package/dist/lib/agent-args.js +1 -52
- package/dist/lib/agent-constants.d.ts +1 -5
- package/dist/lib/agent-constants.js +1 -28
- package/dist/lib/agent-detection.d.ts +1 -7
- package/dist/lib/agent-detection.js +1 -65
- package/dist/lib/agent-execution.d.ts +1 -2
- package/dist/lib/agent-execution.js +1 -243
- package/dist/lib/agent-logs.d.ts +1 -2
- package/dist/lib/agent-logs.js +1 -17
- package/dist/lib/agent-preflight.d.ts +1 -7
- package/dist/lib/agent-preflight.js +1 -77
- package/dist/lib/agent-render.d.ts +1 -8
- package/dist/lib/agent-render.js +1 -218
- package/dist/lib/agent-shells.d.ts +1 -69
- package/dist/lib/agent-shells.js +1 -1021
- package/dist/lib/agent-status.d.ts +1 -3
- package/dist/lib/agent-status.js +1 -58
- package/dist/lib/agent-types.d.ts +1 -30
- package/dist/lib/agent-types.js +1 -1
- package/dist/lib/agents.d.ts +1 -6
- package/dist/lib/agents.js +1 -5
- package/dist/lib/builtin-compiled-workflow.d.ts +1 -38
- package/dist/lib/builtin-compiled-workflow.js +1 -94
- package/dist/lib/chart-guidance.d.ts +1 -1
- package/dist/lib/chart-guidance.js +1 -8
- package/dist/lib/compiled-compile.d.ts +1 -48
- package/dist/lib/compiled-compile.js +1 -255
- package/dist/lib/compiled-paths.d.ts +1 -40
- package/dist/lib/compiled-paths.js +3 -106
- package/dist/lib/compiled-raw.d.ts +1 -49
- package/dist/lib/compiled-raw.js +3 -102
- package/dist/lib/compiled-reset.d.ts +1 -2
- package/dist/lib/compiled-reset.js +3 -72
- package/dist/lib/compiled-schema.d.ts +1 -31
- package/dist/lib/compiled-schema.js +1 -141
- package/dist/lib/discovery.d.ts +1 -7
- package/dist/lib/discovery.js +1 -84
- package/dist/lib/execution-profile.d.ts +1 -17
- package/dist/lib/execution-profile.js +1 -84
- package/dist/lib/executors.d.ts +1 -32
- package/dist/lib/executors.js +1 -43
- package/dist/lib/filesystem.d.ts +1 -2
- package/dist/lib/filesystem.js +1 -55
- package/dist/lib/interf-bootstrap.d.ts +1 -3
- package/dist/lib/interf-bootstrap.js +3 -18
- package/dist/lib/interf-detect.d.ts +1 -33
- package/dist/lib/interf-detect.js +3 -176
- package/dist/lib/interf-scaffold.d.ts +1 -2
- package/dist/lib/interf-scaffold.js +3 -114
- package/dist/lib/interf-workflow-package.d.ts +1 -25
- package/dist/lib/interf-workflow-package.js +1 -342
- package/dist/lib/interf.d.ts +1 -5
- package/dist/lib/interf.js +3 -4
- package/dist/lib/local-workflows.d.ts +1 -54
- package/dist/lib/local-workflows.js +1 -422
- package/dist/lib/logger.d.ts +1 -3
- package/dist/lib/logger.js +1 -10
- package/dist/lib/package-root.d.ts +1 -0
- package/dist/lib/package-root.js +1 -0
- package/dist/lib/parse.d.ts +1 -8
- package/dist/lib/parse.js +1 -145
- package/dist/lib/project-paths.d.ts +1 -11
- package/dist/lib/project-paths.js +3 -32
- package/dist/lib/runtime-acceptance.d.ts +1 -9
- package/dist/lib/runtime-acceptance.js +1 -269
- package/dist/lib/runtime-contracts.d.ts +1 -2
- package/dist/lib/runtime-contracts.js +1 -48
- package/dist/lib/runtime-inventory.d.ts +1 -7
- package/dist/lib/runtime-inventory.js +1 -29
- package/dist/lib/runtime-paths.d.ts +1 -8
- package/dist/lib/runtime-paths.js +1 -26
- package/dist/lib/runtime-prompt.d.ts +1 -2
- package/dist/lib/runtime-prompt.js +1 -48
- package/dist/lib/runtime-reconcile.d.ts +1 -2
- package/dist/lib/runtime-reconcile.js +1 -193
- package/dist/lib/runtime-runs.d.ts +1 -11
- package/dist/lib/runtime-runs.js +1 -262
- package/dist/lib/runtime-types.d.ts +1 -43
- package/dist/lib/runtime-types.js +1 -1
- package/dist/lib/runtime.d.ts +1 -6
- package/dist/lib/runtime.js +1 -5
- package/dist/lib/schema.d.ts +4 -1073
- package/dist/lib/schema.js +6 -542
- package/dist/lib/source-config.d.ts +1 -39
- package/dist/lib/source-config.js +3 -293
- package/dist/lib/state-artifacts.d.ts +1 -8
- package/dist/lib/state-artifacts.js +1 -13
- package/dist/lib/state-health.d.ts +1 -4
- package/dist/lib/state-health.js +1 -132
- package/dist/lib/state-io.d.ts +1 -10
- package/dist/lib/state-io.js +1 -76
- package/dist/lib/state-paths.d.ts +1 -4
- package/dist/lib/state-paths.js +1 -13
- package/dist/lib/state-view.d.ts +1 -4
- package/dist/lib/state-view.js +1 -103
- package/dist/lib/state.d.ts +1 -7
- package/dist/lib/state.js +1 -12
- package/dist/lib/test-execution.d.ts +1 -14
- package/dist/lib/test-execution.js +3 -525
- package/dist/lib/test-matrices.d.ts +1 -90
- package/dist/lib/test-matrices.js +3 -96
- package/dist/lib/test-paths.d.ts +1 -12
- package/dist/lib/test-paths.js +3 -59
- package/dist/lib/test-profile-presets.d.ts +1 -57
- package/dist/lib/test-profile-presets.js +3 -50
- package/dist/lib/test-sandbox.d.ts +1 -11
- package/dist/lib/test-sandbox.js +3 -105
- package/dist/lib/test-specs.d.ts +1 -7
- package/dist/lib/test-specs.js +3 -114
- package/dist/lib/test-targets.d.ts +1 -5
- package/dist/lib/test-targets.js +3 -38
- package/dist/lib/test-types.d.ts +1 -17
- package/dist/lib/test-types.js +3 -1
- package/dist/lib/test.d.ts +1 -4
- package/dist/lib/test.js +3 -3
- package/dist/lib/util.d.ts +1 -4
- package/dist/lib/util.js +1 -25
- package/dist/lib/validate-compiled.d.ts +1 -27
- package/dist/lib/validate-compiled.js +1 -241
- package/dist/lib/validate-helpers.d.ts +1 -12
- package/dist/lib/validate-helpers.js +1 -41
- package/dist/lib/validate.d.ts +1 -21
- package/dist/lib/validate.js +1 -249
- package/dist/lib/workflow-authoring.d.ts +1 -26
- package/dist/lib/workflow-authoring.js +1 -119
- package/dist/lib/workflow-definitions.d.ts +1 -78
- package/dist/lib/workflow-definitions.js +1 -203
- package/dist/lib/workflow-edit-session.d.ts +1 -16
- package/dist/lib/workflow-edit-session.js +1 -57
- package/dist/lib/workflow-edit-utils.d.ts +1 -10
- package/dist/lib/workflow-edit-utils.js +1 -39
- package/dist/lib/workflow-helpers.d.ts +1 -38
- package/dist/lib/workflow-helpers.js +1 -167
- package/dist/lib/workflow-improvement.d.ts +1 -22
- package/dist/lib/workflow-improvement.js +1 -209
- package/dist/lib/workflow-primitives.d.ts +1 -2
- package/dist/lib/workflow-primitives.js +1 -5
- package/dist/lib/workflow-review-paths.d.ts +1 -10
- package/dist/lib/workflow-review-paths.js +1 -27
- package/dist/lib/workflow-stage-policy.d.ts +1 -5
- package/dist/lib/workflow-stage-policy.js +1 -31
- package/dist/lib/workflow-stage-runner.d.ts +1 -41
- package/dist/lib/workflow-stage-runner.js +1 -109
- package/dist/lib/workflows.d.ts +1 -15
- package/dist/lib/workflows.js +1 -31
- package/dist/packages/agents/index.d.ts +18 -0
- package/dist/packages/agents/index.js +16 -0
- package/dist/packages/agents/lib/agents.d.ts +6 -0
- package/dist/packages/agents/lib/agents.js +5 -0
- package/dist/packages/agents/lib/args.d.ts +4 -0
- package/dist/packages/agents/lib/args.js +52 -0
- package/dist/packages/agents/lib/chart-guidance.d.ts +1 -0
- package/dist/packages/agents/lib/chart-guidance.js +8 -0
- package/dist/packages/agents/lib/compiled-bootstrap.d.ts +3 -0
- package/dist/packages/agents/lib/compiled-bootstrap.js +18 -0
- package/dist/packages/agents/lib/constants.d.ts +5 -0
- package/dist/packages/agents/lib/constants.js +28 -0
- package/dist/packages/agents/lib/detection.d.ts +7 -0
- package/dist/packages/agents/lib/detection.js +65 -0
- package/dist/packages/agents/lib/execution-profile.d.ts +17 -0
- package/dist/packages/agents/lib/execution-profile.js +84 -0
- package/dist/packages/agents/lib/execution.d.ts +2 -0
- package/dist/packages/agents/lib/execution.js +243 -0
- package/dist/packages/agents/lib/executors.d.ts +32 -0
- package/dist/packages/agents/lib/executors.js +45 -0
- package/dist/packages/agents/lib/logs.d.ts +2 -0
- package/dist/packages/agents/lib/logs.js +17 -0
- package/dist/packages/agents/lib/preflight.d.ts +7 -0
- package/dist/packages/agents/lib/preflight.js +77 -0
- package/dist/packages/agents/lib/render.d.ts +8 -0
- package/dist/packages/agents/lib/render.js +218 -0
- package/dist/packages/agents/lib/schema.d.ts +8 -0
- package/dist/packages/agents/lib/schema.js +7 -0
- package/dist/packages/agents/lib/shells.d.ts +71 -0
- package/dist/packages/agents/lib/shells.js +1023 -0
- package/dist/packages/agents/lib/status.d.ts +3 -0
- package/dist/packages/agents/lib/status.js +58 -0
- package/dist/packages/agents/lib/types.d.ts +30 -0
- package/dist/packages/agents/lib/types.js +1 -0
- package/dist/{lib → packages/agents/lib}/user-config.d.ts +1 -0
- package/dist/{lib → packages/agents/lib}/user-config.js +3 -2
- package/dist/packages/compiler/compiled-compile.d.ts +4 -0
- package/dist/packages/compiler/compiled-compile.js +4 -0
- package/dist/packages/compiler/compiled-paths.d.ts +40 -0
- package/dist/packages/compiler/compiled-paths.js +106 -0
- package/dist/packages/compiler/compiled-pipeline.d.ts +39 -0
- package/dist/packages/compiler/compiled-pipeline.js +134 -0
- package/dist/packages/compiler/compiled-schema.d.ts +31 -0
- package/dist/packages/compiler/compiled-schema.js +141 -0
- package/dist/packages/compiler/compiled-stage-plan.d.ts +15 -0
- package/dist/packages/compiler/compiled-stage-plan.js +79 -0
- package/dist/packages/compiler/compiled-stage-runner.d.ts +10 -0
- package/dist/packages/compiler/compiled-stage-runner.js +46 -0
- package/dist/packages/compiler/compiled-target.d.ts +11 -0
- package/dist/packages/compiler/compiled-target.js +16 -0
- package/dist/packages/compiler/discovery.d.ts +7 -0
- package/dist/packages/compiler/discovery.js +80 -0
- package/dist/packages/compiler/index.d.ts +24 -0
- package/dist/packages/compiler/index.js +23 -0
- package/dist/packages/compiler/lib/schema.d.ts +684 -0
- package/dist/packages/compiler/lib/schema.js +363 -0
- package/dist/packages/compiler/raw-snapshot.d.ts +49 -0
- package/dist/packages/compiler/raw-snapshot.js +102 -0
- package/dist/packages/compiler/reset.d.ts +2 -0
- package/dist/packages/compiler/reset.js +72 -0
- package/dist/packages/compiler/runtime-acceptance.d.ts +9 -0
- package/dist/packages/compiler/runtime-acceptance.js +269 -0
- package/dist/packages/compiler/runtime-contracts.d.ts +2 -0
- package/dist/packages/compiler/runtime-contracts.js +48 -0
- package/dist/packages/compiler/runtime-inventory.d.ts +7 -0
- package/dist/packages/compiler/runtime-inventory.js +29 -0
- package/dist/packages/compiler/runtime-paths.d.ts +8 -0
- package/dist/packages/compiler/runtime-paths.js +26 -0
- package/dist/packages/compiler/runtime-prompt.d.ts +2 -0
- package/dist/packages/compiler/runtime-prompt.js +48 -0
- package/dist/packages/compiler/runtime-reconcile.d.ts +2 -0
- package/dist/packages/compiler/runtime-reconcile.js +193 -0
- package/dist/packages/compiler/runtime-runs.d.ts +11 -0
- package/dist/packages/compiler/runtime-runs.js +262 -0
- package/dist/packages/compiler/runtime-types.d.ts +43 -0
- package/dist/packages/compiler/runtime-types.js +1 -0
- package/dist/packages/compiler/runtime.d.ts +6 -0
- package/dist/packages/compiler/runtime.js +5 -0
- package/dist/packages/compiler/state-artifacts.d.ts +8 -0
- package/dist/packages/compiler/state-artifacts.js +13 -0
- package/dist/packages/compiler/state-health.d.ts +4 -0
- package/dist/packages/compiler/state-health.js +132 -0
- package/dist/packages/compiler/state-io.d.ts +10 -0
- package/dist/packages/compiler/state-io.js +76 -0
- package/dist/packages/compiler/state-paths.d.ts +4 -0
- package/dist/packages/compiler/state-paths.js +13 -0
- package/dist/packages/compiler/state-view.d.ts +4 -0
- package/dist/packages/compiler/state-view.js +103 -0
- package/dist/packages/compiler/state.d.ts +7 -0
- package/dist/packages/compiler/state.js +12 -0
- package/dist/packages/compiler/validate-compiled.d.ts +27 -0
- package/dist/packages/compiler/validate-compiled.js +241 -0
- package/dist/packages/compiler/validate-helpers.d.ts +12 -0
- package/dist/packages/compiler/validate-helpers.js +41 -0
- package/dist/packages/compiler/validate.d.ts +21 -0
- package/dist/packages/compiler/validate.js +249 -0
- package/dist/packages/compiler/workflow-primitives.d.ts +2 -0
- package/dist/packages/compiler/workflow-primitives.js +5 -0
- package/dist/packages/compiler/workflows.d.ts +15 -0
- package/dist/packages/compiler/workflows.js +31 -0
- package/dist/packages/project-model/compiled-paths.d.ts +1 -0
- package/dist/packages/project-model/compiled-paths.js +1 -0
- package/dist/packages/project-model/compiled-raw.d.ts +1 -0
- package/dist/packages/project-model/compiled-raw.js +1 -0
- package/dist/packages/project-model/compiled-reset.d.ts +1 -0
- package/dist/packages/project-model/compiled-reset.js +1 -0
- package/dist/packages/project-model/index.d.ts +11 -0
- package/dist/packages/project-model/index.js +10 -0
- package/dist/packages/project-model/interf-bootstrap.d.ts +1 -0
- package/dist/packages/project-model/interf-bootstrap.js +1 -0
- package/dist/packages/project-model/interf-detect.d.ts +33 -0
- package/dist/packages/project-model/interf-detect.js +176 -0
- package/dist/packages/project-model/interf-scaffold.d.ts +2 -0
- package/dist/packages/project-model/interf-scaffold.js +124 -0
- package/dist/packages/project-model/interf.d.ts +5 -0
- package/dist/packages/project-model/interf.js +4 -0
- package/dist/packages/project-model/lib/schema.d.ts +125 -0
- package/dist/packages/project-model/lib/schema.js +62 -0
- package/dist/packages/project-model/project-paths.d.ts +11 -0
- package/dist/packages/project-model/project-paths.js +32 -0
- package/dist/packages/project-model/source-config.d.ts +38 -0
- package/dist/packages/project-model/source-config.js +298 -0
- package/dist/packages/shared/file-types.d.ts +1 -0
- package/dist/packages/shared/file-types.js +4 -0
- package/dist/packages/shared/filesystem.d.ts +2 -0
- package/dist/packages/shared/filesystem.js +55 -0
- package/dist/packages/shared/index.d.ts +7 -0
- package/dist/packages/shared/index.js +7 -0
- package/dist/packages/shared/logger.d.ts +3 -0
- package/dist/packages/shared/logger.js +10 -0
- package/dist/packages/shared/naming.d.ts +1 -0
- package/dist/packages/shared/naming.js +8 -0
- package/dist/packages/shared/parse.d.ts +8 -0
- package/dist/packages/shared/parse.js +145 -0
- package/dist/packages/shared/path-guards.d.ts +2 -0
- package/dist/packages/shared/path-guards.js +14 -0
- package/dist/packages/shared/util.d.ts +3 -0
- package/dist/packages/shared/util.js +3 -0
- package/dist/packages/testing/index.d.ts +13 -0
- package/dist/packages/testing/index.js +10 -0
- package/dist/packages/testing/lib/schema.d.ts +261 -0
- package/dist/packages/testing/lib/schema.js +119 -0
- package/dist/packages/testing/test-execution.d.ts +14 -0
- package/dist/packages/testing/test-execution.js +525 -0
- package/dist/packages/testing/test-matrices.d.ts +90 -0
- package/dist/packages/testing/test-matrices.js +96 -0
- package/dist/packages/testing/test-paths.d.ts +12 -0
- package/dist/packages/testing/test-paths.js +59 -0
- package/dist/packages/testing/test-profile-presets.d.ts +57 -0
- package/dist/packages/testing/test-profile-presets.js +50 -0
- package/dist/packages/testing/test-sandbox.d.ts +11 -0
- package/dist/packages/testing/test-sandbox.js +105 -0
- package/dist/packages/testing/test-specs.d.ts +7 -0
- package/dist/packages/testing/test-specs.js +114 -0
- package/dist/packages/testing/test-targets.d.ts +5 -0
- package/dist/packages/testing/test-targets.js +38 -0
- package/dist/packages/testing/test-types.d.ts +16 -0
- package/dist/packages/testing/test-types.js +1 -0
- package/dist/packages/testing/test.d.ts +4 -0
- package/dist/packages/testing/test.js +3 -0
- package/dist/packages/workflow-authoring/index.d.ts +4 -0
- package/dist/packages/workflow-authoring/index.js +4 -0
- package/dist/packages/workflow-authoring/lib/workflow-edit-utils.d.ts +10 -0
- package/dist/packages/workflow-authoring/lib/workflow-edit-utils.js +39 -0
- package/dist/packages/workflow-authoring/workflow-authoring.d.ts +26 -0
- package/dist/packages/workflow-authoring/workflow-authoring.js +121 -0
- package/dist/packages/workflow-authoring/workflow-edit-session.d.ts +16 -0
- package/dist/packages/workflow-authoring/workflow-edit-session.js +57 -0
- package/dist/packages/workflow-authoring/workflow-improvement.d.ts +23 -0
- package/dist/packages/workflow-authoring/workflow-improvement.js +210 -0
- package/dist/packages/workflow-package/builtin-compiled-workflow.d.ts +38 -0
- package/dist/packages/workflow-package/builtin-compiled-workflow.js +94 -0
- package/dist/packages/workflow-package/context-interface.d.ts +96 -0
- package/dist/packages/workflow-package/context-interface.js +146 -0
- package/dist/packages/workflow-package/index.d.ts +11 -0
- package/dist/packages/workflow-package/index.js +11 -0
- package/dist/packages/workflow-package/interf-workflow-package.d.ts +25 -0
- package/dist/packages/workflow-package/interf-workflow-package.js +389 -0
- package/dist/{lib/config.d.ts → packages/workflow-package/lib/package-root.d.ts} +0 -1
- package/dist/packages/workflow-package/lib/package-root.js +6 -0
- package/dist/packages/workflow-package/local-workflows.d.ts +57 -0
- package/dist/packages/workflow-package/local-workflows.js +424 -0
- package/dist/packages/workflow-package/workflow-definitions.d.ts +82 -0
- package/dist/packages/workflow-package/workflow-definitions.js +210 -0
- package/dist/packages/workflow-package/workflow-helpers.d.ts +38 -0
- package/dist/packages/workflow-package/workflow-helpers.js +167 -0
- package/dist/packages/workflow-package/workflow-review-paths.d.ts +10 -0
- package/dist/packages/workflow-package/workflow-review-paths.js +27 -0
- package/dist/packages/workflow-package/workflow-stage-policy.d.ts +5 -0
- package/dist/packages/workflow-package/workflow-stage-policy.js +31 -0
- package/dist/packages/workflow-package/workflow-stage-runner.d.ts +41 -0
- package/dist/packages/workflow-package/workflow-stage-runner.js +109 -0
- package/package.json +43 -19
- package/dist/commands/test.d.ts +0 -3
- package/dist/lib/compiled-home.d.ts +0 -5
- package/dist/lib/compiled-home.js +0 -32
- package/dist/lib/config.js +0 -9
- /package/dist/{commands → cli/commands}/dataset-selection.js +0 -0
- /package/dist/{commands → cli/commands}/default.d.ts +0 -0
- /package/dist/{commands → cli/commands}/doctor.d.ts +0 -0
- /package/dist/{commands → cli/commands}/list.d.ts +0 -0
- /package/dist/{commands → cli/commands}/reset.d.ts +0 -0
- /package/dist/{commands → cli/commands}/status.d.ts +0 -0
- /package/dist/{commands → cli/commands}/verify.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,48 +1,85 @@
|
|
|
1
1
|
# Interf
|
|
2
2
|
|
|
3
|
-
Interf
|
|
3
|
+
Interf prepares context for your agents.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Start with the files for the work you want to do. Tell Interf what you need, let it suggest a few questions to check later, and build portable context when the files alone are not enough.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
It writes the result as a local folder inside your project. Your agents can use that folder directly, and Interf can check it on the same questions to show whether it actually helped.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Your source files stay the source of truth. Interf builds on them; it does not replace them.
|
|
10
10
|
|
|
11
|
-
Interf
|
|
11
|
+
Interf calls that folder portable context:
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```text
|
|
14
|
+
interf/<dataset>/
|
|
15
|
+
AGENTS.md
|
|
16
|
+
CLAUDE.md
|
|
17
|
+
raw/
|
|
18
|
+
<workflow-declared compiled outputs>
|
|
19
|
+
.interf/
|
|
20
|
+
interf.json
|
|
21
|
+
workflow/
|
|
22
|
+
runtime/
|
|
23
|
+
tests/
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
For example, this repo tests a PDF market report with questions like:
|
|
27
|
+
|
|
28
|
+
- `What were Bristol's annual take-up values in 2018 and 2016?`
|
|
29
|
+
- `What were Bristol's availability values in 2018 and 2016?`
|
|
30
|
+
|
|
31
|
+
On those same questions, a recent run in this repo produced:
|
|
14
32
|
|
|
15
33
|
<!-- PUBLIC_BENCHMARK_TABLE:START -->
|
|
16
|
-
| Agent |
|
|
34
|
+
| Agent | Source files | Portable context |
|
|
17
35
|
| --- | --- | --- |
|
|
18
36
|
| Codex (GPT-5.4, xhigh) | `2/2` | `2/2` |
|
|
19
37
|
| Claude Code (Claude Opus 4.6, max) | `0/2` | `2/2` |
|
|
20
38
|
<!-- PUBLIC_BENCHMARK_TABLE:END -->
|
|
21
39
|
|
|
22
|
-
|
|
40
|
+
That means:
|
|
41
|
+
|
|
42
|
+
- Codex already passed on the source files.
|
|
43
|
+
- Claude Code failed on the source files.
|
|
44
|
+
- Both passed after Interf built the portable context.
|
|
45
|
+
|
|
46
|
+
Same work. Same questions. Same local setup.
|
|
47
|
+
|
|
48
|
+
## How It Works
|
|
49
|
+
|
|
50
|
+
1. Start with the files for the work.
|
|
51
|
+
2. Tell Interf what you need from them.
|
|
52
|
+
3. Let Interf recommend a few questions to check accuracy later, or edit them yourself.
|
|
53
|
+
4. Build the portable context for that work.
|
|
54
|
+
5. Run `interf test` on the same questions and keep the result only if it helped.
|
|
55
|
+
|
|
56
|
+
Checking the source files first is still important. It shows what already works and which local agent performs best before you spend time improving anything.
|
|
23
57
|
|
|
24
58
|
## Why It Exists
|
|
25
59
|
|
|
26
|
-
Local agents
|
|
60
|
+
Local agents can open raw files and still reason badly over them. Reports, decks, transcripts, exports, PDFs, notes, and mixed folders may all be present, but they are often missing the structure a real piece of work needs.
|
|
61
|
+
|
|
62
|
+
Interf takes the files for the work, builds a local folder your agents can use, and then checks whether it actually helped.
|
|
27
63
|
|
|
28
|
-
Interf
|
|
64
|
+
Interf is built around a few simple rules:
|
|
29
65
|
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
66
|
+
- Start from the files you already have.
|
|
67
|
+
- Check the source files and the portable context on the same questions.
|
|
68
|
+
- Keep the result in a local folder you can inspect, diff, review, and version.
|
|
69
|
+
- Keep raw files as the source of truth.
|
|
70
|
+
- Use the portable context manually from Claude Code, Codex, or another local agent. Automated Interf runs currently support Claude Code and Codex.
|
|
71
|
+
- If the first pass is not good enough, let Interf revise the workflow and try again. Retries keep the same workflow variation; loops change the workflow itself.
|
|
36
72
|
|
|
37
73
|
## What You Get
|
|
38
74
|
|
|
39
|
-
A project
|
|
75
|
+
A project with one saved setup stays simple:
|
|
40
76
|
|
|
41
77
|
```text
|
|
42
|
-
your-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
78
|
+
your-project/
|
|
79
|
+
task-files/
|
|
80
|
+
report.pdf
|
|
81
|
+
notes.md
|
|
82
|
+
exports/
|
|
46
83
|
interf.json
|
|
47
84
|
interf/
|
|
48
85
|
<dataset>/
|
|
@@ -50,22 +87,7 @@ your-task-folder/
|
|
|
50
87
|
<dataset>/
|
|
51
88
|
```
|
|
52
89
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
```text
|
|
56
|
-
interf/<dataset>/
|
|
57
|
-
AGENTS.md
|
|
58
|
-
CLAUDE.md
|
|
59
|
-
raw/
|
|
60
|
-
<workflow-declared compiled outputs>
|
|
61
|
-
.interf/
|
|
62
|
-
interf.json
|
|
63
|
-
workflow/
|
|
64
|
-
runtime/
|
|
65
|
-
tests/
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
The compiled dataset is the folder your agent should work from.
|
|
90
|
+
After Interf runs, point your agents at the portable context first. Go back to the source files whenever you need to verify something.
|
|
69
91
|
|
|
70
92
|
## Quick Start
|
|
71
93
|
|
|
@@ -80,23 +102,18 @@ Install:
|
|
|
80
102
|
npm install -g @interf/compiler
|
|
81
103
|
```
|
|
82
104
|
|
|
83
|
-
Start from a folder that
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
cd ~/my-task-folder
|
|
87
|
-
interf
|
|
88
|
-
interf test
|
|
89
|
-
interf compile
|
|
90
|
-
interf test
|
|
91
|
-
```
|
|
105
|
+
Start from a project folder that contains one or more source folders for the work.
|
|
92
106
|
|
|
93
107
|
The first run can:
|
|
94
108
|
|
|
95
109
|
- draft `interf.json`
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
110
|
+
- let you choose the source folder for the work
|
|
111
|
+
- default the dataset id from that folder name, then let you change it
|
|
112
|
+
- ask what work you need help with
|
|
113
|
+
- recommend questions to check accuracy later, or let you add them manually
|
|
114
|
+
- run a source-files baseline on those questions so you can see what already works
|
|
115
|
+
- build the portable context for that work
|
|
116
|
+
- let you check the portable context on the same questions
|
|
100
117
|
|
|
101
118
|
If Interf cannot find your local executor setup, run:
|
|
102
119
|
|
|
@@ -104,17 +121,23 @@ If Interf cannot find your local executor setup, run:
|
|
|
104
121
|
interf doctor --live
|
|
105
122
|
```
|
|
106
123
|
|
|
107
|
-
##
|
|
124
|
+
## Questions
|
|
125
|
+
|
|
126
|
+
Interf uses simple question-and-answer checks to see whether the portable context is good enough for this work.
|
|
127
|
+
|
|
128
|
+
Each saved check stores a question and the expected answer. In `interf.json`, those definitions live under the technical field `checks[]`.
|
|
108
129
|
|
|
109
|
-
|
|
130
|
+
They are just question-and-answer pairs you can verify from the files you selected for the work.
|
|
110
131
|
|
|
111
|
-
|
|
132
|
+
You do not need to write them from scratch before you know the data well. Interf can recommend a starting set from the files and the work description, then you can confirm, edit, or replace them. Their job is simple: check accuracy before you trust the portable context.
|
|
133
|
+
|
|
134
|
+
Good first questions are small and practical:
|
|
112
135
|
|
|
113
136
|
- one exact number from a chart, table, or filing
|
|
114
137
|
- one short statement that should be true or false
|
|
115
138
|
- one simple comparison across years, files, or sections
|
|
116
139
|
|
|
117
|
-
A maintained public test
|
|
140
|
+
A maintained public test example in this repo stores them like this:
|
|
118
141
|
|
|
119
142
|
<!-- PUBLIC_TEST_CHECKS:START -->
|
|
120
143
|
```jsonc
|
|
@@ -122,6 +145,7 @@ A maintained public test run in this repo uses checks like this:
|
|
|
122
145
|
"datasets": [
|
|
123
146
|
{
|
|
124
147
|
"name": "cbre-chart-sanity",
|
|
148
|
+
"path": "./task-files",
|
|
125
149
|
"about": "Bristol historical take-up and availability chart lookup.",
|
|
126
150
|
"checks": [
|
|
127
151
|
{
|
|
@@ -141,33 +165,35 @@ A maintained public test run in this repo uses checks like this:
|
|
|
141
165
|
|
|
142
166
|
## What `interf test` Proves
|
|
143
167
|
|
|
144
|
-
`interf test` compares files
|
|
168
|
+
`interf test` compares the source files and the portable context on the same questions.
|
|
145
169
|
|
|
146
|
-
That comparison is the
|
|
170
|
+
That comparison is the proof:
|
|
147
171
|
|
|
148
|
-
- same
|
|
149
|
-
- same
|
|
172
|
+
- same work
|
|
173
|
+
- same questions
|
|
150
174
|
- same local agent setup
|
|
151
|
-
-
|
|
152
|
-
-
|
|
175
|
+
- source files on one side
|
|
176
|
+
- portable context on the other
|
|
153
177
|
|
|
154
178
|
Use `interf test` on your own files instead of trusting a frozen benchmark snapshot in the docs.
|
|
155
179
|
|
|
156
|
-
Interf saves the latest comparison plus
|
|
180
|
+
Interf saves the latest comparison plus the underlying source-files and portable-context runs under `interf/tests/` in the same project.
|
|
157
181
|
|
|
158
182
|
## The Core Loop
|
|
159
183
|
|
|
160
|
-
1. Save a few
|
|
161
|
-
2. Optionally run `interf test` to
|
|
162
|
-
3. Run `interf compile` to build the
|
|
163
|
-
4. Run `interf test` again on the same
|
|
184
|
+
1. Save a few questions for the work in `interf.json`.
|
|
185
|
+
2. Optionally run `interf test` to see how the source files do first.
|
|
186
|
+
3. Run `interf compile` to build the portable context your agent can use.
|
|
187
|
+
4. Run `interf test` again on the same questions.
|
|
164
188
|
5. If loops are enabled, let Interf retry the same workflow variation or edit the workflow and test the new variation.
|
|
165
189
|
|
|
166
|
-
The project root
|
|
190
|
+
The project root stores the source-folder setup and saved questions. Technically, that portable context is the compiled context used for repeat runs.
|
|
167
191
|
|
|
168
192
|
## Workflows
|
|
169
193
|
|
|
170
|
-
A workflow tells Interf how to prepare the files for
|
|
194
|
+
A workflow tells Interf how to prepare and structure the files for a kind of work before your agent uses them.
|
|
195
|
+
|
|
196
|
+
Technically, a workflow package defines the context interface: the zones, paths, and stage ownership of the compiled context Interf will build for that work.
|
|
171
197
|
|
|
172
198
|
Interf ships with a built-in `interf` workflow for the common case. If you need a different method, create one locally:
|
|
173
199
|
|
|
@@ -180,7 +206,7 @@ Workflow creation supports two paths:
|
|
|
180
206
|
- draft a workflow from the current project with a local agent
|
|
181
207
|
- copy an existing workflow and edit stage guidance directly
|
|
182
208
|
|
|
183
|
-
After assignment,
|
|
209
|
+
After assignment, build the portable context with `interf compile` and run `interf test` on the same questions.
|
|
184
210
|
|
|
185
211
|
## Compile Loops
|
|
186
212
|
|
|
@@ -188,9 +214,9 @@ After assignment, compile the dataset and run `interf test` on the same truth ch
|
|
|
188
214
|
|
|
189
215
|
Retries keep the target fixed:
|
|
190
216
|
|
|
191
|
-
- same dataset
|
|
217
|
+
- same configured dataset
|
|
192
218
|
- same workflow variation
|
|
193
|
-
- same
|
|
219
|
+
- same questions
|
|
194
220
|
- same measurement
|
|
195
221
|
|
|
196
222
|
`max_loops` enables self-improving workflow edits in the normal `interf compile` path.
|
|
@@ -199,13 +225,13 @@ In that loop, the thing that changes is the workflow itself.
|
|
|
199
225
|
|
|
200
226
|
Each loop can:
|
|
201
227
|
|
|
202
|
-
- run the current workflow variation on the dataset
|
|
203
|
-
- test it on the same
|
|
228
|
+
- run the current workflow variation on the same configured dataset
|
|
229
|
+
- test it on the same questions
|
|
204
230
|
- inspect failed traces, preserved stage shells, and test artifacts
|
|
205
231
|
- edit the workflow
|
|
206
232
|
- build and test the next workflow variation
|
|
207
233
|
|
|
208
|
-
Interf preserves workflow-improvement shells, workflow-before / workflow-after snapshots, failed stage shells, and
|
|
234
|
+
Interf preserves workflow-improvement shells, workflow-before / workflow-after snapshots, failed stage shells, and test runs from each loop so you can inspect exactly what changed.
|
|
209
235
|
|
|
210
236
|
## Use It With Your Agent
|
|
211
237
|
|
|
@@ -216,19 +242,19 @@ Paste something like this into your agent:
|
|
|
216
242
|
```text
|
|
217
243
|
Install `@interf/compiler`, run `interf` in this folder, and use the local agent executor.
|
|
218
244
|
|
|
219
|
-
If `interf.json` is missing, draft one dataset entry for this
|
|
245
|
+
If `interf.json` is missing, draft one dataset entry for this work. Ask what I need from the selected files, recommend a few questions to check accuracy from those files, and add the expected answers for me to confirm. Store those checks under `checks[]`.
|
|
220
246
|
|
|
221
|
-
Then run a files
|
|
247
|
+
Then run a source-files baseline if helpful, build the portable context for that work, and run `interf test`.
|
|
222
248
|
|
|
223
|
-
Tell me whether the
|
|
249
|
+
Tell me whether the portable context passes those questions, and only recommend it if it does.
|
|
224
250
|
```
|
|
225
251
|
|
|
226
252
|
## More Docs
|
|
227
253
|
|
|
228
|
-
- [
|
|
229
|
-
- [
|
|
230
|
-
- [
|
|
231
|
-
- [
|
|
254
|
+
- [src/packages/README.md](./src/packages/README.md) for the short system map
|
|
255
|
+
- [src/packages/compiler/PACKAGE.md](./src/packages/compiler/PACKAGE.md) for compiler primitives and the runtime ABI
|
|
256
|
+
- [src/packages/workflow-package/PACKAGE.md](./src/packages/workflow-package/PACKAGE.md) for the workflow package model
|
|
257
|
+
- [src/packages/workflow-authoring/PACKAGE.md](./src/packages/workflow-authoring/PACKAGE.md) for workflow authoring and self-improving loops
|
|
232
258
|
|
|
233
259
|
Maintainers should use [CONTRIBUTING.md](./CONTRIBUTING.md) for test and release gates.
|
|
234
260
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Interf (Built-in Workflow)
|
|
2
2
|
|
|
3
|
-
Interf's built-in workflow: summarize source-grounded evidence, structure the cross-file layer, then shape the final
|
|
3
|
+
Interf's built-in workflow: summarize source-grounded evidence, structure the cross-file layer, then shape the final context folder around its task focus and checks.
|
|
4
4
|
|
|
5
5
|
## Purpose
|
|
6
6
|
|
|
7
|
-
- General agent
|
|
8
|
-
-
|
|
7
|
+
- General compiled context workflow for agent use
|
|
8
|
+
- Compile mixed raw files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents answering the questions this task depends on.
|
|
9
9
|
|
|
10
10
|
## Zones
|
|
11
11
|
|
|
@@ -21,11 +21,11 @@ Interf's built-in workflow: summarize source-grounded evidence, structure the cr
|
|
|
21
21
|
|
|
22
22
|
- `summarize` — Turn source files into per-file summaries. (compiled-file-evidence; reads: raw, runtime; writes: summaries)
|
|
23
23
|
- `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
|
|
24
|
+
- `shape` — Shape the final context folder around the saved task focus and checks. (compiled-query-shape; reads: raw, summaries, knowledge-entities, knowledge-claims, knowledge-indexes, runtime; writes: knowledge-indexes, home)
|
|
25
25
|
|
|
26
26
|
## Why `home.md` exists here
|
|
27
27
|
|
|
28
|
-
This built-in workflow creates `home.md` as the main agent entrypoint for the
|
|
28
|
+
This built-in workflow creates `home.md` as the main agent entrypoint for the context folder.
|
|
29
29
|
That is behavior of the `interf` workflow, not a compiler-wide rule.
|
|
30
30
|
|
|
31
31
|
This package is the built-in seed for `interf`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Shape
|
|
2
2
|
|
|
3
|
-
Shape the final
|
|
3
|
+
Shape the final context folder around the saved task focus and checks.
|
|
4
4
|
|
|
5
5
|
Contract type: `compiled-query-shape`
|
|
6
6
|
|
|
@@ -18,12 +18,12 @@ Contract type: `compiled-query-shape`
|
|
|
18
18
|
- If a mark touches or nearly touches a labeled gridline, anchor the answer at that gridline or the immediately adjacent half-band.
|
|
19
19
|
- Do not widen a chart-derived range across multiple visible bands unless the chart genuinely supports that uncertainty.
|
|
20
20
|
- When you settle on a bounded chart read, keep that same band consistent across `home.md`, focused indexes, and claim/entity notes for that metric and year.
|
|
21
|
-
- Do not copy expected answers into the
|
|
21
|
+
- Do not copy expected answers into the context folder.
|
|
22
22
|
|
|
23
23
|
## Notes
|
|
24
24
|
|
|
25
|
-
- Use the saved task focus and
|
|
26
|
-
- Do not copy expected answers into the final
|
|
25
|
+
- Use the saved task focus and checks to bias the final context folder toward the job it should be especially good at.
|
|
26
|
+
- Do not copy expected answers into the final context folder 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
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
29
|
- If a saved truth 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.
|
|
@@ -8,11 +8,11 @@ The improver edits this local package directly.
|
|
|
8
8
|
Default loop:
|
|
9
9
|
1. Read the loop context first.
|
|
10
10
|
2. Review preserved stage shells, runtime logs, and saved test runs from failed attempts.
|
|
11
|
-
3. Edit only the local workflow package for this
|
|
11
|
+
3. Edit only the local workflow package for this context folder to create a better workflow variation for this task.
|
|
12
12
|
4. Keep `workflow.json`, `workflow.schema.json`, and any changed stage docs aligned.
|
|
13
13
|
|
|
14
14
|
Guardrails:
|
|
15
|
-
- do not edit
|
|
15
|
+
- do not edit checks, test specs, or raw source files
|
|
16
16
|
- do not hardcode expected answers into workflow docs
|
|
17
17
|
- keep this package standalone; do not add or rely on runtime `extends` or fallback behavior
|
|
18
18
|
- prefer small, defensible workflow changes over random churn
|
|
@@ -25,4 +25,4 @@ Answering rule:
|
|
|
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
26
|
- when the compiled layer is insufficient, verify in `raw/` and then answer
|
|
27
27
|
|
|
28
|
-
You can edit this file to bias manual question-answering behavior for this
|
|
28
|
+
You can edit this file to bias manual question-answering behavior for this context folder.
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
"version": 1
|
|
7
7
|
},
|
|
8
8
|
"purpose": {
|
|
9
|
-
"label": "General agent
|
|
10
|
-
"task_hint": "
|
|
9
|
+
"label": "General compiled context workflow for agent use",
|
|
10
|
+
"task_hint": "Compile mixed raw files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents answering the questions this task depends on."
|
|
11
11
|
},
|
|
12
12
|
"label": "Interf (Built-in)",
|
|
13
|
-
"hint": "Interf's built-in workflow: summarize source-grounded evidence, structure the cross-file layer, then shape the final
|
|
13
|
+
"hint": "Interf's built-in workflow: summarize source-grounded evidence, structure the cross-file layer, then shape the final context folder around its task focus and checks.",
|
|
14
14
|
"stages": [
|
|
15
15
|
{
|
|
16
16
|
"id": "summarize",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
{
|
|
83
83
|
"id": "shape",
|
|
84
84
|
"label": "Shape",
|
|
85
|
-
"description": "Shape the final
|
|
85
|
+
"description": "Shape the final context folder around the saved task focus and checks.",
|
|
86
86
|
"contract_type": "compiled-query-shape",
|
|
87
87
|
"skill_dir": "shape",
|
|
88
88
|
"reads": [
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
"For summary references, prefer explicit links like `[[summaries/<file-stem>]]` or plain code paths. For knowledge notes, prefer the final filename stem under `knowledge/`."
|
|
136
136
|
],
|
|
137
137
|
"shape": [
|
|
138
|
-
"Use the saved task focus and
|
|
139
|
-
"Do not copy expected answers into the final
|
|
138
|
+
"Use the saved task focus and checks to bias the final context folder toward the job it should be especially good at.",
|
|
139
|
+
"Do not copy expected answers into the final context folder just because the checks imply them.",
|
|
140
140
|
"If a saved truth 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.",
|
|
141
141
|
"Prefer better routing, prioritization, and focused navigation over speculative synthesis.",
|
|
142
142
|
"Any wikilinks you add to `home.md` or indexes must resolve to real compiled note basenames or explicit relative paths."
|
package/dist/bin.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { initCommand } from "./commands/init.js";
|
|
5
|
-
import { createCommand } from "./commands/create.js";
|
|
6
|
-
import { compileCommand } from "./commands/compile.js";
|
|
7
|
-
import { testCommand } from "./commands/test.js";
|
|
8
|
-
import { doctorCommand } from "./commands/doctor.js";
|
|
9
|
-
import { listCommand } from "./commands/list.js";
|
|
10
|
-
import { statusCommand } from "./commands/status.js";
|
|
11
|
-
import { resetCommand } from "./commands/reset.js";
|
|
12
|
-
import { defaultCommand } from "./commands/default.js";
|
|
13
|
-
import { verifyCommand } from "./commands/verify.js";
|
|
14
|
-
yargs(hideBin(process.argv))
|
|
15
|
-
.scriptName("interf")
|
|
16
|
-
.command(defaultCommand)
|
|
17
|
-
.command(initCommand)
|
|
18
|
-
.command(compileCommand)
|
|
19
|
-
.command(testCommand)
|
|
20
|
-
.command(createCommand)
|
|
21
|
-
.command(doctorCommand)
|
|
22
|
-
.command(listCommand)
|
|
23
|
-
.command(statusCommand)
|
|
24
|
-
.command(verifyCommand)
|
|
25
|
-
.command(resetCommand)
|
|
26
|
-
.strict()
|
|
27
|
-
.help()
|
|
28
|
-
.version()
|
|
29
|
-
.parse();
|
|
2
|
+
import { runCli } from "./cli/index.js";
|
|
3
|
+
await runCli();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WorkflowExecutor } from "
|
|
2
|
-
import type { SourceTruthCheck } from "
|
|
1
|
+
import type { WorkflowExecutor } from "../../packages/agents/lib/executors.js";
|
|
2
|
+
import type { SourceTruthCheck } from "../../packages/project-model/lib/schema.js";
|
|
3
3
|
export declare function buildTruthCheckDraftPrompt(options: {
|
|
4
4
|
datasetName: string;
|
|
5
5
|
datasetPath: string;
|
|
@@ -11,28 +11,28 @@ export function buildTruthCheckDraftPrompt(options) {
|
|
|
11
11
|
const normalizedAbout = options.about?.trim();
|
|
12
12
|
const taskLines = normalizedAbout
|
|
13
13
|
? [
|
|
14
|
-
`Primary
|
|
15
|
-
"Draft checks that directly measure whether a local agent can answer the key questions from the data behind that
|
|
14
|
+
`Primary work: ${normalizedAbout}`,
|
|
15
|
+
"Draft checks that directly measure whether a local agent can answer the key questions from the data behind that work.",
|
|
16
16
|
"Prefer checks that would make a human confident the dataset is useful for that exact job.",
|
|
17
17
|
]
|
|
18
18
|
: [
|
|
19
|
-
"No primary
|
|
20
|
-
"Prefer broad, representative checks that reflect the most useful questions a human would verify from this
|
|
19
|
+
"No primary work was provided.",
|
|
20
|
+
"Prefer broad, representative checks that reflect the most useful questions a human would verify from this source folder.",
|
|
21
21
|
];
|
|
22
22
|
return [
|
|
23
|
-
"You are drafting Interf
|
|
23
|
+
"You are drafting Interf checks for a local source folder.",
|
|
24
24
|
"Read the files in this folder and draft a small set of checks that a human can verify from the source material.",
|
|
25
25
|
"Do not ask follow-up questions.",
|
|
26
|
-
"Keep the checks concrete, explicit, and useful for measuring whether an agent can reason correctly over the
|
|
26
|
+
"Keep the checks concrete, explicit, and useful for measuring whether an agent can reason correctly over the files in this source folder.",
|
|
27
27
|
"",
|
|
28
|
-
`
|
|
29
|
-
`
|
|
28
|
+
`Setup id: ${options.datasetName}`,
|
|
29
|
+
`Source folder: ${options.datasetPath}`,
|
|
30
30
|
...taskLines,
|
|
31
31
|
"",
|
|
32
32
|
`Write exactly one JSON array to ${JSON.stringify(options.outputPath)}.`,
|
|
33
|
-
`Draft ${options.targetCount} checks unless the
|
|
33
|
+
`Draft ${options.targetCount} checks unless the source folder is too small; in that case write fewer.`,
|
|
34
34
|
"Each array item must be an object with exactly these keys:",
|
|
35
|
-
'- "question": a plain-English question answerable from this
|
|
35
|
+
'- "question": a plain-English question answerable from this source folder',
|
|
36
36
|
'- "answer": the expected correct answer in plain English',
|
|
37
37
|
"",
|
|
38
38
|
"Quality bar:",
|
|
@@ -43,7 +43,7 @@ export function buildTruthCheckDraftPrompt(options) {
|
|
|
43
43
|
"- Avoid unstable superlatives unless the source itself clearly states the ranking in one place.",
|
|
44
44
|
"- Avoid checks where the expected answer depends on scanning many pages for a hidden exception or a larger outlier.",
|
|
45
45
|
"- Avoid vague essay questions, open-ended opinions, or anything requiring outside knowledge.",
|
|
46
|
-
"- Avoid duplicate checks that
|
|
46
|
+
"- Avoid duplicate checks that cover the same fact in slightly different words.",
|
|
47
47
|
"",
|
|
48
48
|
"Output rules:",
|
|
49
49
|
"- JSON only in the output file.",
|
|
@@ -72,8 +72,8 @@ export async function draftTruthChecks(options) {
|
|
|
72
72
|
return {
|
|
73
73
|
checks: null,
|
|
74
74
|
error: code === 0
|
|
75
|
-
? "The local agent finished without writing draft
|
|
76
|
-
: "The local agent did not produce draft
|
|
75
|
+
? "The local agent finished without writing draft checks."
|
|
76
|
+
: "The local agent did not produce draft checks.",
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
let parsed;
|
|
@@ -83,15 +83,15 @@ export async function draftTruthChecks(options) {
|
|
|
83
83
|
catch (error) {
|
|
84
84
|
return {
|
|
85
85
|
checks: null,
|
|
86
|
-
error: `Draft
|
|
86
|
+
error: `Draft checks were not valid JSON: ${error instanceof Error ? error.message : String(error)}`,
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
const validated = DraftTruthChecksSchema.safeParse(parsed);
|
|
90
90
|
if (!validated.success) {
|
|
91
|
-
const detail = validated.error.issues[0]?.message ?? "invalid draft
|
|
91
|
+
const detail = validated.error.issues[0]?.message ?? "invalid draft checks";
|
|
92
92
|
return {
|
|
93
93
|
checks: null,
|
|
94
|
-
error: `Draft
|
|
94
|
+
error: `Draft checks did not match the required shape: ${detail}`,
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { WorkflowExecutionProfile, WorkflowExecutor } from "
|
|
2
|
-
import type { SourceDatasetConfig } from "
|
|
3
|
-
import type { StageShellRetentionMode } from "
|
|
1
|
+
import type { WorkflowExecutionProfile, WorkflowExecutor } from "../../packages/agents/lib/executors.js";
|
|
2
|
+
import type { SourceDatasetConfig } from "../../packages/project-model/lib/schema.js";
|
|
3
|
+
import type { StageShellRetentionMode } from "../../packages/compiler/workflows.js";
|
|
4
4
|
export declare function runConfiguredCompiledCompile(options: {
|
|
5
5
|
executor: WorkflowExecutor;
|
|
6
6
|
testExecutor?: WorkflowExecutor | null;
|