@drisp/cli 0.5.15 → 0.5.16
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/athena-gateway.js +3 -3
- package/dist/{chunk-WRHKXH5M.js → chunk-BTY7MYYT.js} +2 -2
- package/dist/{chunk-D4W7RB25.js → chunk-MRAM6EYI.js} +2 -2
- package/dist/{chunk-UAZ2R7F3.js → chunk-PWXH6WWV.js} +58 -21
- package/dist/cli.js +4 -4
- package/dist/dashboard-daemon.js +2 -2
- package/package.json +1 -1
package/dist/athena-gateway.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
loadOrCreateToken,
|
|
4
4
|
requireTokenForBind,
|
|
5
5
|
timingSafeTokenEqual
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MRAM6EYI.js";
|
|
7
7
|
import {
|
|
8
8
|
CHANNEL_REQUEST_ID_REGEX,
|
|
9
9
|
createUdsServerTransport,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
trackGatewayTransportConnect,
|
|
20
20
|
trackGatewayTransportDisconnect,
|
|
21
21
|
writeGatewayTrace
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BTY7MYYT.js";
|
|
23
23
|
|
|
24
24
|
// src/gateway/daemon.ts
|
|
25
25
|
import fs4 from "fs";
|
|
@@ -2440,7 +2440,7 @@ var cachedVersion = null;
|
|
|
2440
2440
|
function readVersion() {
|
|
2441
2441
|
if (cachedVersion !== null) return cachedVersion;
|
|
2442
2442
|
try {
|
|
2443
|
-
const injected = "0.5.
|
|
2443
|
+
const injected = "0.5.16";
|
|
2444
2444
|
if (typeof injected === "string" && injected.length > 0) {
|
|
2445
2445
|
cachedVersion = injected;
|
|
2446
2446
|
return cachedVersion;
|
|
@@ -170,7 +170,7 @@ function isLoopbackHost(host) {
|
|
|
170
170
|
|
|
171
171
|
// src/infra/telemetry/client.ts
|
|
172
172
|
import { PostHog } from "posthog-node";
|
|
173
|
-
var POSTHOG_API_KEY = true ? "
|
|
173
|
+
var POSTHOG_API_KEY = true ? "" : "";
|
|
174
174
|
var POSTHOG_HOST = "https://us.i.posthog.com";
|
|
175
175
|
var client = null;
|
|
176
176
|
var deviceId = null;
|
|
@@ -772,4 +772,4 @@ export {
|
|
|
772
772
|
trackSetupCompleted,
|
|
773
773
|
refreshDashboardAccessToken
|
|
774
774
|
};
|
|
775
|
-
//# sourceMappingURL=chunk-
|
|
775
|
+
//# sourceMappingURL=chunk-BTY7MYYT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isLoopbackHost
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BTY7MYYT.js";
|
|
4
4
|
|
|
5
5
|
// src/gateway/auth.ts
|
|
6
6
|
import crypto from "crypto";
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
timingSafeTokenEqual,
|
|
74
74
|
requireTokenForBind
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-MRAM6EYI.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
traceGatewayFrame,
|
|
24
24
|
trackGatewayTransportReconnect,
|
|
25
25
|
writeGatewayTrace
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BTY7MYYT.js";
|
|
27
27
|
import {
|
|
28
28
|
compileWorkflowPlan,
|
|
29
29
|
createWorkflowRunner,
|
|
@@ -2819,6 +2819,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
|
|
|
2819
2819
|
// src/harnesses/claude/process/spawn.ts
|
|
2820
2820
|
import { spawn as spawn2 } from "child_process";
|
|
2821
2821
|
import fs11 from "fs";
|
|
2822
|
+
import os8 from "os";
|
|
2822
2823
|
import path10 from "path";
|
|
2823
2824
|
|
|
2824
2825
|
// src/harnesses/claude/config/isolation.ts
|
|
@@ -3131,15 +3132,50 @@ function runSpawnPreflight(hookSocketPath) {
|
|
|
3131
3132
|
var HANDOFF_COMPACT_SYSTEM_PROMPT = `## Compact Instructions
|
|
3132
3133
|
|
|
3133
3134
|
${HANDOFF_COMPACT_INSTRUCTIONS}`;
|
|
3135
|
+
function joinPromptParts(parts) {
|
|
3136
|
+
return parts.filter(
|
|
3137
|
+
(part) => typeof part === "string" && part.length > 0
|
|
3138
|
+
).join("\n\n");
|
|
3139
|
+
}
|
|
3134
3140
|
function appendHandoffCompactInstructions(config) {
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3141
|
+
if (config.appendSystemPromptFile) {
|
|
3142
|
+
const existing = fs11.readFileSync(config.appendSystemPromptFile, "utf8");
|
|
3143
|
+
const combined = joinPromptParts([
|
|
3144
|
+
existing,
|
|
3138
3145
|
config.appendSystemPrompt,
|
|
3139
3146
|
HANDOFF_COMPACT_SYSTEM_PROMPT
|
|
3140
|
-
]
|
|
3141
|
-
|
|
3142
|
-
|
|
3147
|
+
]);
|
|
3148
|
+
const combinedPath = path10.join(
|
|
3149
|
+
os8.tmpdir(),
|
|
3150
|
+
`athena-append-system-prompt-${process.pid}-${Date.now()}.md`
|
|
3151
|
+
);
|
|
3152
|
+
fs11.writeFileSync(combinedPath, combined, { encoding: "utf8", mode: 384 });
|
|
3153
|
+
return {
|
|
3154
|
+
config: {
|
|
3155
|
+
...config,
|
|
3156
|
+
appendSystemPrompt: void 0,
|
|
3157
|
+
appendSystemPromptFile: combinedPath
|
|
3158
|
+
},
|
|
3159
|
+
cleanup: () => {
|
|
3160
|
+
try {
|
|
3161
|
+
if (fs11.existsSync(combinedPath)) {
|
|
3162
|
+
fs11.unlinkSync(combinedPath);
|
|
3163
|
+
}
|
|
3164
|
+
} catch {
|
|
3165
|
+
}
|
|
3166
|
+
}
|
|
3167
|
+
};
|
|
3168
|
+
}
|
|
3169
|
+
return {
|
|
3170
|
+
config: {
|
|
3171
|
+
...config,
|
|
3172
|
+
appendSystemPrompt: joinPromptParts([
|
|
3173
|
+
config.appendSystemPrompt,
|
|
3174
|
+
HANDOFF_COMPACT_SYSTEM_PROMPT
|
|
3175
|
+
])
|
|
3176
|
+
},
|
|
3177
|
+
cleanup: () => {
|
|
3178
|
+
}
|
|
3143
3179
|
};
|
|
3144
3180
|
}
|
|
3145
3181
|
function spawnClaude(options) {
|
|
@@ -3162,13 +3198,14 @@ function spawnClaude(options) {
|
|
|
3162
3198
|
const hookSocketPath = explicitHookSocketPath ?? resolveHookSocketPath(instanceId);
|
|
3163
3199
|
runSpawnPreflight(hookSocketPath);
|
|
3164
3200
|
const isolationConfig = resolveIsolationConfig(isolation);
|
|
3165
|
-
const streamingConfig = appendHandoffCompactInstructions({
|
|
3201
|
+
const { config: streamingConfig, cleanup: promptCleanup } = appendHandoffCompactInstructions({
|
|
3166
3202
|
...isolationConfig,
|
|
3167
3203
|
// Athena depends on the stream-json event feed for live token/context
|
|
3168
3204
|
// updates, so opt in unless a caller explicitly disables it.
|
|
3169
3205
|
verbose: isolationConfig.verbose ?? true,
|
|
3170
3206
|
includePartialMessages: isolationConfig.includePartialMessages ?? true
|
|
3171
3207
|
});
|
|
3208
|
+
registerCleanupOnExit(promptCleanup);
|
|
3172
3209
|
const portableAuth = resolveRuntimeAuthOverlay({ cwd: projectDir });
|
|
3173
3210
|
const { settingsPath, cleanup } = generateHookSettings(void 0, portableAuth);
|
|
3174
3211
|
registerCleanupOnExit(cleanup);
|
|
@@ -5644,7 +5681,7 @@ function buildCodexPluginInstallMessage(plugins) {
|
|
|
5644
5681
|
// src/harnesses/codex/runtime/agentConfig.ts
|
|
5645
5682
|
import fs12 from "fs";
|
|
5646
5683
|
import path11 from "path";
|
|
5647
|
-
import
|
|
5684
|
+
import os9 from "os";
|
|
5648
5685
|
|
|
5649
5686
|
// src/shared/utils/yamlFrontmatter.ts
|
|
5650
5687
|
function parseSimpleYaml(lines) {
|
|
@@ -5869,7 +5906,7 @@ function resolveCodexAgentConfig(input) {
|
|
|
5869
5906
|
errors: allErrors
|
|
5870
5907
|
};
|
|
5871
5908
|
}
|
|
5872
|
-
const tempDir = path11.join(
|
|
5909
|
+
const tempDir = path11.join(os9.tmpdir(), `athena-agents-${sessionId}`);
|
|
5873
5910
|
fs12.mkdirSync(tempDir, { recursive: true });
|
|
5874
5911
|
const edits = [
|
|
5875
5912
|
{
|
|
@@ -7136,7 +7173,7 @@ function listHarnessCapabilities() {
|
|
|
7136
7173
|
|
|
7137
7174
|
// src/infra/plugins/register.ts
|
|
7138
7175
|
import fs15 from "fs";
|
|
7139
|
-
import
|
|
7176
|
+
import os10 from "os";
|
|
7140
7177
|
import path13 from "path";
|
|
7141
7178
|
|
|
7142
7179
|
// src/app/commands/registry.ts
|
|
@@ -7281,7 +7318,7 @@ function buildPluginMcpConfig(pluginDirs, mcpServerOptions) {
|
|
|
7281
7318
|
if (Object.keys(mergedServers).length === 0) {
|
|
7282
7319
|
return void 0;
|
|
7283
7320
|
}
|
|
7284
|
-
const mcpConfig = path13.join(
|
|
7321
|
+
const mcpConfig = path13.join(os10.tmpdir(), `athena-mcp-${process.pid}.json`);
|
|
7285
7322
|
fs15.writeFileSync(mcpConfig, JSON.stringify({ mcpServers: mergedServers }));
|
|
7286
7323
|
return mcpConfig;
|
|
7287
7324
|
}
|
|
@@ -13781,11 +13818,11 @@ ${details}` : entry.summary;
|
|
|
13781
13818
|
|
|
13782
13819
|
// src/infra/sessions/registry.ts
|
|
13783
13820
|
import fs18 from "fs";
|
|
13784
|
-
import
|
|
13821
|
+
import os11 from "os";
|
|
13785
13822
|
import path15 from "path";
|
|
13786
13823
|
import Database3 from "better-sqlite3";
|
|
13787
13824
|
function sessionsDir() {
|
|
13788
|
-
return path15.join(
|
|
13825
|
+
return path15.join(os11.homedir(), ".config", "athena", "sessions");
|
|
13789
13826
|
}
|
|
13790
13827
|
function sessionDbPath(sessionId) {
|
|
13791
13828
|
return path15.join(sessionsDir(), sessionId, "session.db");
|
|
@@ -14277,7 +14314,7 @@ function defaultLoadToken(tokenPath) {
|
|
|
14277
14314
|
|
|
14278
14315
|
// src/infra/config/gatewayClient.ts
|
|
14279
14316
|
import fs19 from "fs";
|
|
14280
|
-
import
|
|
14317
|
+
import os12 from "os";
|
|
14281
14318
|
import path16 from "path";
|
|
14282
14319
|
|
|
14283
14320
|
// src/shared/gateway-protocol/endpoint.ts
|
|
@@ -14333,7 +14370,7 @@ function isRecord2(value) {
|
|
|
14333
14370
|
|
|
14334
14371
|
// src/infra/config/gatewayClient.ts
|
|
14335
14372
|
function resolveGatewayClientConfigPath(env = process.env) {
|
|
14336
|
-
const home = env["HOME"] ??
|
|
14373
|
+
const home = env["HOME"] ?? os12.homedir();
|
|
14337
14374
|
return path16.join(home, ".config", "athena", "gateway.json");
|
|
14338
14375
|
}
|
|
14339
14376
|
function readGatewayClientConfig(env = process.env) {
|
|
@@ -16862,10 +16899,10 @@ async function executeRemoteAssignment({
|
|
|
16862
16899
|
// src/infra/config/attachmentMirror.ts
|
|
16863
16900
|
import crypto4 from "crypto";
|
|
16864
16901
|
import fs22 from "fs";
|
|
16865
|
-
import
|
|
16902
|
+
import os13 from "os";
|
|
16866
16903
|
import path20 from "path";
|
|
16867
16904
|
function attachmentMirrorPath(env = process.env) {
|
|
16868
|
-
const home = env["HOME"] ??
|
|
16905
|
+
const home = env["HOME"] ?? os13.homedir();
|
|
16869
16906
|
return path20.join(home, ".config", "athena", "attachments.json");
|
|
16870
16907
|
}
|
|
16871
16908
|
function readAttachmentMirror(env = process.env) {
|
|
@@ -17333,7 +17370,7 @@ function createDashboardPairedExecution(options) {
|
|
|
17333
17370
|
|
|
17334
17371
|
// src/app/dashboard/remoteWorkspaceResolver.ts
|
|
17335
17372
|
import fs23 from "fs";
|
|
17336
|
-
import
|
|
17373
|
+
import os14 from "os";
|
|
17337
17374
|
import path21 from "path";
|
|
17338
17375
|
function resolveRemoteWorkspace(assignment, options = {}) {
|
|
17339
17376
|
const { spec, runId, runnerId } = assignment;
|
|
@@ -17388,7 +17425,7 @@ function validateProjectDir(projectDir, env = process.env) {
|
|
|
17388
17425
|
}
|
|
17389
17426
|
};
|
|
17390
17427
|
}
|
|
17391
|
-
const home = path21.resolve(env["HOME"] ??
|
|
17428
|
+
const home = path21.resolve(env["HOME"] ?? os14.homedir());
|
|
17392
17429
|
if (resolved === home) {
|
|
17393
17430
|
return {
|
|
17394
17431
|
kind: "rejected",
|
|
@@ -18237,4 +18274,4 @@ export {
|
|
|
18237
18274
|
startUdsServer,
|
|
18238
18275
|
sendUdsRequest
|
|
18239
18276
|
};
|
|
18240
|
-
//# sourceMappingURL=chunk-
|
|
18277
|
+
//# sourceMappingURL=chunk-PWXH6WWV.js.map
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./chunk-HXBCZAP7.js";
|
|
3
3
|
import {
|
|
4
4
|
rotateGatewayToken
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MRAM6EYI.js";
|
|
6
6
|
import {
|
|
7
7
|
CREDENTIAL_SOURCES_TRIED,
|
|
8
8
|
EXEC_EXIT_CODE,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
writeAttachmentMirror,
|
|
98
98
|
writeGatewayClientConfig,
|
|
99
99
|
wsClientOptionsForEndpoint
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-PWXH6WWV.js";
|
|
101
101
|
import {
|
|
102
102
|
generateId as generateId2
|
|
103
103
|
} from "./chunk-BTKQ67RE.js";
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
trackTelemetryOptedOut,
|
|
122
122
|
writeDashboardClientConfig,
|
|
123
123
|
writeGatewayTrace
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-BTY7MYYT.js";
|
|
125
125
|
import {
|
|
126
126
|
McpOptionsStep,
|
|
127
127
|
StepSelector,
|
|
@@ -12681,7 +12681,7 @@ var cachedVersion = null;
|
|
|
12681
12681
|
function readPackageVersion() {
|
|
12682
12682
|
if (cachedVersion !== null) return cachedVersion;
|
|
12683
12683
|
try {
|
|
12684
|
-
const injected = "0.5.
|
|
12684
|
+
const injected = "0.5.16";
|
|
12685
12685
|
if (typeof injected === "string" && injected.length > 0) {
|
|
12686
12686
|
cachedVersion = injected;
|
|
12687
12687
|
return cachedVersion;
|
package/dist/dashboard-daemon.js
CHANGED
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
ensureDaemonStateDir,
|
|
4
4
|
runDashboardRuntimeDaemon,
|
|
5
5
|
startUdsServer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PWXH6WWV.js";
|
|
7
7
|
import "./chunk-BTKQ67RE.js";
|
|
8
8
|
import {
|
|
9
9
|
readDashboardClientConfig,
|
|
10
10
|
refreshDashboardAccessToken
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BTY7MYYT.js";
|
|
12
12
|
import "./chunk-SOW2QPXY.js";
|
|
13
13
|
|
|
14
14
|
// src/infra/daemon/logFile.ts
|