@mininglamp-oss/octo-runtime 1.1.7 → 1.1.8

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.
Files changed (58) hide show
  1. package/apps/cli/dist/build-info.json +2 -2
  2. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  3. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  4. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  5. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  6. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  7. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  8. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  9. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  10. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  11. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  12. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  13. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  14. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  15. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  16. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  17. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +1 -1
  18. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +1 -1
  19. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.d.ts +2 -0
  20. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +22 -0
  21. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +20 -0
  22. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +14 -1
  23. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
  25. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  26. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +24 -24
  27. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  28. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  29. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
  30. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +21 -33
  31. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +3 -4
  32. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +4 -0
  33. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +29 -6
  34. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +1 -1
  35. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +2 -2
  36. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.d.ts +6 -0
  37. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.js +10 -0
  38. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +3 -2
  39. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +54 -10
  40. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +4 -2
  41. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +73 -109
  42. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +3 -5
  43. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +27 -40
  44. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +42 -7
  45. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +1 -12
  46. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +6 -126
  47. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  48. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  49. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/{index-CXTvRGim.js → index-B127MhT-.js} +10 -9
  50. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
  51. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  52. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  53. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  54. package/package.json +27 -27
  55. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/text-send.d.ts +0 -19
  56. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/text-send.js +0 -86
  57. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/delivery-notice.d.ts +0 -5
  58. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/delivery-notice.js +0 -35
@@ -1,3 +1,3 @@
1
- <!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Octo Runtime</title> <script type="module" crossorigin src="/assets/index-CXTvRGim.js"></script>
1
+ <!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Octo Runtime</title> <script type="module" crossorigin src="/assets/index-B127MhT-.js"></script>
2
2
  <link rel="stylesheet" crossorigin href="/assets/index-CYTpqItx.css">
3
3
  </head><body><div id="root"></div></body></html>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-extra-webui",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "description": "Local Runtime workbench with canonical SSE presentation",
@@ -23,6 +23,6 @@
23
23
  "porting-map.md"
24
24
  ],
25
25
  "dependencies": {
26
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7"
26
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-host-sdk",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,9 +23,9 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
27
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.7",
28
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7"
26
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
27
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.8",
28
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
29
29
  },
30
30
  "types": "./dist/index.d.ts",
31
31
  "files": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-protocol",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Provider-neutral Agent runtime for unified execution through provider adapters",
5
5
  "repository": {
6
6
  "type": "git",
@@ -87,32 +87,32 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "commander": "15.0.0",
90
- "@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.7",
90
+ "@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.8",
91
91
  "semver": "7.8.5",
92
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
93
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
92
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
93
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
94
94
  "import-meta-resolve": "4.2.0",
95
- "@mininglamp-oss/octo-runtime-extra-webui": "1.1.7",
96
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.7",
97
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.7",
98
- "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.7",
99
- "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.7",
100
- "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.7",
101
- "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.7",
102
- "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.7",
103
- "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.7",
104
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.7",
105
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.7",
106
- "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.7",
107
- "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.7",
108
- "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.7",
95
+ "@mininglamp-oss/octo-runtime-extra-webui": "1.1.8",
96
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.8",
97
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.8",
98
+ "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.8",
99
+ "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.8",
100
+ "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.8",
101
+ "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.8",
102
+ "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.8",
103
+ "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.8",
104
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.8",
105
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.8",
106
+ "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.8",
107
+ "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.8",
108
+ "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.8",
109
109
  "ws": "8.22.0",
110
- "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.7",
111
- "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.7",
112
- "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.7",
113
- "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.7",
114
- "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.7",
115
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.7",
110
+ "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.8",
111
+ "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.8",
112
+ "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.8",
113
+ "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.8",
114
+ "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.8",
115
+ "@mininglamp-oss/octo-runtime-host-sdk": "1.1.8",
116
116
  "mdast-util-from-markdown": "2.1.0",
117
117
  "@types/mdast": "4.0.4",
118
118
  "@types/unist": "3.0.3",
@@ -148,11 +148,11 @@
148
148
  "micromark-util-sanitize-uri": "2.0.1",
149
149
  "micromark-util-decode-string": "2.0.1",
150
150
  "unist-util-stringify-position": "4.0.0",
151
- "@mininglamp-oss/octo-runtime-cross-service": "1.1.7",
151
+ "@mininglamp-oss/octo-runtime-cross-service": "1.1.8",
152
152
  "iconv-lite": "0.7.3",
153
153
  "safer-buffer": "2.1.2",
154
- "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.7",
155
- "@mininglamp-oss/octo-runtime-cli": "1.1.7",
154
+ "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.8",
155
+ "@mininglamp-oss/octo-runtime-cli": "1.1.8",
156
156
  "json5": "2.2.3"
157
157
  },
158
158
  "bundleDependencies": [
@@ -1,19 +0,0 @@
1
- /** WS 逻辑消息的确认窗口;不重连、不重新执行模型。 */
2
- export declare class ImSendError extends Error {
3
- readonly code: string;
4
- readonly state: "failed" | "unknown";
5
- constructor(code: string, state: "failed" | "unknown");
6
- }
7
- /** F27:.octospec/tasks/gateway-august-feature-assessment/assessment.md */
8
- export declare class ImTextSend {
9
- #private;
10
- readonly send: () => void;
11
- readonly finish: (state: "delivered" | "failed" | "unknown") => void;
12
- readonly signal: AbortSignal;
13
- readonly result: Promise<string>;
14
- constructor(send: () => void, finish: (state: "delivered" | "failed" | "unknown") => void, signal: AbortSignal);
15
- start(): void;
16
- ack(id: string, reason: number): void;
17
- fail(code: string): void;
18
- disconnected(): void;
19
- }
@@ -1,86 +0,0 @@
1
- /** WS 逻辑消息的确认窗口;不重连、不重新执行模型。 */
2
- export class ImSendError extends Error {
3
- code;
4
- state;
5
- constructor(code, state) {
6
- super(code);
7
- this.code = code;
8
- this.state = state;
9
- }
10
- }
11
- /** F27:.octospec/tasks/gateway-august-feature-assessment/assessment.md */
12
- export class ImTextSend {
13
- send;
14
- finish;
15
- signal;
16
- #timer;
17
- #attempt = 0;
18
- #unknown = false;
19
- #settled = false;
20
- #resolve;
21
- #reject;
22
- result = new Promise((resolve, reject) => {
23
- this.#resolve = resolve;
24
- this.#reject = reject;
25
- });
26
- constructor(send, finish, signal) {
27
- this.send = send;
28
- this.finish = finish;
29
- this.signal = signal;
30
- }
31
- start() {
32
- this.signal.addEventListener("abort", this.#abort, { once: true });
33
- if (this.signal.aborted)
34
- this.#abort();
35
- else
36
- this.#send();
37
- }
38
- ack(id, reason) {
39
- if (this.#settled)
40
- return;
41
- if (reason === 1) {
42
- this.#settle("delivered");
43
- this.#resolve(id);
44
- }
45
- else
46
- this.fail(`IM_SEND_REJECTED_${reason}`);
47
- }
48
- fail(code) {
49
- if (this.#settled)
50
- return;
51
- const state = this.#unknown ? "unknown" : "failed";
52
- this.#settle(state);
53
- this.#reject(new ImSendError(code, state));
54
- }
55
- disconnected() {
56
- if (this.#attempt)
57
- this.#unknown = true;
58
- this.fail("IM_DISCONNECTED");
59
- }
60
- #abort = () => this.fail("IM_DELIVERY_CANCELLED");
61
- #send() {
62
- if (this.#settled)
63
- return;
64
- this.#attempt++;
65
- this.#timer = setTimeout(() => {
66
- this.#unknown = true;
67
- const delay = [1000, 5000, 10000][this.#attempt - 1];
68
- if (delay === undefined)
69
- this.fail("IM_SEND_TIMEOUT");
70
- else
71
- this.#timer = setTimeout(() => this.#send(), delay);
72
- }, 15_000);
73
- try {
74
- this.send();
75
- }
76
- catch (error) {
77
- this.fail(error instanceof ImSendError ? error.code : "IM_SEND_FAILED");
78
- }
79
- }
80
- #settle(state) {
81
- this.#settled = true;
82
- clearTimeout(this.#timer);
83
- this.signal.removeEventListener("abort", this.#abort);
84
- this.finish(state);
85
- }
86
- }
@@ -1,5 +0,0 @@
1
- /** 投递诊断投影为独立消息,不向原执行流追加虚假失败终态。 */
2
- import { type CanonicalEvent } from "@mininglamp-oss/octo-runtime-protocol";
3
- export declare function deliveryNotice(): CanonicalEvent<"message.create">;
4
- /** F27:.octospec/tasks/gateway-august-feature-assessment/assessment.md */
5
- export declare function deliveryNoticeCard(event: CanonicalEvent): Record<string, unknown>;
@@ -1,35 +0,0 @@
1
- /** 投递诊断投影为独立消息,不向原执行流追加虚假失败终态。 */
2
- import { failurePayload } from "@mininglamp-oss/octo-runtime-protocol";
3
- export function deliveryNotice() {
4
- const { failure, message } = failurePayload({ code: "IM_DELIVERY_UNKNOWN" }, {
5
- stage: "channel_delivery",
6
- defaultDomain: "runtime",
7
- source: { component: "octo-runtime" }
8
- });
9
- return {
10
- protocolVersion: 2,
11
- type: "message.create",
12
- payload: { role: "system", status: "delivery_unknown", text: String(message), failure }
13
- };
14
- }
15
- /** F27:.octospec/tasks/gateway-august-feature-assessment/assessment.md */
16
- export function deliveryNoticeCard(event) {
17
- const { failure, text } = event.payload;
18
- if (event.type !== "message.create" ||
19
- event.payload.status !== "delivery_unknown" ||
20
- failure?.stage !== "channel_delivery")
21
- throw Error("IM_DELIVERY_NOTICE_INVALID");
22
- return {
23
- type: "AdaptiveCard",
24
- version: "1.5",
25
- body: [
26
- { type: "TextBlock", text: "回复送达结果未知", weight: "Bolder", wrap: true },
27
- { type: "TextBlock", text, wrap: true },
28
- {
29
- type: "TextBlock",
30
- text: `错误码:${failure.code}\n诊断编号:${failure.diagnosticId}`,
31
- wrap: true
32
- }
33
- ]
34
- };
35
- }