@kodizm/acp 0.6.9 → 0.7.0
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.js +17 -11
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -6429,6 +6429,7 @@ class ClaudeDriver {
|
|
|
6429
6429
|
}
|
|
6430
6430
|
buildBaseSdkOptions(params) {
|
|
6431
6431
|
const additional = "additionalDirectories" in params && params.additionalDirectories !== undefined ? { additionalDirectories: [...params.additionalDirectories] } : {};
|
|
6432
|
+
const plugins = "plugins" in params && params.plugins !== undefined && params.plugins.length > 0 ? { plugins: params.plugins.map((path) => ({ type: "local", path })) } : {};
|
|
6432
6433
|
const skills = "skills" in params && params.skills !== undefined && params.skills.length > 0 ? { skills: [...params.skills] } : {};
|
|
6433
6434
|
const policyTranslation = "toolPolicy" in params && params.toolPolicy !== undefined ? translateToolPolicyToClaude(params.toolPolicy) : {};
|
|
6434
6435
|
const permissionMode = policyTranslation.permissionMode ?? "bypassPermissions";
|
|
@@ -6463,6 +6464,7 @@ class ClaudeDriver {
|
|
|
6463
6464
|
cwd: params.cwd,
|
|
6464
6465
|
mcpServers: translateMcpServers(params.mcpServers),
|
|
6465
6466
|
...additional,
|
|
6467
|
+
...plugins,
|
|
6466
6468
|
...skills,
|
|
6467
6469
|
...policyOptions,
|
|
6468
6470
|
...envOpt,
|
|
@@ -52134,8 +52136,8 @@ var init_driver2 = __esm(() => {
|
|
|
52134
52136
|
// package.json
|
|
52135
52137
|
var package_default = {
|
|
52136
52138
|
name: "@kodizm/acp",
|
|
52137
|
-
version: "0.
|
|
52138
|
-
description: "Custom ACP server bridging Claude Code
|
|
52139
|
+
version: "0.7.0",
|
|
52140
|
+
description: "Custom ACP server bridging Claude Code and opencode CLIs through a single Kodizm-flavored protocol surface.",
|
|
52139
52141
|
type: "module",
|
|
52140
52142
|
bin: {
|
|
52141
52143
|
"kodizm-acp": "./dist/index.js"
|
|
@@ -52167,17 +52169,18 @@ var package_default = {
|
|
|
52167
52169
|
publishConfig: {
|
|
52168
52170
|
access: "public"
|
|
52169
52171
|
},
|
|
52170
|
-
|
|
52171
|
-
|
|
52172
|
-
"@anthropic-ai/sdk": ">=0.93.0",
|
|
52173
|
-
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
52174
|
-
"@opencode-ai/sdk": "^1.18.32",
|
|
52175
|
-
zod: "^4.0.0"
|
|
52172
|
+
config: {
|
|
52173
|
+
claudeAgentSdk: "0.3.280"
|
|
52176
52174
|
},
|
|
52177
52175
|
devDependencies: {
|
|
52176
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.280",
|
|
52177
|
+
"@anthropic-ai/sdk": ">=0.93.0",
|
|
52178
52178
|
"@biomejs/biome": "^1.9.0",
|
|
52179
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
52180
|
+
"@opencode-ai/sdk": "^1.18.32",
|
|
52179
52181
|
"@types/bun": "latest",
|
|
52180
|
-
typescript: "^5.6.0"
|
|
52182
|
+
typescript: "^5.6.0",
|
|
52183
|
+
zod: "^4.0.0"
|
|
52181
52184
|
},
|
|
52182
52185
|
license: "Apache-2.0",
|
|
52183
52186
|
homepage: "https://github.com/kodizm/acp",
|
|
@@ -52189,7 +52192,6 @@ var package_default = {
|
|
|
52189
52192
|
"acp",
|
|
52190
52193
|
"agent-client-protocol",
|
|
52191
52194
|
"claude",
|
|
52192
|
-
"codex",
|
|
52193
52195
|
"opencode",
|
|
52194
52196
|
"ai",
|
|
52195
52197
|
"bridge",
|
|
@@ -52215,6 +52217,8 @@ function ensureCapability(caps, required, method) {
|
|
|
52215
52217
|
// src/wire/schemas.ts
|
|
52216
52218
|
init_zod();
|
|
52217
52219
|
var AbsolutePathSchema = string2().regex(/^\//, 'path must be absolute (start with "/")');
|
|
52220
|
+
var PLUGIN_ROOT = "/opt/kodizm/plugins/";
|
|
52221
|
+
var PluginPathSchema = AbsolutePathSchema.refine((path) => path.length > PLUGIN_ROOT.length && path.startsWith(PLUGIN_ROOT) && !path.split("/").includes(".."), { message: `plugin path must live under ${PLUGIN_ROOT} with no ".." segment` });
|
|
52218
52222
|
var McpServerSchema = object({
|
|
52219
52223
|
type: literal("http"),
|
|
52220
52224
|
name: string2().min(1),
|
|
@@ -52251,7 +52255,8 @@ var CANONICAL_FIELDS_BANNED_IN_META = [
|
|
|
52251
52255
|
"heartbeatIntervalMs",
|
|
52252
52256
|
"inactivityThresholdMs",
|
|
52253
52257
|
"settingSources",
|
|
52254
|
-
"features"
|
|
52258
|
+
"features",
|
|
52259
|
+
"plugins"
|
|
52255
52260
|
];
|
|
52256
52261
|
var SettingSourcesSchema = array(_enum(["user", "project", "local"]));
|
|
52257
52262
|
var PermissionModeSchema = _enum(["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions"]);
|
|
@@ -52294,6 +52299,7 @@ var InitializeRequestSchema = object({
|
|
|
52294
52299
|
});
|
|
52295
52300
|
var SessionOptionFields = {
|
|
52296
52301
|
additionalDirectories: array(AbsolutePathSchema).optional(),
|
|
52302
|
+
plugins: array(PluginPathSchema).optional(),
|
|
52297
52303
|
systemPrompt: SystemPromptSchema.optional(),
|
|
52298
52304
|
model: string2().optional(),
|
|
52299
52305
|
skills: array(string2()).optional(),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodizm/acp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Custom ACP server bridging Claude Code
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Custom ACP server bridging Claude Code and opencode CLIs through a single Kodizm-flavored protocol surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"kodizm-acp": "./dist/index.js"
|
|
@@ -33,17 +33,18 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"@anthropic-ai/sdk": ">=0.93.0",
|
|
39
|
-
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
40
|
-
"@opencode-ai/sdk": "^1.18.32",
|
|
41
|
-
"zod": "^4.0.0"
|
|
36
|
+
"config": {
|
|
37
|
+
"claudeAgentSdk": "0.3.280"
|
|
42
38
|
},
|
|
43
39
|
"devDependencies": {
|
|
40
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.280",
|
|
41
|
+
"@anthropic-ai/sdk": ">=0.93.0",
|
|
44
42
|
"@biomejs/biome": "^1.9.0",
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
44
|
+
"@opencode-ai/sdk": "^1.18.32",
|
|
45
45
|
"@types/bun": "latest",
|
|
46
|
-
"typescript": "^5.6.0"
|
|
46
|
+
"typescript": "^5.6.0",
|
|
47
|
+
"zod": "^4.0.0"
|
|
47
48
|
},
|
|
48
49
|
"license": "Apache-2.0",
|
|
49
50
|
"homepage": "https://github.com/kodizm/acp",
|
|
@@ -55,7 +56,6 @@
|
|
|
55
56
|
"acp",
|
|
56
57
|
"agent-client-protocol",
|
|
57
58
|
"claude",
|
|
58
|
-
"codex",
|
|
59
59
|
"opencode",
|
|
60
60
|
"ai",
|
|
61
61
|
"bridge",
|