@cjhyy/code-shell-capability-coding 0.8.8 → 0.8.9
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/index.capability.js +4 -3
- package/package.json +2 -2
package/dist/index.capability.js
CHANGED
|
@@ -14,6 +14,7 @@ import { codingArtifactDetector, createCodingToolService, findCodingInstructionB
|
|
|
14
14
|
function defineTool(definition, execute, exposure) {
|
|
15
15
|
return { definition, execute, exposure };
|
|
16
16
|
}
|
|
17
|
+
const unavailableInQuickChat = (context) => context.behaviorProfile !== "quickChatRestricted";
|
|
17
18
|
export const CODING_TOOLS = [
|
|
18
19
|
// `briefTool` remains a root compatibility export, but is deliberately not
|
|
19
20
|
// model-exposed here: its Markdown return value is a tool result, not a
|
|
@@ -26,14 +27,14 @@ export const CODING_TOOLS = [
|
|
|
26
27
|
isConcurrencySafe: false,
|
|
27
28
|
timeoutMs: DRIVE_AGENT_TOOL_TIMEOUT_MS,
|
|
28
29
|
pathPolicy: [{ kind: "arg", arg: "attachmentPaths", operation: "read" }],
|
|
29
|
-
}, driveAgentTool, { presetTags: ["general", "terminal-coding"] }),
|
|
30
|
+
}, driveAgentTool, { presetTags: ["general", "terminal-coding"], availability: unavailableInQuickChat }),
|
|
30
31
|
defineTool({
|
|
31
32
|
...driveAgentJobsToolDef,
|
|
32
33
|
source: "builtin",
|
|
33
34
|
permissionDefault: "allow",
|
|
34
35
|
isReadOnly: false,
|
|
35
36
|
isConcurrencySafe: false,
|
|
36
|
-
}, driveAgentJobsTool, { presetTags: ["general", "terminal-coding"] }),
|
|
37
|
+
}, driveAgentJobsTool, { presetTags: ["general", "terminal-coding"], availability: unavailableInQuickChat }),
|
|
37
38
|
defineTool({
|
|
38
39
|
...driveClaudeCodeToolDef,
|
|
39
40
|
source: "builtin",
|
|
@@ -42,7 +43,7 @@ export const CODING_TOOLS = [
|
|
|
42
43
|
isConcurrencySafe: false,
|
|
43
44
|
timeoutMs: DRIVE_AGENT_TOOL_TIMEOUT_MS,
|
|
44
45
|
pathPolicy: [{ kind: "arg", arg: "attachmentPaths", operation: "read" }],
|
|
45
|
-
}, driveClaudeCodeTool, { presetTags: ["general", "terminal-coding"] }),
|
|
46
|
+
}, driveClaudeCodeTool, { presetTags: ["general", "terminal-coding"], availability: unavailableInQuickChat }),
|
|
46
47
|
defineTool({
|
|
47
48
|
...checkQuotaToolDef,
|
|
48
49
|
source: "builtin",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cjhyy/code-shell-capability-coding",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"description": "Coding capability pack for the generic code-shell agent core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@cjhyy/code-shell-core": "0.8.
|
|
42
|
+
"@cjhyy/code-shell-core": "0.8.9"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=20.10"
|