@promptframe/creation 0.1.0 → 0.2.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 +10 -3
- package/.codex-plugin/plugin.json +10 -3
- package/README.md +27 -58
- package/bin/promptframe-creation.mjs +5 -226
- package/dist/THIRD_PARTY_NOTICES.txt +276 -0
- package/dist/cli.mjs +20324 -0
- package/dist/cli.mjs.LEGAL.txt +8 -0
- package/docs/development.md +46 -0
- package/docs/installing.md +43 -0
- package/docs/releases/0.1.0.md +1 -1
- package/docs/releases/0.1.1.md +12 -0
- package/docs/releases/0.2.1.md +7 -0
- package/docs/releasing.md +11 -3
- package/lib/cli.mjs +258 -0
- package/lib/connection.mjs +5 -1
- package/lib/host-context.mjs +125 -0
- package/lib/user-installation.mjs +174 -0
- package/lib/version.mjs +2 -0
- package/package.json +7 -4
- package/skills/creation-setup/SKILL.md +20 -0
- package/skills/video-creation/SKILL.md +1 -1
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "promptframe-creation
|
|
3
|
-
"interface": {
|
|
2
|
+
"name": "promptframe-creation",
|
|
3
|
+
"interface": {
|
|
4
|
+
"displayName": "PromptFrame Creation"
|
|
5
|
+
},
|
|
4
6
|
"plugins": [
|
|
5
7
|
{
|
|
6
8
|
"name": "promptframe-creation",
|
|
7
|
-
"source": {
|
|
9
|
+
"source": {
|
|
10
|
+
"source": "npm",
|
|
11
|
+
"package": "@promptframe/creation",
|
|
12
|
+
"version": "0.2.1",
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
8
15
|
"policy": {
|
|
9
16
|
"installation": "AVAILABLE",
|
|
10
17
|
"authentication": "ON_USE"
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptframe-creation",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "使用自己的推理,通过 PromptFrame 的共用工具、作品和任务创作视频。",
|
|
5
|
-
"author": {
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "PromptFrame"
|
|
7
|
+
},
|
|
6
8
|
"skills": "./skills/",
|
|
7
9
|
"mcpServers": "./.mcp.json",
|
|
8
|
-
"requires_local_executor": true
|
|
10
|
+
"requires_local_executor": true,
|
|
11
|
+
"extensions": {
|
|
12
|
+
"com.openai": {
|
|
13
|
+
"onboardingSkill": "./skills/creation-setup/SKILL.md"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
9
16
|
}
|
package/README.md
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
# PromptFrame Creation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
通过自己的 Codex 推理,使用 PromptFrame 共用视频工具、作品、素材和持久任务,并与 Studio 接续同一作品。本仓是公开插件与薄桥;业务、权限、预算和账务由平台管理。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## 安装和连接
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
`@promptframe/creation@0.1.0` 提供 `setup`、`status`、`bridge` 及包内的 `video-creation` Skill。首次发行状态以官方 npm registry 为准。可使用以下命令配置并连接 MCP:
|
|
7
|
+
需要 Node.js 20+ 及支持插件的 Codex(最低0.160.0)。在 Studio 的“连接与授权”复制当前环境 API 地址,然后在本机终端执行:
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
|
-
npx --yes @promptframe/creation@0.1
|
|
13
|
-
codex mcp add promptframe -- npx --yes @promptframe/creation@0.1.0 bridge
|
|
10
|
+
npx --yes @promptframe/creation@0.2.1 connect --endpoint <Studio提供的API地址>
|
|
14
11
|
```
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
入口检查环境、准备用户级版本、注册并核回 Codex 插件,复用有效凭据;首次 Token 在终端隐藏输入,不粘进聊天。完成后按提示正常重载插件或开新聊天,确认 `creation-setup`、`video-creation` 与 MCP 工具一起加载。安装本身不接管作品、不启动付费制作。`npx` 单独运行或目录连通不等于当前聊天已加载插件。
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
git clone https://github.com/ty-teams/promptframe-creation.git
|
|
20
|
-
cd promptframe-creation
|
|
21
|
-
npm ci --ignore-scripts
|
|
22
|
-
node bin/promptframe-creation.mjs setup --endpoint <platform-api-base>
|
|
23
|
-
```
|
|
15
|
+
API 使用 Studio 实际可达 origin 和 `/api` 或 `/api/mcp`,没有内置生产/私有地址。远程客户端不要改成自己的 localhost。另一个环境或账号显式使用 `--profile <名称>`;新旧桥各固定凭据路径,不热切环境。有效 Token 不因升级、新作品或接管轮换。详细安装、升级保旧、卸载和排障见[安装说明](docs/installing.md)。Linux、WSL、macOS 使用0700目录/0600凭据;原生Windows ACL尚未验证。
|
|
24
16
|
|
|
25
|
-
|
|
17
|
+
## 源码、包和宿主范围
|
|
26
18
|
|
|
27
|
-
|
|
19
|
+
| 版本或层次 | 适用范围 |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| 历史 npm0.1.1 / creation-v0.1.1 | 固定3da232e267117794fcbcbb1920cbdf9f3f294c14的基础setup/status/bridge;不是此版的聊天身份和插件安装功能 |
|
|
22
|
+
| 0.2.1源码与包合同 | 宿主thread隔离、桥管理控制版本、自包含运行依赖、用户级安装/两类Skill/独立profile;是否已发行以registry和固定tag为准 |
|
|
23
|
+
| 实际用户宿主 | 核已安装版本、Skill加载与MCP连接;源码提交或npm发行不代替宿主及完整创作验收 |
|
|
28
24
|
|
|
29
|
-
|
|
25
|
+
公开目录 `.agents/plugins/marketplace.json` 固定 npm 包版本。用户级 connect 从当前完整包注册受管本地副本;两条路径都携带运行依赖,不要求在业务仓安装SDK。不要同时启用旧的手工MCP入口和新插件;旧入口识别与安全迁移见安装说明。
|
|
30
26
|
|
|
31
|
-
##
|
|
27
|
+
## 维护入口
|
|
32
28
|
|
|
33
|
-
|
|
29
|
+
维护源码先读 AGENTS 和[开发说明](docs/development.md)。在本仓开发:
|
|
34
30
|
|
|
35
|
-
|
|
31
|
+
```bash
|
|
32
|
+
npm ci --ignore-scripts
|
|
33
|
+
npm run build
|
|
34
|
+
node bin/promptframe-creation.mjs connect --endpoint <Studio提供的API地址>
|
|
35
|
+
npm test
|
|
36
|
+
```
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
开发构建显式产生自包含运行文件。`npm pack --ignore-scripts` 的发行准备由[发布脚本](docs/releasing.md)显式执行构建,不依赖宿主执行安装脚本。不要把源码仓或其node_modules复制给最终用户。
|
|
38
39
|
|
|
39
40
|
## 用组件丰富视频内容
|
|
40
41
|
|
|
@@ -53,44 +54,12 @@ API 地址由你的 Studio 提供,例如占位格式 `https://your-platform.ex
|
|
|
53
54
|
|
|
54
55
|
组件 CLI 的端点由该部署提供,按 CLI 的登录与项目说明单独配置;不要将创作 MCP 地址直接当作 CLI 地址。组件上传授权与本仓创作 Token 用途不同。可复用组件遵循 `marketplace_authoring`,仅供当前项目的组件遵循 `project_private_generation`,并以平台实际授权为准;本地写代码或上传组件不会代替平台的制作确认。
|
|
55
56
|
|
|
56
|
-
##
|
|
57
|
-
|
|
58
|
-
完成上面的 `npm ci --ignore-scripts` 和 setup 后,选择以下一种接法。同一客户端不要同时启用两份桥,以免显示重复工具。
|
|
59
|
-
|
|
60
|
-
Codex CLI 可显式添加 stdio 桥(把 `<checkout>` 换成此仓的绝对路径):
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
codex mcp add promptframe -- node <checkout>/bin/promptframe-creation.mjs bridge
|
|
64
|
-
codex mcp get promptframe
|
|
65
|
-
node bin/promptframe-creation.mjs status
|
|
66
|
-
```
|
|
57
|
+
## 创作与宿主身份
|
|
67
58
|
|
|
68
|
-
|
|
59
|
+
video-creation Skill 先动态发现平台目录/schema,选择用户有权的作品和能力;已有作品需正常申请编辑权并由本人在 Studio 确认。新建空作品沿明确用户意图,不覆盖第一作品。已接受异步任务持久存在,客户端停止等待不取消订单;结果未知先观察原 task,不重派生成或补造回执。
|
|
69
60
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
codex plugin marketplace add <checkout>
|
|
74
|
-
codex plugin add promptframe-creation@promptframe-creation-local
|
|
75
|
-
codex plugin list
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
支持本地插件的 ChatGPT 桌面端可按 [OpenAI 的本地目录安装说明](https://developers.openai.com/plugins/build/plugins#install-a-local-plugin-manually),选择 `PromptFrame Creation (local)` 后安装插件。目录入口是本仓 `.agents/plugins/marketplace.json`,相对路径从 checkout 根解析;插件由 `.codex-plugin/plugin.json` 声明。不同客户端版本的安装入口可能不同,以该版本的命令帮助和官方说明为准。
|
|
79
|
-
|
|
80
|
-
先安装依赖,再安装插件:本地目录会复制插件到客户端缓存,桥需要一起带入 `npm ci` 生成的 `node_modules`。只复制 manifest 或尚未安装依赖的源码目录,会缺少运行依赖。更新 checkout 后再次运行 `npm ci --ignore-scripts`,按客户端的卸载、重装流程刷新缓存,并重启客户端;仅修改源码不代表缓存已更新。
|
|
81
|
-
|
|
82
|
-
桥使用 `cwd: "."` 从已安装的插件根目录启动,脚本参数是相对路径;该路径解析由 [Codex 的插件配置实现](https://github.com/openai/codex/blob/rust-v0.160.0/codex-rs/codex-mcp/src/plugin_config.rs)提供。凭据继续从用户安全配置目录读取,既不打进插件,也不写入 Codex 配置。插件会转发 `PROMPTFRAME_CREATION_CONFIG` 和 `XDG_CONFIG_HOME` 两个路径变量,需让启动 Codex 的进程继承 setup 时的值。安装后确认桥已连接、能读取平台工具,再使用 `video-creation`;插件安装成功本身不代表平台授权或创作成功。这里不代表已发布到公共插件目录或 npm。
|
|
83
|
-
|
|
84
|
-
卸载插件可用该客户端的卸载入口,支持时也可运行 `codex plugin remove promptframe-creation@promptframe-creation-local`;显式添加的桥则使用 `codex mcp remove promptframe`。这只移除客户端接线,不撤销平台 Token 或取消已接受任务。需要撤销创作授权时,仍由本人在 Studio 处理。
|
|
85
|
-
|
|
86
|
-
开始前读取平台当前项目、作品、编辑权及业务工具 schema。已有作品需本人在 Studio 确认接管;首次制作也由平台本人确认。已接受的异步工具返回持久 task,客户端停止等待不取消订单。网络结果未知时查原 task 或用相同幂等键重试。本人可随时接回网页,原费用与期限保持。
|
|
87
|
-
|
|
88
|
-
外部未上报的聊天、思考和本地文件不在平台历史里。Skill 引导先复用、再用自己的能力制作并上传 ready 素材;外部自费推理与素材不冒作平台使用费。
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
npm test
|
|
92
|
-
```
|
|
61
|
+
受支持 Codex 在 MCP 元数据中自动提供 threadId。桥与平台结合环境、账号、安装和该thread区分编辑者;缺失身份拒绝新建/接管/新写,不退回共享编辑身份。原已接受任务的只读观察仍保留。桥管理本线程已批准的controlVersion,作品expectedRevision仍按原并发合同,不替模型追最新内容版本。四个内置只读候选使用真实同scope版本,服务仍以当前registry及白名单双核;不借读权缓存成编辑权。
|
|
93
62
|
|
|
94
|
-
|
|
63
|
+
Token是独立创作授权,不是codex mcp login。已有有效文件会复用;网络失败不自动替换。外部未上报的聊天、本地文件和推理不在平台历史里,也不冒作平台使用费。其它宿主、原生Windows权限和官方插件市场上架各自按实际证据报告。
|
|
95
64
|
|
|
96
|
-
GitHub Actions
|
|
65
|
+
GitHub Actions沿独立版本和既有OIDC流程发行;普通main只跑CI。包/lock/plugin版本一致,正式新版本用新的creation-v标签,不覆盖或重发0.1.1。详见[发布手册](docs/releasing.md)。
|
|
@@ -1,229 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
|
-
import {
|
|
7
|
-
CallToolRequestSchema,
|
|
8
|
-
ListToolsRequestSchema,
|
|
9
|
-
} from "@modelcontextprotocol/sdk/types.js";
|
|
10
|
-
import {
|
|
11
|
-
CreationClientError,
|
|
12
|
-
credentialsPath,
|
|
13
|
-
normalizeEndpoint,
|
|
14
|
-
readCredentials,
|
|
15
|
-
writeCredentials,
|
|
16
|
-
} from "../lib/credentials.mjs";
|
|
17
|
-
import { connectPlatform } from "../lib/connection.mjs";
|
|
18
|
-
|
|
19
|
-
const args = process.argv.slice(2),
|
|
20
|
-
command = args.shift(),
|
|
21
|
-
value = (key) => {
|
|
22
|
-
const i = args.indexOf(key);
|
|
23
|
-
return i < 0 ? undefined : args[i + 1];
|
|
24
|
-
};
|
|
25
|
-
const log = (value) => process.stdout.write(JSON.stringify(value) + "\n");
|
|
26
|
-
async function probe(credentials) {
|
|
27
|
-
const client = await connectPlatform(credentials);
|
|
28
|
-
try {
|
|
29
|
-
return (await client.listTools()).tools.length;
|
|
30
|
-
} finally {
|
|
31
|
-
await client.close();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
async function tokenInput() {
|
|
35
|
-
if (args.includes("--token-stdin")) {
|
|
36
|
-
let text = "";
|
|
37
|
-
for await (const chunk of process.stdin) {
|
|
38
|
-
text += chunk;
|
|
39
|
-
if (text.length > 4096) throw new CreationClientError("token.too_long");
|
|
40
|
-
}
|
|
41
|
-
return text.trim();
|
|
42
|
-
}
|
|
43
|
-
if (!process.stdin.isTTY || typeof process.stdin.setRawMode !== "function")
|
|
44
|
-
throw new CreationClientError(
|
|
45
|
-
"setup.interactive_tty_or_token_stdin_required",
|
|
46
|
-
);
|
|
47
|
-
process.stderr.write("创作 Token(不回显):");
|
|
48
|
-
const input = process.stdin,
|
|
49
|
-
wasRaw = input.isRaw;
|
|
50
|
-
input.setRawMode(true);
|
|
51
|
-
input.resume();
|
|
52
|
-
try {
|
|
53
|
-
return await new Promise((resolve, reject) => {
|
|
54
|
-
let text = "";
|
|
55
|
-
const read = (chunk) => {
|
|
56
|
-
for (const byte of chunk) {
|
|
57
|
-
if (byte === 3) {
|
|
58
|
-
finish();
|
|
59
|
-
reject(new CreationClientError("setup.cancelled"));
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (byte === 10 || byte === 13) {
|
|
63
|
-
finish();
|
|
64
|
-
resolve(text);
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (byte === 8 || byte === 127) text = text.slice(0, -1);
|
|
68
|
-
else if (byte >= 32 && byte <= 126) text += String.fromCharCode(byte);
|
|
69
|
-
if (text.length > 4096) {
|
|
70
|
-
finish();
|
|
71
|
-
reject(new CreationClientError("token.too_long"));
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
const finish = () => {
|
|
77
|
-
input.removeListener("data", read);
|
|
78
|
-
input.pause();
|
|
79
|
-
};
|
|
80
|
-
input.on("data", read);
|
|
81
|
-
});
|
|
82
|
-
} finally {
|
|
83
|
-
input.setRawMode(Boolean(wasRaw));
|
|
84
|
-
process.stderr.write("\n");
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
async function setup() {
|
|
88
|
-
const file = credentialsPath(),
|
|
89
|
-
existing = await readCredentials(file),
|
|
90
|
-
requested = value("--endpoint");
|
|
91
|
-
const endpoint = normalizeEndpoint(requested ?? existing?.endpoint ?? "");
|
|
92
|
-
if (existing && existing.endpoint !== endpoint)
|
|
93
|
-
throw new CreationClientError(
|
|
94
|
-
"setup.different_endpoint_requires_separate_config",
|
|
95
|
-
);
|
|
96
|
-
if (existing && !args.includes("--replace")) {
|
|
97
|
-
try {
|
|
98
|
-
const tools = await probe(existing);
|
|
99
|
-
log({ connected: true, reused: true, endpoint, tools });
|
|
100
|
-
return;
|
|
101
|
-
} catch {
|
|
102
|
-
throw new CreationClientError(
|
|
103
|
-
"setup.saved_credential_unverified_retry_or_explicit_replace",
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
const studio = new URL(endpoint);
|
|
108
|
-
studio.pathname = studio.pathname.replace(/\/api\/mcp$/, "/studio");
|
|
109
|
-
studio.search = "?connectExternal=1";
|
|
110
|
-
process.stderr.write(
|
|
111
|
-
"在 Studio 登录,在“连接外部 Agent”生成或复制创作 Token。重复 setup 不会自动轮换。\n" +
|
|
112
|
-
studio.href +
|
|
113
|
-
"\n",
|
|
114
|
-
);
|
|
115
|
-
if (!args.includes("--no-open")) {
|
|
116
|
-
const executable =
|
|
117
|
-
process.platform === "darwin"
|
|
118
|
-
? "open"
|
|
119
|
-
: process.platform === "linux"
|
|
120
|
-
? "xdg-open"
|
|
121
|
-
: null;
|
|
122
|
-
if (executable) {
|
|
123
|
-
const child = spawn(executable, [studio.href], {
|
|
124
|
-
stdio: "ignore",
|
|
125
|
-
detached: true,
|
|
126
|
-
});
|
|
127
|
-
child.on("error", () => {});
|
|
128
|
-
child.unref();
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
const token = await tokenInput();
|
|
132
|
-
if (!/^pf_create_[A-Za-z0-9_-]{43}$/.test(token))
|
|
133
|
-
throw new CreationClientError("token.invalid");
|
|
134
|
-
const credentials = {
|
|
135
|
-
version: 1,
|
|
136
|
-
endpoint,
|
|
137
|
-
token,
|
|
138
|
-
clientId: existing?.clientId ?? randomBytes(24).toString("base64url"),
|
|
139
|
-
clientName: value("--name") ?? existing?.clientName ?? "Codex PromptFrame",
|
|
140
|
-
createdAt: existing?.createdAt ?? new Date().toISOString(),
|
|
141
|
-
};
|
|
142
|
-
// Verify before replacing the secure local file. This never calls a token
|
|
143
|
-
// rotate API, starts a model, creates work or approves production.
|
|
144
|
-
const tools = await probe(credentials);
|
|
145
|
-
await writeCredentials(credentials, file);
|
|
146
|
-
log({ connected: true, reused: false, endpoint, tools });
|
|
147
|
-
}
|
|
148
|
-
async function bridge() {
|
|
149
|
-
const credentials = await readCredentials();
|
|
150
|
-
if (!credentials) throw new CreationClientError("setup.required");
|
|
151
|
-
const client = await connectPlatform(credentials),
|
|
152
|
-
server = new Server(
|
|
153
|
-
{ name: "promptframe-creation", version: "0.1.0" },
|
|
154
|
-
{ capabilities: { tools: {} } },
|
|
155
|
-
);
|
|
156
|
-
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
157
|
-
try {
|
|
158
|
-
return await client.listTools();
|
|
159
|
-
} catch {
|
|
160
|
-
throw new Error("creation.connection_unresolved");
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
164
|
-
try {
|
|
165
|
-
return await client.callTool(request.params, undefined, {
|
|
166
|
-
timeout: 60_000,
|
|
167
|
-
});
|
|
168
|
-
} catch {
|
|
169
|
-
return {
|
|
170
|
-
isError: true,
|
|
171
|
-
content: [
|
|
172
|
-
{
|
|
173
|
-
type: "text",
|
|
174
|
-
text: JSON.stringify({
|
|
175
|
-
success: false,
|
|
176
|
-
errorCode: "creation.connection_unresolved",
|
|
177
|
-
action: "read_original_task_or_retry_same_idempotency_key",
|
|
178
|
-
}),
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
let closing = false;
|
|
185
|
-
const close = async () => {
|
|
186
|
-
if (closing) return;
|
|
187
|
-
closing = true;
|
|
188
|
-
await server.close().catch(() => {});
|
|
189
|
-
await client.close().catch(() => {});
|
|
190
|
-
};
|
|
191
|
-
server.onclose = () => {
|
|
192
|
-
void close();
|
|
193
|
-
};
|
|
194
|
-
process.once("SIGINT", () => {
|
|
195
|
-
void close();
|
|
196
|
-
});
|
|
197
|
-
process.once("SIGTERM", () => {
|
|
198
|
-
void close();
|
|
199
|
-
});
|
|
200
|
-
await server.connect(new StdioServerTransport());
|
|
201
|
-
}
|
|
202
|
-
try {
|
|
203
|
-
if (command === "setup") await setup();
|
|
204
|
-
else if (command === "bridge") await bridge();
|
|
205
|
-
else if (command === "status") {
|
|
206
|
-
const saved = await readCredentials();
|
|
207
|
-
if (!saved) throw new CreationClientError("setup.required");
|
|
208
|
-
log({
|
|
209
|
-
connected: true,
|
|
210
|
-
endpoint: saved.endpoint,
|
|
211
|
-
tools: await probe(saved),
|
|
212
|
-
});
|
|
213
|
-
} else if (command === "help" || command === "--help" || !command) {
|
|
214
|
-
process.stdout.write(
|
|
215
|
-
"promptframe-creation setup --endpoint <platform-api-base> [--no-open] [--replace] [--name <client-name>]\npromptframe-creation status\npromptframe-creation bridge\n",
|
|
216
|
-
);
|
|
217
|
-
} else throw new CreationClientError("command.unknown");
|
|
218
|
-
} catch (error) {
|
|
219
|
-
// Never print raw SDK/fetch errors, response bodies or credentials.
|
|
220
|
-
process.stderr.write(
|
|
221
|
-
JSON.stringify({
|
|
222
|
-
error:
|
|
223
|
-
error instanceof CreationClientError
|
|
224
|
-
? error.message
|
|
225
|
-
: "creation.connection_failed",
|
|
226
|
-
}) + "\n",
|
|
227
|
-
);
|
|
2
|
+
if (Number(process.versions.node.split('.')[0]) < 20) {
|
|
3
|
+
process.stderr.write('{"error":"creation.node_20_required","action":"Install Node.js 20 or newer, then repeat the same command."}\n');
|
|
228
4
|
process.exitCode = 1;
|
|
5
|
+
} else {
|
|
6
|
+
try { await import('../dist/cli.mjs'); }
|
|
7
|
+
catch { process.stderr.write('{"error":"creation.runtime_bundle_unavailable","action":"Reinstall this complete package version; keep existing credentials."}\n'); process.exitCode = 1; }
|
|
229
8
|
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
@modelcontextprotocol/sdk@1.32.1 (MIT)
|
|
2
|
+
MIT License
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2024 Anthropic, PBC
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
ajv@8.20.0 (MIT)
|
|
27
|
+
The MIT License (MIT)
|
|
28
|
+
|
|
29
|
+
Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
30
|
+
|
|
31
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
32
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
33
|
+
in the Software without restriction, including without limitation the rights
|
|
34
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
35
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
36
|
+
furnished to do so, subject to the following conditions:
|
|
37
|
+
|
|
38
|
+
The above copyright notice and this permission notice shall be included in all
|
|
39
|
+
copies or substantial portions of the Software.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
42
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
43
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
44
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
45
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
46
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
47
|
+
SOFTWARE.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
ajv-formats@3.0.1 (MIT)
|
|
52
|
+
MIT License
|
|
53
|
+
|
|
54
|
+
Copyright (c) 2020 Evgeny Poberezkin
|
|
55
|
+
|
|
56
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
57
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
58
|
+
in the Software without restriction, including without limitation the rights
|
|
59
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
60
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
61
|
+
furnished to do so, subject to the following conditions:
|
|
62
|
+
|
|
63
|
+
The above copyright notice and this permission notice shall be included in all
|
|
64
|
+
copies or substantial portions of the Software.
|
|
65
|
+
|
|
66
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
67
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
68
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
69
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
70
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
71
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
72
|
+
SOFTWARE.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
content-type@1.0.5 (MIT)
|
|
77
|
+
(The MIT License)
|
|
78
|
+
|
|
79
|
+
Copyright (c) 2015 Douglas Christopher Wilson
|
|
80
|
+
|
|
81
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
82
|
+
a copy of this software and associated documentation files (the
|
|
83
|
+
'Software'), to deal in the Software without restriction, including
|
|
84
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
85
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
86
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
87
|
+
the following conditions:
|
|
88
|
+
|
|
89
|
+
The above copyright notice and this permission notice shall be
|
|
90
|
+
included in all copies or substantial portions of the Software.
|
|
91
|
+
|
|
92
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
93
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
94
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
95
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
96
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
97
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
98
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
eventsource-parser@3.1.1 (MIT)
|
|
103
|
+
MIT License
|
|
104
|
+
|
|
105
|
+
Copyright (c) 2026 Espen Hovlandsdal <espen@hovlandsdal.com>
|
|
106
|
+
|
|
107
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
108
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
109
|
+
in the Software without restriction, including without limitation the rights
|
|
110
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
111
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
112
|
+
furnished to do so, subject to the following conditions:
|
|
113
|
+
|
|
114
|
+
The above copyright notice and this permission notice shall be included in all
|
|
115
|
+
copies or substantial portions of the Software.
|
|
116
|
+
|
|
117
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
118
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
119
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
120
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
121
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
122
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
123
|
+
SOFTWARE.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
fast-deep-equal@3.1.3 (MIT)
|
|
128
|
+
MIT License
|
|
129
|
+
|
|
130
|
+
Copyright (c) 2017 Evgeny Poberezkin
|
|
131
|
+
|
|
132
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
133
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
134
|
+
in the Software without restriction, including without limitation the rights
|
|
135
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
136
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
137
|
+
furnished to do so, subject to the following conditions:
|
|
138
|
+
|
|
139
|
+
The above copyright notice and this permission notice shall be included in all
|
|
140
|
+
copies or substantial portions of the Software.
|
|
141
|
+
|
|
142
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
143
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
144
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
145
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
146
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
147
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
148
|
+
SOFTWARE.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
fast-uri@3.1.8 (BSD-3-Clause)
|
|
153
|
+
Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
|
|
154
|
+
Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
|
|
155
|
+
All rights reserved.
|
|
156
|
+
|
|
157
|
+
Redistribution and use in source and binary forms, with or without
|
|
158
|
+
modification, are permitted provided that the following conditions are met:
|
|
159
|
+
* Redistributions of source code must retain the above copyright
|
|
160
|
+
notice, this list of conditions and the following disclaimer.
|
|
161
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
162
|
+
notice, this list of conditions and the following disclaimer in the
|
|
163
|
+
documentation and/or other materials provided with the distribution.
|
|
164
|
+
* The names of any contributors may not be used to endorse or promote
|
|
165
|
+
products derived from this software without specific prior written
|
|
166
|
+
permission.
|
|
167
|
+
|
|
168
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
169
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
170
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
171
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
|
|
172
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
173
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
174
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
175
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
176
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
177
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
178
|
+
|
|
179
|
+
* * *
|
|
180
|
+
|
|
181
|
+
The complete list of contributors can be found at:
|
|
182
|
+
- https://github.com/garycourt/uri-js/graphs/contributors
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
json-schema-traverse@1.0.0 (MIT)
|
|
187
|
+
MIT License
|
|
188
|
+
|
|
189
|
+
Copyright (c) 2017 Evgeny Poberezkin
|
|
190
|
+
|
|
191
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
192
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
193
|
+
in the Software without restriction, including without limitation the rights
|
|
194
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
195
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
196
|
+
furnished to do so, subject to the following conditions:
|
|
197
|
+
|
|
198
|
+
The above copyright notice and this permission notice shall be included in all
|
|
199
|
+
copies or substantial portions of the Software.
|
|
200
|
+
|
|
201
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
202
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
203
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
204
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
205
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
206
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
207
|
+
SOFTWARE.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
pkce-challenge@5.0.1 (MIT)
|
|
212
|
+
MIT License
|
|
213
|
+
|
|
214
|
+
Copyright (c) 2019
|
|
215
|
+
|
|
216
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
217
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
218
|
+
in the Software without restriction, including without limitation the rights
|
|
219
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
220
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
221
|
+
furnished to do so, subject to the following conditions:
|
|
222
|
+
|
|
223
|
+
The above copyright notice and this permission notice shall be included in all
|
|
224
|
+
copies or substantial portions of the Software.
|
|
225
|
+
|
|
226
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
227
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
228
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
229
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
230
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
231
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
232
|
+
SOFTWARE.
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
zod@4.6.7 (MIT)
|
|
237
|
+
MIT License
|
|
238
|
+
|
|
239
|
+
Copyright (c) 2025 Colin McDonnell
|
|
240
|
+
|
|
241
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
242
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
243
|
+
in the Software without restriction, including without limitation the rights
|
|
244
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
245
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
246
|
+
furnished to do so, subject to the following conditions:
|
|
247
|
+
|
|
248
|
+
The above copyright notice and this permission notice shall be included in all
|
|
249
|
+
copies or substantial portions of the Software.
|
|
250
|
+
|
|
251
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
252
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
253
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
254
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
255
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
256
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
257
|
+
SOFTWARE.
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
zod-to-json-schema@3.25.2 (ISC)
|
|
262
|
+
ISC License
|
|
263
|
+
|
|
264
|
+
Copyright (c) 2020, Stefan Terdell
|
|
265
|
+
|
|
266
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
267
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
268
|
+
copyright notice and this permission notice appear in all copies.
|
|
269
|
+
|
|
270
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
271
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
272
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
273
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
274
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
275
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
276
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|