@promptframe/creation 0.3.12 → 0.3.14

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/lib/cli.mjs CHANGED
@@ -25,13 +25,15 @@ import {
25
25
  import { connectPlatform, connectionAccountIdentity } from "./connection.mjs";
26
26
  import { recordLocalAuthorization, listLocalAccounts, localAccountKey, localAgentDigest } from './local-accounts.mjs';
27
27
  import { createAccountAwareBridge } from './account-bridge.mjs';
28
- import { resolveHostIdentity } from "./host-identity.mjs";
28
+ import { hostClientName, resolveHostIdentity } from "./host-identity.mjs";
29
29
  import {createClaudeHostSession,runClaudeHostHook} from './claude-host-session.mjs';
30
+ import {createAntigravityHostSession,runAntigravityHostHook} from './antigravity-host-session.mjs';
30
31
  import {declaredHostContentCapabilities,readPlatformBridgePolicy,bridgeErrorDetails} from './bridge-negotiation.mjs';
31
32
  import {selectBridgeRuntime,runtimeErrorDetails} from './runtime-bootstrap.mjs';
32
33
  import {launchSelectedBridge} from './runtime-launch.mjs';
33
34
  import {installForUser,profileCredentialsPath,installationErrorDetails} from './user-installation.mjs';
34
35
  import {installForClaudeUser,claudeInstallationDetails} from './claude-installation.mjs';
36
+ import {antigravityInstallationDetails,checkAntigravityMcpConflicts,installForAntigravityUser} from './antigravity-installation.mjs';
35
37
  import {claudeErrorDetails} from './claude-command.mjs';
36
38
  import {fallbackErrorDetails} from './claude-mcp-installation.mjs';
37
39
  import {fileURLToPath} from 'node:url';
@@ -173,7 +175,7 @@ async function setup({silent=false}={}) {
173
175
  endpoint,
174
176
  token,
175
177
  clientId: existing?.clientId ?? randomBytes(24).toString("base64url"),
176
- clientName: value("--name") ?? existing?.clientName ?? (resolveHostIdentity({host:value('--host')}).kind==='claude-code'?'Claude Code PromptFrame':'Codex PromptFrame'),
178
+ clientName: value("--name") ?? existing?.clientName ?? hostClientName('Codex PromptFrame', resolveHostIdentity({host:value('--host')})),
177
179
  createdAt: existing?.createdAt ?? new Date().toISOString(),
178
180
  };
179
181
  // Verify before replacing the secure local file. This never calls a token
@@ -208,7 +210,11 @@ async function bridge() {
208
210
  process.exitCode=result.code;return;
209
211
  }
210
212
  await rememberAuthorization(credentials,configFile(),connectionAccountIdentity(client));
211
- const hostSession=identity.kind==='claude-code'?await createClaudeHostSession({configFile:configFile()}):undefined;
213
+ const hostSession=identity.kind==='claude-code'
214
+ ?await createClaudeHostSession({configFile:configFile()})
215
+ :identity.kind==='antigravity'
216
+ ?await createAntigravityHostSession({configFile:configFile()})
217
+ :undefined;
212
218
  const server = new Server(
213
219
  { name: "promptframe-creation", version: CLIENT_VERSION },
214
220
  { capabilities: { tools: {listChanged:true},...(upstream.resources?{resources:{listChanged:true}}:{}),
@@ -304,28 +310,39 @@ async function bridge() {
304
310
  try {
305
311
  if (command === "setup") await setup();
306
312
  else if(command==='connect'||command==='install'){
313
+ const host=resolveHostIdentity({host:value('--host')});
314
+ const profile=value('--profile')??'default';
315
+ if(host.kind==='antigravity')await checkAntigravityMcpConflicts({profile,configFile:configFile()});
307
316
  const connection=await setup({silent:true});
308
317
  const signal=new AbortController();
309
318
  const abort=()=>signal.abort();process.once('SIGINT',abort);process.once('SIGTERM',abort);
310
319
  try{
311
- const host=resolveHostIdentity({host:value('--host')}),installer=host.kind==='claude-code'?installForClaudeUser:installForUser;
320
+ const installer=host.kind==='claude-code'?installForClaudeUser:host.kind==='antigravity'?installForAntigravityUser:installForUser;
312
321
  const installed=await installer({sourceRoot:fileURLToPath(new URL('..',import.meta.url)),
313
- executable:value('--claude-bin'),profile:value('--profile')??'default',configFile:configFile(),signal:signal.signal});
322
+ executable:value('--claude-bin'),profile,configFile:configFile(),signal:signal.signal});
314
323
  const skillNames=installed.skills?.map(skill=>skill.name)??['creation-setup','video-creation'];
324
+ const nextStep=host.kind==='claude-code'
325
+ ?'On this host, start a new Claude Code session.'
326
+ :host.kind==='antigravity'
327
+ ?'On this host, start a new Antigravity conversation (or check promptframe-creation in Customizations).'
328
+ :'On this host, open a new Local chat (CLI: start a new session).';
315
329
  log({...connection,pluginRegistered:(installed.pluginInstalled??true)&&installed.registered,
316
330
  mcpRegistered:installed.registered,version:installed.version,
317
331
  host:host.kind,pluginInstalled:installed.pluginInstalled??true,pluginEnabled:installed.pluginEnabled??true,
318
332
  ...(installed.installationMode?{installationMode:installed.installationMode,skillsInstalled:installed.skillsInstalled,skills:skillNames}:{}),
333
+ ...(installed.pluginDir?{pluginDir:installed.pluginDir}:{}),
319
334
  hostMcpConnected:'not_verified',sessionLoaded:'not_verified',
320
335
  installationReused:installed.reused,profile:installed.profile,
321
336
  requestedVersion:installed.requestedVersion,versionStatus:installed.versionStatus,
322
337
  recordedRuntimeRetained:installed.recordedRuntimeRetained??false,
323
- next:(host.kind==='claude-code'?'On this host, start a new Claude Code session.':'On this host, open a new Local chat (CLI: start a new session).')+' Check '+skillNames.join(', ')+' and the PromptFrame MCP tools together. Keep the existing Token; no reinstall or product repository is needed.'+(installed.recordedRuntimeRetained?' Keep this version\'s recorded Node path available.':''),
338
+ next:nextStep+' Check '+skillNames.join(', ')+' and the PromptFrame MCP tools together. Keep the existing Token; no reinstall or product repository is needed.'+(installed.recordedRuntimeRetained?' Keep this version\'s recorded Node path available.':''),
324
339
  hostThreadIdentity:'verified_by_the_platform_on_actual_host_tool_calls'});
325
340
  }finally{process.removeListener('SIGINT',abort);process.removeListener('SIGTERM',abort);}
326
341
  }
327
342
  else if (command === "bridge") await bridge();
328
343
  else if(command==='claude-host-hook')await runClaudeHostHook({configFile:configFile()});
344
+ else if(command==='antigravity-host-hook')await runAntigravityHostHook({configFile:configFile(),
345
+ serverName:value('--mcp-server'),event:value('--hook-event')});
329
346
  else if(command==='--version')process.stdout.write(CLIENT_VERSION+'\n');
330
347
  else if(command==='accounts'){
331
348
  if(args[0]==='refresh'){
@@ -350,7 +367,7 @@ try {
350
367
  });
351
368
  } else if (command === "help" || command === "--help" || !command) {
352
369
  process.stdout.write(
353
- "promptframe-creation connect --endpoint <platform-api-base> [--host codex|claude-code] [--profile <environment-account>] [--claude-bin <absolute-file>] [--no-open]\npromptframe-creation setup --endpoint <platform-api-base> [--host codex|claude-code] [--no-open] [--replace] [--name <client-name>]\npromptframe-creation status [--profile <environment-account>] [--host codex|claude-code]\npromptframe-creation accounts list\npromptframe-creation accounts refresh [--profile <environment-account>] [--host codex|claude-code]\npromptframe-creation bridge [--config <private-file>] [--host codex|claude-code] [--bridge-version <X.Y.Z>]\npromptframe-creation --version\nNode.js >=20 is required. Plugin installation supports Codex >=0.160.0 or Claude Code >=2.1.295 with its structured plugin commands. Token input is masked in a terminal or accepted through --token-stdin; never use a Token command argument.\nBridge startup checks the platform minimum/recommended version. --bridge-version locks one exact compatible version for this new session; active bridges are not replaced.\n",
370
+ "promptframe-creation connect --endpoint <platform-api-base> [--host codex|claude-code|antigravity] [--profile <environment-account>] [--claude-bin <absolute-file>] [--no-open]\npromptframe-creation setup --endpoint <platform-api-base> [--host codex|claude-code|antigravity] [--no-open] [--replace] [--name <client-name>]\npromptframe-creation status [--profile <environment-account>] [--host codex|claude-code|antigravity]\npromptframe-creation accounts list\npromptframe-creation accounts refresh [--profile <environment-account>] [--host codex|claude-code|antigravity]\npromptframe-creation bridge [--config <private-file>] [--host codex|claude-code|antigravity] [--bridge-version <X.Y.Z>]\npromptframe-creation --version\nNode.js >=20 is required. Plugin installation supports Codex >=0.160.0, Claude Code >=2.1.295 or Google Antigravity. Token input is masked in a terminal or accepted through --token-stdin; never use a Token command argument.\nBridge startup checks the platform minimum/recommended version. --bridge-version locks one exact compatible version for this new session; active bridges are not replaced.\n",
354
371
  );
355
372
  } else throw new CreationClientError("command.unknown");
356
373
  } catch (error) {
@@ -358,6 +375,7 @@ try {
358
375
  process.stderr.write(
359
376
  JSON.stringify({
360
377
  ...installationErrorDetails(error),
378
+ ...antigravityInstallationDetails(error),
361
379
  ...claudeInstallationDetails(error),
362
380
  ...claudeErrorDetails(error),
363
381
  ...fallbackErrorDetails(error),
@@ -64,7 +64,7 @@ export async function connectPlatform(credentials,{host=resolveHostIdentity(),co
64
64
  const systemFamily=process.platform==='win32'?'Windows':process.platform==='darwin'?'macOS':
65
65
  process.platform==='linux'?(process.env.WSL_INTEROP||process.env.WSL_DISTRO_NAME?'WSL':'Linux'):'unknown';
66
66
  observation={contractVersion:'promptframe-client-observation/v1',instanceId,systemFamily,
67
- application:host.kind==='claude-code'?'Claude Code':host.kind==='codex'?'Codex':'Creation',applicationVersion:CLIENT_VERSION};
67
+ application:host.kind==='claude-code'?'Claude Code':host.kind==='antigravity'?'Antigravity':host.kind==='codex'?'Codex':'Creation',applicationVersion:CLIENT_VERSION};
68
68
  }catch{/* Missing private display metadata must not alter a valid grant. */}
69
69
  if(enforceMinimum)assertBridgeCompatible(client.getServerCapabilities(),CLIENT_VERSION);
70
70
  else readPlatformBridgePolicy(client.getServerCapabilities());
@@ -1,7 +1,7 @@
1
1
  import {LOCAL_UPLOAD_PROTOCOL} from './local-upload.mjs';
2
2
  import {createHash} from 'node:crypto';
3
3
  import {CreationClientError} from './credentials.mjs';
4
- import {hostParameters,resolveHostIdentity} from './host-identity.mjs';
4
+ import {hostParameters,isHookProofHost,resolveHostIdentity} from './host-identity.mjs';
5
5
  import {assertMcpResponseBudget} from './content-budget.mjs';
6
6
  import {CLAUDE_HOST_PROOF} from './claude-host-session.mjs';
7
7
  import {readDevelopmentPairingFile} from './development-pairing.mjs';
@@ -25,10 +25,10 @@ const boundedSet=(map,key,value)=>{if(!map.has(key)&&map.size>=1024)map.delete(m
25
25
  export async function resolveHostCallBinding(raw,{host=resolveHostIdentity(),hostSession}={}){
26
26
  for(const field of ['threadId','controller','clientDigest','token','controlVersion','developmentPairing'])if(Object.hasOwn(raw.arguments??{},field))
27
27
  throw new CreationClientError('creation.transport_authority_managed_by_bridge');
28
- if(host.kind==='claude-code'){
28
+ if(isHookProofHost(host.kind)){
29
29
  if(hostSession)return hostSession.begin(raw);
30
30
  if(raw.arguments?.[CLAUDE_HOST_PROOF]!==undefined)throw new CreationClientError('creation.host_identity_invalid');
31
- return{host:{kind:'claude-code'},arguments:raw.arguments,assertCurrent:async()=>{}};
31
+ return{host:{kind:host.kind},arguments:raw.arguments,assertCurrent:async()=>{}};
32
32
  }
33
33
  if(Object.hasOwn(raw.arguments??{},CLAUDE_HOST_PROOF))throw new CreationClientError('creation.transport_authority_managed_by_bridge');
34
34
  hostParameters(raw,host,'independent-read');
@@ -104,7 +104,7 @@ export function createHostCallBridge(client,{credentials,host=resolveHostIdentit
104
104
  if(!schema||schema.type!=='object')throw new CreationClientError('creation.upgrade_required');
105
105
  const p=schema.properties;
106
106
  const {controlVersion:_managed,developmentPairing:_privatePairing,...properties}=p??{};
107
- return {...tool,inputSchema:{...schema,properties:{...properties,...(host.kind==='claude-code'?{
107
+ return {...tool,inputSchema:{...schema,properties:{...properties,...(isHookProofHost(host.kind)?{
108
108
  [CLAUDE_HOST_PROOF]:{type:'string',pattern:'^[a-f0-9]{64}$',description:'由当前宿主hook填入的单次身份凭证;请保留,不自行填写。'}
109
109
  }:{})},...(schema.required
110
110
  ?{required:schema.required.filter(name=>name!=='controlVersion')}:{})}};
@@ -129,7 +129,7 @@ export function createHostCallBridge(client,{credentials,host=resolveHostIdentit
129
129
  }
130
130
  async function knowledgeRead(kind,method,raw={}){
131
131
  if(!upstream[kind])throw new CreationClientError('creation.knowledge_unsupported');
132
- const params=hostParameters(raw,host.kind==='claude-code'?{kind:host.kind}:host,'independent-read'),order=++sequence;
132
+ const params=hostParameters(raw,isHookProofHost(host.kind)?{kind:host.kind}:host,'independent-read'),order=++sequence;
133
133
  const result=assertMcpResponseBudget(await client[method](params,undefined,{timeout:60000}));
134
134
  const version=result._meta?.[kind==='resources'&&method==='listResources'
135
135
  ?'promptframe.guideDirectoryVersion':'promptframe.guideVersion'];
@@ -1,18 +1,25 @@
1
1
  import {CreationClientError} from './credentials.mjs';
2
2
 
3
+ export const SUPPORTED_HOSTS=Object.freeze(['codex','claude-code','antigravity']);
4
+ export const isHookProofHost=kind=>kind==='claude-code'||kind==='antigravity';
5
+ const DEFAULT_CLIENT_NAMES=Object.freeze({
6
+ codex:'Codex PromptFrame',
7
+ 'claude-code':'Claude Code PromptFrame',
8
+ antigravity:'Antigravity PromptFrame',
9
+ });
10
+
3
11
  export function hostClientName(savedName,host){
4
- return ['Codex PromptFrame','Claude Code PromptFrame'].includes(savedName)
5
- ?host.kind==='claude-code'?'Claude Code PromptFrame':'Codex PromptFrame':savedName;
12
+ return Object.values(DEFAULT_CLIENT_NAMES).includes(savedName)
13
+ ?(DEFAULT_CLIENT_NAMES[host.kind]??DEFAULT_CLIENT_NAMES.codex):savedName;
6
14
  }
7
15
 
8
16
  export const threadFormat=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
9
17
 
10
- // Select the transport kind, not a controller. Claude's startup environment
11
- // can remain stale after /clear; only a current host-hook call binds its UUID.
18
+ // Select the transport kind, not a controller. Startup environments can remain
19
+ // stale across sessions; hook-proof hosts bind each call via PreToolUse hook.
12
20
  export function resolveHostIdentity({host,env=process.env}={}){
13
21
  const kind=host??(env.CLAUDECODE==='1'?'claude-code':'codex');
14
- if(!['codex','claude-code'].includes(kind))throw new CreationClientError('creation.host_unsupported');
15
- if(kind==='codex')return Object.freeze({kind});
22
+ if(!SUPPORTED_HOSTS.includes(kind))throw new CreationClientError('creation.host_unsupported');
16
23
  return Object.freeze({kind});
17
24
  }
18
25
 
@@ -20,7 +27,7 @@ export function hostParameters(params,host,access){
20
27
  const meta=params._meta??{};
21
28
  if(Object.keys(meta).some(key=>key.startsWith('promptframe.')||['controlVersion','controller','clientDigest','token','catalogVersion','platformDigest'].includes(key)))
22
29
  throw new CreationClientError('creation.transport_authority_managed_by_bridge');
23
- if(host.kind==='claude-code'){
30
+ if(isHookProofHost(host.kind)){
24
31
  if(Object.hasOwn(meta,'threadId'))throw new CreationClientError('creation.transport_authority_managed_by_bridge');
25
32
  if(!host.threadId){if(access==='independent-read')return params;throw new CreationClientError('creation.host_identity_unavailable');}
26
33
  return {...params,_meta:{...meta,threadId:host.threadId}};
@@ -221,7 +221,7 @@ async function listAccounts({ root = localAccountsRoot(), now = Date.now() } = {
221
221
  }
222
222
 
223
223
  export function localAgentDigest(agent) {
224
- if (!agent || !['codex', 'claude-code'].includes(agent.kind) || typeof agent.sessionId !== 'string'
224
+ if (!agent || !['codex', 'claude-code', 'antigravity'].includes(agent.kind) || typeof agent.sessionId !== 'string'
225
225
  || !threadFormat.test(agent.sessionId)) throw failure('agent_required');
226
226
  return hash(JSON.stringify([agent.kind, agent.sessionId.toLowerCase()]));
227
227
  }
@@ -7,6 +7,7 @@ import {promisify} from 'node:util';
7
7
  import path from 'node:path';
8
8
  import {CreationClientError} from './credentials.mjs';
9
9
  import {compareBridgeVersions,assertBridgeCompatible,readPlatformBridgePolicy} from './bridge-negotiation.mjs';
10
+ import {SUPPORTED_HOSTS} from './host-identity.mjs';
10
11
  import {inspectRuntimePackage,RUNTIME_PACKAGE_ENTRIES,OPTIONAL_HOST_ENTRIES} from './runtime-package.mjs';
11
12
 
12
13
  const PACKAGE='@promptframe/creation',REGISTRY='https://registry.npmjs.org';
@@ -132,7 +133,7 @@ async function checkedVersionIndex(cacheRoot,metadata){
132
133
  }
133
134
 
134
135
  export async function prepareVerifiedRuntime(metadata,{cacheRoot,fetchImpl=fetch,signal,checkRuntime,hostKind='codex'}={}){
135
- if(!['codex','claude-code'].includes(hostKind))throw error('runtime_host_unsupported');
136
+ if(!SUPPORTED_HOSTS.includes(hostKind))throw error('runtime_host_unsupported');
136
137
  if(!path.isAbsolute(cacheRoot??''))throw error('runtime_cache_owner_invalid');
137
138
  metadata=checkedRuntimeMetadata({name:PACKAGE,version:metadata.version,dist:metadata},metadata.version);
138
139
  await privateDirectory(cacheRoot);
@@ -1,12 +1,13 @@
1
1
  import {spawn} from 'node:child_process';
2
2
  import path from 'node:path';
3
3
  import {CreationClientError} from './credentials.mjs';
4
+ import {SUPPORTED_HOSTS} from './host-identity.mjs';
4
5
 
5
6
  /** Relay a new session once, before this process has consumed host stdio.
6
7
  * After spawning, any failure belongs to that runtime; it never respawns or
7
8
  * falls back to another bridge which could replay an accepted business call. */
8
9
  export async function launchSelectedBridge(selection,{host,configFile,spawnImpl=spawn,env=process.env}={}){
9
- if(!path.isAbsolute(selection.root??'')||!path.isAbsolute(configFile??'')||!['codex','claude-code'].includes(host?.kind))
10
+ if(!path.isAbsolute(selection.root??'')||!path.isAbsolute(configFile??'')||!SUPPORTED_HOSTS.includes(host?.kind))
10
11
  throw new CreationClientError('creation.runtime_launch_invalid');
11
12
  let child;
12
13
  try{child=spawnImpl(process.execPath,[path.join(selection.root,'bin/promptframe-creation.mjs'),'bridge',
@@ -36,6 +36,8 @@ export async function inspectRuntimePackage(root,{entries}={}){
36
36
  if(pkg.name!=='@promptframe/creation'||!/^\d+\.\d+\.\d+$/.test(pkg.version)||plugin.version!==pkg.version)invalid('package_identity_invalid');
37
37
  const claude=files.find(f=>f.path==='.claude-plugin/plugin.json');
38
38
  if(claude&&JSON.parse(claude.body).version!==pkg.version)invalid('package_identity_invalid');
39
- return{files,version:pkg.version,hosts:claude?['codex','claude-code']:['codex'],
39
+ const antigravity=files.some(f=>f.path==='lib/antigravity-host-session.mjs');
40
+ const hosts=['codex',...(claude?['claude-code']:[]),...(antigravity?['antigravity']:[])];
41
+ return{files,version:pkg.version,hosts,
40
42
  payloadDigest:hash(JSON.stringify(files.map(({path,bytes,sha256})=>({path,bytes,sha256}))))};
41
43
  }
package/lib/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const CLIENT_VERSION = "0.3.12";
1
+ export const CLIENT_VERSION = "0.3.14";
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.12",
3
+ "version": "0.3.14",
4
4
  "private": false,
5
5
  "description": "PromptFrame video creation Skill, Codex plugin and MCP client bridge.",
6
6
  "repository": {
@@ -1,20 +1,24 @@
1
1
  ---
2
2
  name: creation-setup
3
- description: 安装、连接或升级 PromptFrame Creation,复用平台创作授权并检查 Codex 或 Claude Code 的 Skill 和 MCP 加载。已有连接的普通视频创作使用 video-creation。
3
+ description: 安装、连接或升级 PromptFrame Creation,复用平台创作授权并检查 Codex、Claude Code 或 Antigravity 的 Skill 和 MCP 加载。已有连接的普通视频创作使用 video-creation。
4
4
  ---
5
5
 
6
6
  # 连接 PromptFrame
7
7
 
8
8
  使用 Studio“连接与授权”提供的完整 API 地址及公开安装入口。保留用户当前环境的 origin 和 `/api`,不替换成 localhost,不从旧聊天猜另一账号或环境。
9
9
 
10
- 先确认使用 Codex 还是 Claude Code。Claude 接入使用 `connect --host claude-code`,两种宿主可共用同一 profile 凭据,插件登记分别核实。使用 Studio 对当前环境提供的固定版本;旧版入口不会因平台更新自动改变。Claude 桌面版远程连接 WSL 时,在同一 WSL 安装;没有终端命令时可通过 `--claude-bin <实际可执行文件>` 指定桌面版提供的入口,不固定桌面构建文件名。
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.12 connect --endpoint <Studio提供的API地址>`。需要隔离另一个环境或账号时显式加 `--profile <用户选择的名称>`;正在运行的桥不会切换。此命令管理用户级版本和 Codex 插件,不向当前项目安装依赖。优先使用 Studio 当前提供的固定推荐版本;每次重新进入此入口比较已安装版本,不后台追踪 latest,也不把旧聊天里的命令当最新版本。已安装更新版不默认降级。
13
+ 在用户本机终端运行 `npx --yes @promptframe/creation@0.3.14 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.12 connect --host claude-code --endpoint <Studio提供的API地址>`。桌面版远程连接 WSL 时,在该 WSL 执行;保留相同 profile 和有效凭据。
17
+ Claude Code 使用 `npx --yes @promptframe/creation@0.3.14 connect --host claude-code --endpoint <Studio提供的API地址>`。桌面版远程连接 WSL 时,在该 WSL 执行;保留相同 profile 和有效凭据。
18
+ <!-- /creation-install-command -->
19
+
20
+ <!-- creation-install-command -->
21
+ Antigravity 使用 `npx --yes @promptframe/creation@0.3.14 connect --host antigravity --endpoint <Studio提供的API地址>`。在同一主机核对插件已启用,再打开新对话。
18
22
  <!-- /creation-install-command -->
19
23
 
20
24
  命令会复用并验证有效凭据。首次授权或明确更换已失效凭据时,由用户在 Studio 登录并在终端的不回显输入框提供 Token;不要要求用户把 Token 粘进聊天,也不要把它写进命令参数、URL或日志。网络失败不等于授权失效,不自动轮换或覆盖凭据。