@promptframe/creation 0.3.0 → 0.3.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/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +52 -2
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +3 -3
- package/dist/cli.mjs +1052 -644
- package/docs/development.md +6 -2
- package/docs/install-guidance.json +3 -3
- package/docs/installing.md +4 -4
- package/docs/releases/0.3.1.md +7 -0
- package/lib/claude-hook-definition.mjs +11 -0
- package/lib/claude-hook-registration.mjs +66 -0
- package/lib/claude-host-process.mjs +48 -0
- package/lib/claude-host-session.mjs +150 -0
- package/lib/claude-installation.mjs +5 -1
- package/lib/claude-mcp-installation.mjs +3 -0
- package/lib/cli.mjs +8 -3
- package/lib/host-context.mjs +43 -16
- package/lib/host-identity.mjs +5 -6
- package/lib/runtime-launch.mjs +1 -1
- package/lib/version.mjs +1 -1
- package/package.json +1 -1
- package/skills/creation-setup/SKILL.md +2 -2
|
@@ -1,10 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptframe-creation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "通过 PromptFrame 的共用工具、作品和任务创作视频。",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "PromptFrame"
|
|
7
7
|
},
|
|
8
8
|
"skills": "./skills/",
|
|
9
|
-
"mcpServers": "./.claude-mcp.json"
|
|
9
|
+
"mcpServers": "./.claude-mcp.json",
|
|
10
|
+
"hooks": {
|
|
11
|
+
"SessionStart": [
|
|
12
|
+
{
|
|
13
|
+
"matcher": "startup|resume|fork|clear|compact",
|
|
14
|
+
"hooks": [
|
|
15
|
+
{
|
|
16
|
+
"type": "command",
|
|
17
|
+
"command": "node",
|
|
18
|
+
"args": [
|
|
19
|
+
"${CLAUDE_PLUGIN_ROOT}/bin/promptframe-creation.mjs",
|
|
20
|
+
"claude-host-hook"
|
|
21
|
+
],
|
|
22
|
+
"timeout": 5
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"PreToolUse": [
|
|
28
|
+
{
|
|
29
|
+
"matcher": "^mcp__plugin_promptframe-creation_.*",
|
|
30
|
+
"hooks": [
|
|
31
|
+
{
|
|
32
|
+
"type": "command",
|
|
33
|
+
"command": "node",
|
|
34
|
+
"args": [
|
|
35
|
+
"${CLAUDE_PLUGIN_ROOT}/bin/promptframe-creation.mjs",
|
|
36
|
+
"claude-host-hook"
|
|
37
|
+
],
|
|
38
|
+
"timeout": 5,
|
|
39
|
+
"onFailure": "block"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"SessionEnd": [
|
|
45
|
+
{
|
|
46
|
+
"hooks": [
|
|
47
|
+
{
|
|
48
|
+
"type": "command",
|
|
49
|
+
"command": "node",
|
|
50
|
+
"args": [
|
|
51
|
+
"${CLAUDE_PLUGIN_ROOT}/bin/promptframe-creation.mjs",
|
|
52
|
+
"claude-host-hook"
|
|
53
|
+
],
|
|
54
|
+
"timeout": 5
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
10
60
|
}
|
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
## 安装和连接
|
|
6
6
|
|
|
7
|
-
需要 Node.js 20+,以及支持插件的 Codex(最低0.160.0)或 Claude Code(最低2.
|
|
7
|
+
需要 Node.js 20+,以及支持插件的 Codex(最低0.160.0)或 Claude Code(最低2.1.295,提供结构化插件命令)。在 Studio 的“连接与授权”复制当前环境 API 地址,然后在本机终端执行:
|
|
8
8
|
|
|
9
9
|
<!-- creation-install-command -->
|
|
10
10
|
```bash
|
|
11
|
-
npx --yes @promptframe/creation@0.3.
|
|
11
|
+
npx --yes @promptframe/creation@0.3.1 connect --endpoint <Studio提供的API地址>
|
|
12
12
|
```
|
|
13
13
|
<!-- /creation-install-command -->
|
|
14
14
|
|
|
@@ -20,7 +20,7 @@ API 使用 Studio 实际可达 origin 和 `/api` 或 `/api/mcp`,没有内置
|
|
|
20
20
|
|
|
21
21
|
## 源码、包和宿主范围
|
|
22
22
|
|
|
23
|
-
[0.3.0](docs/releases/0.3.0.md)增加 Claude Code 接入、平台动态工具发现、标准内容与版本化指引,以及新会话的兼容版本选择。已有0.2.x插件保持其安装来源;升级和新会话加载见[安装说明](docs/installing.md#claude-code接入)。
|
|
23
|
+
[0.3.1](docs/releases/0.3.1.md)修复 Claude 会话身份更新;[0.3.0](docs/releases/0.3.0.md)增加 Claude Code 接入、平台动态工具发现、标准内容与版本化指引,以及新会话的兼容版本选择。已有0.2.x插件保持其安装来源;升级和新会话加载见[安装说明](docs/installing.md#claude-code接入)。
|
|
24
24
|
|
|
25
25
|
| 版本或层次 | 适用范围 |
|
|
26
26
|
| --- | --- |
|