@mininglamp-oss/octo-runtime 1.1.4 → 1.1.6
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/README.md +61 -37
- package/apps/cli/README.md +58 -22
- package/apps/cli/dist/adapter-configurations.d.ts +4 -0
- package/apps/cli/dist/adapter-configurations.js +102 -0
- package/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/cli-entrypoint.d.ts +2 -0
- package/apps/cli/dist/cli-entrypoint.js +16 -0
- package/apps/cli/dist/command-tree.d.ts +20 -0
- package/apps/cli/dist/command-tree.js +402 -0
- package/apps/cli/dist/extra-command-config.d.ts +4 -0
- package/apps/cli/dist/extra-command-config.js +50 -0
- package/apps/cli/dist/extra-commands.d.ts +15 -0
- package/apps/cli/dist/extra-commands.js +275 -0
- package/apps/cli/dist/extras.js +14 -2
- package/apps/cli/dist/global-extras.d.ts +16 -0
- package/apps/cli/dist/global-extras.js +201 -0
- package/apps/cli/dist/help.d.ts +4 -1
- package/apps/cli/dist/help.js +31 -79
- package/apps/cli/dist/logs.js +8 -4
- package/apps/cli/dist/main.d.ts +2 -0
- package/apps/cli/dist/main.js +38 -68
- package/apps/cli/dist/manifest.json +48 -3
- package/apps/cli/dist/module-manifest.d.ts +1 -1
- package/apps/cli/dist/module-manifest.js +3 -2
- package/apps/cli/dist/output.js +18 -2
- package/apps/cli/dist/playboard.js +3 -2
- package/apps/cli/dist/service-control.js +2 -2
- package/apps/cli/dist/state.js +48 -19
- package/dist/public/channel-gateway-commands.d.ts +1 -0
- package/dist/public/channel-gateway-commands.js +1 -0
- package/dist/public/channel-wecom-commands.d.ts +1 -0
- package/dist/public/channel-wecom-commands.js +1 -0
- package/dist/public/extra.d.ts +1 -0
- package/dist/public/extra.js +1 -0
- package/dist/public/host.d.ts +2 -4
- package/dist/public/host.js +1 -2
- package/dist/public/webui-commands.d.ts +1 -0
- package/dist/public/webui-commands.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +5 -2
- 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/dist/index.d.ts +3 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +161 -26
- 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 +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-G5PWGRL5.js → chunk-3GXX5VD5.js} +24 -90
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-UOQRXV3Q.js → chunk-FWAPYRV2.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-DYOJCNWF.js → chunk-IW62UM3C.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +1 -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.js +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.d.ts +1 -1
- 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/client.js +8 -2
- 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 +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +8 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.d.ts +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.js +16 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +12 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +91 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +13 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +40 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +102 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/cli-entrypoint.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/cli-entrypoint.js +16 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.d.ts +20 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +402 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.js +50 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.d.ts +15 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.js +275 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +14 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.d.ts +16 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.js +201 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.d.ts +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +31 -79
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +8 -4
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +38 -68
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +48 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +18 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.js +48 -19
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +25 -24
- 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 +8 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +47 -4
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +79 -5
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +22 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +12 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +4 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +131 -43
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +36 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.js +124 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +29 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +171 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +48 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +44 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +37 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +8 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +10 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.js +128 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +9 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.js +51 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +7 -3
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.d.ts +70 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.js +16 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +1 -3
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +8 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1172 -0
- package/node_modules/commander/index.js +21 -0
- package/node_modules/commander/lib/argument.js +147 -0
- package/node_modules/commander/lib/command.js +2790 -0
- package/node_modules/commander/lib/error.js +36 -0
- package/node_modules/commander/lib/help.js +731 -0
- package/node_modules/commander/lib/option.js +377 -0
- package/node_modules/commander/lib/suggestSimilar.js +99 -0
- package/node_modules/commander/package-support.json +19 -0
- package/node_modules/commander/package.json +64 -0
- package/node_modules/commander/typings/index.d.ts +1113 -0
- package/package.json +41 -27
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +14 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.js +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/launch.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/launch.js +0 -22
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/native.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/native.js +0 -160
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { ExtraCommandError, savedConfigResult } from "@mininglamp-oss/octo-runtime-host-sdk/extra-commands";
|
|
2
|
+
import { validateImBots } from "./lifecycle/configuration.js";
|
|
3
|
+
/** 离线业务校验复用运行时 Bot 合同;不认证、不构造 manager 或服务。 */
|
|
4
|
+
function validate(config) {
|
|
5
|
+
try {
|
|
6
|
+
validateImBots(config.bots ?? []);
|
|
7
|
+
const spaces = config.authorized_space_ids;
|
|
8
|
+
if (spaces !== undefined &&
|
|
9
|
+
(!Array.isArray(spaces) || spaces.some((id) => typeof id !== "string" || !id.trim())))
|
|
10
|
+
throw new Error("IM_AUTHORIZED_SPACES_INVALID");
|
|
11
|
+
const settings = config.context_loading;
|
|
12
|
+
if (settings !== undefined) {
|
|
13
|
+
if (!settings ||
|
|
14
|
+
typeof settings !== "object" ||
|
|
15
|
+
Array.isArray(settings) ||
|
|
16
|
+
Object.keys(settings).some((key) => !["timeout_ms", "max_in_flight"].includes(key)))
|
|
17
|
+
throw new Error("IM_CONTEXT_LOADING_CONFIG_INVALID");
|
|
18
|
+
for (const [key, max] of [
|
|
19
|
+
["timeout_ms", 30000],
|
|
20
|
+
["max_in_flight", 32]
|
|
21
|
+
]) {
|
|
22
|
+
const value = settings[key];
|
|
23
|
+
if (value !== undefined &&
|
|
24
|
+
(typeof value !== "number" || !Number.isInteger(value) || value < 1 || value > max))
|
|
25
|
+
throw new Error("IM_CONTEXT_LOADING_CONFIG_INVALID");
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
const hints = {
|
|
31
|
+
IM_BOT_ID_REQUIRED: "Provide a non-empty --bot_id (JSON: bots[].bot_id).",
|
|
32
|
+
IM_ADAPTER_REQUIRED: "Each Bot requires an adapter object; configure maps --adapter_type/--workdir to it.",
|
|
33
|
+
IM_WORKDIR_ABSOLUTE_REQUIRED: "Provide an absolute --workdir for a local adapter.",
|
|
34
|
+
IM_OPENCLAW_WORKDIR_UNSUPPORTED: "OpenClaw uses its own workspace; remove config.bots[].adapter.workdir using extraset.",
|
|
35
|
+
IM_PROVIDER_AGENT_ID_UNSUPPORTED: "--provider_agent_id is supported only by OpenClaw.",
|
|
36
|
+
IM_API_URL_INVALID: "Use a valid endpoint URL without credentials, query or fragment; insecure URLs are loopback-only.",
|
|
37
|
+
IM_BOT_DUPLICATED: "Duplicate Bot identity in bots; keep one entry per endpoint and bot_id.",
|
|
38
|
+
IM_CONFIG_LIST_REQUIRED: "bots must be an array within this Extra's Bot limit.",
|
|
39
|
+
IM_AUTHORIZED_SPACES_INVALID: "authorized_space_ids must contain non-empty strings.",
|
|
40
|
+
IM_CONTEXT_LOADING_CONFIG_INVALID: "context_loading accepts timeout_ms (1..30000) and max_in_flight (1..32)."
|
|
41
|
+
};
|
|
42
|
+
const code = error instanceof Error && Object.hasOwn(hints, error.message)
|
|
43
|
+
? error.message
|
|
44
|
+
: "EXTRA_CONFIG_INVALID";
|
|
45
|
+
throw new ExtraCommandError(code, hints[code] ??
|
|
46
|
+
"Invalid Bot configuration. Check configure --help and this Extra's configuration schema.");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** 单 Bot 配置命令按 bot_id upsert;省略字段保留,重复调用不会追加相同 Bot。 */
|
|
50
|
+
const extension = {
|
|
51
|
+
apiVersion: 1,
|
|
52
|
+
commands: [
|
|
53
|
+
{
|
|
54
|
+
name: "configure",
|
|
55
|
+
description: "Add or update one Bot by bot_id; saves config only",
|
|
56
|
+
options: [
|
|
57
|
+
{ name: "bot_id", type: "string", required: true, description: "Platform Bot ID" },
|
|
58
|
+
{
|
|
59
|
+
name: "ws_url",
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "WeCom WebSocket URL; preserved on update, official endpoint for new Bots"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "adapter_type",
|
|
65
|
+
type: "string",
|
|
66
|
+
description: "Execution adapter type (adapter.adapter_type)"
|
|
67
|
+
},
|
|
68
|
+
{ name: "workdir", type: "string", description: "Absolute local execution directory" },
|
|
69
|
+
{ name: "model", type: "string", description: "Provider model ID" },
|
|
70
|
+
{
|
|
71
|
+
name: "effort",
|
|
72
|
+
type: "string",
|
|
73
|
+
description: "Reasoning effort: low, medium, high, xhigh"
|
|
74
|
+
},
|
|
75
|
+
{ name: "provider_agent_id", type: "string", description: "Existing OpenClaw Agent ID" },
|
|
76
|
+
{
|
|
77
|
+
name: "app_secret",
|
|
78
|
+
type: "string",
|
|
79
|
+
description: "Raw credential (bots[].app_secret); omitted values are preserved"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
examples: [
|
|
83
|
+
"octo-runtime channel-wecom configure --bot_id assistant --adapter_type codex --workdir /absolute/workspace --app_secret EXAMPLE_CREDENTIAL"
|
|
84
|
+
],
|
|
85
|
+
async run(context, input) {
|
|
86
|
+
const snapshot = await context.readConfig();
|
|
87
|
+
validate(snapshot.config);
|
|
88
|
+
const bots = snapshot.config.bots ?? [];
|
|
89
|
+
validateImBots(bots);
|
|
90
|
+
// configure 用 bot_id 定位,更新 endpoint 不产生第二个 Bot。
|
|
91
|
+
// 旧 extraset 跨 endpoint 的同 ID 保留首项省略字段并合并;省略 ws_url 不重置已有地址。
|
|
92
|
+
const position = bots.findIndex((bot) => bot.bot_id === input.options.bot_id);
|
|
93
|
+
const old = position < 0 ? undefined : bots[position];
|
|
94
|
+
const identityFields = {
|
|
95
|
+
bot_id: input.options.bot_id,
|
|
96
|
+
ws_url: input.options.ws_url ?? old?.ws_url ?? "wss://openws.work.weixin.qq.com"
|
|
97
|
+
};
|
|
98
|
+
const adapter = { ...old?.adapter };
|
|
99
|
+
for (const field of ["adapter_type", "workdir", "model", "effort", "provider_agent_id"]) {
|
|
100
|
+
const value = input.options[field];
|
|
101
|
+
if (typeof value === "string")
|
|
102
|
+
adapter[field] = value;
|
|
103
|
+
}
|
|
104
|
+
if (adapter.effort !== undefined &&
|
|
105
|
+
(typeof adapter.effort !== "string" ||
|
|
106
|
+
!["low", "medium", "high", "xhigh"].includes(adapter.effort)))
|
|
107
|
+
throw new ExtraCommandError("EXTRA_CONFIG_INVALID", "--effort must be low, medium, high or xhigh.");
|
|
108
|
+
const bot = { ...old, ...identityFields, adapter };
|
|
109
|
+
const credential = input.options.app_secret;
|
|
110
|
+
if (typeof credential === "string") {
|
|
111
|
+
if (!credential.trim())
|
|
112
|
+
throw new ExtraCommandError("EXTRA_CONFIG_INVALID", "--app_secret must not be blank.");
|
|
113
|
+
// 与 extraset 的业务字段同名;保存传入原文,省略时保留已有凭据。
|
|
114
|
+
bot.app_secret = credential;
|
|
115
|
+
}
|
|
116
|
+
const nextBots = bots.filter((bot, index) => index === position || bot.bot_id !== identityFields.bot_id);
|
|
117
|
+
if (position < 0)
|
|
118
|
+
nextBots.push(bot);
|
|
119
|
+
else
|
|
120
|
+
nextBots[position] = bot;
|
|
121
|
+
const config = { ...snapshot.config, bots: nextBots };
|
|
122
|
+
validate(config);
|
|
123
|
+
return savedConfigResult(await context.saveConfig(config, snapshot.revision));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
};
|
|
128
|
+
export default extension;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-extra-channel-wecom",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"import": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./commands": {
|
|
13
|
+
"types": "./dist/commands.d.ts",
|
|
14
|
+
"import": "./dist/commands.js"
|
|
11
15
|
}
|
|
12
16
|
},
|
|
13
17
|
"types": "./dist/index.d.ts",
|
|
@@ -18,10 +22,10 @@
|
|
|
18
22
|
"docs"
|
|
19
23
|
],
|
|
20
24
|
"dependencies": {
|
|
21
|
-
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.
|
|
22
|
-
"@mininglamp-oss/octo-runtime-executor-core": "1.1.
|
|
23
|
-
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.
|
|
25
|
+
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.6",
|
|
26
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.6",
|
|
27
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.6",
|
|
24
28
|
"ws": "8.22.0",
|
|
25
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
29
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.6"
|
|
26
30
|
}
|
|
27
31
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { isAbsolute, join } from "node:path";
|
|
2
|
+
import { assertContextEnvelope } from "@mininglamp-oss/octo-runtime-protocol";
|
|
3
|
+
import { ExtraCommandError, savedConfigResult } from "@mininglamp-oss/octo-runtime-host-sdk/extra-commands";
|
|
4
|
+
/** WebUI 在一个 Home 内只有 webui 这份配置;端口不是实例 ID,不创建多实例列表。 */
|
|
5
|
+
function validate(config) {
|
|
6
|
+
const port = config.port ?? 13888;
|
|
7
|
+
if (typeof port !== "number" || !Number.isInteger(port) || port < 1 || port > 65535)
|
|
8
|
+
throw new ExtraCommandError("WEBUI_PORT_INVALID", "--port must be an integer from 1 to 65535.");
|
|
9
|
+
if (typeof config.sessionStorePath !== "string" || !isAbsolute(config.sessionStorePath))
|
|
10
|
+
throw new ExtraCommandError("WEBUI_STORE_PATH_REQUIRED", "config.sessionStorePath must refer to an absolute session JSON file path.");
|
|
11
|
+
if (config.defaultProjectPath !== undefined && typeof config.defaultProjectPath !== "string")
|
|
12
|
+
throw new ExtraCommandError("WEBUI_PROJECT_PATH_INVALID", "defaultProjectPath must be a string.");
|
|
13
|
+
if (config.context !== undefined) {
|
|
14
|
+
try {
|
|
15
|
+
assertContextEnvelope(config.context);
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
throw new ExtraCommandError("WEBUI_CONTEXT_INVALID", "context must follow the Context v3 contract.");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const extension = {
|
|
23
|
+
apiVersion: 1,
|
|
24
|
+
commands: [
|
|
25
|
+
{
|
|
26
|
+
name: "configure",
|
|
27
|
+
description: "Update the single WebUI configuration; saves only, restart to apply",
|
|
28
|
+
options: [
|
|
29
|
+
{ name: "port", type: "string", description: "Loopback HTTP port (default 13888)" }
|
|
30
|
+
],
|
|
31
|
+
examples: ["octo-runtime webui configure --port 13888"],
|
|
32
|
+
async run(context, input) {
|
|
33
|
+
const snapshot = await context.readConfig();
|
|
34
|
+
const config = { ...snapshot.config };
|
|
35
|
+
// 简化入口只暴露端口;首次会话存储从宿主 Home 推导,已有路径和项目配置保持。
|
|
36
|
+
// 高级 extraset 仍按完整声明的 JSON 合同替换,不改存储字段名或隐式迁移数据。
|
|
37
|
+
if (config.sessionStorePath === undefined)
|
|
38
|
+
config.sessionStorePath = join(context.home, "extras", context.name, "sessions.json");
|
|
39
|
+
const port = input.options.port;
|
|
40
|
+
if (typeof port === "string") {
|
|
41
|
+
if (!/^[0-9]+$/.test(port))
|
|
42
|
+
throw new ExtraCommandError("WEBUI_PORT_INVALID", "--port must be an integer from 1 to 65535.");
|
|
43
|
+
config.port = Number(port);
|
|
44
|
+
}
|
|
45
|
+
validate(config);
|
|
46
|
+
return savedConfigResult(await context.saveConfig(config, snapshot.revision));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
export default extension;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-extra-webui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Local Runtime workbench with canonical SSE presentation",
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./config-schema.json": "./config-schema.json"
|
|
13
|
+
"./config-schema.json": "./config-schema.json",
|
|
14
|
+
"./commands": {
|
|
15
|
+
"types": "./dist/commands.d.ts",
|
|
16
|
+
"import": "./dist/commands.js"
|
|
17
|
+
}
|
|
14
18
|
},
|
|
15
19
|
"files": [
|
|
16
20
|
"dist",
|
|
@@ -19,6 +23,6 @@
|
|
|
19
23
|
"porting-map.md"
|
|
20
24
|
],
|
|
21
25
|
"dependencies": {
|
|
22
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
26
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.6"
|
|
23
27
|
}
|
|
24
28
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** 按选定平台规范化 Home 字符串;Windows 忽略大小写,其他平台保留大小写,不访问文件系统。 */
|
|
1
2
|
export declare function normalizedHome(home: string, platform?: NodeJS.Platform): string;
|
|
2
3
|
export declare function homeHash(home: string, platform?: NodeJS.Platform): string;
|
|
4
|
+
/** 按 Home 和组件派生本地 IPC 地址;平台路径差异在内部处理,无需调用方转换路径。 */
|
|
3
5
|
export declare function componentEndpoint(home: string, component?: string, platform?: NodeJS.Platform): string;
|
|
4
6
|
export declare function componentServiceId(home: string, component: string, platform?: NodeJS.Platform): string;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import {
|
|
2
|
+
import { posix, win32 } from "node:path";
|
|
3
|
+
/** 按选定平台规范化 Home 字符串;Windows 忽略大小写,其他平台保留大小写,不访问文件系统。 */
|
|
3
4
|
export function normalizedHome(home, platform = process.platform) {
|
|
4
|
-
return platform === "win32" ? win32.resolve(home).toLowerCase() : resolve(home);
|
|
5
|
+
return platform === "win32" ? win32.resolve(home).toLowerCase() : posix.resolve(home);
|
|
5
6
|
}
|
|
6
7
|
export function homeHash(home, platform = process.platform) {
|
|
7
8
|
return createHash("sha256").update(normalizedHome(home, platform)).digest("hex").slice(0, 16);
|
|
8
9
|
}
|
|
10
|
+
/** 按 Home 和组件派生本地 IPC 地址;平台路径差异在内部处理,无需调用方转换路径。 */
|
|
9
11
|
export function componentEndpoint(home, component = "executor-kernel", platform = process.platform) {
|
|
10
12
|
if (!/^[a-z][a-z0-9-]{0,69}$/.test(component))
|
|
11
13
|
throw new Error("COMPONENT_INVALID");
|
|
12
14
|
return platform === "win32"
|
|
13
15
|
? `\\\\.\\pipe\\octo-runtime-${component === "executor-kernel" ? "kernel" : component}-${homeHash(home, platform)}`
|
|
14
|
-
: join(normalizedHome(home), "sockets", `octo-runtime-${component}.sock`);
|
|
16
|
+
: posix.join(normalizedHome(home, platform), "sockets", `octo-runtime-${component}.sock`);
|
|
15
17
|
}
|
|
16
18
|
export function componentServiceId(home, component, platform = process.platform) {
|
|
17
19
|
if (!/^[a-z][a-z0-9-]{0,69}$/.test(component))
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { JsonObject, JsonValue } from "./extras.js";
|
|
2
|
+
/** Extra 自有命令的版本化声明;导入模块只声明命令,不初始化服务或访问业务后端。 */
|
|
3
|
+
export interface ExtraCommandExtension {
|
|
4
|
+
apiVersion: 1;
|
|
5
|
+
commands: readonly ExtraCommand[];
|
|
6
|
+
}
|
|
7
|
+
export interface ExtraCommandOption {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
type: "string" | "boolean";
|
|
11
|
+
required?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ExtraCommand {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
options?: readonly ExtraCommandOption[];
|
|
17
|
+
/** 按顺序消费位置参数;不声明就拒绝额外参数,-- 后的文本仍按此声明校验。 */
|
|
18
|
+
arguments?: readonly {
|
|
19
|
+
name: string;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
}[];
|
|
22
|
+
examples?: readonly string[];
|
|
23
|
+
commands?: readonly ExtraCommand[];
|
|
24
|
+
run?: (context: ExtraCommandContext, input: ExtraCommandInput) => Promise<ExtraCommandResult | void>;
|
|
25
|
+
}
|
|
26
|
+
export interface ExtraCommandInput {
|
|
27
|
+
options: Readonly<Record<string, string | boolean>>;
|
|
28
|
+
arguments: readonly string[];
|
|
29
|
+
}
|
|
30
|
+
export interface ExtraCommandResult {
|
|
31
|
+
/** 可选的普通终端安全提示;--json 时输出 value,不从业务 JSON 字段猜测格式。 */
|
|
32
|
+
message?: string;
|
|
33
|
+
value?: JsonValue;
|
|
34
|
+
exitCode?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface ExtraConfigSnapshot {
|
|
37
|
+
config: JsonObject;
|
|
38
|
+
/** 宿主生成的不透明修订,用于保存时检查整份声明是否发生并发变化。 */
|
|
39
|
+
revision: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ExtraConfigSaved {
|
|
42
|
+
saved: true;
|
|
43
|
+
name: string;
|
|
44
|
+
file: string;
|
|
45
|
+
reload_required: true;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* CLI 拥有 Home、IO 与取消信号;业务实现先读快照、在锁外完成交互/校验,再保存。
|
|
49
|
+
* saveConfig 只写当前 Extra 的 config,保留宿主字段;冲突须重新读取,不能盲目重试。
|
|
50
|
+
* output/prompt 的文本由插件负责脱敏;凭据输入方式归 Extra 决定,不使用会回显的 prompt。
|
|
51
|
+
*/
|
|
52
|
+
export interface ExtraCommandContext {
|
|
53
|
+
readonly home: string;
|
|
54
|
+
readonly name: string;
|
|
55
|
+
readonly signal: AbortSignal;
|
|
56
|
+
readonly interactive: boolean;
|
|
57
|
+
readConfig(): Promise<ExtraConfigSnapshot>;
|
|
58
|
+
saveConfig(config: JsonObject, revision: string): Promise<ExtraConfigSaved>;
|
|
59
|
+
readStdin(): Promise<string>;
|
|
60
|
+
output(text: string): void;
|
|
61
|
+
prompt(question: string): Promise<string>;
|
|
62
|
+
}
|
|
63
|
+
/** 可公开的固定诊断;不得把凭据、用户输入或后端错误正文拼入 code/message。 */
|
|
64
|
+
export declare class ExtraCommandError extends Error {
|
|
65
|
+
readonly code: string;
|
|
66
|
+
constructor(code: string, message: string);
|
|
67
|
+
}
|
|
68
|
+
export type { JsonObject, JsonValue } from "./extras.js";
|
|
69
|
+
/** 将宿主保存回执转换为明确的文本/JSON 输出;业务对象不参与回执识别。 */
|
|
70
|
+
export declare function savedConfigResult(saved: ExtraConfigSaved): ExtraCommandResult;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** 可公开的固定诊断;不得把凭据、用户输入或后端错误正文拼入 code/message。 */
|
|
2
|
+
export class ExtraCommandError extends Error {
|
|
3
|
+
code;
|
|
4
|
+
constructor(code, message) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.code = code;
|
|
7
|
+
this.name = "ExtraCommandError";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/** 将宿主保存回执转换为明确的文本/JSON 输出;业务对象不参与回执识别。 */
|
|
11
|
+
export function savedConfigResult(saved) {
|
|
12
|
+
return {
|
|
13
|
+
value: { ...saved },
|
|
14
|
+
message: `${saved.name}: configuration saved. Restart this Extra to apply it.\nConfig file: ${saved.file}`
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -7,6 +7,4 @@ export * from "./extra-service.js";
|
|
|
7
7
|
export * from "./endpoint.js";
|
|
8
8
|
export * from "./home.js";
|
|
9
9
|
export * from "./identity.js";
|
|
10
|
-
export * from "./
|
|
11
|
-
export type { CleanupResult } from "./launch.js";
|
|
12
|
-
export { ComponentStartError } from "./launch.js";
|
|
10
|
+
export * from "./extra-commands.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-host-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,12 +16,16 @@
|
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./extra-commands": {
|
|
21
|
+
"types": "./dist/extra-commands.d.ts",
|
|
22
|
+
"import": "./dist/extra-commands.js"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
"dependencies": {
|
|
22
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
23
|
-
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.
|
|
24
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
26
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.6",
|
|
27
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.6",
|
|
28
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.6"
|
|
25
29
|
},
|
|
26
30
|
"types": "./dist/index.d.ts",
|
|
27
31
|
"files": [
|
|
@@ -10,7 +10,7 @@ export interface FailureClassificationContext {
|
|
|
10
10
|
occurredAt?: string;
|
|
11
11
|
/** Only trusted downstream boundaries may retain a previously validated envelope. */
|
|
12
12
|
preserveExisting?: boolean;
|
|
13
|
-
/**
|
|
13
|
+
/** 仅可信调用边界确认未进入执行源后设置;错误字符串不能提供此证据。 */
|
|
14
14
|
invocationNotSubmitted?: boolean;
|
|
15
15
|
}
|
|
16
16
|
interface CatalogEntry {
|
|
@@ -59,6 +59,7 @@ export declare const FAILURE_CATALOG: Readonly<{
|
|
|
59
59
|
"OH-PRV-4007": CatalogEntry;
|
|
60
60
|
"OH-PRV-4008": CatalogEntry;
|
|
61
61
|
"OH-PRV-4009": CatalogEntry;
|
|
62
|
+
"OH-PRV-4010": CatalogEntry;
|
|
62
63
|
"OH-PRV-4099": CatalogEntry;
|
|
63
64
|
"OH-SYS-9001": CatalogEntry;
|
|
64
65
|
}>;
|
|
@@ -37,6 +37,7 @@ export const FAILURE_CATALOG = Object.freeze({
|
|
|
37
37
|
"OH-PRV-4007": entry("provider_client_policy", "当前授权方式不允许此客户端调用。", "error.provider.client_not_allowed", false, "update_credentials"),
|
|
38
38
|
"OH-PRV-4008": entry("provider_configuration", "此 Agent 绑定的 Provider 配置已被删除或不可用。", "error.provider.configuration_missing", false, "change_model"),
|
|
39
39
|
"OH-PRV-4009": entry("provider_message_capacity", "模型服务返回的单条消息超过运行时容量限制,本轮任务已停止。", "error.provider.message_too_large", false, "check_runtime"),
|
|
40
|
+
"OH-PRV-4010": entry("provider_acp", "ACP 模型请求失败。", "error.provider.acp_request_failed", false, "contact_admin"),
|
|
40
41
|
"OH-PRV-4099": entry("provider_unknown", "模型服务调用失败,暂时无法识别具体原因。", "error.provider.unknown", true, "retry"),
|
|
41
42
|
"OH-SYS-9001": entry("system_unknown", "系统发生未知错误。", "error.system.unknown", true, "retry")
|
|
42
43
|
});
|
|
@@ -51,7 +52,11 @@ export function classifyFailure(input, context) {
|
|
|
51
52
|
? "OH-RUN-2011"
|
|
52
53
|
: context.stage === "channel_admission" &&
|
|
53
54
|
context.invocationNotSubmitted === true &&
|
|
54
|
-
|
|
55
|
+
[
|
|
56
|
+
"CLIENT_INVOCATION_ADMISSION_CLOSED",
|
|
57
|
+
"KERNEL_UNAVAILABLE",
|
|
58
|
+
"WORKER_RESTART_EXHAUSTED"
|
|
59
|
+
].includes(evidence.explicitCode ?? "")
|
|
55
60
|
? "OH-RUN-2012"
|
|
56
61
|
: undefined;
|
|
57
62
|
const classification = channelCode
|
|
@@ -307,6 +312,9 @@ function failureEvidence(input) {
|
|
|
307
312
|
function classify(evidence, defaultDomain) {
|
|
308
313
|
const text = evidence.fingerprint;
|
|
309
314
|
const explicit = evidence.explicitCode?.toUpperCase();
|
|
315
|
+
// ACP 已明确声明失败;meta 仅作诊断,不从其中的状态码或文字猜测其他类别。
|
|
316
|
+
if (explicit === "ACP_MODEL_REQUEST_FAILED")
|
|
317
|
+
return result("OH-PRV-4010", explicit);
|
|
310
318
|
for (const [reason, code] of Object.entries({
|
|
311
319
|
UNSUPPORTED_INPUT_MODALITY: "OH-INP-5001",
|
|
312
320
|
IMAGE_RECOVERY_INPUT_REQUIRED: "OH-INP-5001",
|
package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts
CHANGED
|
@@ -571,6 +571,15 @@ export interface KernelStatus {
|
|
|
571
571
|
pid?: number;
|
|
572
572
|
generation: number;
|
|
573
573
|
restart_attempt: number;
|
|
574
|
+
recovery?: {
|
|
575
|
+
trigger: "exit" | "error" | "heartbeat" | "ipc";
|
|
576
|
+
stage: "cleanup" | "manifest" | "starting" | "backoff";
|
|
577
|
+
code: string;
|
|
578
|
+
occurred_at: string;
|
|
579
|
+
retry_at?: string;
|
|
580
|
+
exit_code?: number;
|
|
581
|
+
signal?: string;
|
|
582
|
+
};
|
|
574
583
|
state: "starting" | "ready" | "recovering" | "stopped" | "exhausted";
|
|
575
584
|
};
|
|
576
585
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|