@drisp/cli 0.6.5 → 0.6.6
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/dist/{WorkflowInstallWizard-JLB7P37Y.js → WorkflowInstallWizard-R76OV74M.js} +2 -2
- package/dist/{chunk-C6BXC2JM.js → chunk-5V5YDSKZ.js} +2 -2
- package/dist/{chunk-QVRTU2MM.js → chunk-7FYAABQ4.js} +8 -8
- package/dist/{chunk-RWE433V6.js → chunk-QGAGV2OI.js} +4 -28
- package/dist/cli.js +4 -4
- package/dist/dashboard-daemon.js +3 -3
- package/dist/runner.js +3 -3
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
installWorkflowPlugins,
|
|
9
9
|
resolveWorkflow,
|
|
10
10
|
writeGlobalConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7FYAABQ4.js";
|
|
12
12
|
import "./chunk-PZ5AY32C.js";
|
|
13
13
|
|
|
14
14
|
// src/setup/steps/WorkflowInstallWizard.tsx
|
|
@@ -93,4 +93,4 @@ function WorkflowInstallWizard({ source, onDone }) {
|
|
|
93
93
|
export {
|
|
94
94
|
WorkflowInstallWizard as default
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=WorkflowInstallWizard-
|
|
96
|
+
//# sourceMappingURL=WorkflowInstallWizard-R76OV74M.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startRunnerProcess,
|
|
3
3
|
waitForShutdownSignal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QGAGV2OI.js";
|
|
5
5
|
|
|
6
6
|
// src/app/entry/runnerDaemon.ts
|
|
7
7
|
import path from "path";
|
|
@@ -46,4 +46,4 @@ if (process.argv.includes("--help")) {
|
|
|
46
46
|
export {
|
|
47
47
|
runRunnerDaemonEntry
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-5V5YDSKZ.js.map
|
|
@@ -1048,7 +1048,6 @@ function hasProjectWorkflow(projectDir) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
1050
|
// src/core/workflows/types.ts
|
|
1051
|
-
var DEFAULT_MAX_TURN_TOKEN_COUNT = 13e4;
|
|
1052
1051
|
var DEFAULT_NUDGE_CAP = 3;
|
|
1053
1052
|
var DEFAULT_RETRY_CAP = 3;
|
|
1054
1053
|
var DEFAULT_RETRY_BACKOFF_MS = 1e4;
|
|
@@ -3582,9 +3581,11 @@ function createWorkflowRunner(input) {
|
|
|
3582
3581
|
stop(limit);
|
|
3583
3582
|
return;
|
|
3584
3583
|
}
|
|
3585
|
-
|
|
3584
|
+
const previous = memory.contextKey === cfg.contextKey ? memory.lastBoundedTurn : null;
|
|
3585
|
+
const measured = previous?.lastContextTokens ?? null;
|
|
3586
|
+
const ceiling = measured ?? usage.contextWindowSize ?? null;
|
|
3587
|
+
if (!openingChecked && turn.continuation.mode === "fresh" && usage.openingContextSize != null && ceiling != null) {
|
|
3586
3588
|
openingChecked = true;
|
|
3587
|
-
const previous = memory.contextKey === cfg.contextKey ? memory.lastBoundedTurn : null;
|
|
3588
3589
|
const required = memory.checkpoint ? 0 : estimateTokenCount(
|
|
3589
3590
|
journalAbsPath ? readJournal(journalAbsPath) : ""
|
|
3590
3591
|
);
|
|
@@ -3595,8 +3596,8 @@ function createWorkflowRunner(input) {
|
|
|
3595
3596
|
context: {
|
|
3596
3597
|
opening: usage.openingContextSize,
|
|
3597
3598
|
required,
|
|
3598
|
-
ceiling
|
|
3599
|
-
source:
|
|
3599
|
+
ceiling,
|
|
3600
|
+
source: measured !== null ? "conservative prior API occupancy" : "model context window estimate; actual compaction point unknown"
|
|
3600
3601
|
}
|
|
3601
3602
|
});
|
|
3602
3603
|
if (decision) stop(decision);
|
|
@@ -3969,9 +3970,8 @@ function collectMcpServersWithOptions(pluginDirs) {
|
|
|
3969
3970
|
}
|
|
3970
3971
|
|
|
3971
3972
|
export {
|
|
3972
|
-
DEFAULT_MAX_TURN_TOKEN_COUNT,
|
|
3973
|
-
DEFAULT_PERMISSION_GRACE_MS,
|
|
3974
3973
|
createSteerQueue,
|
|
3974
|
+
DEFAULT_PERMISSION_GRACE_MS,
|
|
3975
3975
|
deserializeRunMemory,
|
|
3976
3976
|
wakesFreshAfterHandover,
|
|
3977
3977
|
createWorkflowRunner,
|
|
@@ -4006,4 +4006,4 @@ export {
|
|
|
4006
4006
|
compileWorkflowPlan,
|
|
4007
4007
|
collectMcpServersWithOptions
|
|
4008
4008
|
};
|
|
4009
|
-
//# sourceMappingURL=chunk-
|
|
4009
|
+
//# sourceMappingURL=chunk-7FYAABQ4.js.map
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
resolveHookSocketPath
|
|
16
16
|
} from "./chunk-USK5VSQ7.js";
|
|
17
17
|
import {
|
|
18
|
-
DEFAULT_MAX_TURN_TOKEN_COUNT,
|
|
19
18
|
DEFAULT_PERMISSION_GRACE_MS,
|
|
20
19
|
compileWorkflowPlan,
|
|
21
20
|
createSteerQueue,
|
|
@@ -34,7 +33,7 @@ import {
|
|
|
34
33
|
resolveWorkflowPlugins,
|
|
35
34
|
wakesFreshAfterHandover,
|
|
36
35
|
workflowRegistryDir
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7FYAABQ4.js";
|
|
38
37
|
import {
|
|
39
38
|
__export
|
|
40
39
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -3925,14 +3924,6 @@ function spawnClaude(options) {
|
|
|
3925
3924
|
cwd: projectDir,
|
|
3926
3925
|
stdio: ["ignore", "pipe", "pipe"],
|
|
3927
3926
|
env: {
|
|
3928
|
-
// Claude compacts around 95% of this window. The default sits well
|
|
3929
|
-
// under the model window (ADR 0014 §5): Handover needs headroom to
|
|
3930
|
-
// hold the conversation AND emit a Handoff file in the fork — the old
|
|
3931
|
-
// 185k default sat at the window and defeated that. Precedence:
|
|
3932
|
-
// default < process.env < extraEnv, so a workflow's explicit
|
|
3933
|
-
// maxTurnTokenCount (delivered via extraEnv) beats a user env var,
|
|
3934
|
-
// while the bare default stays env-overridable.
|
|
3935
|
-
CLAUDE_CODE_AUTO_COMPACT_WINDOW: String(DEFAULT_MAX_TURN_TOKEN_COUNT),
|
|
3936
3927
|
...process.env,
|
|
3937
3928
|
...extraEnv ?? {},
|
|
3938
3929
|
ATHENA_INSTANCE_ID: String(instanceId),
|
|
@@ -4078,16 +4069,6 @@ function mergeIsolation(base, pluginMcpConfig, perCommand) {
|
|
|
4078
4069
|
...pluginMcpConfig ? { mcpConfig: pluginMcpConfig } : {}
|
|
4079
4070
|
};
|
|
4080
4071
|
}
|
|
4081
|
-
function resolveWorkflowSpawnEnv(workflow) {
|
|
4082
|
-
const maxTurnTokenCount = workflow?.loop?.maxTurnTokenCount;
|
|
4083
|
-
if (maxTurnTokenCount === void 0) {
|
|
4084
|
-
return workflow?.env;
|
|
4085
|
-
}
|
|
4086
|
-
return {
|
|
4087
|
-
...workflow?.env,
|
|
4088
|
-
CLAUDE_CODE_AUTO_COMPACT_WINDOW: String(maxTurnTokenCount)
|
|
4089
|
-
};
|
|
4090
|
-
}
|
|
4091
4072
|
function resolveClaudeSessionId(continuation) {
|
|
4092
4073
|
if (!continuation || continuation.mode === "fresh") {
|
|
4093
4074
|
return void 0;
|
|
@@ -4307,7 +4288,7 @@ function useClaudeProcess(projectDir, instanceId, isolation, pluginMcpConfig, ve
|
|
|
4307
4288
|
pluginMcpConfig,
|
|
4308
4289
|
perCallIsolation
|
|
4309
4290
|
),
|
|
4310
|
-
env:
|
|
4291
|
+
env: workflow?.env,
|
|
4311
4292
|
...verbose ? {
|
|
4312
4293
|
jqFilter: JQ_ASSISTANT_TEXT_FILTER,
|
|
4313
4294
|
onFilteredStdout: (data) => {
|
|
@@ -4482,7 +4463,7 @@ function createClaudeSessionController(input) {
|
|
|
4482
4463
|
input.pluginMcpConfig,
|
|
4483
4464
|
configOverride
|
|
4484
4465
|
),
|
|
4485
|
-
env:
|
|
4466
|
+
env: input.workflow?.env,
|
|
4486
4467
|
onStdout: (data) => {
|
|
4487
4468
|
tokenAccumulator.feed(data);
|
|
4488
4469
|
onUsage?.(tokenAccumulator.getUsage());
|
|
@@ -7474,11 +7455,6 @@ function buildCodexPromptOptions(input) {
|
|
|
7474
7455
|
agentRoots: input.workflowPlan?.agentRoots && input.workflowPlan.agentRoots.length > 0 ? input.workflowPlan.agentRoots : void 0,
|
|
7475
7456
|
plugins: resolveCodexWorkflowPlugins(input.workflowPlan),
|
|
7476
7457
|
config: {
|
|
7477
|
-
// The harness-neutral maxTurnTokenCount (ADR 0014 §5): the bound sits
|
|
7478
|
-
// well under the model window so a Handover has headroom to hold the
|
|
7479
|
-
// conversation and emit a Handoff file — the old 175k default sat at
|
|
7480
|
-
// the window and defeated that.
|
|
7481
|
-
model_auto_compact_token_limit: input.workflowPlan?.workflow.loop?.maxTurnTokenCount ?? DEFAULT_MAX_TURN_TOKEN_COUNT,
|
|
7482
7458
|
// Steer Codex's history compaction toward a handoff-style summary.
|
|
7483
7459
|
// `compact_prompt` replaces the default summarization prompt.
|
|
7484
7460
|
compact_prompt: HANDOFF_COMPACT_PROMPT,
|
|
@@ -34294,4 +34270,4 @@ export {
|
|
|
34294
34270
|
startRunnerProcess,
|
|
34295
34271
|
waitForShutdownSignal
|
|
34296
34272
|
};
|
|
34297
|
-
//# sourceMappingURL=chunk-
|
|
34273
|
+
//# sourceMappingURL=chunk-QGAGV2OI.js.map
|
package/dist/cli.js
CHANGED
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
wrapText,
|
|
103
103
|
writeAttachmentMirror,
|
|
104
104
|
writeDashboardClientConfig
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-QGAGV2OI.js";
|
|
106
106
|
import {
|
|
107
107
|
generateId as generateId2
|
|
108
108
|
} from "./chunk-USK5VSQ7.js";
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
wakesFreshAfterHandover,
|
|
145
145
|
writeGlobalConfig,
|
|
146
146
|
writeProjectConfig
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-7FYAABQ4.js";
|
|
148
148
|
import "./chunk-PZ5AY32C.js";
|
|
149
149
|
|
|
150
150
|
// src/app/entry/cli.tsx
|
|
@@ -13148,7 +13148,7 @@ var cachedVersion = null;
|
|
|
13148
13148
|
function readPackageVersion() {
|
|
13149
13149
|
if (cachedVersion !== null) return cachedVersion;
|
|
13150
13150
|
try {
|
|
13151
|
-
const injected = "0.6.
|
|
13151
|
+
const injected = "0.6.6";
|
|
13152
13152
|
if (typeof injected === "string" && injected.length > 0) {
|
|
13153
13153
|
cachedVersion = injected;
|
|
13154
13154
|
return cachedVersion;
|
|
@@ -15570,7 +15570,7 @@ Available commands: ${[...KNOWN_COMMANDS].join(", ")}`
|
|
|
15570
15570
|
await exitWith(1);
|
|
15571
15571
|
return;
|
|
15572
15572
|
}
|
|
15573
|
-
const { default: WorkflowInstallWizard } = await import("./WorkflowInstallWizard-
|
|
15573
|
+
const { default: WorkflowInstallWizard } = await import("./WorkflowInstallWizard-R76OV74M.js");
|
|
15574
15574
|
const { waitUntilExit } = render(
|
|
15575
15575
|
/* @__PURE__ */ jsx24(
|
|
15576
15576
|
WorkflowInstallWizard,
|
package/dist/dashboard-daemon.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRunnerDaemonEntry
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5V5YDSKZ.js";
|
|
4
|
+
import "./chunk-QGAGV2OI.js";
|
|
5
5
|
import "./chunk-USK5VSQ7.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-7FYAABQ4.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
runRunnerDaemonEntry
|
package/dist/runner.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRunnerDaemonEntry
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5V5YDSKZ.js";
|
|
4
|
+
import "./chunk-QGAGV2OI.js";
|
|
5
5
|
import "./chunk-USK5VSQ7.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-7FYAABQ4.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
runRunnerDaemonEntry
|