@promptframe/creation 0.3.14 → 0.3.15

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.
@@ -9,7 +9,7 @@
9
9
  "source": {
10
10
  "source": "npm",
11
11
  "package": "@promptframe/creation",
12
- "version": "0.3.14",
12
+ "version": "0.3.15",
13
13
  "registry": "https://registry.npmjs.org/"
14
14
  },
15
15
  "policy": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptframe-creation",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "description": "通过 PromptFrame 的共用工具、作品和任务创作视频。",
5
5
  "author": {
6
6
  "name": "PromptFrame"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptframe-creation",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "description": "使用自己的推理,通过 PromptFrame 的共用工具、作品和任务创作视频。",
5
5
  "author": {
6
6
  "name": "PromptFrame"
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  <!-- creation-install-command -->
10
10
  ```bash
11
- npx --yes @promptframe/creation@0.3.14 connect --endpoint <Studio提供的API地址>
11
+ npx --yes @promptframe/creation@0.3.15 connect --endpoint <Studio提供的API地址>
12
12
  ```
13
13
  <!-- /creation-install-command -->
14
14
 
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.14";
8432
+ var CLIENT_VERSION = "0.3.15";
8433
8433
  var CLIENT_PROTOCOL = "creation-client/v1";
8434
8434
 
8435
8435
  // lib/cli.mjs
@@ -21986,7 +21986,7 @@ var TICKET_TTL_MS = 12e4;
21986
21986
  var SESSION_TTL_MS = 24 * 60 * 60 * 1e3;
21987
21987
  var MAX_TICKETS = 256;
21988
21988
  var MAX_SESSIONS = 256;
21989
- var DEFAULT_SERVER = "promptframe-creation_promptframe-creation";
21989
+ var DEFAULT_SERVER = "promptframe_pf";
21990
21990
  var mcpToolName = /^[A-Za-z0-9_.:-]{1,200}$/;
21991
21991
  var error4 = (code) => new CreationClientError("creation." + code);
21992
21992
  var canonical3 = (value2) => {
@@ -27599,7 +27599,10 @@ var fail8 = (code, details) => {
27599
27599
  throw new AntigravityInstallationError(code, details);
27600
27600
  };
27601
27601
  var profileFormat = /^[a-z0-9][a-z0-9-]{0,39}$/;
27602
- var antigravityServerName = (profile) => "promptframe-creation" + (profile === "default" ? "" : "-" + profile);
27602
+ var ANTIGRAVITY_MCP_SERVER_KEY = "pf";
27603
+ var antigravityPluginName = (profile) => "promptframe" + (profile === "default" ? "" : "-" + profile);
27604
+ var legacyAntigravityPluginName = (profile) => "promptframe-creation" + (profile === "default" ? "" : "-" + profile);
27605
+ var antigravityServerName = (profile) => `${antigravityPluginName(profile)}_${ANTIGRAVITY_MCP_SERVER_KEY}`;
27603
27606
  var object3 = (value2) => value2 !== null && typeof value2 === "object" && !Array.isArray(value2);
27604
27607
  function usesCreationBridge(server, { profile, configFile: configFile2 }) {
27605
27608
  if (!object3(server) || typeof server.command !== "string" || !Array.isArray(server.args)) return false;
@@ -27641,8 +27644,10 @@ async function checkAntigravityMcpConflicts({ profile = "default", configFile: c
27641
27644
  await file.close();
27642
27645
  }
27643
27646
  if (!object3(config2) || config2.mcpServers !== void 0 && !object3(config2.mcpServers)) unreadable();
27647
+ const pluginName = antigravityPluginName(profile);
27648
+ const legacyPluginName = legacyAntigravityPluginName(profile);
27644
27649
  const serverName = antigravityServerName(profile);
27645
- const mcpServerNames = Object.entries(config2.mcpServers ?? {}).filter(([name, server]) => name === serverName || name === `${serverName}_${serverName}` || profile === "default" && name === "promptframe" || usesCreationBridge(server, { profile, configFile: configFile2 })).map(([name]) => name);
27650
+ const mcpServerNames = Object.entries(config2.mcpServers ?? {}).filter(([name, server]) => name === pluginName || name === serverName || name === legacyPluginName || name === `${legacyPluginName}_${legacyPluginName}` || usesCreationBridge(server, { profile, configFile: configFile2 })).map(([name]) => name);
27646
27651
  if (mcpServerNames.length) fail8("legacy_mcp_entry_requires_review", {
27647
27652
  mcpConfigFile,
27648
27653
  mcpServerNames,
@@ -27652,7 +27657,7 @@ async function checkAntigravityMcpConflicts({ profile = "default", configFile: c
27652
27657
  function shellQuote(value2) {
27653
27658
  return '"' + String(value2).replace(/(["\\$`])/g, "\\$1") + '"';
27654
27659
  }
27655
- function antigravityPluginManifest({ version: version3, name = "promptframe-creation", displayName = "PromptFrame Creation" }) {
27660
+ function antigravityPluginManifest({ version: version3, name = "promptframe", displayName = "PromptFrame Creation" }) {
27656
27661
  return {
27657
27662
  name,
27658
27663
  displayName,
@@ -27666,10 +27671,10 @@ function antigravityPluginManifest({ version: version3, name = "promptframe-crea
27666
27671
  ]
27667
27672
  };
27668
27673
  }
27669
- function antigravityMcpConfig({ serverName, nodeCommand, runtimeRoot, configFile: configFile2 }) {
27674
+ function antigravityMcpConfig({ serverKey = ANTIGRAVITY_MCP_SERVER_KEY, nodeCommand, runtimeRoot, configFile: configFile2 }) {
27670
27675
  return {
27671
27676
  mcpServers: {
27672
- [serverName]: {
27677
+ [serverKey]: {
27673
27678
  command: nodeCommand,
27674
27679
  args: [path21.join(runtimeRoot, "bin", "promptframe-creation.mjs"), "bridge", "--config", configFile2, "--host", "antigravity"]
27675
27680
  }
@@ -27685,7 +27690,7 @@ function antigravityHooksConfig({ nodeCommand, runtimeRoot, configFile: configFi
27685
27690
  "--config",
27686
27691
  shellQuote(configFile2),
27687
27692
  "--mcp-server",
27688
- shellQuote(`${serverName}_${serverName}`)
27693
+ shellQuote(serverName)
27689
27694
  ].join(" ");
27690
27695
  return {
27691
27696
  "promptframe-host-identity": {
@@ -27741,6 +27746,21 @@ async function copyPackagePayload(payload, destRoot) {
27741
27746
  throw e;
27742
27747
  }
27743
27748
  }
27749
+ async function cleanupLegacyPluginDirectory({ pluginsRoot, profile, configFile: configFile2 }) {
27750
+ const legacyDir = path21.join(pluginsRoot, legacyAntigravityPluginName(profile));
27751
+ let status;
27752
+ try {
27753
+ status = await lstat13(legacyDir);
27754
+ } catch (e) {
27755
+ if (e.code === "ENOENT") return false;
27756
+ throw e;
27757
+ }
27758
+ if (!status.isDirectory() || status.isSymbolicLink()) return false;
27759
+ const legacyMarker = await readJsonOrNull(path21.join(legacyDir, "promptframe-installation.json"));
27760
+ if (!legacyMarker || legacyMarker.host !== "antigravity" || legacyMarker.profile !== profile || legacyMarker.configFile !== configFile2) return false;
27761
+ await rm6(legacyDir, { recursive: true, force: true });
27762
+ return true;
27763
+ }
27744
27764
  async function installForAntigravityUser({
27745
27765
  sourceRoot,
27746
27766
  profile = "default",
@@ -27754,8 +27774,9 @@ async function installForAntigravityUser({
27754
27774
  signal?.throwIfAborted();
27755
27775
  await checkAntigravityMcpConflicts({ profile, configFile: configFile2, env });
27756
27776
  const payload = await inspectRuntimePackage(sourceRoot);
27777
+ const pluginDirName = antigravityPluginName(profile);
27778
+ const serverKey = ANTIGRAVITY_MCP_SERVER_KEY;
27757
27779
  const serverName = antigravityServerName(profile);
27758
- const pluginDirName = serverName;
27759
27780
  const dataRoot = path21.resolve(env.XDG_DATA_HOME ?? path21.join(homedir12(), ".local", "share"), "promptframe-creation", profile, "antigravity");
27760
27781
  const versionRoot = path21.join(dataRoot, "versions", payload.version);
27761
27782
  const pluginsRoot = path21.join(antigravityConfigRoot(env), "plugins");
@@ -27775,6 +27796,7 @@ async function installForAntigravityUser({
27775
27796
  if (existing.host !== "antigravity" || existing.profile !== profile || existing.configFile !== configFile2 || typeof existing.version !== "string" || !/^\d+\.\d+\.\d+$/.test(existing.version)) fail8("managed_installation_invalid");
27776
27797
  const cmp = compareBridgeVersions(existing.version, payload.version);
27777
27798
  if (cmp > 0) {
27799
+ await cleanupLegacyPluginDirectory({ pluginsRoot, profile, configFile: configFile2 });
27778
27800
  return {
27779
27801
  registered: true,
27780
27802
  pluginInstalled: true,
@@ -27793,7 +27815,8 @@ async function installForAntigravityUser({
27793
27815
  skills: [{ name: "creation-setup" }, { name: "video-creation" }]
27794
27816
  };
27795
27817
  }
27796
- if (cmp === 0 && existing.payloadDigest === payload.payloadDigest && existing.versionRoot === versionRoot) {
27818
+ if (cmp === 0 && existing.payloadDigest === payload.payloadDigest && existing.versionRoot === versionRoot && existing.serverName === serverName) {
27819
+ await cleanupLegacyPluginDirectory({ pluginsRoot, profile, configFile: configFile2 });
27797
27820
  return {
27798
27821
  registered: true,
27799
27822
  pluginInstalled: true,
@@ -27834,7 +27857,7 @@ async function installForAntigravityUser({
27834
27857
  name: pluginDirName,
27835
27858
  displayName: profile === "default" ? "PromptFrame Creation" : "PromptFrame Creation (" + profile + ")"
27836
27859
  }), null, 2) + "\n";
27837
- const mcpJson = JSON.stringify(antigravityMcpConfig({ serverName, nodeCommand, runtimeRoot: versionRoot, configFile: configFile2 }), null, 2) + "\n";
27860
+ const mcpJson = JSON.stringify(antigravityMcpConfig({ serverKey, nodeCommand, runtimeRoot: versionRoot, configFile: configFile2 }), null, 2) + "\n";
27838
27861
  const hooksJson = JSON.stringify(antigravityHooksConfig({ nodeCommand, runtimeRoot: versionRoot, configFile: configFile2, serverName }), null, 2) + "\n";
27839
27862
  await writeFileAtomic(path21.join(pluginDir, "plugin.json"), pluginJson, 420);
27840
27863
  await writeFileAtomic(path21.join(pluginDir, "mcp_config.json"), mcpJson, 384);
@@ -27850,6 +27873,7 @@ async function installForAntigravityUser({
27850
27873
  profile,
27851
27874
  configFile: configFile2,
27852
27875
  pluginDirName,
27876
+ serverKey,
27853
27877
  serverName,
27854
27878
  version: payload.version,
27855
27879
  versionRoot,
@@ -27860,6 +27884,7 @@ async function installForAntigravityUser({
27860
27884
  installedAt: (/* @__PURE__ */ new Date()).toISOString()
27861
27885
  };
27862
27886
  await writeFileAtomic(markerFile, JSON.stringify(record2, null, 2) + "\n", 384);
27887
+ await cleanupLegacyPluginDirectory({ pluginsRoot, profile, configFile: configFile2 });
27863
27888
  return {
27864
27889
  registered: true,
27865
27890
  pluginInstalled: true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "creation-install-guidance/v1",
3
3
  "package": "@promptframe/creation",
4
- "version": "0.3.14",
4
+ "version": "0.3.15",
5
5
  "hosts": [
6
6
  {
7
7
  "kind": "codex",
@@ -6,7 +6,7 @@
6
6
 
7
7
  <!-- creation-install-command -->
8
8
  ```bash
9
- npx --yes @promptframe/creation@0.3.14 connect --endpoint <Studio提供的API地址>
9
+ npx --yes @promptframe/creation@0.3.15 connect --endpoint <Studio提供的API地址>
10
10
  ```
11
11
  <!-- /creation-install-command -->
12
12
 
@@ -26,7 +26,7 @@ npx --yes @promptframe/creation@0.3.14 connect --endpoint <Studio提供的API地
26
26
 
27
27
  <!-- creation-install-command -->
28
28
  ```bash
29
- npx --yes @promptframe/creation@0.3.14 connect --host claude-code --endpoint <Studio提供的API地址>
29
+ npx --yes @promptframe/creation@0.3.15 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.14 connect --host antigravity --endpoint <Studio提供的API地址>
47
+ npx --yes @promptframe/creation@0.3.15 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.14 connect --host antigravity --endpoint <St
60
60
 
61
61
  <!-- creation-install-command -->
62
62
  ```bash
63
- npx --yes @promptframe/creation@0.3.14 connect --profile work-account --endpoint <另一环境API地址>
63
+ npx --yes @promptframe/creation@0.3.15 connect --profile work-account --endpoint <另一环境API地址>
64
64
  ```
65
65
  <!-- /creation-install-command -->
66
66
 
@@ -12,7 +12,7 @@ const TICKET_TTL_MS=120_000;
12
12
  const SESSION_TTL_MS=24*60*60*1000;
13
13
  const MAX_TICKETS=256;
14
14
  const MAX_SESSIONS=256;
15
- const DEFAULT_SERVER='promptframe-creation_promptframe-creation';
15
+ const DEFAULT_SERVER='promptframe_pf';
16
16
  const mcpToolName=/^[A-Za-z0-9_.:-]{1,200}$/;
17
17
  const error=code=>new CreationClientError('creation.'+code);
18
18
  const canonical=value=>{
@@ -15,7 +15,10 @@ class AntigravityInstallationError extends CreationClientError{
15
15
  export const antigravityInstallationDetails=error=>error instanceof AntigravityInstallationError?error.details:undefined;
16
16
  const fail=(code,details)=>{throw new AntigravityInstallationError(code,details);};
17
17
  const profileFormat=/^[a-z0-9][a-z0-9-]{0,39}$/;
18
- const antigravityServerName=profile=>'promptframe-creation'+(profile==='default'?'':'-'+profile);
18
+ const ANTIGRAVITY_MCP_SERVER_KEY='pf';
19
+ const antigravityPluginName=profile=>'promptframe'+(profile==='default'?'':'-'+profile);
20
+ const legacyAntigravityPluginName=profile=>'promptframe-creation'+(profile==='default'?'':'-'+profile);
21
+ const antigravityServerName=profile=>`${antigravityPluginName(profile)}_${ANTIGRAVITY_MCP_SERVER_KEY}`;
19
22
  const object=value=>value!==null&&typeof value==='object'&&!Array.isArray(value);
20
23
 
21
24
  function usesCreationBridge(server,{profile,configFile}){
@@ -53,10 +56,13 @@ export async function checkAntigravityMcpConflicts({profile='default',configFile
53
56
  config=JSON.parse(await file.readFile('utf8'));
54
57
  }catch{unreadable();}finally{await file.close();}
55
58
  if(!object(config)||config.mcpServers!==undefined&&!object(config.mcpServers))unreadable();
59
+ const pluginName=antigravityPluginName(profile);
60
+ const legacyPluginName=legacyAntigravityPluginName(profile);
56
61
  const serverName=antigravityServerName(profile);
57
62
  const mcpServerNames=Object.entries(config.mcpServers??{})
58
- .filter(([name,server])=>name===serverName||name===`${serverName}_${serverName}`
59
- ||profile==='default'&&name==='promptframe'||usesCreationBridge(server,{profile,configFile}))
63
+ .filter(([name,server])=>name===pluginName||name===serverName
64
+ ||name===legacyPluginName||name===`${legacyPluginName}_${legacyPluginName}`
65
+ ||usesCreationBridge(server,{profile,configFile}))
60
66
  .map(([name])=>name);
61
67
  if(mcpServerNames.length)fail('legacy_mcp_entry_requires_review',{mcpConfigFile,mcpServerNames,
62
68
  action:'In Antigravity MCP settings, review the listed entries and remove the conflicting manual PromptFrame entries, then rerun connect with the existing Token.'});
@@ -66,7 +72,7 @@ function shellQuote(value){
66
72
  return '"'+String(value).replace(/(["\\$`])/g,'\\$1')+'"';
67
73
  }
68
74
 
69
- export function antigravityPluginManifest({version,name='promptframe-creation',displayName='PromptFrame Creation'}){
75
+ export function antigravityPluginManifest({version,name='promptframe',displayName='PromptFrame Creation'}){
70
76
  return {
71
77
  name,
72
78
  displayName,
@@ -81,10 +87,10 @@ export function antigravityPluginManifest({version,name='promptframe-creation',d
81
87
  };
82
88
  }
83
89
 
84
- export function antigravityMcpConfig({serverName,nodeCommand,runtimeRoot,configFile}){
90
+ export function antigravityMcpConfig({serverKey=ANTIGRAVITY_MCP_SERVER_KEY,nodeCommand,runtimeRoot,configFile}){
85
91
  return {
86
92
  mcpServers:{
87
- [serverName]:{
93
+ [serverKey]:{
88
94
  command:nodeCommand,
89
95
  args:[path.join(runtimeRoot,'bin','promptframe-creation.mjs'),'bridge','--config',configFile,'--host','antigravity'],
90
96
  },
@@ -95,7 +101,7 @@ export function antigravityMcpConfig({serverName,nodeCommand,runtimeRoot,configF
95
101
  export function antigravityHooksConfig({nodeCommand,runtimeRoot,configFile,serverName}){
96
102
  const cliPath=path.join(runtimeRoot,'bin','promptframe-creation.mjs');
97
103
  const command=[shellQuote(nodeCommand),shellQuote(cliPath),'antigravity-host-hook','--config',shellQuote(configFile),
98
- '--mcp-server',shellQuote(`${serverName}_${serverName}`)].join(' ');
104
+ '--mcp-server',shellQuote(serverName)].join(' ');
99
105
  return {
100
106
  'promptframe-host-identity':{
101
107
  SessionStart:[{type:'command',command:command+' --hook-event SessionStart',timeout:5}],
@@ -136,6 +142,18 @@ async function copyPackagePayload(payload,destRoot){
136
142
  }
137
143
  }
138
144
 
145
+ async function cleanupLegacyPluginDirectory({pluginsRoot,profile,configFile}){
146
+ const legacyDir=path.join(pluginsRoot,legacyAntigravityPluginName(profile));
147
+ let status;
148
+ try{status=await lstat(legacyDir);}catch(e){if(e.code==='ENOENT')return false;throw e;}
149
+ if(!status.isDirectory()||status.isSymbolicLink())return false;
150
+ const legacyMarker=await readJsonOrNull(path.join(legacyDir,'promptframe-installation.json'));
151
+ if(!legacyMarker||legacyMarker.host!=='antigravity'||legacyMarker.profile!==profile
152
+ ||legacyMarker.configFile!==configFile)return false;
153
+ await rm(legacyDir,{recursive:true,force:true});
154
+ return true;
155
+ }
156
+
139
157
  /** Install PromptFrame Creation as a native Antigravity plugin once.
140
158
  * Subsequent bridge upgrades happen automatically on startup via
141
159
  * runtime-bootstrap.mjs without requiring plugin reinstallation. */
@@ -152,8 +170,9 @@ export async function installForAntigravityUser({
152
170
  signal?.throwIfAborted();
153
171
  await checkAntigravityMcpConflicts({profile,configFile,env});
154
172
  const payload=await inspectRuntimePackage(sourceRoot);
173
+ const pluginDirName=antigravityPluginName(profile);
174
+ const serverKey=ANTIGRAVITY_MCP_SERVER_KEY;
155
175
  const serverName=antigravityServerName(profile);
156
- const pluginDirName=serverName;
157
176
  const dataRoot=path.resolve(env.XDG_DATA_HOME??path.join(homedir(),'.local','share'),'promptframe-creation',profile,'antigravity');
158
177
  const versionRoot=path.join(dataRoot,'versions',payload.version);
159
178
  const pluginsRoot=path.join(antigravityConfigRoot(env),'plugins');
@@ -173,12 +192,15 @@ export async function installForAntigravityUser({
173
192
  ||typeof existing.version!=='string'||!/^\d+\.\d+\.\d+$/.test(existing.version))fail('managed_installation_invalid');
174
193
  const cmp=compareBridgeVersions(existing.version,payload.version);
175
194
  if(cmp>0){
195
+ await cleanupLegacyPluginDirectory({pluginsRoot,profile,configFile});
176
196
  return {registered:true,pluginInstalled:true,pluginEnabled:true,reused:true,host:'antigravity',
177
197
  installationMode:'antigravity-plugin',profile,version:existing.version,requestedVersion:payload.version,
178
198
  versionStatus:'newer_installed_kept',recordedRuntimeRetained:true,pluginDir,serverName,
179
199
  skillsInstalled:true,skills:[{name:'creation-setup'},{name:'video-creation'}]};
180
200
  }
181
- if(cmp===0&&existing.payloadDigest===payload.payloadDigest&&existing.versionRoot===versionRoot){
201
+ if(cmp===0&&existing.payloadDigest===payload.payloadDigest&&existing.versionRoot===versionRoot
202
+ &&existing.serverName===serverName){
203
+ await cleanupLegacyPluginDirectory({pluginsRoot,profile,configFile});
182
204
  return {registered:true,pluginInstalled:true,pluginEnabled:true,reused:true,host:'antigravity',
183
205
  installationMode:'antigravity-plugin',profile,version:payload.version,requestedVersion:payload.version,
184
206
  versionStatus:'already_current',recordedRuntimeRetained:false,pluginDir,serverName,
@@ -203,7 +225,7 @@ export async function installForAntigravityUser({
203
225
  name:pluginDirName,
204
226
  displayName:profile==='default'?'PromptFrame Creation':'PromptFrame Creation ('+profile+')',
205
227
  }),null,2)+'\n';
206
- const mcpJson=JSON.stringify(antigravityMcpConfig({serverName,nodeCommand,runtimeRoot:versionRoot,configFile}),null,2)+'\n';
228
+ const mcpJson=JSON.stringify(antigravityMcpConfig({serverKey,nodeCommand,runtimeRoot:versionRoot,configFile}),null,2)+'\n';
207
229
  const hooksJson=JSON.stringify(antigravityHooksConfig({nodeCommand,runtimeRoot:versionRoot,configFile,serverName}),null,2)+'\n';
208
230
 
209
231
  await writeFileAtomic(path.join(pluginDir,'plugin.json'),pluginJson,0o644);
@@ -222,6 +244,7 @@ export async function installForAntigravityUser({
222
244
  profile,
223
245
  configFile,
224
246
  pluginDirName,
247
+ serverKey,
225
248
  serverName,
226
249
  version:payload.version,
227
250
  versionRoot,
@@ -232,6 +255,7 @@ export async function installForAntigravityUser({
232
255
  installedAt:new Date().toISOString(),
233
256
  };
234
257
  await writeFileAtomic(markerFile,JSON.stringify(record,null,2)+'\n',0o600);
258
+ await cleanupLegacyPluginDirectory({pluginsRoot,profile,configFile});
235
259
 
236
260
  return {
237
261
  registered:true,
package/lib/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const CLIENT_VERSION = "0.3.14";
1
+ export const CLIENT_VERSION = "0.3.15";
2
2
  export const CLIENT_PROTOCOL = "creation-client/v1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptframe/creation",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "private": false,
5
5
  "description": "PromptFrame video creation Skill, Codex plugin and MCP client bridge.",
6
6
  "repository": {
@@ -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.14 connect --endpoint <Studio提供的API地址>`。需要隔离另一个环境或账号时显式加 `--profile <用户选择的名称>`;正在运行的桥不会切换。此命令管理用户级版本和 Codex 插件,不向当前项目安装依赖。优先使用 Studio 当前提供的固定推荐版本;每次重新进入此入口比较已安装版本,不后台追踪 latest,也不把旧聊天里的命令当最新版本。已安装更新版不默认降级。
13
+ 在用户本机终端运行 `npx --yes @promptframe/creation@0.3.15 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.14 connect --host claude-code --endpoint <Studio提供的API地址>`。桌面版远程连接 WSL 时,在该 WSL 执行;保留相同 profile 和有效凭据。
17
+ Claude Code 使用 `npx --yes @promptframe/creation@0.3.15 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.14 connect --host antigravity --endpoint <Studio提供的API地址>`。在同一主机核对插件已启用,再打开新对话。
21
+ Antigravity 使用 `npx --yes @promptframe/creation@0.3.15 connect --host antigravity --endpoint <Studio提供的API地址>`。在同一主机核对插件已启用,再打开新对话。
22
22
  <!-- /creation-install-command -->
23
23
 
24
24
  命令会复用并验证有效凭据。首次授权或明确更换已失效凭据时,由用户在 Studio 登录并在终端的不回显输入框提供 Token;不要要求用户把 Token 粘进聊天,也不要把它写进命令参数、URL或日志。网络失败不等于授权失效,不自动轮换或覆盖凭据。