@spzxg/cli-skill 0.1.3 → 0.1.5
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 +17 -11
- package/bin/cli-skill.js +2 -2
- package/package.json +7 -32
- package/skills/cli-task-center/SKILL.md +9 -3
- package/src/client.d.ts +2 -1
- package/src/client.js +36 -7
package/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# @spzxg/cli-skill
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 2026-11-26:`@spzxg/cli-skill@0.1.5` 已发布并从 npm 核验可获取(同批 `@spzxg/cli-mcp@0.1.5`),优化异步等待中断 `job_id` 保留、中枢已知安全错误码透传、对话空 `prompt` 与误带 `/api` 地址提前拦截、明确能力边界并补充全局预安装指引;历史 `@spzxg/cli-skill@0.1.4`(2026-11-24)与 `@spzxg/cli-skill@0.1.3`(2026-11-16)保留记录。npm 发布不代表中枢、节点、数据库迁移或线上文档已部署。
|
|
4
|
+
|
|
5
|
+
> 2026-11-24:`@spzxg/cli-skill@0.1.4` 已发布并从 npm 核验可获取(同批 `@spzxg/cli-mcp@0.1.4`、`@spzxg/cli-ui@0.6.18`、四个基础包 `1.0.7`),新增校验并透传 `continue_on_task_failure` 与 `workspace.material_root`;历史 `@spzxg/cli-skill@0.1.3`(2026-11-16)保留记录。npm 发布不代表中枢、节点、数据库迁移或线上文档已部署。
|
|
6
|
+
|
|
7
|
+
> 2026-11-16:源码包名、当前依赖和导入统一使用 `@spzxg`,四个基础包为 `1.0.6`,CLI 三包各自版本不变。构建与更新依赖直接使用该命名空间;历史发布记录保留原包名。发布仍使用隔离打包和完整性检查,本次源码改名不重新发布 npm,也不代表线上文档或节点已更新。
|
|
8
|
+
|
|
9
|
+
**`@spzxg/cli-skill@0.1.3` 已发布(2026-11-16),npm 已核验可获取。** 以下接入命令、源码包名和当前业务引用统一使用 `@spzxg`,各自版本不变,历史发布记录保留原包名。npm 发布不代表中枢、节点、数据库迁移或线上文档已部署。
|
|
4
10
|
|
|
5
11
|
中枢 CLI Task Center 的独立 API 客户端、命令行和可安装 Skill。业务系统通过它把工作交给已配置的远端 CLI Agent,支持一次性多任务拆解、依赖关系、派发即返回、等待结果和节点 ego 浏览器开关。只调用现有 HTTP API,不修改中枢服务、调度器或 Operator。
|
|
6
12
|
|
|
@@ -8,16 +14,16 @@
|
|
|
8
14
|
|
|
9
15
|
## 安装 Skill
|
|
10
16
|
|
|
11
|
-
要求 Node.js 22
|
|
17
|
+
要求 Node.js 22+。以下安装示例使用已发布的 @spzxg 0.1.5,支持本文全部命令:
|
|
12
18
|
|
|
13
19
|
```bash
|
|
14
|
-
npx -y @spzxg/cli-skill@0.1.
|
|
15
|
-
npx -y @spzxg/cli-skill@0.1.
|
|
20
|
+
npx -y @spzxg/cli-skill@0.1.5 install --agent codex
|
|
21
|
+
npx -y @spzxg/cli-skill@0.1.5 install --agent claude
|
|
16
22
|
# 或同时安装到两者
|
|
17
|
-
npx -y @spzxg/cli-skill@0.1.
|
|
23
|
+
npx -y @spzxg/cli-skill@0.1.5 install --agent all
|
|
18
24
|
```
|
|
19
25
|
|
|
20
|
-
|
|
26
|
+
内网或慢网环境推荐全局预安装:`npm i -g @spzxg/cli-skill@0.1.5`,然后运行 `cli-skill install --agent codex`。历史版本 0.1.0 不支持执行配置命令或 `execution_config` 字段。
|
|
21
27
|
|
|
22
28
|
默认安装到 `~/.codex/skills/cli-task-center` 或 `~/.claude/skills/cli-task-center`;Codex 尊重 `CODEX_HOME`。自定义宿主用 `install --dir /path/to/skills`。已有目录时明确报错;确认替换本 Skill 时加 `--force`。无 npm 安装后脚本,不自动修改任何宿主配置。安装后按宿主的技能刷新方式加载,或重开会话。
|
|
23
29
|
|
|
@@ -44,13 +50,13 @@ Base URL 是中枢根地址;也支持业务代理前缀,例如 `https://busi
|
|
|
44
50
|
```
|
|
45
51
|
|
|
46
52
|
```bash
|
|
47
|
-
# 接受后立即返回 IDs
|
|
48
|
-
npx -y @spzxg/cli-skill@0.1.
|
|
53
|
+
# 接受后立即返回 IDs,不后台轮询(异步/耗时任务首选)
|
|
54
|
+
npx -y @spzxg/cli-skill@0.1.5 dispatch --input job.json
|
|
49
55
|
# 接受后等待,最多 60 秒
|
|
50
|
-
npx -y @spzxg/cli-skill@0.1.
|
|
56
|
+
npx -y @spzxg/cli-skill@0.1.5 dispatch --input job.json --wait --timeout-seconds 60
|
|
51
57
|
# 延续已有任务的等待,不新建任务
|
|
52
|
-
npx -y @spzxg/cli-skill@0.1.
|
|
53
|
-
npx -y @spzxg/cli-skill@0.1.
|
|
58
|
+
npx -y @spzxg/cli-skill@0.1.5 wait <job_id> --timeout-seconds 60
|
|
59
|
+
npx -y @spzxg/cli-skill@0.1.5 get <job_id>
|
|
54
60
|
```
|
|
55
61
|
|
|
56
62
|
也支持 `--input -` 从 stdin 读取 JSON。`--browser true|false` 覆盖整个提交中的子任务;省略时保留每个 `tasks[].browser`,缺省 false。true 由现有服务在执行节点准备 ego 浏览器,本机不会启动浏览器。
|
package/bin/cli-skill.js
CHANGED
|
@@ -4,7 +4,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
4
4
|
import { createClientFromEnv } from '../src/client.js';
|
|
5
5
|
import { installSkill } from '../src/install.js';
|
|
6
6
|
|
|
7
|
-
const help = `CLI Task Center · @spzxg/cli-skill 0.1.
|
|
7
|
+
const help = `CLI Task Center · @spzxg/cli-skill 0.1.5
|
|
8
8
|
|
|
9
9
|
Install an agent skill:
|
|
10
10
|
cli-skill install [--agent codex|claude|all] [--dir <skills-directory>] [--force]
|
|
@@ -38,7 +38,7 @@ try {
|
|
|
38
38
|
'turn-id': { type: 'string' }, help: { type: 'boolean', short: 'h' }, version: { type: 'boolean', short: 'v' },
|
|
39
39
|
'task-id': { type: 'string' }, 'expected-revision': { type: 'string' },
|
|
40
40
|
} });
|
|
41
|
-
if (values.version) { process.stdout.write('0.1.
|
|
41
|
+
if (values.version) { process.stdout.write('0.1.5\n'); }
|
|
42
42
|
else if (values.help || !positionals.length) { process.stdout.write(help); }
|
|
43
43
|
else {
|
|
44
44
|
const [command, id, ...extra] = positionals;
|
package/package.json
CHANGED
|
@@ -1,44 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spzxg/cli-skill",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "CLI Task Center API client and installable agent skill: dispatch background tasks, wait for results, split dependent work, and enable execution-node ego browsers.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"engines": {
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
"bin": {
|
|
10
|
-
"cli-skill": "./bin/cli-skill.js"
|
|
11
|
-
},
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./src/client.d.ts",
|
|
15
|
-
"default": "./src/client.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
6
|
+
"engines": { "node": ">=22" },
|
|
7
|
+
"bin": { "cli-skill": "./bin/cli-skill.js" },
|
|
8
|
+
"exports": { ".": { "types": "./src/client.d.ts", "default": "./src/client.js" } },
|
|
18
9
|
"types": "./src/client.d.ts",
|
|
19
|
-
"files": [
|
|
20
|
-
"bin",
|
|
21
|
-
"src",
|
|
22
|
-
"skills",
|
|
23
|
-
"README.md",
|
|
24
|
-
"LICENSE"
|
|
25
|
-
],
|
|
10
|
+
"files": ["bin", "src", "skills", "README.md", "LICENSE"],
|
|
26
11
|
"scripts": {
|
|
27
12
|
"test": "node --test test/*.test.js",
|
|
28
13
|
"check": "node --check bin/cli-skill.js && node --check src/client.js && node --check src/install.js",
|
|
29
14
|
"prepublishOnly": "npm run check && npm test"
|
|
30
15
|
},
|
|
31
|
-
"publishConfig": {
|
|
32
|
-
|
|
33
|
-
"registry": "https://registry.npmjs.org/"
|
|
34
|
-
},
|
|
35
|
-
"keywords": [
|
|
36
|
-
"cli-task-center",
|
|
37
|
-
"skill",
|
|
38
|
-
"codex",
|
|
39
|
-
"claude-code",
|
|
40
|
-
"ego-browser",
|
|
41
|
-
"task-orchestration"
|
|
42
|
-
],
|
|
16
|
+
"publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" },
|
|
17
|
+
"keywords": ["cli-task-center", "skill", "codex", "claude-code", "ego-browser", "task-orchestration"],
|
|
43
18
|
"license": "MIT"
|
|
44
19
|
}
|
|
@@ -11,14 +11,16 @@ Use this skill when the user wants work executed by their configured Center and
|
|
|
11
11
|
|
|
12
12
|
Commands require Node.js 22+ and two environment variables: `CLI_CENTER_BASE_URL` (Center root or business backend proxy URL, without a trailing `/api`) and `CLI_CENTER_TOKEN` (product-line token). The credential stays in the environment; never place it in prompts, JSON job files, skill files, or published artifacts. Do not read an admin token to supply missing product-line configuration.
|
|
13
13
|
|
|
14
|
-
This Skill targets `@spzxg/cli-skill@0.1.
|
|
14
|
+
This Skill targets `@spzxg/cli-skill@0.1.5` (published 2026-11-26; previous `@spzxg/cli-skill@0.1.4`, 2026-11-24; `@spzxg/cli-skill@0.1.3`, 2026-11-16). Use `npx -y @spzxg/cli-skill@0.1.5` or a globally installed `cli-skill` (`npm i -g @spzxg/cli-skill@0.1.5`, recommended for offline/slow networks). Commands are unchanged from 0.1.1. Version 0.1.0 lacks execution-settings commands. Settings require the matching Center migration and node upgrade; installing the client does not deploy services or migrate a database.
|
|
15
15
|
|
|
16
16
|
## Choose the user's completion contract
|
|
17
17
|
|
|
18
|
-
- **Dispatch and leave:** `cli-skill dispatch --input job.json`. Return the API's `job_id`, `task_ids`, and initial `status`, then stop. Submission means accepted/queued, not completed. Do not poll or come back later unless the user asked for a callback or follow-up.
|
|
19
|
-
- **Dispatch and wait:** `cli-skill dispatch --input job.json --wait --timeout-seconds 60`. Return the wait result. The client wait budget is separate from each task's `timeout_seconds` and includes queue time.
|
|
18
|
+
- **Dispatch and leave (preferred for async/long work):** `cli-skill dispatch --input job.json`. Return the API's `job_id`, `task_ids`, and initial `status`, then stop. Submission means accepted/queued, not completed. Prefer this mode for background reports, multi-step jobs, or callback-driven workflows to avoid blocking or hitting host timeouts. Do not poll or come back later unless the user asked for a callback or follow-up.
|
|
19
|
+
- **Dispatch and wait (short bounded waits only):** `cli-skill dispatch --input job.json --wait --timeout-seconds 60`. Return the wait result. The client wait budget is separate from each task's `timeout_seconds` and includes queue time. If waiting times out or is interrupted after creation, keep the returned `job_id` and resume with `wait`; never resubmit blindly.
|
|
20
20
|
- **Resume waiting for an existing job:** `cli-skill wait <job_id> --timeout-seconds 60`. For a conversation, also provide `--turn-id <turn_id>` from the creation receipt. Use `cli-skill get <job_id>` for a snapshot.
|
|
21
21
|
|
|
22
|
+
Scope boundary: this Skill wraps initial dispatch, status/turn queries, bounded waiting, and conversation execution settings. Follow-up conversation messages, appending tasks to an existing job, cancelling/closing jobs, and reading or downloading artifact files remain handled by the business system through the Center HTTP API or `@spzxg/cli-ui`.
|
|
23
|
+
|
|
22
24
|
For normal CLI work, omit `mode` and use one or more `tasks`. The API reports final job/task state, usage, and workspace references; its Job query does not include a final reply or download artifact files. Do not invent a report body from `status: succeeded`. `workspace.merged` separately indicates whether a task's output branch merged.
|
|
23
25
|
|
|
24
26
|
If the user needs a text reply from a single remote agent, use `mode: "conversation"` and exactly one task. `dispatch --wait` waits for the **initial turn**, whose ID is returned in `receipt.turn.turn_id`, and returns its `reply`. A conversation Job remains open/idle after a turn completes. Do not wait for the conversation Job to become terminal or close it automatically. Conversation creation cannot include `depends_on`, `done_when`, or `browser_learn`.
|
|
@@ -40,6 +42,10 @@ Translate the request into concrete prompts with inputs, intended outputs, accep
|
|
|
40
42
|
|
|
41
43
|
Preserve supplied `business_id` for business correlation; initial Job creation is **not idempotent**. Use supported `done_when` rules only when the request needs them; otherwise the Center's `agent_confirm` default applies. `manual` may wait indefinitely for human confirmation, so do not use it for unattended automation. Agent names and effective agent selection are configured by the Center; omit `agent` or use `system` to inherit its configured product-line plan.
|
|
42
44
|
|
|
45
|
+
Optional batch and workspace controls (supported since 0.1.4):
|
|
46
|
+
- `continue_on_task_failure` (boolean, default `false`, one-shot jobs only): when `true`, a failed task only cancels tasks that depend on it while unrelated tasks continue; the batch still finishes with `failed` after all other tasks finish and save their outputs.
|
|
47
|
+
- `workspace.material_root` (absolute path string inside the execution node's shared task directory, max 1024 chars, no `.`, `..`, empty segments, or `job_*` path): isolates all tasks in this Job to the specified material directory so they cannot see sibling jobs' materials or repositories. Requires an upgraded node with agent isolation enabled.
|
|
48
|
+
|
|
43
49
|
## Conversation execution settings
|
|
44
50
|
|
|
45
51
|
When the user requests a particular agent, model, reasoning level or execution mode, read `cli-skill execution-config` for new-conversation capabilities. Use available IDs from the returned `agents` catalog, not display labels or a hardcoded model list. Without a requested override, preserve the normal product-line defaults.
|
package/src/client.d.ts
CHANGED
|
@@ -17,7 +17,8 @@ export interface TaskInput {
|
|
|
17
17
|
}
|
|
18
18
|
export interface JobInput {
|
|
19
19
|
title: string; tasks: TaskInput[]; mode?: 'conversation'; max_concurrent_tasks?: number;
|
|
20
|
-
|
|
20
|
+
continue_on_task_failure?: boolean;
|
|
21
|
+
workspace?: { version?: 1; name?: string; context?: string; branch?: string; material_root?: string }; callback?: Callback;
|
|
21
22
|
}
|
|
22
23
|
export interface DispatchReceipt {
|
|
23
24
|
id?: string; job_id: string; status: string; task_ids?: string[]; tasks?: string[];
|
package/src/client.js
CHANGED
|
@@ -3,7 +3,18 @@ import { setTimeout as delay } from 'node:timers/promises';
|
|
|
3
3
|
const terminal = new Set(['succeeded', 'failed', 'cancelled']);
|
|
4
4
|
const object = value => value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
5
5
|
const nonempty = value => typeof value === 'string' && value.trim().length > 0;
|
|
6
|
-
const
|
|
6
|
+
const knownErrors = new Set([
|
|
7
|
+
'invalid_execution_config', 'execution_config_conflict', 'execution_config_busy',
|
|
8
|
+
'execution_config_unavailable', 'execution_config_not_supported', 'execution_agent_conflict',
|
|
9
|
+
'execution_agent_unavailable', 'execution_account_unavailable', 'conversation_closed',
|
|
10
|
+
'conversation_not_found', 'not_found', 'unauthorized', 'not_a_conversation',
|
|
11
|
+
'workspace_contract_requires_version_1', 'conversation_requires_one_task',
|
|
12
|
+
'conversation_task_fields_not_allowed', 'conversation_prompt_required',
|
|
13
|
+
'command_judge_not_allowed', 'depends_on references an unknown task key',
|
|
14
|
+
'depends_on references an ambiguous task key', 'depends_on contains a cycle',
|
|
15
|
+
'browser_options_require_browser', 'browser_learn_not_allowed',
|
|
16
|
+
'agent_not_configured', 'job_storage_cleaned', 'job_storage_cleaning',
|
|
17
|
+
]);
|
|
7
18
|
function requireValue(condition, message) { if (!condition) throw new TypeError(message); }
|
|
8
19
|
function range(value, min, max, name) {
|
|
9
20
|
requireValue(typeof value === 'number' && Number.isFinite(value) && value >= min && value <= max, `${name} must be between ${min} and ${max}`);
|
|
@@ -49,16 +60,18 @@ function executionReply(value, uncertain = false) {
|
|
|
49
60
|
/** Validate wrapper-sensitive fields; the Center remains the API authority. */
|
|
50
61
|
export function validateJob(input, options = {}) {
|
|
51
62
|
requireValue(object(input) && nonempty(input.title), 'job.title is required');
|
|
52
|
-
const allowed = new Set(['title', 'mode', 'tasks', 'workspace', 'callback', 'max_concurrent_tasks']);
|
|
63
|
+
const allowed = new Set(['title', 'mode', 'tasks', 'workspace', 'callback', 'max_concurrent_tasks', 'continue_on_task_failure']);
|
|
53
64
|
for (const key of Object.keys(input)) requireValue(allowed.has(key), `Unsupported job field: ${key}`);
|
|
54
65
|
requireValue(input.mode === undefined || input.mode === 'conversation', 'Omit mode for a one-shot job, or use conversation');
|
|
55
66
|
requireValue(Array.isArray(input.tasks) && input.tasks.length > 0, 'job.tasks must be a nonempty array');
|
|
56
67
|
if (options.browser !== undefined) requireValue(typeof options.browser === 'boolean', 'browser must be a boolean');
|
|
57
68
|
if (input.callback !== undefined) callback(input.callback);
|
|
58
69
|
if (input.max_concurrent_tasks !== undefined) requireValue(Number.isInteger(input.max_concurrent_tasks) && input.max_concurrent_tasks >= 1 && input.max_concurrent_tasks <= 20, 'max_concurrent_tasks must be an integer from 1 to 20');
|
|
70
|
+
if (input.continue_on_task_failure !== undefined) requireValue(typeof input.continue_on_task_failure === 'boolean', 'continue_on_task_failure must be a boolean');
|
|
59
71
|
if (input.workspace !== undefined) {
|
|
60
72
|
requireValue(object(input.workspace), 'workspace must be an object');
|
|
61
|
-
for (const key of Object.keys(input.workspace)) requireValue(['version', 'name', 'context', 'branch'].includes(key), `Unsupported workspace field: ${key}`);
|
|
73
|
+
for (const key of Object.keys(input.workspace)) requireValue(['version', 'name', 'context', 'branch', 'material_root'].includes(key), `Unsupported workspace field: ${key}`);
|
|
74
|
+
if (input.workspace.material_root !== undefined) requireValue(nonempty(input.workspace.material_root), 'workspace.material_root must be nonempty');
|
|
62
75
|
}
|
|
63
76
|
const keys = new Map();
|
|
64
77
|
const tasks = input.tasks.map((task, index) => {
|
|
@@ -86,6 +99,7 @@ export function validateJob(input, options = {}) {
|
|
|
86
99
|
if (task.browser_playbook !== undefined || task.browser_pacing !== undefined || task.browser_learn !== undefined) requireValue(browser, 'Browser options require browser: true');
|
|
87
100
|
if (input.mode === 'conversation') {
|
|
88
101
|
requireValue(input.tasks.length === 1, 'conversation requires exactly one task');
|
|
102
|
+
requireValue(nonempty(task.prompt), 'conversation requires a nonempty task.prompt');
|
|
89
103
|
requireValue(task.done_when === undefined && task.depends_on === undefined, 'conversation does not accept done_when or depends_on');
|
|
90
104
|
requireValue(task.browser_learn === undefined, 'conversation does not accept browser_learn');
|
|
91
105
|
}
|
|
@@ -117,6 +131,7 @@ export function createClient({ baseUrl, token, request_timeout_seconds = 30, fet
|
|
|
117
131
|
requireValue(nonempty(baseUrl), 'CLI_CENTER_BASE_URL is required');
|
|
118
132
|
const base = new URL(baseUrl);
|
|
119
133
|
requireValue(['http:', 'https:'].includes(base.protocol) && !base.username && !base.password && !base.search && !base.hash, 'baseUrl must be an HTTP(S) root or proxy URL without credentials/query/fragment');
|
|
134
|
+
requireValue(!/\/api(?:\/jobs)?$/i.test(base.pathname.replace(/\/+$/, '')), 'CLI_CENTER_BASE_URL must be the Center root URL without a trailing /api');
|
|
120
135
|
requireValue(nonempty(token) && !/[\r\n]/.test(token), 'CLI_CENTER_TOKEN is required and must be a single line');
|
|
121
136
|
range(request_timeout_seconds, 0.001, 300, 'request_timeout_seconds');
|
|
122
137
|
const prefix = base.href.replace(/\/+$/, '');
|
|
@@ -133,8 +148,17 @@ export function createClient({ baseUrl, token, request_timeout_seconds = 30, fet
|
|
|
133
148
|
});
|
|
134
149
|
if (!response.ok) {
|
|
135
150
|
const failure = await response.json().catch(() => null);
|
|
136
|
-
|
|
137
|
-
|
|
151
|
+
let code = 'http_error';
|
|
152
|
+
let suffix = '';
|
|
153
|
+
if (typeof failure?.error === 'string' && knownErrors.has(failure.error)) {
|
|
154
|
+
code = failure.error;
|
|
155
|
+
suffix = ` (${code})`;
|
|
156
|
+
} else if (object(failure?.error) && object(failure.error.fieldErrors)) {
|
|
157
|
+
const fields = Object.keys(failure.error.fieldErrors).filter(key => /^[A-Za-z0-9_.-]{1,64}$/.test(key)).slice(0, 8);
|
|
158
|
+
code = 'validation_error';
|
|
159
|
+
suffix = fields.length ? ` (validation_error: ${fields.join(', ')})` : ' (validation_error)';
|
|
160
|
+
}
|
|
161
|
+
throw new CenterApiError(`Center API returned HTTP ${response.status}${suffix}`, { status: response.status, code, uncertain: mutation && response.status >= 500 });
|
|
138
162
|
}
|
|
139
163
|
return await response.json();
|
|
140
164
|
} catch (error) {
|
|
@@ -231,8 +255,13 @@ export function createClient({ baseUrl, token, request_timeout_seconds = 30, fet
|
|
|
231
255
|
const result = await waitForJob(jobId, { ...options, turn_id: receipt.turn?.turn_id });
|
|
232
256
|
return { ...result, receipt };
|
|
233
257
|
} catch (error) {
|
|
234
|
-
if (error && typeof error === 'object') {
|
|
235
|
-
|
|
258
|
+
if (error && typeof error === 'object') {
|
|
259
|
+
try { error.job_id = jobId; error.receipt = receipt; } catch {}
|
|
260
|
+
throw error;
|
|
261
|
+
}
|
|
262
|
+
const wrapped = new CenterApiError('Waiting was interrupted after job creation; resume with waitForJob using job_id.', { code: 'wait_interrupted', job_id: jobId, uncertain: false });
|
|
263
|
+
wrapped.receipt = receipt;
|
|
264
|
+
throw wrapped;
|
|
236
265
|
}
|
|
237
266
|
}
|
|
238
267
|
return { dispatch, dispatchAndWait, getJob, getTurn, waitForJob, getExecutionConfig, setExecutionConfig };
|