@mininglamp-oss/octo-runtime 1.1.13 → 1.1.14
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/adapters.js +1 -5
- package/apps/cli/dist/build-info.json +2 -2
- package/dist/public/protocol.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +19 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +24 -29
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/agent-env.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/agent-env.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +23 -24
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/agent-env.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/agent-env.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +25 -30
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-SMTJTIN7.js → chunk-AE3OJBDS.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-H3S6WM37.js → chunk-NGR74QLF.js} +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-RISQ6NGV.js → chunk-XIUZ6GXG.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +2 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +5 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.js +8 -18
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/agent-env.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/agent-env.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.js +1 -12
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +16 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +16 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +16 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +6 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +16 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +16 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.d.ts +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.js +6 -28
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +2 -7
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +1 -5
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -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 +42 -624
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +97 -12
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-output-silence.d.ts +21 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-output-silence.js +176 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +3 -4
- 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/adapter-metadata.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +1 -5
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +1 -26
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.js +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +3 -12
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +16 -240
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +3 -5
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +2 -12
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/package.json +24 -24
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +42 -624
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/actmode.d.ts +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/actmode.js +0 -8
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.js +0 -36
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.js +0 -68
|
@@ -12,7 +12,6 @@ export interface DshAdapterOptions {
|
|
|
12
12
|
export declare function createDshAdapter(options?: DshAdapterOptions): Readonly<Omit<{
|
|
13
13
|
metadata: {
|
|
14
14
|
type: string;
|
|
15
|
-
agentSources: "provisioned"[];
|
|
16
15
|
};
|
|
17
16
|
probe(probeOptions?: {
|
|
18
17
|
providerOptions?: Record<string, string>;
|
|
@@ -24,7 +23,7 @@ export declare function createDshAdapter(options?: DshAdapterOptions): Readonly<
|
|
|
24
23
|
} | {
|
|
25
24
|
available: false;
|
|
26
25
|
command: string;
|
|
27
|
-
reason: "DSH_CONFIG_INVALID" | "
|
|
26
|
+
reason: "DSH_CONFIG_INVALID" | "PROVIDER_MESSAGE_TOO_LARGE" | "STREAM_QUEUE_ITEM_TOO_LARGE" | "STREAM_QUEUE_BYTES_EXCEEDED" | "STREAM_QUEUE_ITEMS_EXCEEDED" | "DSH_EXECUTABLE_NOT_FOUND" | "DSH_VERSION_UNSUPPORTED" | "DSH_START_FAILED" | "DSH_INITIALIZE_TIMEOUT" | "DSH_RPC_ERROR" | "DSH_REQUEST_TIMEOUT" | "DSH_TRANSPORT_CLOSED" | "DSH_PROTOCOL_ERROR" | "DSH_TRAJECTORY_INVALID" | "DSH_SESSION_RESUME_FAILED" | "DSH_SESSION_BUSY" | "DSH_EXECUTION_FAILED" | "DSH_NO_FINAL_OUTPUT" | "DSH_CANCEL_FAILED" | "DSH_CLEANUP_FAILED";
|
|
28
27
|
version?: undefined;
|
|
29
28
|
}>;
|
|
30
29
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
@@ -32,7 +31,6 @@ export declare function createDshAdapter(options?: DshAdapterOptions): Readonly<
|
|
|
32
31
|
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
33
32
|
metadata: Omit<{
|
|
34
33
|
type: string;
|
|
35
|
-
agentSources: "provisioned"[];
|
|
36
34
|
}, "protocolSupport"> & {
|
|
37
35
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
38
36
|
};
|
|
@@ -40,7 +38,6 @@ export declare function createDshAdapter(options?: DshAdapterOptions): Readonly<
|
|
|
40
38
|
export declare const dshAdapter: Readonly<Omit<{
|
|
41
39
|
metadata: {
|
|
42
40
|
type: string;
|
|
43
|
-
agentSources: "provisioned"[];
|
|
44
41
|
};
|
|
45
42
|
probe(probeOptions?: {
|
|
46
43
|
providerOptions?: Record<string, string>;
|
|
@@ -52,7 +49,7 @@ export declare const dshAdapter: Readonly<Omit<{
|
|
|
52
49
|
} | {
|
|
53
50
|
available: false;
|
|
54
51
|
command: string;
|
|
55
|
-
reason: "DSH_CONFIG_INVALID" | "
|
|
52
|
+
reason: "DSH_CONFIG_INVALID" | "PROVIDER_MESSAGE_TOO_LARGE" | "STREAM_QUEUE_ITEM_TOO_LARGE" | "STREAM_QUEUE_BYTES_EXCEEDED" | "STREAM_QUEUE_ITEMS_EXCEEDED" | "DSH_EXECUTABLE_NOT_FOUND" | "DSH_VERSION_UNSUPPORTED" | "DSH_START_FAILED" | "DSH_INITIALIZE_TIMEOUT" | "DSH_RPC_ERROR" | "DSH_REQUEST_TIMEOUT" | "DSH_TRANSPORT_CLOSED" | "DSH_PROTOCOL_ERROR" | "DSH_TRAJECTORY_INVALID" | "DSH_SESSION_RESUME_FAILED" | "DSH_SESSION_BUSY" | "DSH_EXECUTION_FAILED" | "DSH_NO_FINAL_OUTPUT" | "DSH_CANCEL_FAILED" | "DSH_CLEANUP_FAILED";
|
|
56
53
|
version?: undefined;
|
|
57
54
|
}>;
|
|
58
55
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
@@ -60,7 +57,6 @@ export declare const dshAdapter: Readonly<Omit<{
|
|
|
60
57
|
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
61
58
|
metadata: Omit<{
|
|
62
59
|
type: string;
|
|
63
|
-
agentSources: "provisioned"[];
|
|
64
60
|
}, "protocolSupport"> & {
|
|
65
61
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
66
62
|
};
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
resolveDshLaunch,
|
|
3
3
|
stringOption,
|
|
4
4
|
timeoutOption
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XIUZ6GXG.js";
|
|
6
6
|
import {
|
|
7
7
|
DshTrajectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AE3OJBDS.js";
|
|
9
9
|
import {
|
|
10
10
|
DSH_MIN_VERSION,
|
|
11
11
|
DSH_VERSION,
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
HarnessClient,
|
|
14
14
|
dshError,
|
|
15
15
|
record
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NGR74QLF.js";
|
|
17
17
|
|
|
18
18
|
// packages/octo-runtime-adapter-dsh/dist/index.js
|
|
19
19
|
import { invocationOption, invocationProviderOptions, invocationModel, invocationApprovalMode, invocationRuntimeLimits, invocationWorkdir } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
20
20
|
import { randomUUID } from "node:crypto";
|
|
21
21
|
import { realpath } from "node:fs/promises";
|
|
22
22
|
import { defineAdapter, invocationEnvironment, providerInputParts, DriverQueue, noopRuntimeLog } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
23
|
-
import {
|
|
23
|
+
import { DEFAULT_STREAM_LIMIT_POLICY, DEFAULT_RUN_TIMEOUT_MS } from "@mininglamp-oss/octo-runtime-protocol";
|
|
24
24
|
function failureEvent(error, diagnostics) {
|
|
25
25
|
return {
|
|
26
26
|
protocolVersion: 2,
|
|
@@ -38,7 +38,7 @@ function createDshAdapter(options = {}) {
|
|
|
38
38
|
const sessions = /* @__PURE__ */ new Set();
|
|
39
39
|
const log = options.log ?? noopRuntimeLog;
|
|
40
40
|
return defineAdapter({
|
|
41
|
-
metadata: { type: "dsh"
|
|
41
|
+
metadata: { type: "dsh" },
|
|
42
42
|
async probe(probeOptions) {
|
|
43
43
|
try {
|
|
44
44
|
const launch = await resolveDshLaunch(probeOptions?.providerOptions ?? {}, {
|
|
@@ -61,9 +61,6 @@ function createDshAdapter(options = {}) {
|
|
|
61
61
|
let sessionId;
|
|
62
62
|
let requestedId;
|
|
63
63
|
try {
|
|
64
|
-
const actmode = contextActmode(request.agentEnv);
|
|
65
|
-
if (actmode !== void 0 && actmode !== "default")
|
|
66
|
-
throw new DshError("DSH_ACTMODE_UNSUPPORTED");
|
|
67
64
|
if (invocationOption(request, "sandbox", "dsh") !== void 0 && invocationOption(request, "sandbox", "dsh") !== "danger-full-access")
|
|
68
65
|
throw new DshError("DSH_CONFIG_INVALID");
|
|
69
66
|
const configured = invocationProviderOptions(request, "dsh") ?? {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-dsh",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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.14",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.14"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { AdapterMetadata } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
2
2
|
import { spawnGrokBuildAcpClient as spawnAcpClient, type SpawnGrokBuildClientOptions as SpawnAcpClientOptions } from "./client.js";
|
|
3
3
|
import { GrokBuildInteractionBridge as AcpApprovalBridge } from "./interactions.js";
|
|
4
|
-
import { acpActmodeSelectionRequest } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
5
4
|
import { type AcpClient, type AcpUpdate } from "@mininglamp-oss/octo-runtime-acp-client";
|
|
6
5
|
import { type ProbeResult, type ReasoningLevelMap, type AdapterInvocationContext, type CanonicalEvent, type InvokeRequest } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
7
6
|
import { type InteractionResponse } from "@mininglamp-oss/octo-runtime-protocol";
|
|
@@ -21,7 +20,6 @@ export interface AcpAdapterDefinition {
|
|
|
21
20
|
sessionParams?: (params: JsonRecord, request: InvokeRequest, fresh: boolean) => JsonRecord;
|
|
22
21
|
isMissingSessionError?: (error: unknown) => boolean;
|
|
23
22
|
configureSession?: (client: AcpClient, session: JsonRecord, sessionId: string, request: InvokeRequest) => AsyncIterable<CanonicalEvent>;
|
|
24
|
-
selectActmode?: typeof acpActmodeSelectionRequest;
|
|
25
23
|
reasoningLevels?: ReasoningLevelMap;
|
|
26
24
|
clientOptions?: (request: InvokeRequest, bridge: AcpApprovalBridge) => Pick<SpawnAcpClientOptions, "requestHandler" | "onRequestResponseWritten" | "onRequestResponseFailed">;
|
|
27
25
|
validatePromptResult?: (update: StandardAcpUpdate) => CanonicalEvent[];
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { grokModeId } from "./agent-env.js";
|
|
1
2
|
import { invocationModel, invocationApprovalMode, invocationWorkdir } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
2
3
|
import { spawnGrokBuildAcpClient as spawnAcpClient } from "./client.js";
|
|
3
4
|
import { GrokBuildInteractionBridge as AcpApprovalBridge } from "./interactions.js";
|
|
4
|
-
import { acpModelSelectionRequest,
|
|
5
|
+
import { acpModelSelectionRequest, normalizeAcpUpdate } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
5
6
|
import { acpLoadSessionParams, acpNewSessionParams, acpPromptParams } from "@mininglamp-oss/octo-runtime-acp-client";
|
|
6
|
-
import {
|
|
7
|
-
import { canonicalTerminalStatus,
|
|
7
|
+
import { AcpTurnNormalizer, defineAdapter, invocationEnvironment, invocationMcpServers, assertMcpOptions, probeCommand, snapshotProviderLaunch } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
8
|
+
import { canonicalTerminalStatus, providerInputParts } from "@mininglamp-oss/octo-runtime-protocol";
|
|
8
9
|
function sessionModel(session) {
|
|
9
10
|
const modelOption = arrayField(session, "configOptions")
|
|
10
11
|
.map(recordValue)
|
|
@@ -21,8 +22,7 @@ export function createGrokBuildAcpAdapter(definition, { acpClientFactory = spawn
|
|
|
21
22
|
return defineAdapter({
|
|
22
23
|
metadata: definition.metadata ?? {
|
|
23
24
|
mcp: true,
|
|
24
|
-
type: definition.type
|
|
25
|
-
agentSources: ["provisioned"]
|
|
25
|
+
type: definition.type
|
|
26
26
|
},
|
|
27
27
|
probe: definition.probe ??
|
|
28
28
|
(acpClientFactory === spawnAcpClient
|
|
@@ -168,20 +168,10 @@ export function createGrokBuildAcpAdapter(definition, { acpClientFactory = spawn
|
|
|
168
168
|
: (requestedSessionId ?? stringField(sessionResult, "sessionId"));
|
|
169
169
|
if (!sessionId)
|
|
170
170
|
throw new Error("ACP session/new returned no sessionId");
|
|
171
|
-
const requestedMode =
|
|
171
|
+
const requestedMode = grokModeId(request);
|
|
172
172
|
if (requestedMode !== undefined) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
await client.request(selection.method, selection.params);
|
|
176
|
-
yield actmodeEvidence({
|
|
177
|
-
requested: requestedMode,
|
|
178
|
-
effective: selection.effective,
|
|
179
|
-
nativeMode: selection.nativeMode,
|
|
180
|
-
status: selection.effective === requestedMode ? "applied" : "fallback",
|
|
181
|
-
...(selection.effective !== requestedMode
|
|
182
|
-
? { reason: "provider_unsupported" }
|
|
183
|
-
: {})
|
|
184
|
-
});
|
|
173
|
+
// Grok 原生实现 set_mode 但不广告 modes;此约定仅在本包生效。
|
|
174
|
+
await client.request("session/set_mode", { sessionId, modeId: requestedMode });
|
|
185
175
|
}
|
|
186
176
|
const requestedModel = nonEmptyString(invocationModel(request));
|
|
187
177
|
if (requestedModel) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { agentEnvItem } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
2
|
+
/** 只读本轮私有 item;省略不补模式,非法显式值在原生映射前拒绝。 */
|
|
3
|
+
export function grokModeId(request) {
|
|
4
|
+
const value = agentEnvItem(request.agentEnv, "adapter.grok-build", "options")?.modeId;
|
|
5
|
+
if (value === undefined)
|
|
6
|
+
return undefined;
|
|
7
|
+
if (value !== "default" && value !== "plan")
|
|
8
|
+
throw new TypeError("ADAPTER_OPTION_INVALID: grok-build.modeId");
|
|
9
|
+
return value;
|
|
10
|
+
}
|
|
@@ -5,8 +5,7 @@ import { invocationEnvironment, invocationMcpServers, probeCommand, snapshotProv
|
|
|
5
5
|
export const GROK_BUILD_TESTED_VERSION = "1.0.67";
|
|
6
6
|
export const grokBuildMetadata = {
|
|
7
7
|
type: "grok-build",
|
|
8
|
-
mcp: true
|
|
9
|
-
agentSources: ["provisioned"]
|
|
8
|
+
mcp: true
|
|
10
9
|
};
|
|
11
10
|
const levels = { low: "low", medium: "medium", high: "high", xhigh: "xhigh" };
|
|
12
11
|
function supportedVersion(version) {
|
|
@@ -76,16 +75,6 @@ export function createGrokBuildAdapter({ command, acpClientFactory = spawnGrokBu
|
|
|
76
75
|
isMissingSessionError: (error) => error instanceof GrokBuildRpcError &&
|
|
77
76
|
error.code === -32603 &&
|
|
78
77
|
record(error.data).code === "FS_NOT_FOUND",
|
|
79
|
-
selectActmode(_session, sessionId, requested) {
|
|
80
|
-
// 1.0.67 不发布 modes,但实现标准 set_mode(default/plan);成功响应后才发布 applied。
|
|
81
|
-
return {
|
|
82
|
-
method: "session/set_mode",
|
|
83
|
-
params: { sessionId, modeId: requested },
|
|
84
|
-
effective: requested,
|
|
85
|
-
nativeMode: requested,
|
|
86
|
-
unchanged: false
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
78
|
async *configureSession(client, session, sessionId, request) {
|
|
90
79
|
const requested = invocationEffort(request);
|
|
91
80
|
if (requested === undefined)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-grok-build",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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.14",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.14",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.14",
|
|
15
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.14"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -5,7 +5,14 @@ export declare const hermesMetadata: AdapterMetadata;
|
|
|
5
5
|
export declare function createHermesAdapter(options: NonNullable<Parameters<typeof createAcpAdapter>[1]> & {
|
|
6
6
|
command: string;
|
|
7
7
|
}): Readonly<Omit<{
|
|
8
|
-
metadata:
|
|
8
|
+
metadata: {
|
|
9
|
+
mcp?: boolean;
|
|
10
|
+
workspace?: boolean;
|
|
11
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
12
|
+
type: string;
|
|
13
|
+
processModel?: string;
|
|
14
|
+
transport?: string;
|
|
15
|
+
};
|
|
9
16
|
probe: (() => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>) | (() => Promise<{
|
|
10
17
|
available: false;
|
|
11
18
|
command: string;
|
|
@@ -15,7 +22,14 @@ export declare function createHermesAdapter(options: NonNullable<Parameters<type
|
|
|
15
22
|
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>;
|
|
16
23
|
}, "metadata" | "defaultAgentEnv"> & {
|
|
17
24
|
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
18
|
-
metadata: Omit<
|
|
25
|
+
metadata: Omit<{
|
|
26
|
+
mcp?: boolean;
|
|
27
|
+
workspace?: boolean;
|
|
28
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
29
|
+
type: string;
|
|
30
|
+
processModel?: string;
|
|
31
|
+
transport?: string;
|
|
32
|
+
}, "protocolSupport"> & {
|
|
19
33
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
20
34
|
};
|
|
21
35
|
}>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createAcpAdapter } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
2
2
|
export const hermesMetadata = {
|
|
3
3
|
type: "hermes",
|
|
4
|
-
mcp: true
|
|
5
|
-
agentSources: ["provisioned"]
|
|
4
|
+
mcp: true
|
|
6
5
|
};
|
|
7
6
|
/** 宿主交付所选命令或 client factory;本模块仅维护 ACP 协议要求。 */
|
|
8
7
|
export function createHermesAdapter(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-hermes",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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.14"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -5,7 +5,14 @@ export declare const kimiCodeMetadata: AdapterMetadata;
|
|
|
5
5
|
export declare function createKimiCodeAdapter(options: NonNullable<Parameters<typeof createAcpAdapter>[1]> & {
|
|
6
6
|
command: string;
|
|
7
7
|
}): Readonly<Omit<{
|
|
8
|
-
metadata:
|
|
8
|
+
metadata: {
|
|
9
|
+
mcp?: boolean;
|
|
10
|
+
workspace?: boolean;
|
|
11
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
12
|
+
type: string;
|
|
13
|
+
processModel?: string;
|
|
14
|
+
transport?: string;
|
|
15
|
+
};
|
|
9
16
|
probe: (() => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>) | (() => Promise<{
|
|
10
17
|
available: false;
|
|
11
18
|
command: string;
|
|
@@ -15,7 +22,14 @@ export declare function createKimiCodeAdapter(options: NonNullable<Parameters<ty
|
|
|
15
22
|
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>;
|
|
16
23
|
}, "metadata" | "defaultAgentEnv"> & {
|
|
17
24
|
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
18
|
-
metadata: Omit<
|
|
25
|
+
metadata: Omit<{
|
|
26
|
+
mcp?: boolean;
|
|
27
|
+
workspace?: boolean;
|
|
28
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
29
|
+
type: string;
|
|
30
|
+
processModel?: string;
|
|
31
|
+
transport?: string;
|
|
32
|
+
}, "protocolSupport"> & {
|
|
19
33
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
20
34
|
};
|
|
21
35
|
}>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createAcpAdapter } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
2
2
|
export const kimiCodeMetadata = {
|
|
3
3
|
type: "kimi-code",
|
|
4
|
-
mcp: true
|
|
5
|
-
agentSources: ["provisioned"]
|
|
4
|
+
mcp: true
|
|
6
5
|
};
|
|
7
6
|
/** 宿主交付所选命令或 client factory;本模块仅维护 ACP 协议要求。 */
|
|
8
7
|
export function createKimiCodeAdapter(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-kimi-code",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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.14"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -17,7 +17,14 @@ export declare const mcodeMetadata: AdapterMetadata;
|
|
|
17
17
|
export declare function createMcodeAdapter(options: NonNullable<Parameters<typeof createAcpAdapter>[1]> & {
|
|
18
18
|
command: string;
|
|
19
19
|
}): Readonly<Omit<{
|
|
20
|
-
metadata:
|
|
20
|
+
metadata: {
|
|
21
|
+
mcp?: boolean;
|
|
22
|
+
workspace?: boolean;
|
|
23
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
24
|
+
type: string;
|
|
25
|
+
processModel?: string;
|
|
26
|
+
transport?: string;
|
|
27
|
+
};
|
|
21
28
|
probe: (() => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>) | (() => Promise<{
|
|
22
29
|
available: false;
|
|
23
30
|
command: string;
|
|
@@ -27,7 +34,14 @@ export declare function createMcodeAdapter(options: NonNullable<Parameters<typeo
|
|
|
27
34
|
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>;
|
|
28
35
|
}, "metadata" | "defaultAgentEnv"> & {
|
|
29
36
|
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
30
|
-
metadata: Omit<
|
|
37
|
+
metadata: Omit<{
|
|
38
|
+
mcp?: boolean;
|
|
39
|
+
workspace?: boolean;
|
|
40
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
41
|
+
type: string;
|
|
42
|
+
processModel?: string;
|
|
43
|
+
transport?: string;
|
|
44
|
+
}, "protocolSupport"> & {
|
|
31
45
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
32
46
|
};
|
|
33
47
|
}>;
|
|
@@ -13,8 +13,7 @@ import { createAcpAdapter } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
|
13
13
|
*/
|
|
14
14
|
export const mcodeMetadata = {
|
|
15
15
|
type: "mcode",
|
|
16
|
-
mcp: true
|
|
17
|
-
agentSources: ["provisioned"]
|
|
16
|
+
mcp: true
|
|
18
17
|
};
|
|
19
18
|
/** 宿主交付所选命令或 client factory;本模块仅维护 ACP 协议要求。 */
|
|
20
19
|
export function createMcodeAdapter(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-mcode",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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.14"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -43,7 +43,6 @@ export declare function createOpenClawAdapter({ clientFactory, log }?: {
|
|
|
43
43
|
workspace: false;
|
|
44
44
|
processModel: string;
|
|
45
45
|
transport: string;
|
|
46
|
-
agentSources: ("preset" | "provisioned")[];
|
|
47
46
|
};
|
|
48
47
|
probe: (options?: AdapterProbeOptions) => Promise<{
|
|
49
48
|
available: boolean;
|
|
@@ -63,7 +62,6 @@ export declare function createOpenClawAdapter({ clientFactory, log }?: {
|
|
|
63
62
|
workspace: false;
|
|
64
63
|
processModel: string;
|
|
65
64
|
transport: string;
|
|
66
|
-
agentSources: ("preset" | "provisioned")[];
|
|
67
65
|
}, "protocolSupport"> & {
|
|
68
66
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
69
67
|
};
|
|
@@ -78,7 +76,6 @@ export declare const openclawAdapter: Readonly<Omit<{
|
|
|
78
76
|
workspace: false;
|
|
79
77
|
processModel: string;
|
|
80
78
|
transport: string;
|
|
81
|
-
agentSources: ("preset" | "provisioned")[];
|
|
82
79
|
};
|
|
83
80
|
probe: (options?: AdapterProbeOptions) => Promise<{
|
|
84
81
|
available: boolean;
|
|
@@ -98,7 +95,6 @@ export declare const openclawAdapter: Readonly<Omit<{
|
|
|
98
95
|
workspace: false;
|
|
99
96
|
processModel: string;
|
|
100
97
|
transport: string;
|
|
101
|
-
agentSources: ("preset" | "provisioned")[];
|
|
102
98
|
}, "protocolSupport"> & {
|
|
103
99
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
104
100
|
};
|
|
@@ -1201,15 +1201,14 @@ export function createOpenClawAdapter({ clientFactory = (options) => new OpenCla
|
|
|
1201
1201
|
}
|
|
1202
1202
|
};
|
|
1203
1203
|
return defineAdapter({
|
|
1204
|
-
defaultAgentEnv: withAgentEnvItems(defaultAgentEnv("openclaw"
|
|
1204
|
+
defaultAgentEnv: withAgentEnvItems(defaultAgentEnv("openclaw"), [
|
|
1205
1205
|
{ namespace: "adapter.openclaw", name: "options", payload: { agentId: "main" } }
|
|
1206
1206
|
]),
|
|
1207
1207
|
metadata: {
|
|
1208
1208
|
type: "openclaw",
|
|
1209
1209
|
workspace: false,
|
|
1210
1210
|
processModel: "websocket-per-invocation",
|
|
1211
|
-
transport: "openclaw-gateway-rpc"
|
|
1212
|
-
agentSources: ["preset", "provisioned"]
|
|
1211
|
+
transport: "openclaw-gateway-rpc"
|
|
1213
1212
|
},
|
|
1214
1213
|
probe: probeGateway,
|
|
1215
1214
|
async respondInteraction(invocationId, response) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-openclaw",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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.14",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.14",
|
|
10
10
|
"ws": "8.22.1"
|
|
11
11
|
},
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export const openCodeMetadata = {
|
|
2
2
|
mcp: true,
|
|
3
|
-
type: "opencode"
|
|
4
|
-
agentSources: ["provisioned"]
|
|
3
|
+
type: "opencode"
|
|
5
4
|
};
|
|
6
5
|
import { assertAdapterAgentEnv, assertAdapterWorkdir, runAdapterPreparation, invocationEffort, invocationModel, invocationRuntimeLimits, invocationApprovalMode, invocationWorkdir } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
7
6
|
import { hasImageInput, mapReasoningEffort, invocationEnvironment, processEnvironmentValue, invocationMcpServers, assertMcpOptions } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
@@ -11,7 +10,7 @@ import { canonicalTerminalStatus } from "@mininglamp-oss/octo-runtime-protocol";
|
|
|
11
10
|
* --thinking --auto`) for full access and ACP for interactive approval.
|
|
12
11
|
* Both transports normalize provider output into canonical events.
|
|
13
12
|
*/
|
|
14
|
-
import { AcpInvocationError, createAcpAdapter } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
13
|
+
import { AcpInvocationError, acpModeId, createAcpAdapter } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
15
14
|
import { createJsonCliAdapter, probeCommand, snapshotProviderLaunch, providerInputText, ProviderProcessError } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
16
15
|
class OpenCodeInputError extends Error {
|
|
17
16
|
}
|
|
@@ -358,6 +357,10 @@ export function createOpenCodeAdapter({ command, commandArgsPrefix = [], env = {
|
|
|
358
357
|
throw new Error("APPROVAL_MODE_UNSUPPORTED: opencode has no qualified assisted policy");
|
|
359
358
|
// 启动前只做目录与纯配置检查;实际协议失败按执行结果报告,不以版本号拦截。
|
|
360
359
|
inlineConfig(request, launch.env);
|
|
360
|
+
// JSON CLI 没有本包已接线的模式载体,不替宿主改变审批或选择传输。
|
|
361
|
+
if (invocationApprovalMode(request) === "full_access" &&
|
|
362
|
+
acpModeId(request, "opencode") !== undefined)
|
|
363
|
+
throw new Error("OPENCODE_MODE_UNSUPPORTED: modeId requires the ACP execution path");
|
|
361
364
|
});
|
|
362
365
|
request.signal?.throwIfAborted();
|
|
363
366
|
if (invocationApprovalMode(request) === "ask") {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-opencode",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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.14",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.14",
|
|
10
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.14"
|
|
11
11
|
},
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
@@ -17,7 +17,14 @@ export declare const qoderCliMetadata: AdapterMetadata;
|
|
|
17
17
|
export declare function createQoderCliAdapter(options: NonNullable<Parameters<typeof createAcpAdapter>[1]> & {
|
|
18
18
|
command: string;
|
|
19
19
|
}): Readonly<Omit<{
|
|
20
|
-
metadata:
|
|
20
|
+
metadata: {
|
|
21
|
+
mcp?: boolean;
|
|
22
|
+
workspace?: boolean;
|
|
23
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
24
|
+
type: string;
|
|
25
|
+
processModel?: string;
|
|
26
|
+
transport?: string;
|
|
27
|
+
};
|
|
21
28
|
probe: (() => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>) | (() => Promise<{
|
|
22
29
|
available: false;
|
|
23
30
|
command: string;
|
|
@@ -27,7 +34,14 @@ export declare function createQoderCliAdapter(options: NonNullable<Parameters<ty
|
|
|
27
34
|
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>;
|
|
28
35
|
}, "metadata" | "defaultAgentEnv"> & {
|
|
29
36
|
readonly defaultAgentEnv: import("@mininglamp-oss/octo-runtime-protocol").AgentEnv;
|
|
30
|
-
metadata: Omit<
|
|
37
|
+
metadata: Omit<{
|
|
38
|
+
mcp?: boolean;
|
|
39
|
+
workspace?: boolean;
|
|
40
|
+
protocolSupport?: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
41
|
+
type: string;
|
|
42
|
+
processModel?: string;
|
|
43
|
+
transport?: string;
|
|
44
|
+
}, "protocolSupport"> & {
|
|
31
45
|
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
32
46
|
};
|
|
33
47
|
}>;
|
|
@@ -14,8 +14,7 @@ import { createAcpAdapter } from "@mininglamp-oss/octo-runtime-adapter-acp";
|
|
|
14
14
|
*/
|
|
15
15
|
export const qoderCliMetadata = {
|
|
16
16
|
type: "qodercli",
|
|
17
|
-
mcp: true
|
|
18
|
-
agentSources: ["provisioned"]
|
|
17
|
+
mcp: true
|
|
19
18
|
};
|
|
20
19
|
/** 宿主交付所选命令或 client factory;本模块仅维护 ACP 协议要求。 */
|
|
21
20
|
export function createQoderCliAdapter(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-qodercli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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.14",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.14"
|
|
14
14
|
}
|
|
15
15
|
}
|