@petercjl/cloud-hug-style-transfer 0.4.0 → 0.5.1
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/INSTALL.md +16 -0
- package/README.md +14 -18
- package/UPDATE.md +29 -0
- package/capabilities.json +428 -72
- package/lifecycle/engine.mjs +428 -0
- package/lifecycle/notice.mjs +1 -0
- package/lifecycle/validate-release.mjs +18 -0
- package/lifecycle/version.mjs +19 -0
- package/npm/arguments.mjs +3 -2
- package/npm/automatic-update.mjs +1 -0
- package/npm/business.mjs +33 -0
- package/npm/cli.mjs +41 -35
- package/npm/integrity.json +9 -7
- package/npm/skills.mjs +8 -101
- package/npm/update.mjs +6 -99
- package/package.json +22 -6
- package/release-integrity.json +100 -0
- package/skills/cloud-hug-style-transfer/SKILL.md +15 -1
- package/skills/cloud-hug-style-transfer/adapters/codex.json +2 -1
- package/skills/cloud-hug-style-transfer/adapters/generic.json +74 -0
- package/skills/cloud-hug-style-transfer/adapters/sealseek.json +2 -1
- package/skills/cloud-hug-style-transfer/adapters/workbuddy.json +2 -1
- package/skills/cloud-hug-style-transfer/capabilities.json +583 -4
- package/skills/cloud-hug-style-transfer/references/maintenance.md +1 -1
- package/skills/cloud-hug-style-transfer/scripts/run.mjs +10 -0
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
4. 检查回执 `verified`、`packageChanged`、各 `skills` 的 `current/version/target` 和备份。完全当前即 verified no-op。未知参数报错后读取该命令的 `--help --json`;避免猜其他工具的选项。
|
|
7
7
|
5. 本地编辑或非受管目录保留原文件并报告。失败时保留回执中的 backup;先检查包版本与受管状态,再按错误恢复,避免重复升级。元数据只迁移已知不受支持的字段值,自定义展示字段保留。
|
|
8
8
|
|
|
9
|
-
`doctor --json` 同时报告安装完整性与生图依赖;媒体依赖缺失不阻止独立的 `skill` 或 `update`
|
|
9
|
+
`doctor --json` 同时报告安装完整性与生图依赖;媒体依赖缺失不阻止独立的 `skill` 或 `update` 维护操作。业务入口 `doctor` 默认每24小时自动检测稳定 latest,2秒联网超时;默认模式 notify 返回更新提示。`update policy --mode auto --yes` 保存本安装的持续自动更新授权;off 关闭检测,`CLOUD_HUG_AUTO_UPDATE=0` 可临时关闭。auto 限兼容稳定版本(0.x 同 minor,1.x+ 同 major),复用备份、保护、受管 Skill 同步和恢复;离线退避5分钟,安全冲突延期,恢复状态不确定时停止。`update auto --force --json` 可立即按策略预检。策略和缓存放在包外;源码及上层工具管理的安装由拥有者维护。更新改变 Skill 后重新解析来源并加载当前说明。
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import {fileURLToPath} from 'node:url';
|
|
4
|
+
import {spawnSync} from 'node:child_process';
|
|
5
|
+
const here=path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
const own=path.resolve(here,'../.runtime');const candidates=fs.existsSync(path.resolve(here,'../.agent-package.json'))?[own]:[own,path.resolve(here,'../../..')];
|
|
7
|
+
let local;
|
|
8
|
+
for(const root of candidates){try{const p=JSON.parse(fs.readFileSync(path.join(root,'package.json'),'utf8'));if(p.name==="@petercjl/cloud-hug-style-transfer"&&fs.existsSync(path.join(root,p.skillLifecycle.entry))){local=path.join(root,p.skillLifecycle.entry);break;}}catch{}}
|
|
9
|
+
if(!local){console.error(JSON.stringify({ok:false,code:'ISOLATED_RUNTIME_MISSING',message:'Complete the package-managed Skill installation.'}));process.exit(1);}
|
|
10
|
+
const r=spawnSync(process.execPath,[local,...process.argv.slice(2)],{stdio:'inherit',windowsHide:true});process.exit(r.status??1);
|