@zgeoff/atc 2.9.0 → 2.10.1
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/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { query } from '@anthropic-ai/claude-agent-sdk';
|
|
2
1
|
import type { AgentSessionID } from '../shared/agent-session-id';
|
|
3
2
|
import { socketPath } from '../shared/config';
|
|
4
3
|
import { isCompiledBinary } from '../shared/is-compiled-binary';
|
|
@@ -55,7 +54,12 @@ export function startHeadlessRun(
|
|
|
55
54
|
const mode = PERMISSION_MODES.find((m) => m === opts.permissionMode);
|
|
56
55
|
let stderrTail = '';
|
|
57
56
|
|
|
58
|
-
|
|
57
|
+
// The SDK is the heaviest module in the daemon's graph, and only a
|
|
58
|
+
// headless turn needs it, so loading it here keeps it off the daemon's
|
|
59
|
+
// cold start.
|
|
60
|
+
const sdk = await import('@anthropic-ai/claude-agent-sdk');
|
|
61
|
+
|
|
62
|
+
const stream = sdk.query({
|
|
59
63
|
prompt: opts.prompt,
|
|
60
64
|
options: {
|
|
61
65
|
cwd: opts.cwd,
|