playcanvas-agent-bridge-cli 0.5.0 → 0.5.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/README.md CHANGED
@@ -20,9 +20,8 @@ npm install -g github:Q-My99/playcanvas-agent-bridge-cli
20
20
  pcbridge install-skill --agent all
21
21
  ```
22
22
 
23
- The commands documented below include repository version `0.5.0`. Until that version is published,
24
- the npm `latest` release (`0.3.0` as of 2026-08-04) does not contain every command described here;
25
- use the GitHub install when testing these unreleased changes.
23
+ The commands documented below track repository version `0.5.1`. npm installs the latest stable
24
+ release; use the GitHub install when testing changes that have not been released yet.
26
25
 
27
26
  One-shot with npx:
28
27
 
package/README.zh-CN.md CHANGED
@@ -13,8 +13,8 @@ npm install -g playcanvas-agent-bridge-cli
13
13
  pcbridge install-skill --agent all
14
14
  ```
15
15
 
16
- 下文命令包含仓库版 `0.5.0` 的尚未发布改动。在该版本发布前,npm 的 `latest`(截至
17
- 2026-08-04 为 `0.3.0`)不包含这里列出的全部命令;测试本轮新能力时请使用 GitHub 安装。
16
+ 下文命令跟随仓库版 `0.5.1`。npm 安装的是最新稳定版本;测试尚未发布的改动时请使用
17
+ GitHub 安装。
18
18
 
19
19
  如果要测试尚未发布的改动,也可以直接从这个 GitHub 仓库安装:
20
20
 
@@ -331,8 +331,9 @@ export class BuilderManager {
331
331
  const originalFilename = asset.file?.filename;
332
332
  const local = preparedById.get(id);
333
333
  if (output.file && local?.path && local.filename) {
334
- const key = `${prefix}/${buildName}/${id}/${safeSegment(local.filename, `asset-${id}`)}`;
335
- output.file.url = publicObjectUrl(settings.publicBaseUrl, key);
334
+ const relativeUrl = `${buildName}/${id}/${safeSegment(local.filename, `asset-${id}`)}`;
335
+ const key = `${prefix}/${relativeUrl}`;
336
+ output.file.url = relativeUrl;
336
337
  uploads.set(key, {
337
338
  key,
338
339
  path: local.path,
@@ -344,8 +345,9 @@ export class BuilderManager {
344
345
  if (!variant.url || !variant.filename)
345
346
  continue;
346
347
  const cached = await this.#cacheRemoteFile(job.info, prepared.projectDirectory, id, variant.filename, variant.url, variant.hash);
347
- const key = `${prefix}/${buildName}/${id}/${safeSegment(variant.filename, "variant.bin")}`;
348
- variant.url = publicObjectUrl(settings.publicBaseUrl, key);
348
+ const relativeUrl = `${buildName}/${id}/${safeSegment(variant.filename, "variant.bin")}`;
349
+ const key = `${prefix}/${relativeUrl}`;
350
+ variant.url = relativeUrl;
349
351
  uploads.set(key, {
350
352
  key,
351
353
  path: cached.path,
@@ -385,8 +387,9 @@ export class BuilderManager {
385
387
  if (scriptText.trim()) {
386
388
  const scriptPath = join(buildRoot, "gamescript.js");
387
389
  await writeFile(scriptPath, scriptText);
388
- const key = `${prefix}/${buildName}/gamescript.js`;
389
- rootData.scriptUrl = publicObjectUrl(settings.publicBaseUrl, key);
390
+ const relativeUrl = `${buildName}/gamescript.js`;
391
+ const key = `${prefix}/${relativeUrl}`;
392
+ rootData.scriptUrl = relativeUrl;
390
393
  uploads.set(key, {
391
394
  key,
392
395
  path: scriptPath,
package/dist/config.js CHANGED
@@ -4,7 +4,7 @@ import { existsSync } from "node:fs";
4
4
  import { homedir } from "node:os";
5
5
  import { dirname, join, resolve } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
- export const VERSION = "0.5.0";
7
+ export const VERSION = "0.5.1";
8
8
  export const DEFAULT_HOST = "127.0.0.1";
9
9
  export const DEFAULT_PORT = 17329;
10
10
  export const DEFAULT_FRONTEND_PORT = 3487;
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 3,
3
3
  "name": "PlayCanvas Agent Bridge",
4
4
  "description": "Connects open PlayCanvas Editor and Launch tabs to the local pcbridge daemon.",
5
- "version": "0.5.0",
5
+ "version": "0.5.1",
6
6
  "permissions": ["activeTab", "storage"],
7
7
  "host_permissions": [
8
8
  "http://playcanvas.com/*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playcanvas-agent-bridge-cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "CLI-first local bridge for automating open PlayCanvas Editor tabs from AI coding agents.",
5
5
  "type": "module",
6
6
  "license": "MIT",