@sandagent/runner-cli 0.2.19 → 0.2.20
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/bundle.mjs +3 -4
- package/package.json +2 -2
package/dist/bundle.mjs
CHANGED
|
@@ -579,6 +579,7 @@ async function* runWithClaudeAgentSDK(sdk, options, userInput) {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
function createSDKOptions(options) {
|
|
582
|
+
const isRoot = typeof process.getuid === "function" && process.getuid() === 0;
|
|
582
583
|
return {
|
|
583
584
|
model: options.model,
|
|
584
585
|
systemPrompt: options.systemPrompt,
|
|
@@ -594,10 +595,8 @@ function createSDKOptions(options) {
|
|
|
594
595
|
resume: options.resume,
|
|
595
596
|
settingSources: ["project", "user"],
|
|
596
597
|
canUseTool: createCanUseToolCallback(options),
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
allowDangerouslySkipPermissions: true,
|
|
600
|
-
// Enable partial messages for streaming
|
|
598
|
+
permissionMode: isRoot ? "default" : "bypassPermissions",
|
|
599
|
+
allowDangerouslySkipPermissions: !isRoot,
|
|
601
600
|
includePartialMessages: options.includePartialMessages
|
|
602
601
|
};
|
|
603
602
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sandagent/runner-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"description": "SandAgent Runner CLI - Like gemini-cli or claude-code, runs in your local terminal with AI SDK UI streaming",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"anthropic"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@anthropic-ai/claude-agent-sdk": "
|
|
44
|
+
"@anthropic-ai/claude-agent-sdk": "0.2.69"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^20.10.0",
|