@mininglamp-oss/octo-runtime 1.1.15 → 1.1.16
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/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/manifest.json +6 -0
- package/apps/cli/dist/providers.d.ts +18 -0
- package/apps/cli/dist/providers.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +42 -18
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/elicitation-authorization.d.ts +15 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/elicitation-authorization.js +91 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-trae-cli/dist/index.d.ts +38 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-trae-cli/dist/index.js +25 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-trae-cli/package.json +15 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.d.ts +18 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +21 -20
- package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/package.json +26 -24
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +5 -0
|
@@ -180,3 +180,21 @@ export declare const createCliQoderCliCnAdapter: (options: Record<string, unknow
|
|
|
180
180
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
181
181
|
};
|
|
182
182
|
}>;
|
|
183
|
+
export declare const createCliTraeCliAdapter: (options: Record<string, unknown>, context: {
|
|
184
|
+
env: NodeJS.ProcessEnv;
|
|
185
|
+
}) => HostedAdapter | Readonly<Omit<{
|
|
186
|
+
metadata: AdapterMetadata;
|
|
187
|
+
probe: () => Promise<{
|
|
188
|
+
available: false;
|
|
189
|
+
command: string;
|
|
190
|
+
reason: string;
|
|
191
|
+
}>;
|
|
192
|
+
respondInteraction: () => Promise<void>;
|
|
193
|
+
respondNative: () => Promise<void>;
|
|
194
|
+
invoke(request: import("@mininglamp-oss/octo-runtime-protocol").InvokeRequest, context: import("@mininglamp-oss/octo-runtime-adapter-sdk").AdapterInvocationContext | undefined): AsyncGenerator<never, void, unknown>;
|
|
195
|
+
}, "metadata" | "defaultAgentEnv"> & {
|
|
196
|
+
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
197
|
+
metadata: Omit<AdapterMetadata, "protocolSupport"> & {
|
|
198
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
199
|
+
};
|
|
200
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createTraeCliAdapter, traeCliMetadata } from "@mininglamp-oss/octo-runtime-adapter-trae-cli";
|
|
1
2
|
import { createOpenCodeAdapter, openCodeMetadata } from "@mininglamp-oss/octo-runtime-adapter-opencode";
|
|
2
3
|
import { createClaudeCodeAdapter, claudeCodeMetadata } from "@mininglamp-oss/octo-runtime-adapter-claude-code";
|
|
3
4
|
import { createCodeBuddyAdapter, codeBuddyMetadata } from "@mininglamp-oss/octo-runtime-adapter-codebuddy";
|
|
@@ -32,3 +33,4 @@ export const createCliKimiCodeAdapter = cliFactory(kimiCodeMetadata, "kimi", cre
|
|
|
32
33
|
export const createCliMcodeAdapter = cliFactory(mcodeMetadata, "mcode", createMcodeAdapter);
|
|
33
34
|
export const createCliQoderCliAdapter = cliFactory(qoderCliMetadata, "qodercli", createQoderCliAdapter);
|
|
34
35
|
export const createCliQoderCliCnAdapter = cliFactory(qoderCliCnMetadata, "qoderclicn", createQoderCliCnAdapter);
|
|
36
|
+
export const createCliTraeCliAdapter = cliFactory(traeCliMetadata, "traecli", createTraeCliAdapter);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-acp-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
13
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-acp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
13
|
-
"@mininglamp-oss/octo-runtime-acp-client": "1.1.
|
|
14
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.16",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-antigravity",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
14
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-claude-code",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16"
|
|
10
10
|
},
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"files": [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-codebuddy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-acp-client": "1.1.
|
|
10
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.16",
|
|
10
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16"
|
|
11
11
|
},
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { codexCollaborationMode } from "./agent-env.js";
|
|
2
|
+
import { elicitationAuthorization, elicitationAuthorizationReply, validateNativeElicitationAuthorization } from "./elicitation-authorization.js";
|
|
2
3
|
import { invocationModel, invocationEffort, invocationProviderOptions, invocationOption, invocationApprovalMode, invocationWorkdir } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
3
4
|
import { invocationEnvs, mapReasoningEffort } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
4
5
|
import { canonicalTerminalStatus, classifyFailure, isCodexLocalFailureReason, isStreamCapacityReason, contextHash, assertJsonByteLimit, providerInputParts, PROVIDER_DIAGNOSTIC_MAX_BYTES, resolveStreamLimitPolicy, streamCapacityError } from "@mininglamp-oss/octo-runtime-protocol";
|
|
@@ -724,7 +725,7 @@ export class CodexEventNormalizer {
|
|
|
724
725
|
return id ? (this.#itemChannels.get(id) ?? "final") : "final";
|
|
725
726
|
}
|
|
726
727
|
}
|
|
727
|
-
function interactionKind(method) {
|
|
728
|
+
function interactionKind(method, params) {
|
|
728
729
|
switch (method) {
|
|
729
730
|
case "item/commandExecution/requestApproval":
|
|
730
731
|
case "execCommandApproval":
|
|
@@ -735,7 +736,8 @@ function interactionKind(method) {
|
|
|
735
736
|
case "item/tool/requestUserInput":
|
|
736
737
|
return "question";
|
|
737
738
|
case "mcpServer/elicitation/request":
|
|
738
|
-
|
|
739
|
+
// 只有结构化工具许可进入审批策略;真实输入、登录及未知形状保持交互。
|
|
740
|
+
return elicitationAuthorization(params) ? "approval" : "elicitation";
|
|
739
741
|
default:
|
|
740
742
|
return undefined;
|
|
741
743
|
}
|
|
@@ -746,8 +748,13 @@ function codexInteractionId(id, invocationId, sequence) {
|
|
|
746
748
|
.update(JSON.stringify([invocationId, id, sequence]))
|
|
747
749
|
.digest("hex")}`;
|
|
748
750
|
}
|
|
749
|
-
function automaticServerRequestResult(method) {
|
|
751
|
+
function automaticServerRequestResult(method, params) {
|
|
750
752
|
switch (method) {
|
|
753
|
+
case "mcpServer/elicitation/request":
|
|
754
|
+
return elicitationAuthorizationReply(params, {
|
|
755
|
+
interactionId: "automatic",
|
|
756
|
+
outcome: "accepted"
|
|
757
|
+
});
|
|
751
758
|
case "item/commandExecution/requestApproval":
|
|
752
759
|
case "item/fileChange/requestApproval":
|
|
753
760
|
return { decision: "accept" };
|
|
@@ -807,7 +814,10 @@ function displaySafeInteractionRequest(method, params) {
|
|
|
807
814
|
}
|
|
808
815
|
if (params.requestedSchema !== undefined)
|
|
809
816
|
request.requestedSchema = boundedJson(params.requestedSchema);
|
|
810
|
-
|
|
817
|
+
const authorization = elicitationAuthorization(params);
|
|
818
|
+
if (authorization)
|
|
819
|
+
request.consent = authorization;
|
|
820
|
+
// 仅投影有界授权选项;任意 Provider `_meta` 和验证挑战不得进入 Canonical。
|
|
811
821
|
}
|
|
812
822
|
return sanitizePublicValue(request);
|
|
813
823
|
}
|
|
@@ -829,7 +839,10 @@ function providerInteractionReply(pending, response) {
|
|
|
829
839
|
}
|
|
830
840
|
};
|
|
831
841
|
}
|
|
832
|
-
case "mcpServer/elicitation/request":
|
|
842
|
+
case "mcpServer/elicitation/request": {
|
|
843
|
+
const authorization = elicitationAuthorizationReply(params, response);
|
|
844
|
+
if (authorization)
|
|
845
|
+
return { result: authorization };
|
|
833
846
|
if (response.outcome === "declined" || response.outcome === "cancelled") {
|
|
834
847
|
return {
|
|
835
848
|
result: {
|
|
@@ -843,6 +856,7 @@ function providerInteractionReply(pending, response) {
|
|
|
843
856
|
throw new Error("unsupported elicitation outcome");
|
|
844
857
|
}
|
|
845
858
|
return { result: { action: "accept", content: jsonValue(response.value), _meta: null } };
|
|
859
|
+
}
|
|
846
860
|
case "item/tool/requestUserInput":
|
|
847
861
|
if (response.outcome === "declined" || response.outcome === "cancelled") {
|
|
848
862
|
return {
|
|
@@ -1167,7 +1181,8 @@ class CodexAppServerClient {
|
|
|
1167
1181
|
}
|
|
1168
1182
|
else if (!result)
|
|
1169
1183
|
throw protocolError("NATIVE_RESPONSE_INVALID");
|
|
1170
|
-
else if (
|
|
1184
|
+
else if (pending.method !== "mcpServer/elicitation/request" &&
|
|
1185
|
+
interactionKind(pending.method, pending.params) === "approval") {
|
|
1171
1186
|
const legacy = pending.method === "execCommandApproval" || pending.method === "applyPatchApproval";
|
|
1172
1187
|
const decisions = legacy ? ["approved", "abort"] : ["accept", "decline", "cancel"];
|
|
1173
1188
|
if (Object.keys(result).some((key) => key !== "decision") ||
|
|
@@ -1181,6 +1196,7 @@ class CodexAppServerClient {
|
|
|
1181
1196
|
else if (pending.method === "mcpServer/elicitation/request") {
|
|
1182
1197
|
if (!["accept", "decline", "cancel"].includes(String(result.action)))
|
|
1183
1198
|
throw protocolError("NATIVE_RESPONSE_INVALID");
|
|
1199
|
+
validateNativeElicitationAuthorization(pending.params, result);
|
|
1184
1200
|
}
|
|
1185
1201
|
else
|
|
1186
1202
|
throw protocolError("NATIVE_METHOD_UNSUPPORTED");
|
|
@@ -1507,7 +1523,7 @@ class CodexAppServerClient {
|
|
|
1507
1523
|
}
|
|
1508
1524
|
#handleServerRequest(id, method, params, message) {
|
|
1509
1525
|
this.#clearFinalizationTimer();
|
|
1510
|
-
const kind = interactionKind(method);
|
|
1526
|
+
const kind = interactionKind(method, params);
|
|
1511
1527
|
if (!kind) {
|
|
1512
1528
|
this.#rejectServerRequest(id, method);
|
|
1513
1529
|
return;
|
|
@@ -1594,7 +1610,7 @@ class CodexAppServerClient {
|
|
|
1594
1610
|
});
|
|
1595
1611
|
// 自动审批的响应仍由 Driver 写入并确认;pending 只声明外部是否需要回答,
|
|
1596
1612
|
// 不能让消费者将“正在自动处理”误判为已批准或执行完成。
|
|
1597
|
-
const responseRequired =
|
|
1613
|
+
const responseRequired = !automatic;
|
|
1598
1614
|
if (this.#native) {
|
|
1599
1615
|
this.#queue.push({ kind: "native", messageKind: "request", payload: message });
|
|
1600
1616
|
this.#queue.push({
|
|
@@ -1627,12 +1643,20 @@ class CodexAppServerClient {
|
|
|
1627
1643
|
hash: contextHash(this.invocation.agentEnv)
|
|
1628
1644
|
},
|
|
1629
1645
|
operation: {
|
|
1630
|
-
kind: method
|
|
1631
|
-
? "
|
|
1632
|
-
: "
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1646
|
+
kind: method === "mcpServer/elicitation/request"
|
|
1647
|
+
? "tool_execution"
|
|
1648
|
+
: method.includes("fileChange") || method === "applyPatchApproval"
|
|
1649
|
+
? "file_change"
|
|
1650
|
+
: "command_execution",
|
|
1651
|
+
summary: method === "mcpServer/elicitation/request"
|
|
1652
|
+
? Array.from(typeof display.message === "string" && display.message
|
|
1653
|
+
? display.message
|
|
1654
|
+
: "Approve MCP tool execution")
|
|
1655
|
+
.slice(0, 500)
|
|
1656
|
+
.join("")
|
|
1657
|
+
: typeof display.command === "string" && display.command
|
|
1658
|
+
? Array.from(display.command).slice(0, 500).join("")
|
|
1659
|
+
: "Approve provider operation",
|
|
1636
1660
|
...(typeof params.itemId === "string" ? { toolCallId: params.itemId } : {})
|
|
1637
1661
|
},
|
|
1638
1662
|
requestedPermissions: [],
|
|
@@ -1644,9 +1668,9 @@ class CodexAppServerClient {
|
|
|
1644
1668
|
}
|
|
1645
1669
|
});
|
|
1646
1670
|
}
|
|
1647
|
-
if (
|
|
1648
|
-
const
|
|
1649
|
-
if (
|
|
1671
|
+
if (automatic) {
|
|
1672
|
+
const result = automaticServerRequestResult(method, params);
|
|
1673
|
+
if (result === undefined) {
|
|
1650
1674
|
this.#rejectServerRequest(id, method);
|
|
1651
1675
|
this.#invalidateInteractions("approval_mapping_unsupported");
|
|
1652
1676
|
this.#handleProcessError(codexTransportError("APPROVAL_OPERATION_UNSUPPORTED"));
|
|
@@ -1656,7 +1680,7 @@ class CodexAppServerClient {
|
|
|
1656
1680
|
// 发布 pending 期间输出队列可能已失败,不能继续发送已经失效的批准。
|
|
1657
1681
|
if (!pending)
|
|
1658
1682
|
return;
|
|
1659
|
-
void this.#deliverInteraction(interactionId, pending, { jsonrpc: "2.0", id, result
|
|
1683
|
+
void this.#deliverInteraction(interactionId, pending, { jsonrpc: "2.0", id, result }, undefined, true).catch(() => undefined);
|
|
1660
1684
|
}
|
|
1661
1685
|
}
|
|
1662
1686
|
#rejectServerRequest(id, method) {
|
package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/elicitation-authorization.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InteractionResponse } from "@mininglamp-oss/octo-runtime-protocol";
|
|
2
|
+
/** 只识别已明确声明的空工具授权,不把未知 Schema 或验证挑战解释为许可。 */
|
|
3
|
+
export declare function elicitationAuthorization(params: Record<string, unknown>): {
|
|
4
|
+
scopes: string[];
|
|
5
|
+
toolName?: string;
|
|
6
|
+
connectorName?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
/** 校验原请求声明的范围;控制信封不作为 MCP 表单内容写回,失败不消耗 pending。 */
|
|
9
|
+
export declare function elicitationAuthorizationReply(params: Record<string, unknown>, response: InteractionResponse): {
|
|
10
|
+
action: string;
|
|
11
|
+
content: unknown;
|
|
12
|
+
_meta: unknown;
|
|
13
|
+
} | undefined;
|
|
14
|
+
/** Native 保留原始回复,但已识别的工具许可遵守与 Canonical 相同的范围约束。 */
|
|
15
|
+
export declare function validateNativeElicitationAuthorization(params: Record<string, unknown>, result: Record<string, unknown>): void;
|
package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/elicitation-authorization.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
const record = (value) => value !== null && typeof value === "object" && !Array.isArray(value)
|
|
2
|
+
? value
|
|
3
|
+
: undefined;
|
|
4
|
+
/** 只识别已明确声明的空工具授权,不把未知 Schema 或验证挑战解释为许可。 */
|
|
5
|
+
export function elicitationAuthorization(params) {
|
|
6
|
+
const meta = record(params._meta);
|
|
7
|
+
const schema = record(params.requestedSchema);
|
|
8
|
+
const properties = record(schema?.properties);
|
|
9
|
+
if (params.mode !== "form" ||
|
|
10
|
+
meta?.codex_approval_kind !== "mcp_tool_call" ||
|
|
11
|
+
(meta.codex_requires_user_input !== undefined && meta.codex_requires_user_input !== false) ||
|
|
12
|
+
!schema ||
|
|
13
|
+
schema.type !== "object" ||
|
|
14
|
+
!properties ||
|
|
15
|
+
Object.keys(properties).length ||
|
|
16
|
+
!Object.entries(schema).every(([key, value]) => {
|
|
17
|
+
if (key === "type" || key === "properties")
|
|
18
|
+
return true;
|
|
19
|
+
if (key === "required")
|
|
20
|
+
return Array.isArray(value) && value.length === 0;
|
|
21
|
+
if (key === "additionalProperties")
|
|
22
|
+
return value === false;
|
|
23
|
+
return (key === "title" || key === "description") && typeof value === "string";
|
|
24
|
+
}))
|
|
25
|
+
return undefined;
|
|
26
|
+
const persist = Array.isArray(meta.persist) ? meta.persist : [meta.persist];
|
|
27
|
+
const display = (value) => typeof value === "string" && value.trim()
|
|
28
|
+
? Array.from(value).slice(0, 200).join("")
|
|
29
|
+
: undefined;
|
|
30
|
+
const toolName = display(meta.tool_name), connectorName = display(meta.connector_name);
|
|
31
|
+
return {
|
|
32
|
+
scopes: ["once", ...["session", "always"].filter((scope) => persist.includes(scope))],
|
|
33
|
+
...(toolName ? { toolName } : {}),
|
|
34
|
+
...(connectorName ? { connectorName } : {})
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** 校验原请求声明的范围;控制信封不作为 MCP 表单内容写回,失败不消耗 pending。 */
|
|
38
|
+
export function elicitationAuthorizationReply(params, response) {
|
|
39
|
+
const authorization = elicitationAuthorization(params);
|
|
40
|
+
if (!authorization)
|
|
41
|
+
return undefined;
|
|
42
|
+
const value = record(response.value);
|
|
43
|
+
if (response.outcome === "declined" || response.outcome === "cancelled") {
|
|
44
|
+
if (response.value !== undefined)
|
|
45
|
+
throw new Error("ELICITATION_AUTHORIZATION_INVALID");
|
|
46
|
+
return {
|
|
47
|
+
action: response.outcome === "declined" ? "decline" : "cancel",
|
|
48
|
+
content: null,
|
|
49
|
+
_meta: null
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
if (response.outcome !== "accepted")
|
|
53
|
+
throw new Error("ELICITATION_AUTHORIZATION_INVALID");
|
|
54
|
+
if (response.value === undefined || (value && Object.keys(value).length === 0))
|
|
55
|
+
return { action: "accept", content: {}, _meta: null };
|
|
56
|
+
if (!value ||
|
|
57
|
+
Object.keys(value).length !== 1 ||
|
|
58
|
+
!["session", "always"].includes(String(value.authorizationScope)) ||
|
|
59
|
+
!authorization.scopes.includes(value.authorizationScope))
|
|
60
|
+
throw new Error("ELICITATION_AUTHORIZATION_SCOPE_UNSUPPORTED");
|
|
61
|
+
return { action: "accept", content: {}, _meta: { persist: value.authorizationScope } };
|
|
62
|
+
}
|
|
63
|
+
/** Native 保留原始回复,但已识别的工具许可遵守与 Canonical 相同的范围约束。 */
|
|
64
|
+
export function validateNativeElicitationAuthorization(params, result) {
|
|
65
|
+
if (!elicitationAuthorization(params))
|
|
66
|
+
return;
|
|
67
|
+
const content = record(result.content);
|
|
68
|
+
const meta = record(result._meta);
|
|
69
|
+
if (typeof result.action !== "string" ||
|
|
70
|
+
!["accept", "decline", "cancel"].includes(result.action) ||
|
|
71
|
+
Object.keys(result).length !== 3 ||
|
|
72
|
+
!Object.keys(result).every((key) => ["action", "content", "_meta"].includes(key)) ||
|
|
73
|
+
(result.action === "accept"
|
|
74
|
+
? !content || Object.keys(content).length !== 0
|
|
75
|
+
: result.content !== null) ||
|
|
76
|
+
(result._meta !== null &&
|
|
77
|
+
(!meta || Object.keys(meta).length !== 1 || !Object.hasOwn(meta, "persist"))) ||
|
|
78
|
+
(result.action !== "accept" && result._meta !== null))
|
|
79
|
+
throw new Error("ELICITATION_AUTHORIZATION_INVALID");
|
|
80
|
+
elicitationAuthorizationReply(params, {
|
|
81
|
+
interactionId: "native",
|
|
82
|
+
outcome: result.action === "accept"
|
|
83
|
+
? "accepted"
|
|
84
|
+
: result.action === "decline"
|
|
85
|
+
? "declined"
|
|
86
|
+
: "cancelled",
|
|
87
|
+
...(result.action === "accept"
|
|
88
|
+
? { value: meta ? { authorizationScope: meta.persist } : {} }
|
|
89
|
+
: {})
|
|
90
|
+
});
|
|
91
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-codex",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16"
|
|
10
10
|
},
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"files": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-dsh",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"semver": "7.8.6",
|
|
13
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
14
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-grok-build",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-acp-client": "1.1.
|
|
13
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
14
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
15
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.16",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
15
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-hermes",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-kimi-code",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-mcode",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-openclaw",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
10
10
|
"ws": "8.22.1"
|
|
11
11
|
},
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-opencode",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
10
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16",
|
|
10
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16"
|
|
11
11
|
},
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-qodercli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
13
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-qoderclicn",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
13
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"./module-manifest": "./dist/module-manifest.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
13
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
14
14
|
"import-meta-resolve": "4.2.0"
|
|
15
15
|
},
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { AdapterMetadata } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
2
|
+
import { createAcpAdapter } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
3
|
+
export declare const traeCliMetadata: AdapterMetadata;
|
|
4
|
+
/**
|
|
5
|
+
* 宿主绑定已安装的 TRAE CLI 与基础环境;每次调用动态拉起独占的 ACP stdio 子进程。
|
|
6
|
+
* 传输、审批和取消由共享 ACP Adapter 管理并在本轮结束时关闭,不启动网络服务。
|
|
7
|
+
*/
|
|
8
|
+
export declare function createTraeCliAdapter(options: NonNullable<Parameters<typeof createAcpAdapter>[1]> & {
|
|
9
|
+
command: string;
|
|
10
|
+
}): Readonly<Omit<{
|
|
11
|
+
metadata: {
|
|
12
|
+
mcp?: boolean;
|
|
13
|
+
workspace?: boolean;
|
|
14
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
15
|
+
type: string;
|
|
16
|
+
processModel?: string;
|
|
17
|
+
transport?: string;
|
|
18
|
+
};
|
|
19
|
+
probe: (() => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>) | (() => Promise<{
|
|
20
|
+
available: false;
|
|
21
|
+
command: string;
|
|
22
|
+
reason: string;
|
|
23
|
+
}>);
|
|
24
|
+
respondInteraction(invocationId: string, response: import("@mininglamp-oss/octo-runtime-protocol").InteractionResponse): Promise<void>;
|
|
25
|
+
invoke(request: import("@mininglamp-oss/octo-runtime-protocol").InvokeRequest, context?: import("@mininglamp-oss/octo-runtime-adapter-sdk").AdapterInvocationContext): AsyncGenerator<import("@mininglamp-oss/octo-runtime-protocol").CanonicalEvent>;
|
|
26
|
+
}, "metadata" | "defaultAgentEnv"> & {
|
|
27
|
+
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
28
|
+
metadata: Omit<{
|
|
29
|
+
mcp?: boolean;
|
|
30
|
+
workspace?: boolean;
|
|
31
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
32
|
+
type: string;
|
|
33
|
+
processModel?: string;
|
|
34
|
+
transport?: string;
|
|
35
|
+
}, "protocolSupport"> & {
|
|
36
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { invocationApprovalMode } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
2
|
+
import { createAcpAdapter } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
3
|
+
export const traeCliMetadata = {
|
|
4
|
+
type: "trae-cli",
|
|
5
|
+
mcp: true
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* 宿主绑定已安装的 TRAE CLI 与基础环境;每次调用动态拉起独占的 ACP stdio 子进程。
|
|
9
|
+
* 传输、审批和取消由共享 ACP Adapter 管理并在本轮结束时关闭,不启动网络服务。
|
|
10
|
+
*/
|
|
11
|
+
export function createTraeCliAdapter(options) {
|
|
12
|
+
return createAcpAdapter({
|
|
13
|
+
metadata: traeCliMetadata,
|
|
14
|
+
type: "trae-cli",
|
|
15
|
+
provider: "trae-cli",
|
|
16
|
+
command: options.command,
|
|
17
|
+
// 全局权限参数必须放在 acp serve 前;ask 显式覆盖用户配置中的宽松默认值。
|
|
18
|
+
args: (request) => [
|
|
19
|
+
"--permission-mode",
|
|
20
|
+
invocationApprovalMode(request) === "full_access" ? "bypass_permissions" : "default",
|
|
21
|
+
"acp",
|
|
22
|
+
"serve"
|
|
23
|
+
]
|
|
24
|
+
}, options);
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mininglamp-oss/octo-runtime-adapter-trae-cli",
|
|
3
|
+
"version": "1.1.16",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -180,3 +180,21 @@ export declare const createCliQoderCliCnAdapter: (options: Record<string, unknow
|
|
|
180
180
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
181
181
|
};
|
|
182
182
|
}>;
|
|
183
|
+
export declare const createCliTraeCliAdapter: (options: Record<string, unknown>, context: {
|
|
184
|
+
env: NodeJS.ProcessEnv;
|
|
185
|
+
}) => HostedAdapter | Readonly<Omit<{
|
|
186
|
+
metadata: AdapterMetadata;
|
|
187
|
+
probe: () => Promise<{
|
|
188
|
+
available: false;
|
|
189
|
+
command: string;
|
|
190
|
+
reason: string;
|
|
191
|
+
}>;
|
|
192
|
+
respondInteraction: () => Promise<void>;
|
|
193
|
+
respondNative: () => Promise<void>;
|
|
194
|
+
invoke(request: import("@mininglamp-oss/octo-runtime-protocol").InvokeRequest, context: import("@mininglamp-oss/octo-runtime-adapter-sdk").AdapterInvocationContext | undefined): AsyncGenerator<never, void, unknown>;
|
|
195
|
+
}, "metadata" | "defaultAgentEnv"> & {
|
|
196
|
+
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
197
|
+
metadata: Omit<AdapterMetadata, "protocolSupport"> & {
|
|
198
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
199
|
+
};
|
|
200
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createTraeCliAdapter, traeCliMetadata } from "@mininglamp-oss/octo-runtime-adapter-trae-cli";
|
|
1
2
|
import { createOpenCodeAdapter, openCodeMetadata } from "@mininglamp-oss/octo-runtime-adapter-opencode";
|
|
2
3
|
import { createClaudeCodeAdapter, claudeCodeMetadata } from "@mininglamp-oss/octo-runtime-adapter-claude-code";
|
|
3
4
|
import { createCodeBuddyAdapter, codeBuddyMetadata } from "@mininglamp-oss/octo-runtime-adapter-codebuddy";
|
|
@@ -32,3 +33,4 @@ export const createCliKimiCodeAdapter = cliFactory(kimiCodeMetadata, "kimi", cre
|
|
|
32
33
|
export const createCliMcodeAdapter = cliFactory(mcodeMetadata, "mcode", createMcodeAdapter);
|
|
33
34
|
export const createCliQoderCliAdapter = cliFactory(qoderCliMetadata, "qodercli", createQoderCliAdapter);
|
|
34
35
|
export const createCliQoderCliCnAdapter = cliFactory(qoderCliCnMetadata, "qoderclicn", createQoderCliCnAdapter);
|
|
36
|
+
export const createCliTraeCliAdapter = cliFactory(traeCliMetadata, "traecli", createTraeCliAdapter);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,25 +9,26 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"commander": "15.0.0",
|
|
12
|
-
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.
|
|
13
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.16",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
14
14
|
"json5": "2.2.3",
|
|
15
|
-
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.
|
|
16
|
-
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.
|
|
17
|
-
"@mininglamp-oss/octo-runtime-cross-service": "1.1.
|
|
18
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
19
|
-
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.
|
|
20
|
-
"@mininglamp-oss/octo-runtime-executor-core": "1.1.
|
|
21
|
-
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.
|
|
22
|
-
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.
|
|
23
|
-
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.
|
|
24
|
-
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.
|
|
25
|
-
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.
|
|
26
|
-
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.
|
|
27
|
-
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.
|
|
28
|
-
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.
|
|
29
|
-
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.
|
|
30
|
-
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.
|
|
31
|
-
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.
|
|
15
|
+
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.16",
|
|
16
|
+
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.16",
|
|
17
|
+
"@mininglamp-oss/octo-runtime-cross-service": "1.1.16",
|
|
18
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
19
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.16",
|
|
20
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.16",
|
|
21
|
+
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.16",
|
|
22
|
+
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.16",
|
|
23
|
+
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.16",
|
|
24
|
+
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.16",
|
|
25
|
+
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.16",
|
|
26
|
+
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.16",
|
|
27
|
+
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.16",
|
|
28
|
+
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.16",
|
|
29
|
+
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.16",
|
|
30
|
+
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.16",
|
|
31
|
+
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.16",
|
|
32
|
+
"@mininglamp-oss/octo-runtime-adapter-trae-cli": "1.1.16"
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Standalone Node.js client and shared protocol for an existing Octo Runtime Kernel",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"directory": "packages/octo-runtime-client"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
52
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-executor-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16"
|
|
10
10
|
},
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"files": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-executor-kernel",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@mininglamp-oss/octo-runtime-client": "1.1.
|
|
14
|
-
"@mininglamp-oss/octo-runtime-executor-core": "1.1.
|
|
15
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
16
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
13
|
+
"@mininglamp-oss/octo-runtime-client": "1.1.16",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.16",
|
|
15
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
16
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16"
|
|
17
17
|
},
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"files": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-host-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
14
|
-
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.
|
|
15
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.16",
|
|
15
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16"
|
|
16
16
|
},
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"files": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "Provider-neutral Agent runtime for unified execution through provider adapters",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,35 +55,36 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
59
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
58
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.16",
|
|
59
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.16",
|
|
60
60
|
"import-meta-resolve": "4.2.0",
|
|
61
|
-
"@mininglamp-oss/octo-runtime-client": "1.1.
|
|
61
|
+
"@mininglamp-oss/octo-runtime-client": "1.1.16",
|
|
62
62
|
"commander": "15.0.0",
|
|
63
|
-
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.
|
|
63
|
+
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.16",
|
|
64
64
|
"semver": "7.8.6",
|
|
65
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
66
|
-
"@mininglamp-oss/octo-runtime-acp-client": "1.1.
|
|
67
|
-
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.
|
|
68
|
-
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.
|
|
69
|
-
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.
|
|
70
|
-
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.
|
|
71
|
-
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.
|
|
72
|
-
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.
|
|
73
|
-
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.
|
|
74
|
-
"@mininglamp-oss/octo-runtime-executor-core": "1.1.
|
|
75
|
-
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.
|
|
76
|
-
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.
|
|
77
|
-
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.
|
|
65
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.16",
|
|
66
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.16",
|
|
67
|
+
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.16",
|
|
68
|
+
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.16",
|
|
69
|
+
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.16",
|
|
70
|
+
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.16",
|
|
71
|
+
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.16",
|
|
72
|
+
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.16",
|
|
73
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.16",
|
|
74
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.16",
|
|
75
|
+
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.16",
|
|
76
|
+
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.16",
|
|
77
|
+
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.16",
|
|
78
78
|
"ws": "8.22.1",
|
|
79
|
-
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.
|
|
80
|
-
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.
|
|
81
|
-
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.
|
|
82
|
-
"@mininglamp-oss/octo-runtime-cross-service": "1.1.
|
|
79
|
+
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.16",
|
|
80
|
+
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.16",
|
|
81
|
+
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.16",
|
|
82
|
+
"@mininglamp-oss/octo-runtime-cross-service": "1.1.16",
|
|
83
83
|
"iconv-lite": "0.7.3",
|
|
84
84
|
"safer-buffer": "2.1.2",
|
|
85
|
-
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.
|
|
86
|
-
"@mininglamp-oss/octo-runtime-cli": "1.1.
|
|
85
|
+
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.16",
|
|
86
|
+
"@mininglamp-oss/octo-runtime-adapter-trae-cli": "1.1.16",
|
|
87
|
+
"@mininglamp-oss/octo-runtime-cli": "1.1.16",
|
|
87
88
|
"json5": "2.2.3"
|
|
88
89
|
},
|
|
89
90
|
"bundleDependencies": [
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
"iconv-lite",
|
|
116
117
|
"safer-buffer",
|
|
117
118
|
"@mininglamp-oss/octo-runtime-host-sdk",
|
|
119
|
+
"@mininglamp-oss/octo-runtime-adapter-trae-cli",
|
|
118
120
|
"@mininglamp-oss/octo-runtime-cli",
|
|
119
121
|
"json5"
|
|
120
122
|
]
|