@gobing-ai/ts-ai-runner 0.4.47 → 0.4.49
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/agents/shims.js +3 -3
- package/package.json +4 -4
- package/src/agents/shims.ts +3 -3
package/dist/agents/shims.js
CHANGED
|
@@ -6,9 +6,9 @@ const claudeShim = {
|
|
|
6
6
|
getHelpCommand: () => ({ command: 'claude', args: ['--help'] }),
|
|
7
7
|
getVersionCommand: () => ({ command: 'claude', args: ['--version'] }),
|
|
8
8
|
getPromptCommand: (options) => {
|
|
9
|
-
// Headless dispatch cannot answer edit approval prompts.
|
|
10
|
-
//
|
|
11
|
-
const args = ['-p', options.input ?? '', '--permission-mode', 'acceptEdits'];
|
|
9
|
+
// Headless dispatch cannot answer edit approval prompts. Keep the grant
|
|
10
|
+
// scoped to file edits; shell and broader tools remain gated.
|
|
11
|
+
const args = ['-p', options.input ?? '', '--permission-mode', 'acceptEdits', '--allowedTools', 'Write', 'Edit'];
|
|
12
12
|
const hasSession = options.sessionId !== undefined || options.sessionDir !== undefined;
|
|
13
13
|
if (hasSession) {
|
|
14
14
|
// Session/pin path — never emit --continue. Claude has no session-dir
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobing-ai/ts-ai-runner",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.49",
|
|
4
4
|
"description": "@gobing-ai/ts-ai-runner — Coding-agent shims, detection, doctor checks, and prompt execution.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"release": "echo 'Manual publish is disabled. Releases go through GitHub Actions via Trusted Publishing — push a tag: git tag @gobing-ai/ts-ai-runner-v<version> && git push --tags' && exit 1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@gobing-ai/ts-infra": "^0.4.
|
|
51
|
-
"@gobing-ai/ts-runtime": "^0.4.
|
|
50
|
+
"@gobing-ai/ts-infra": "^0.4.49",
|
|
51
|
+
"@gobing-ai/ts-runtime": "^0.4.49"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/bun": "1.3.14",
|
|
55
|
-
"@gobing-ai/ts-db": "^0.4.
|
|
55
|
+
"@gobing-ai/ts-db": "^0.4.49"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
package/src/agents/shims.ts
CHANGED
|
@@ -104,9 +104,9 @@ const claudeShim: AgentShim = {
|
|
|
104
104
|
getHelpCommand: () => ({ command: 'claude', args: ['--help'] }),
|
|
105
105
|
getVersionCommand: () => ({ command: 'claude', args: ['--version'] }),
|
|
106
106
|
getPromptCommand: (options) => {
|
|
107
|
-
// Headless dispatch cannot answer edit approval prompts.
|
|
108
|
-
//
|
|
109
|
-
const args = ['-p', options.input ?? '', '--permission-mode', 'acceptEdits'];
|
|
107
|
+
// Headless dispatch cannot answer edit approval prompts. Keep the grant
|
|
108
|
+
// scoped to file edits; shell and broader tools remain gated.
|
|
109
|
+
const args = ['-p', options.input ?? '', '--permission-mode', 'acceptEdits', '--allowedTools', 'Write', 'Edit'];
|
|
110
110
|
const hasSession = options.sessionId !== undefined || options.sessionDir !== undefined;
|
|
111
111
|
if (hasSession) {
|
|
112
112
|
// Session/pin path — never emit --continue. Claude has no session-dir
|