@promptframe/creation 0.3.15 → 0.3.16
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/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +1 -1
- package/dist/cli.mjs +5 -2
- package/docs/development.md +1 -1
- package/docs/install-guidance.json +1 -1
- package/docs/installing.md +4 -4
- package/lib/host-context.mjs +5 -1
- package/lib/version.mjs +1 -1
- package/package.json +1 -1
- package/skills/creation-setup/SKILL.md +3 -3
package/README.md
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -8429,7 +8429,7 @@ function createLocalUploadManager({ stateRoot, fetch: fetch2 = globalThis.fetch,
|
|
|
8429
8429
|
}
|
|
8430
8430
|
|
|
8431
8431
|
// lib/version.mjs
|
|
8432
|
-
var CLIENT_VERSION = "0.3.
|
|
8432
|
+
var CLIENT_VERSION = "0.3.16";
|
|
8433
8433
|
var CLIENT_PROTOCOL = "creation-client/v1";
|
|
8434
8434
|
|
|
8435
8435
|
// lib/cli.mjs
|
|
@@ -21729,6 +21729,7 @@ function createHostCallBridge(client, { credentials, host = resolveHostIdentity(
|
|
|
21729
21729
|
const access2 = definition._meta["promptframe.access"], managed = Object.hasOwn(definition.inputSchema.properties ?? {}, "controlVersion");
|
|
21730
21730
|
let params = hostParameters(raw, binding.host, "independent-read");
|
|
21731
21731
|
let effectiveAccess = access2, resolvedControl;
|
|
21732
|
+
let editorIndependentAssetWrite = false;
|
|
21732
21733
|
if (definition._meta["promptframe.resolveAccess"] === "target") {
|
|
21733
21734
|
const { projectId, sessionId: sessionId2, tool, arguments: input } = params.arguments ?? {};
|
|
21734
21735
|
if (typeof tool !== "string" || !input || typeof input !== "object" || Array.isArray(input)) throw new CreationClientError("creation.request_invalid");
|
|
@@ -21743,6 +21744,7 @@ function createHostCallBridge(client, { credentials, host = resolveHostIdentity(
|
|
|
21743
21744
|
params = { ...params, arguments: { ...params.arguments, arguments: normalized } };
|
|
21744
21745
|
effectiveAccess = resolved.access;
|
|
21745
21746
|
resolvedControl = observed.trusted?.control;
|
|
21747
|
+
editorIndependentAssetWrite = resolved.editorIndependentAssetWrite === true && effectiveAccess === "controlled" && tool === "adopt_external_media" && (normalized.action === "adopt" || normalized.action === void 0);
|
|
21746
21748
|
}
|
|
21747
21749
|
hostParameters(raw, binding.host, effectiveAccess);
|
|
21748
21750
|
const local = definition._meta["promptframe.localFileUpload"];
|
|
@@ -21784,7 +21786,8 @@ function createHostCallBridge(client, { credentials, host = resolveHostIdentity(
|
|
|
21784
21786
|
if (denied) return denied;
|
|
21785
21787
|
entry = versions.get(key);
|
|
21786
21788
|
}
|
|
21787
|
-
if (effectiveAccess !== "independent-read" && !entry.owned)
|
|
21789
|
+
if (effectiveAccess !== "independent-read" && !editorIndependentAssetWrite && !entry.owned)
|
|
21790
|
+
throw new CreationClientError("creation.editor_not_current");
|
|
21788
21791
|
outgoing = { ...params, arguments: { ...params.arguments, controlVersion: entry.version } };
|
|
21789
21792
|
}
|
|
21790
21793
|
}
|
package/docs/development.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
## 安装与运行路径
|
|
35
35
|
|
|
36
|
-
当前源码的薄桥从平台目录读取工具分类和协议角色,按固定响应元数据管理作品控制版本。Web
|
|
36
|
+
当前源码的薄桥从平台目录读取工具分类和协议角色,按固定响应元数据管理作品控制版本。Web 或另一聊天编辑时,独立读取仍受项目和素材权限约束;修改作品需要当前聊天编辑权。外部素材入库按已认证平台对准确参数返回的独立素材写入标记执行,仍校验宿主身份、项目及素材写入权限。工具名称、正文中的同名字段和模型传入的分类都不会授予权限。目录版本变化在后续正常交互中发送标准工具目录变更通知,不额外轮询平台或替换活动进程。
|
|
37
37
|
|
|
38
38
|
当前源码按平台握手结果提供标准 resources/prompts 读取。项目公开指引复用平台已验证的创作基线;资源 URI 由平台解析,每次读取重新检查账号和项目权限。带版本的引用遇到正文版本变化会提示重新列取,不静默替换内容。桥保留标准正文和元数据,按序列化 UTF-8 计算单块400000字节、整次2000000字节上限;超限不会重执行业务。后续正常读取观察到版本变化时发送对应目录通知,不启动后台轮询。未声明这些能力的平台仍可通过原工具入口读取入门说明。源码能力、公开包和宿主实际支持分别核实。
|
|
39
39
|
|
package/docs/installing.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<!-- creation-install-command -->
|
|
8
8
|
```bash
|
|
9
|
-
npx --yes @promptframe/creation@0.3.
|
|
9
|
+
npx --yes @promptframe/creation@0.3.16 connect --endpoint <Studio提供的API地址>
|
|
10
10
|
```
|
|
11
11
|
<!-- /creation-install-command -->
|
|
12
12
|
|
|
@@ -26,7 +26,7 @@ npx --yes @promptframe/creation@0.3.15 connect --endpoint <Studio提供的API地
|
|
|
26
26
|
|
|
27
27
|
<!-- creation-install-command -->
|
|
28
28
|
```bash
|
|
29
|
-
npx --yes @promptframe/creation@0.3.
|
|
29
|
+
npx --yes @promptframe/creation@0.3.16 connect --host claude-code --endpoint <Studio提供的API地址>
|
|
30
30
|
```
|
|
31
31
|
<!-- /creation-install-command -->
|
|
32
32
|
|
|
@@ -44,7 +44,7 @@ CLI 优先使用 PATH 中的 Claude;桌面版远程连接 WSL 时,也识别
|
|
|
44
44
|
|
|
45
45
|
<!-- creation-install-command -->
|
|
46
46
|
```bash
|
|
47
|
-
npx --yes @promptframe/creation@0.3.
|
|
47
|
+
npx --yes @promptframe/creation@0.3.16 connect --host antigravity --endpoint <Studio提供的API地址>
|
|
48
48
|
```
|
|
49
49
|
<!-- /creation-install-command -->
|
|
50
50
|
|
|
@@ -60,7 +60,7 @@ npx --yes @promptframe/creation@0.3.15 connect --host antigravity --endpoint <St
|
|
|
60
60
|
|
|
61
61
|
<!-- creation-install-command -->
|
|
62
62
|
```bash
|
|
63
|
-
npx --yes @promptframe/creation@0.3.
|
|
63
|
+
npx --yes @promptframe/creation@0.3.16 connect --profile work-account --endpoint <另一环境API地址>
|
|
64
64
|
```
|
|
65
65
|
<!-- /creation-install-command -->
|
|
66
66
|
|
package/lib/host-context.mjs
CHANGED
|
@@ -164,6 +164,7 @@ export function createHostCallBridge(client,{credentials,host=resolveHostIdentit
|
|
|
164
164
|
// Resolve parameter-dependent access before requiring a controller. A
|
|
165
165
|
// missing host UUID must not block an independently authorized read.
|
|
166
166
|
let params=hostParameters(raw,binding.host,'independent-read');let effectiveAccess=access,resolvedControl;
|
|
167
|
+
let editorIndependentAssetWrite=false;
|
|
167
168
|
if(definition._meta['promptframe.resolveAccess']==='target'){
|
|
168
169
|
const {projectId,sessionId,tool,arguments:input}=params.arguments??{};
|
|
169
170
|
if(typeof tool!=='string'||!input||typeof input!=='object'||Array.isArray(input))throw new CreationClientError('creation.request_invalid');
|
|
@@ -179,6 +180,8 @@ export function createHostCallBridge(client,{credentials,host=resolveHostIdentit
|
|
|
179
180
|
params={...params,arguments:{...params.arguments,arguments:normalized}};
|
|
180
181
|
effectiveAccess=resolved.access;
|
|
181
182
|
resolvedControl=observed.trusted?.control;
|
|
183
|
+
editorIndependentAssetWrite=resolved.editorIndependentAssetWrite===true&&effectiveAccess==='controlled'
|
|
184
|
+
&&tool==='adopt_external_media'&&(normalized.action==='adopt'||normalized.action===undefined);
|
|
182
185
|
}
|
|
183
186
|
hostParameters(raw,binding.host,effectiveAccess);
|
|
184
187
|
const local=definition._meta['promptframe.localFileUpload'];
|
|
@@ -205,7 +208,8 @@ export function createHostCallBridge(client,{credentials,host=resolveHostIdentit
|
|
|
205
208
|
outgoing={...params,arguments:{...params.arguments,controlVersion:resolvedControl.controlVersion}};
|
|
206
209
|
}else{let entry=versions.get(key);
|
|
207
210
|
if(!entry||entry.needsRead){const denied=await controlRead(params,key,binding);if(denied)return denied;entry=versions.get(key);}
|
|
208
|
-
if(effectiveAccess!=='independent-read'&&!entry.owned)
|
|
211
|
+
if(effectiveAccess!=='independent-read'&&!editorIndependentAssetWrite&&!entry.owned)
|
|
212
|
+
throw new CreationClientError('creation.editor_not_current');
|
|
209
213
|
outgoing={...params,arguments:{...params.arguments,controlVersion:entry.version}};
|
|
210
214
|
}
|
|
211
215
|
}
|
package/lib/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const CLIENT_VERSION = "0.3.
|
|
1
|
+
export const CLIENT_VERSION = "0.3.16";
|
|
2
2
|
export const CLIENT_PROTOCOL = "creation-client/v1";
|
package/package.json
CHANGED
|
@@ -10,15 +10,15 @@ description: 安装、连接或升级 PromptFrame Creation,复用平台创作
|
|
|
10
10
|
先确认使用 Codex、Claude Code 或 Antigravity。各宿主可共用同一 profile 凭据,插件登记分别核实。使用 Studio 对当前环境提供的固定版本。Claude 桌面版远程连接 WSL 时,在同一 WSL 安装;没有终端命令时可通过 `--claude-bin <实际可执行文件>` 指定桌面版提供的入口。
|
|
11
11
|
|
|
12
12
|
<!-- creation-install-command -->
|
|
13
|
-
在用户本机终端运行 `npx --yes @promptframe/creation@0.3.
|
|
13
|
+
在用户本机终端运行 `npx --yes @promptframe/creation@0.3.16 connect --endpoint <Studio提供的API地址>`。需要隔离另一个环境或账号时显式加 `--profile <用户选择的名称>`;正在运行的桥不会切换。此命令管理用户级版本和 Codex 插件,不向当前项目安装依赖。优先使用 Studio 当前提供的固定推荐版本;每次重新进入此入口比较已安装版本,不后台追踪 latest,也不把旧聊天里的命令当最新版本。已安装更新版不默认降级。
|
|
14
14
|
<!-- /creation-install-command -->
|
|
15
15
|
|
|
16
16
|
<!-- creation-install-command -->
|
|
17
|
-
Claude Code 使用 `npx --yes @promptframe/creation@0.3.
|
|
17
|
+
Claude Code 使用 `npx --yes @promptframe/creation@0.3.16 connect --host claude-code --endpoint <Studio提供的API地址>`。桌面版远程连接 WSL 时,在该 WSL 执行;保留相同 profile 和有效凭据。
|
|
18
18
|
<!-- /creation-install-command -->
|
|
19
19
|
|
|
20
20
|
<!-- creation-install-command -->
|
|
21
|
-
Antigravity 使用 `npx --yes @promptframe/creation@0.3.
|
|
21
|
+
Antigravity 使用 `npx --yes @promptframe/creation@0.3.16 connect --host antigravity --endpoint <Studio提供的API地址>`。在同一主机核对插件已启用,再打开新对话。
|
|
22
22
|
<!-- /creation-install-command -->
|
|
23
23
|
|
|
24
24
|
命令会复用并验证有效凭据。首次授权或明确更换已失效凭据时,由用户在 Studio 登录并在终端的不回显输入框提供 Token;不要要求用户把 Token 粘进聊天,也不要把它写进命令参数、URL或日志。网络失败不等于授权失效,不自动轮换或覆盖凭据。
|