@mininglamp-oss/octo-runtime 1.1.13 → 1.1.15
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-H3S6WM37.js → chunk-NGR74QLF.js} +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-SMTJTIN7.js → chunk-RIZUXNZ2.js} +115 -40
- 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 +9 -9
- 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.d.ts +5 -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 +189 -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
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type CanonicalEvent, type ExecutionEvidence } from "@mininglamp-oss/octo-runtime-protocol";
|
|
2
|
-
import type { AdapterOutput } from "./index.js";
|
|
3
|
-
/** 将原生适配事实放回同一次调用;不维护产品模式或会话状态。 */
|
|
4
|
-
export declare function actmodeEvidence(actmode: ExecutionEvidence["actmode"], protocolMode?: "canonical"): CanonicalEvent;
|
|
5
|
-
export declare function actmodeEvidence(actmode: ExecutionEvidence["actmode"], protocolMode: "native" | "canonical" | undefined): AdapterOutput;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { assertExecutionEvidence } from "@mininglamp-oss/octo-runtime-protocol";
|
|
2
|
-
export function actmodeEvidence(actmode, protocolMode) {
|
|
3
|
-
const payload = { actmode };
|
|
4
|
-
assertExecutionEvidence(payload);
|
|
5
|
-
return protocolMode === "native"
|
|
6
|
-
? { kind: "control", control: { type: "evidence", name: "execution", payload } }
|
|
7
|
-
: { protocolVersion: 2, type: "execution.update", payload };
|
|
8
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ContextEnvelope, ExecutionEvidence } from "./generated/protocol-types.js";
|
|
2
|
-
/** 只读取本轮已解析的显式意图;不补默认、不读取历史会话。 */
|
|
3
|
-
export declare function contextActmode(context: ContextEnvelope): "default" | "plan" | undefined;
|
|
4
|
-
export declare function assertExecutionEvidence(value: unknown): asserts value is ExecutionEvidence;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/** 只读取本轮已解析的显式意图;不补默认、不读取历史会话。 */
|
|
2
|
-
export function contextActmode(context) {
|
|
3
|
-
const item = context.items.find((item) => item.namespace === "octo.execution" && item.name === "actmode");
|
|
4
|
-
if (!item)
|
|
5
|
-
return undefined;
|
|
6
|
-
if (item.payload.mode !== "default" && item.payload.mode !== "plan")
|
|
7
|
-
throw new TypeError("CONTEXT_SCHEMA_INVALID");
|
|
8
|
-
return item.payload.mode;
|
|
9
|
-
}
|
|
10
|
-
export function assertExecutionEvidence(value) {
|
|
11
|
-
if (!record(value) ||
|
|
12
|
-
Object.keys(value).some((key) => key !== "actmode") ||
|
|
13
|
-
!record(value.actmode))
|
|
14
|
-
throw new TypeError("EXECUTION_EVIDENCE_INVALID");
|
|
15
|
-
const mode = value.actmode;
|
|
16
|
-
if (Object.keys(mode).some((key) => !["requested", "effective", "status", "nativeMode", "reason"].includes(key)) ||
|
|
17
|
-
(mode.requested !== "default" && mode.requested !== "plan") ||
|
|
18
|
-
!["default", "plan", null].includes(mode.effective) ||
|
|
19
|
-
(mode.status !== "applied" && mode.status !== "fallback" && mode.status !== "unknown") ||
|
|
20
|
-
(mode.nativeMode !== undefined && (typeof mode.nativeMode !== "string" || !mode.nativeMode)) ||
|
|
21
|
-
(mode.reason !== undefined &&
|
|
22
|
-
mode.reason !== "provider_unsupported" &&
|
|
23
|
-
mode.reason !== "adapter_unmapped" &&
|
|
24
|
-
mode.reason !== "provider_unconfirmed") ||
|
|
25
|
-
(mode.status === "applied" &&
|
|
26
|
-
(mode.effective !== mode.requested || mode.reason !== undefined)) ||
|
|
27
|
-
(mode.status === "fallback" &&
|
|
28
|
-
(mode.effective !== "default" ||
|
|
29
|
-
(mode.reason !== "provider_unsupported" && mode.reason !== "adapter_unmapped"))) ||
|
|
30
|
-
(mode.status === "unknown" &&
|
|
31
|
-
(mode.effective !== null || mode.reason !== "provider_unconfirmed")))
|
|
32
|
-
throw new TypeError("EXECUTION_EVIDENCE_INVALID");
|
|
33
|
-
}
|
|
34
|
-
function record(value) {
|
|
35
|
-
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
36
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { assertJsonValue } from "./context.js";
|
|
2
|
-
export const RUNTIME_SELECTION_SCHEMA = "octo.runtime-selection/v2";
|
|
3
|
-
export function assertResolvedRuntimeSelection(value) {
|
|
4
|
-
object(value, "RESOLVED_RUNTIME_SELECTION_REQUIRED");
|
|
5
|
-
assertJsonValue(value);
|
|
6
|
-
fields(value, [
|
|
7
|
-
"schema",
|
|
8
|
-
"selection_mode",
|
|
9
|
-
"explicit_runtime_id",
|
|
10
|
-
"authorized_candidates",
|
|
11
|
-
"offline_behavior",
|
|
12
|
-
"failover"
|
|
13
|
-
]);
|
|
14
|
-
if (value.schema !== RUNTIME_SELECTION_SCHEMA ||
|
|
15
|
-
!["explicit", "candidates"].includes(value.selection_mode) ||
|
|
16
|
-
!["wait", "fail"].includes(value.offline_behavior) ||
|
|
17
|
-
!["candidates", "none"].includes(value.failover))
|
|
18
|
-
invalid();
|
|
19
|
-
if (value.selection_mode === "explicit")
|
|
20
|
-
text(value.explicit_runtime_id);
|
|
21
|
-
else if (Object.hasOwn(value, "explicit_runtime_id"))
|
|
22
|
-
invalid();
|
|
23
|
-
if (value.selection_mode === "explicit" && value.failover !== "none")
|
|
24
|
-
invalid();
|
|
25
|
-
if (!Array.isArray(value.authorized_candidates) ||
|
|
26
|
-
value.authorized_candidates.length === 0 ||
|
|
27
|
-
value.authorized_candidates.length > 64)
|
|
28
|
-
invalid();
|
|
29
|
-
const runtimeIds = new Set();
|
|
30
|
-
const priorities = new Set();
|
|
31
|
-
for (const candidate of value.authorized_candidates) {
|
|
32
|
-
object(candidate);
|
|
33
|
-
fields(candidate, ["runtime_id", "priority", "owner_subject_type", "owner_subject_id"]);
|
|
34
|
-
text(candidate.runtime_id);
|
|
35
|
-
text(candidate.owner_subject_type);
|
|
36
|
-
if (candidate.owner_subject_type !== "user" && candidate.owner_subject_type !== "teamspace")
|
|
37
|
-
invalid();
|
|
38
|
-
text(candidate.owner_subject_id);
|
|
39
|
-
positiveInteger(candidate.priority);
|
|
40
|
-
if (runtimeIds.has(candidate.runtime_id) || priorities.has(candidate.priority))
|
|
41
|
-
invalid();
|
|
42
|
-
runtimeIds.add(candidate.runtime_id);
|
|
43
|
-
priorities.add(candidate.priority);
|
|
44
|
-
}
|
|
45
|
-
if (value.selection_mode === "explicit" &&
|
|
46
|
-
(value.authorized_candidates.length !== 1 ||
|
|
47
|
-
!runtimeIds.has(value.explicit_runtime_id)))
|
|
48
|
-
invalid();
|
|
49
|
-
}
|
|
50
|
-
function invalid() {
|
|
51
|
-
throw new TypeError("RESOLVED_RUNTIME_SELECTION_INVALID");
|
|
52
|
-
}
|
|
53
|
-
function object(value, code = "RESOLVED_RUNTIME_SELECTION_INVALID") {
|
|
54
|
-
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
55
|
-
throw new TypeError(code);
|
|
56
|
-
}
|
|
57
|
-
function fields(value, allowed) {
|
|
58
|
-
if (Object.keys(value).some((key) => !allowed.includes(key)))
|
|
59
|
-
invalid();
|
|
60
|
-
}
|
|
61
|
-
function text(value) {
|
|
62
|
-
if (typeof value !== "string" || value.length === 0 || [...value].length > 191)
|
|
63
|
-
invalid();
|
|
64
|
-
}
|
|
65
|
-
function positiveInteger(value) {
|
|
66
|
-
if (!Number.isSafeInteger(value) || value < 1)
|
|
67
|
-
invalid();
|
|
68
|
-
}
|