@codedrifters/configulator 0.0.285 → 0.0.287
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/lib/index.d.mts +15 -16
- package/lib/index.d.ts +15 -16
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +4 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -1698,7 +1698,7 @@ interface ScopeGateConfig {
|
|
|
1698
1698
|
* drifts.
|
|
1699
1699
|
*
|
|
1700
1700
|
* The counter persists in a small gitignored JSON state file
|
|
1701
|
-
* (default `.
|
|
1701
|
+
* (default `.state/orchestrator-runs.json`). Every orchestrator
|
|
1702
1702
|
* invocation ticks the counter once and classifies the run based on
|
|
1703
1703
|
* `runCounter % (ratio + 1) == 0` — the `ratio + 1`th run in every
|
|
1704
1704
|
* cycle is a housekeeping run, all others dispatch.
|
|
@@ -1742,7 +1742,7 @@ interface RunRatioConfig {
|
|
|
1742
1742
|
* session maintains its own counter.
|
|
1743
1743
|
*
|
|
1744
1744
|
* Must be a non-empty relative path (no leading `/`). Defaults to
|
|
1745
|
-
* `.
|
|
1745
|
+
* `.state/orchestrator-runs.json`.
|
|
1746
1746
|
*/
|
|
1747
1747
|
readonly stateFilePath?: string;
|
|
1748
1748
|
/**
|
|
@@ -2837,7 +2837,7 @@ interface AgentConfigOptions {
|
|
|
2837
2837
|
* When the whole config is omitted, the orchestrator ships with
|
|
2838
2838
|
* openhi's published 4:1 defaults (four dispatch runs, one
|
|
2839
2839
|
* housekeeping run, state file at
|
|
2840
|
-
* `.
|
|
2840
|
+
* `.state/orchestrator-runs.json`, `opus` / `sonnet`
|
|
2841
2841
|
* recommended models).
|
|
2842
2842
|
*
|
|
2843
2843
|
* Supply `ratio` to change the cadence, `stateFilePath` to move
|
|
@@ -3692,7 +3692,7 @@ declare const DEFAULT_DISPATCH_TO_HOUSEKEEPING_RATIO = 4;
|
|
|
3692
3692
|
*
|
|
3693
3693
|
* @see RunRatioConfig
|
|
3694
3694
|
*/
|
|
3695
|
-
declare const DEFAULT_STATE_FILE_PATH = ".
|
|
3695
|
+
declare const DEFAULT_STATE_FILE_PATH = ".state/orchestrator-runs.json";
|
|
3696
3696
|
/**
|
|
3697
3697
|
* Default recommended model label for dispatch runs. Rendered into
|
|
3698
3698
|
* the orchestrator-conventions rule so agents and humans can read the
|
|
@@ -4314,7 +4314,7 @@ declare function renderUnblockDependentsScript(ud: ResolvedUnblockDependents): s
|
|
|
4314
4314
|
* (small: ≤3 AC + ≤2 sources; medium: ≤6 AC + ≤5 sources;
|
|
4315
4315
|
* auto-file off) when the caller omits them. Run-ratio settings
|
|
4316
4316
|
* default to the openhi 4:1 cadence with the counter persisted at
|
|
4317
|
-
* `.
|
|
4317
|
+
* `.state/orchestrator-runs.json`. Pre-flight settings default
|
|
4318
4318
|
* to vortex's step 0b contract (enabled, delegated to the
|
|
4319
4319
|
* `pr-reviewer` sub-agent, squash merges, linked-issue keyword
|
|
4320
4320
|
* required).
|
|
@@ -4604,11 +4604,10 @@ declare const DEFAULT_PROGRESS_FILES_ENABLED = true;
|
|
|
4604
4604
|
* `<stateDir>/<filename>` where `<filename>` is produced from
|
|
4605
4605
|
* `filenamePattern` at runtime.
|
|
4606
4606
|
*
|
|
4607
|
-
* Lives at the top-level `.state/` directory
|
|
4608
|
-
*
|
|
4609
|
-
*
|
|
4610
|
-
*
|
|
4611
|
-
* Claude-specific tree.
|
|
4607
|
+
* Lives at the top-level `.state/` directory so the path stays
|
|
4608
|
+
* harness-neutral — any agent runtime (Claude Code, Cursor, a
|
|
4609
|
+
* bespoke worker) can read and write the same progress files
|
|
4610
|
+
* without having to scope under a harness-specific tree.
|
|
4612
4611
|
*
|
|
4613
4612
|
* @see ProgressFilesConfig
|
|
4614
4613
|
*/
|
|
@@ -6583,7 +6582,7 @@ declare function compileFencedSamples(options?: CompileFencedSamplesOptions): Ar
|
|
|
6583
6582
|
* The report is the durable output of Phase 1 (Scan) of the docs-sync
|
|
6584
6583
|
* pipeline (parent epic #448). Phase 1 walks the repo, runs every
|
|
6585
6584
|
* registered drift check, and persists a single combined report to
|
|
6586
|
-
* `.
|
|
6585
|
+
* `.state/docs-sync/<N>-audit.json` (where `<N>` is the
|
|
6587
6586
|
* tracking-issue number). Phase 2 (Fix) reads the persisted report
|
|
6588
6587
|
* and applies mechanical fixes — the two phases never share an
|
|
6589
6588
|
* in-memory handle, so the JSON shape on disk is the contract
|
|
@@ -6863,7 +6862,7 @@ type AuditFinding = ApiDiffFinding | TsdocCoverageFinding | ReferenceMismatchFin
|
|
|
6863
6862
|
declare const DOCS_SYNC_AUDIT_SCHEMA_VERSION = 1;
|
|
6864
6863
|
/**
|
|
6865
6864
|
* Top-level audit-report shape persisted to
|
|
6866
|
-
* `.
|
|
6865
|
+
* `.state/docs-sync/<N>-audit.json`. The category-keyed
|
|
6867
6866
|
* arrays are the durable surface; the flat `findings` array is a
|
|
6868
6867
|
* convenience aggregation of the same records.
|
|
6869
6868
|
*/
|
|
@@ -6942,9 +6941,9 @@ declare function auditReportJsonSchema(): Record<string, unknown>;
|
|
|
6942
6941
|
/**
|
|
6943
6942
|
* Default subdirectory beneath the repo root where audit reports are
|
|
6944
6943
|
* persisted. Mirrors the path declared on issue #518's acceptance
|
|
6945
|
-
* criteria: `.
|
|
6944
|
+
* criteria: `.state/docs-sync/<N>-audit.json`.
|
|
6946
6945
|
*/
|
|
6947
|
-
declare const DEFAULT_AUDIT_REPORT_DIR = ".
|
|
6946
|
+
declare const DEFAULT_AUDIT_REPORT_DIR = ".state/docs-sync";
|
|
6948
6947
|
/**
|
|
6949
6948
|
* Stable iteration order for category keys. Matches the order they
|
|
6950
6949
|
* appear in the persisted report and the order they ran during the
|
|
@@ -7044,7 +7043,7 @@ interface RunScanOptions {
|
|
|
7044
7043
|
* {@link RunScanOptions.repoRoot}). Defaults to
|
|
7045
7044
|
* {@link DEFAULT_AUDIT_REPORT_DIR}.
|
|
7046
7045
|
*
|
|
7047
|
-
* @default ".
|
|
7046
|
+
* @default ".state/docs-sync"
|
|
7048
7047
|
*/
|
|
7049
7048
|
readonly reportDir?: string;
|
|
7050
7049
|
}
|
|
@@ -7571,7 +7570,7 @@ declare const VERSION: {
|
|
|
7571
7570
|
/**
|
|
7572
7571
|
* What version of the turborepo library should we use?
|
|
7573
7572
|
*/
|
|
7574
|
-
readonly TURBO_VERSION: "2.9.
|
|
7573
|
+
readonly TURBO_VERSION: "2.9.8";
|
|
7575
7574
|
/**
|
|
7576
7575
|
* Version of @types/node to use across all packages (pnpm catalog).
|
|
7577
7576
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -1747,7 +1747,7 @@ interface ScopeGateConfig {
|
|
|
1747
1747
|
* drifts.
|
|
1748
1748
|
*
|
|
1749
1749
|
* The counter persists in a small gitignored JSON state file
|
|
1750
|
-
* (default `.
|
|
1750
|
+
* (default `.state/orchestrator-runs.json`). Every orchestrator
|
|
1751
1751
|
* invocation ticks the counter once and classifies the run based on
|
|
1752
1752
|
* `runCounter % (ratio + 1) == 0` — the `ratio + 1`th run in every
|
|
1753
1753
|
* cycle is a housekeeping run, all others dispatch.
|
|
@@ -1791,7 +1791,7 @@ interface RunRatioConfig {
|
|
|
1791
1791
|
* session maintains its own counter.
|
|
1792
1792
|
*
|
|
1793
1793
|
* Must be a non-empty relative path (no leading `/`). Defaults to
|
|
1794
|
-
* `.
|
|
1794
|
+
* `.state/orchestrator-runs.json`.
|
|
1795
1795
|
*/
|
|
1796
1796
|
readonly stateFilePath?: string;
|
|
1797
1797
|
/**
|
|
@@ -2886,7 +2886,7 @@ interface AgentConfigOptions {
|
|
|
2886
2886
|
* When the whole config is omitted, the orchestrator ships with
|
|
2887
2887
|
* openhi's published 4:1 defaults (four dispatch runs, one
|
|
2888
2888
|
* housekeeping run, state file at
|
|
2889
|
-
* `.
|
|
2889
|
+
* `.state/orchestrator-runs.json`, `opus` / `sonnet`
|
|
2890
2890
|
* recommended models).
|
|
2891
2891
|
*
|
|
2892
2892
|
* Supply `ratio` to change the cadence, `stateFilePath` to move
|
|
@@ -3741,7 +3741,7 @@ declare const DEFAULT_DISPATCH_TO_HOUSEKEEPING_RATIO = 4;
|
|
|
3741
3741
|
*
|
|
3742
3742
|
* @see RunRatioConfig
|
|
3743
3743
|
*/
|
|
3744
|
-
declare const DEFAULT_STATE_FILE_PATH = ".
|
|
3744
|
+
declare const DEFAULT_STATE_FILE_PATH = ".state/orchestrator-runs.json";
|
|
3745
3745
|
/**
|
|
3746
3746
|
* Default recommended model label for dispatch runs. Rendered into
|
|
3747
3747
|
* the orchestrator-conventions rule so agents and humans can read the
|
|
@@ -4363,7 +4363,7 @@ declare function renderUnblockDependentsScript(ud: ResolvedUnblockDependents): s
|
|
|
4363
4363
|
* (small: ≤3 AC + ≤2 sources; medium: ≤6 AC + ≤5 sources;
|
|
4364
4364
|
* auto-file off) when the caller omits them. Run-ratio settings
|
|
4365
4365
|
* default to the openhi 4:1 cadence with the counter persisted at
|
|
4366
|
-
* `.
|
|
4366
|
+
* `.state/orchestrator-runs.json`. Pre-flight settings default
|
|
4367
4367
|
* to vortex's step 0b contract (enabled, delegated to the
|
|
4368
4368
|
* `pr-reviewer` sub-agent, squash merges, linked-issue keyword
|
|
4369
4369
|
* required).
|
|
@@ -4653,11 +4653,10 @@ declare const DEFAULT_PROGRESS_FILES_ENABLED = true;
|
|
|
4653
4653
|
* `<stateDir>/<filename>` where `<filename>` is produced from
|
|
4654
4654
|
* `filenamePattern` at runtime.
|
|
4655
4655
|
*
|
|
4656
|
-
* Lives at the top-level `.state/` directory
|
|
4657
|
-
*
|
|
4658
|
-
*
|
|
4659
|
-
*
|
|
4660
|
-
* Claude-specific tree.
|
|
4656
|
+
* Lives at the top-level `.state/` directory so the path stays
|
|
4657
|
+
* harness-neutral — any agent runtime (Claude Code, Cursor, a
|
|
4658
|
+
* bespoke worker) can read and write the same progress files
|
|
4659
|
+
* without having to scope under a harness-specific tree.
|
|
4661
4660
|
*
|
|
4662
4661
|
* @see ProgressFilesConfig
|
|
4663
4662
|
*/
|
|
@@ -6632,7 +6631,7 @@ declare function compileFencedSamples(options?: CompileFencedSamplesOptions): Ar
|
|
|
6632
6631
|
* The report is the durable output of Phase 1 (Scan) of the docs-sync
|
|
6633
6632
|
* pipeline (parent epic #448). Phase 1 walks the repo, runs every
|
|
6634
6633
|
* registered drift check, and persists a single combined report to
|
|
6635
|
-
* `.
|
|
6634
|
+
* `.state/docs-sync/<N>-audit.json` (where `<N>` is the
|
|
6636
6635
|
* tracking-issue number). Phase 2 (Fix) reads the persisted report
|
|
6637
6636
|
* and applies mechanical fixes — the two phases never share an
|
|
6638
6637
|
* in-memory handle, so the JSON shape on disk is the contract
|
|
@@ -6912,7 +6911,7 @@ type AuditFinding = ApiDiffFinding | TsdocCoverageFinding | ReferenceMismatchFin
|
|
|
6912
6911
|
declare const DOCS_SYNC_AUDIT_SCHEMA_VERSION = 1;
|
|
6913
6912
|
/**
|
|
6914
6913
|
* Top-level audit-report shape persisted to
|
|
6915
|
-
* `.
|
|
6914
|
+
* `.state/docs-sync/<N>-audit.json`. The category-keyed
|
|
6916
6915
|
* arrays are the durable surface; the flat `findings` array is a
|
|
6917
6916
|
* convenience aggregation of the same records.
|
|
6918
6917
|
*/
|
|
@@ -6991,9 +6990,9 @@ declare function auditReportJsonSchema(): Record<string, unknown>;
|
|
|
6991
6990
|
/**
|
|
6992
6991
|
* Default subdirectory beneath the repo root where audit reports are
|
|
6993
6992
|
* persisted. Mirrors the path declared on issue #518's acceptance
|
|
6994
|
-
* criteria: `.
|
|
6993
|
+
* criteria: `.state/docs-sync/<N>-audit.json`.
|
|
6995
6994
|
*/
|
|
6996
|
-
declare const DEFAULT_AUDIT_REPORT_DIR = ".
|
|
6995
|
+
declare const DEFAULT_AUDIT_REPORT_DIR = ".state/docs-sync";
|
|
6997
6996
|
/**
|
|
6998
6997
|
* Stable iteration order for category keys. Matches the order they
|
|
6999
6998
|
* appear in the persisted report and the order they ran during the
|
|
@@ -7093,7 +7092,7 @@ interface RunScanOptions {
|
|
|
7093
7092
|
* {@link RunScanOptions.repoRoot}). Defaults to
|
|
7094
7093
|
* {@link DEFAULT_AUDIT_REPORT_DIR}.
|
|
7095
7094
|
*
|
|
7096
|
-
* @default ".
|
|
7095
|
+
* @default ".state/docs-sync"
|
|
7097
7096
|
*/
|
|
7098
7097
|
readonly reportDir?: string;
|
|
7099
7098
|
}
|
|
@@ -7620,7 +7619,7 @@ declare const VERSION: {
|
|
|
7620
7619
|
/**
|
|
7621
7620
|
* What version of the turborepo library should we use?
|
|
7622
7621
|
*/
|
|
7623
|
-
readonly TURBO_VERSION: "2.9.
|
|
7622
|
+
readonly TURBO_VERSION: "2.9.8";
|
|
7624
7623
|
/**
|
|
7625
7624
|
* Version of @types/node to use across all packages (pnpm catalog).
|
|
7626
7625
|
*/
|
package/lib/index.js
CHANGED
|
@@ -8340,7 +8340,7 @@ function buildDocsSyncSubAgent(_paths) {
|
|
|
8340
8340
|
"persisted at:",
|
|
8341
8341
|
"",
|
|
8342
8342
|
"```",
|
|
8343
|
-
".
|
|
8343
|
+
".state/docs-sync/<issue-number>-audit.json",
|
|
8344
8344
|
"```",
|
|
8345
8345
|
"",
|
|
8346
8346
|
"Every report carries a `schemaVersion`, the `issueNumber`, the",
|
|
@@ -11456,7 +11456,7 @@ function assertValidEligibleLabels(labels) {
|
|
|
11456
11456
|
|
|
11457
11457
|
// src/agent/bundles/run-ratio.ts
|
|
11458
11458
|
var DEFAULT_DISPATCH_TO_HOUSEKEEPING_RATIO = 4;
|
|
11459
|
-
var DEFAULT_STATE_FILE_PATH = ".
|
|
11459
|
+
var DEFAULT_STATE_FILE_PATH = ".state/orchestrator-runs.json";
|
|
11460
11460
|
var DEFAULT_DISPATCH_MODEL = "opus";
|
|
11461
11461
|
var DEFAULT_HOUSEKEEPING_MODEL = "sonnet";
|
|
11462
11462
|
function resolveRunRatio(config) {
|
|
@@ -26545,7 +26545,7 @@ var VERSION = {
|
|
|
26545
26545
|
/**
|
|
26546
26546
|
* What version of the turborepo library should we use?
|
|
26547
26547
|
*/
|
|
26548
|
-
TURBO_VERSION: "2.9.
|
|
26548
|
+
TURBO_VERSION: "2.9.8",
|
|
26549
26549
|
/**
|
|
26550
26550
|
* Version of @types/node to use across all packages (pnpm catalog).
|
|
26551
26551
|
*/
|
|
@@ -30181,7 +30181,7 @@ function toPosix3(p) {
|
|
|
30181
30181
|
// src/docs-sync/scan/run-scan.ts
|
|
30182
30182
|
var fs3 = __toESM(require("fs"));
|
|
30183
30183
|
var path6 = __toESM(require("path"));
|
|
30184
|
-
var DEFAULT_AUDIT_REPORT_DIR = ".
|
|
30184
|
+
var DEFAULT_AUDIT_REPORT_DIR = ".state/docs-sync";
|
|
30185
30185
|
var SEVERITY_RANK = {
|
|
30186
30186
|
blocking: 0,
|
|
30187
30187
|
advisory: 1,
|