@kodizm/acp 0.6.8 → 0.6.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.js +16 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5723,6 +5723,9 @@ function translateFeaturesToClaude(features, permissionMode) {
|
|
|
5723
5723
|
out.strictMcpConfig = true;
|
|
5724
5724
|
return out;
|
|
5725
5725
|
}
|
|
5726
|
+
if (features.tools !== undefined) {
|
|
5727
|
+
out.tools = [...features.tools];
|
|
5728
|
+
}
|
|
5726
5729
|
for (const [family, tools] of Object.entries(FAMILY_TOOLS)) {
|
|
5727
5730
|
if (features[family] !== false) {
|
|
5728
5731
|
continue;
|
|
@@ -51717,7 +51720,7 @@ class OpencodeDriver {
|
|
|
51717
51720
|
}
|
|
51718
51721
|
async newSession(params) {
|
|
51719
51722
|
const sessionId = randomUUID4();
|
|
51720
|
-
const env = this.
|
|
51723
|
+
const env = this.buildSessionEnv(params);
|
|
51721
51724
|
const bridge = this.bridgeFactory();
|
|
51722
51725
|
const handle = await bridge.start({ env });
|
|
51723
51726
|
const ruleset = buildOpencodeRuleset(params.toolPolicy);
|
|
@@ -51966,7 +51969,7 @@ class OpencodeDriver {
|
|
|
51966
51969
|
throw new MethodNotSupportedError("session/load", this.supportedMethodNames());
|
|
51967
51970
|
}
|
|
51968
51971
|
const bridge = this.bridgeFactory();
|
|
51969
|
-
const handle = await bridge.start({});
|
|
51972
|
+
const handle = await bridge.start({ env: this.buildSessionEnv(params) });
|
|
51970
51973
|
const sessionApi = handle.sdk.session;
|
|
51971
51974
|
if (typeof sessionApi.get === "function") {
|
|
51972
51975
|
try {
|
|
@@ -52033,6 +52036,14 @@ class OpencodeDriver {
|
|
|
52033
52036
|
return;
|
|
52034
52037
|
})));
|
|
52035
52038
|
}
|
|
52039
|
+
buildSessionEnv(params) {
|
|
52040
|
+
const sources = params.features?.simple === true ? [] : params.settingSources;
|
|
52041
|
+
const untrusted = sources !== undefined && !sources.includes("project");
|
|
52042
|
+
return {
|
|
52043
|
+
...this.buildAuthEnv(params),
|
|
52044
|
+
...untrusted ? { OPENCODE_DISABLE_PROJECT_CONFIG: "1" } : {}
|
|
52045
|
+
};
|
|
52046
|
+
}
|
|
52036
52047
|
buildAuthEnv(params) {
|
|
52037
52048
|
const meta = params._meta ?? {};
|
|
52038
52049
|
if (meta.opencodeAuth === undefined) {
|
|
@@ -52123,7 +52134,7 @@ var init_driver2 = __esm(() => {
|
|
|
52123
52134
|
// package.json
|
|
52124
52135
|
var package_default = {
|
|
52125
52136
|
name: "@kodizm/acp",
|
|
52126
|
-
version: "0.6.
|
|
52137
|
+
version: "0.6.9",
|
|
52127
52138
|
description: "Custom ACP server bridging Claude Code, codex, and opencode CLIs through a single Kodizm-flavored protocol surface.",
|
|
52128
52139
|
type: "module",
|
|
52129
52140
|
bin: {
|
|
@@ -52261,7 +52272,8 @@ var FeaturesSchema = object({
|
|
|
52261
52272
|
clientTools: boolean2().optional(),
|
|
52262
52273
|
autoMemory: boolean2().optional(),
|
|
52263
52274
|
bundledSkills: boolean2().optional(),
|
|
52264
|
-
simple: boolean2().optional()
|
|
52275
|
+
simple: boolean2().optional(),
|
|
52276
|
+
tools: array(string2().min(1)).optional()
|
|
52265
52277
|
});
|
|
52266
52278
|
function metaCarriesNoCanonicalFields(data) {
|
|
52267
52279
|
if (data._meta === undefined) {
|