rainskills 0.1.21 → 0.1.23
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 +1 -1
- package/SKILL.md +2 -2
- package/bin/rainskills.js +6 -0
- package/install.sh +3 -4
- package/marketplace/rainskills/.claude-plugin/plugin.json +1 -1
- package/marketplace/rainskills/.codex-plugin/plugin.json +1 -1
- package/marketplace/rainskills/skills/rainskills/SKILL.md +3 -3
- package/package.json +2 -2
- package/rainbond-app-assistant/SKILL.md +40 -1452
- package/rainbond-app-assistant/references/operational-reference.md +27 -0
- package/rainbond-app-assistant/references/routing.md +15 -0
- package/rainbond-app-assistant/references/runtime-gate.md +167 -0
- package/rainbond-app-assistant/references/workflow-rules.md +344 -0
- package/rainbond-app-assistant/scripts/validate_cross_skill_routing.py +637 -0
- package/rainbond-app-assistant/scripts/validate_progressive_loading.py +149 -0
- package/rainbond-app-version-assistant/SKILL.md +2 -2
- package/rainbond-delivery-verifier/SKILL.md +2 -2
- package/rainbond-env-sync/SKILL.md +2 -2
- package/rainbond-fullstack-bootstrap/SKILL.md +2 -2
- package/rainbond-fullstack-troubleshooter/SKILL.md +2 -2
- package/rainbond-opensource-app-deploy/SKILL.md +30 -301
- package/rainbond-opensource-app-deploy/agents/openai.yaml +1 -1
- package/rainbond-opensource-app-deploy/references/deployment-workflow.md +168 -0
- package/rainbond-opensource-app-deploy/references/runtime-gate.md +147 -0
- package/rainbond-platform-installer/SKILL.md +1 -1
- package/rainbond-platform-installer/scripts/installed-version.js +1 -1
- package/rainbond-platform-installer/scripts/runtime-state.js +20 -0
- package/rainbond-platform-query/SKILL.md +2 -2
- package/rainbond-project-init/SKILL.md +2 -2
- package/rainbond-template-installer/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -223,7 +223,7 @@ node ~/.rainbond/lib/rainskills/bin/rainskills.js platform install --onboarding-
|
|
|
223
223
|
|
|
224
224
|
Rainskills 会在用户下一次发起业务动作时,由本地运行时立即返回环境查询结果,并另行启动后台任务静默检查更新。更新只跟随 npm `latest` 指向的正式版。当前版本是 RC 或其他预发布版本时不会查询、不会自动升级;npm 上的新 RC 版本也不参与正式版自动升级。
|
|
225
225
|
|
|
226
|
-
发现更高的正式版后,后台任务只委托到经过校验的精确版本,例如 `rainskills@0.1.
|
|
226
|
+
发现更高的正式版后,后台任务只委托到经过校验的精确版本,例如 `rainskills@0.1.23`,不会执行浮动的 `@latest` 业务代码。新版本原子刷新已经安装的 Rainskills Skills;当前业务继续使用启动时已经加载的版本,最迟从下一条新任务开始使用新版。npm 超时、版本检查失败、安装位置不安全或文件迁移失败时会保留旧版本,且不会阻塞或改变当前操作。
|
|
227
227
|
|
|
228
228
|
升级只更新 Rainskills 自身,不触发 Rainbond 安装、运行环境选择、登录授权或重新对接,也不会新增 Agent MCP 配置。更新内容仅包括 Skills 和本地 CLI。原始业务操作会继续执行;只有该业务操作本身需要运行环境时,才按既有门禁检查当前连接。可用连接直接复用,401 只重新授权一次,403 立即停止,从未连接过运行环境时才进入环境选择。
|
|
229
229
|
|
package/SKILL.md
CHANGED
|
@@ -42,9 +42,9 @@ Rainskills 安装完成,下一条消息即可直接使用。
|
|
|
42
42
|
|
|
43
43
|
受限沙箱(包括 Codex)执行本地状态命令时,必须申请用户级受保护目录访问权限;在 Codex 中使用 `require_escalated`。不得修改 `~/.rainbond` 权限、复制受保护状态到工作区,或因沙箱权限错误建议重装。
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
`runtime connect` 的 Device Flow 不依赖 stdin TTY;Agent 必须执行固定 argv 并保持进程附着直到授权完成。能打开本机浏览器时由连接器自动跳转,SSH、容器等无浏览器场景原样展示授权地址并继续轮询。只有 Rainbond 不支持 Device Flow 且进入旧版 loopback 手动粘贴时才需要交互终端;不得要求用户在聊天中粘贴 JWT。
|
|
46
46
|
|
|
47
|
-
Rainskills 只保存一个全局运行环境,不维护环境列表、名称、默认值或环境 ID。使用固定 launcher `node <home>/.rainbond/lib/rainskills/bin/rainskills.js`(运行包版本 `rainskills@0.1.
|
|
47
|
+
Rainskills 只保存一个全局运行环境,不维护环境列表、名称、默认值或环境 ID。使用固定 launcher `node <home>/.rainbond/lib/rainskills/bin/rainskills.js`(运行包版本 `rainskills@0.1.23`):
|
|
48
48
|
|
|
49
49
|
- 状态:执行 `runtime status --json`。
|
|
50
50
|
- 首次连接:执行 `runtime connect <target> --saas` 或 `runtime connect <target> --rainbond-url <Console origin>`。
|
package/bin/rainskills.js
CHANGED
|
@@ -19,6 +19,9 @@ const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3
|
|
|
19
19
|
const RUNTIME_CHILD_ENVIRONMENT_KEYS = Object.freeze([
|
|
20
20
|
"HOME", "PATH", "SHELL", "TMPDIR", "TEMP", "TMP", "USER", "LOGNAME", "LANG", "LC_ALL",
|
|
21
21
|
"TERM", "COLORTERM", "XDG_CONFIG_HOME", "XDG_STATE_HOME", "XDG_CACHE_HOME",
|
|
22
|
+
"DISPLAY", "WAYLAND_DISPLAY", "XDG_RUNTIME_DIR", "DBUS_SESSION_BUS_ADDRESS",
|
|
23
|
+
"WSL_INTEROP", "WSL_DISTRO_NAME",
|
|
24
|
+
"SSH_CONNECTION", "SSH_CLIENT", "SSH_TTY", "container",
|
|
22
25
|
"HTTP_PROXY", "HTTPS_PROXY", "NO_PROXY", "http_proxy", "https_proxy", "no_proxy",
|
|
23
26
|
"SSL_CERT_FILE", "SSL_CERT_DIR", "CURL_CA_BUNDLE", "NODE_EXTRA_CA_CERTS",
|
|
24
27
|
"RAINBOND_LOGIN_TIMEOUT", "RAINSKILLS_NO_BROWSER",
|
|
@@ -454,6 +457,9 @@ async function runBuiltin(args, {
|
|
|
454
457
|
await manager.markConnected(connection);
|
|
455
458
|
}
|
|
456
459
|
} catch (error) {
|
|
460
|
+
if (typeof manager.abortConnecting === "function") {
|
|
461
|
+
manager.abortConnecting(connection);
|
|
462
|
+
}
|
|
457
463
|
write(`${JSON.stringify(runtimeConnectRetryAction(options, inspection.origin))}\n`);
|
|
458
464
|
throw error;
|
|
459
465
|
}
|
package/install.sh
CHANGED
|
@@ -2396,10 +2396,6 @@ obtain_rainbond_token() {
|
|
|
2396
2396
|
return 0
|
|
2397
2397
|
fi
|
|
2398
2398
|
|
|
2399
|
-
if [[ "$NON_INTERACTIVE" -eq 1 || ! -t 0 ]]; then
|
|
2400
|
-
die "非交互模式下浏览器登录不可用,请改用 --token <jwt> 或设置 RAINBOND_JWT。"
|
|
2401
|
-
fi
|
|
2402
|
-
|
|
2403
2399
|
local device_flow_status
|
|
2404
2400
|
if device_flow_login_to_rainbond "$base_url"; then
|
|
2405
2401
|
return 0
|
|
@@ -2408,6 +2404,9 @@ obtain_rainbond_token() {
|
|
|
2408
2404
|
fi
|
|
2409
2405
|
if [[ "$device_flow_status" -eq 2 ]]; then
|
|
2410
2406
|
printf '当前 Rainbond Console 暂不支持设备授权,改用兼容授权流程。\n' >&2
|
|
2407
|
+
if ! can_open_browser && [[ ! -t 0 ]]; then
|
|
2408
|
+
die "当前 Rainbond Console 仅支持旧版浏览器回调;此模式需要本机浏览器或交互终端。请升级 Rainbond Console 后重试。"
|
|
2409
|
+
fi
|
|
2411
2410
|
browser_login_to_rainbond "$base_url"
|
|
2412
2411
|
return 0
|
|
2413
2412
|
fi
|
|
@@ -14,7 +14,7 @@ This is the single marketplace entry for the complete Rainskills product. The in
|
|
|
14
14
|
3. Keep stdin, stdout, and stderr attached. When `RAINSKILLS_USER_INPUT_REQUIRED` appears, pause for that installer choice. If the installer emits `rainskills.next-action.v1`, execute only its fixed `argv` through the same launcher; never evaluate output as a shell command. If the adjacent `bin/rainskills.js` exists, use it for fixed next actions; otherwise use the same versioned npm package fallback described below.
|
|
15
15
|
4. Stay attached until every independent Skill is installed. Do not select, connect, or configure an application runtime during installation. In the user-facing response, output only the fixed completion message below.
|
|
16
16
|
|
|
17
|
-
If the adjacent installer is missing, check the local Node.js version before choosing the fallback. With `npx` and Node.js 18 or newer, use `npx --yes rainskills@0.1.
|
|
17
|
+
If the adjacent installer is missing, check the local Node.js version before choosing the fallback. With `npx` and Node.js 18 or newer, use `npx --yes rainskills@0.1.23 <target>`. With no Node.js or a version below 18, use `bash <(curl -fsSL https://get.rainbond.com/rainskills/install.sh) <target>` instead. Omit `<target>` only when the host cannot be determined reliably. Keep either command attached to the interactive terminal. For an update or repair, refresh this marketplace Skill first, then run the installer again; it compares and updates every independent internal Skill.
|
|
18
18
|
|
|
19
19
|
Skills-only 安装不需要 Node.js;CDN fallback 只负责安装 Skill 文件,不代表运行环境连接、应用部署或平台安装已经可执行。用户首次提出需要运行环境的动作时,对应业务 Skill 才检查 Node.js;固定 Rainskills launcher 需要 Node.js 18 或更高版本。缺失或版本过低时保留原始 intent 并停止,等待用户或 agent 明确同意安装或升级 Node.js,安装完成消息不得提前提示 Node.js。
|
|
20
20
|
|
|
@@ -42,9 +42,9 @@ Rainskills 安装完成,下一条消息即可直接使用。
|
|
|
42
42
|
|
|
43
43
|
受限沙箱(包括 Codex)执行本地状态命令时,必须申请用户级受保护目录访问权限;在 Codex 中使用 `require_escalated`。不得修改 `~/.rainbond` 权限、复制受保护状态到工作区,或因沙箱权限错误建议重装。
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
`runtime connect` 的 Device Flow 不依赖 stdin TTY;Agent 必须执行固定 argv 并保持进程附着直到授权完成。能打开本机浏览器时由连接器自动跳转,SSH、容器等无浏览器场景原样展示授权地址并继续轮询。只有 Rainbond 不支持 Device Flow 且进入旧版 loopback 手动粘贴时才需要交互终端;不得要求用户在聊天中粘贴 JWT。
|
|
46
46
|
|
|
47
|
-
Rainskills 只保存一个全局运行环境,不维护环境列表、名称、默认值或环境 ID。使用固定 launcher `node <home>/.rainbond/lib/rainskills/bin/rainskills.js`(运行包版本 `rainskills@0.1.
|
|
47
|
+
Rainskills 只保存一个全局运行环境,不维护环境列表、名称、默认值或环境 ID。使用固定 launcher `node <home>/.rainbond/lib/rainskills/bin/rainskills.js`(运行包版本 `rainskills@0.1.23`):
|
|
48
48
|
|
|
49
49
|
- 状态:执行 `runtime status --json`。
|
|
50
50
|
- 首次连接:执行 `runtime connect <target> --saas` 或 `runtime connect <target> --rainbond-url <Console origin>`。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rainskills",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Interactive Rainbond skill installer for Codex, Claude Code, and Pi Agent",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/goodrain/rainskills#readme",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"test:console-contract": "python3 tests/console_tool_contract_test.py",
|
|
70
70
|
"test:skill-profile": "node --test tests/skill-profile-builder.test.js tests/markdown-link-integrity.test.js",
|
|
71
71
|
"test:marketplace": "node --test tests/marketplace-entry.test.js",
|
|
72
|
-
"test:runtime-routing": "node --test tests/runtime-onboarding-routing.test.js && python3 tests/run_skill_routing_evals.py",
|
|
72
|
+
"test:runtime-routing": "node --test tests/runtime-onboarding-routing.test.js && python3 rainbond-app-assistant/scripts/validate_progressive_loading.py && python3 rainbond-app-assistant/scripts/validate_cross_skill_routing.py && python3 tests/progressive-loading-validators.test.py && python3 tests/run_skill_routing_evals.py",
|
|
73
73
|
"test:telemetry": "node --test tests/telemetry.test.js",
|
|
74
74
|
"test:platform": "node --test tests/platform-installer.test.js tests/host-cluster-installer.test.js tests/existing-kubernetes-installer.test.js tests/ssh-key-setup.test.js",
|
|
75
75
|
"test:windows": "node --test tests/windows-onboarding.test.js tests/windows-platform.test.js",
|