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 +2 -3
- package/README.zh-CN.md +2 -2
- package/dist/builder/manager.js +9 -6
- package/dist/config.js +1 -1
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
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
|
|
24
|
-
the
|
|
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
|
-
|
|
17
|
-
|
|
16
|
+
下文命令跟随仓库版 `0.5.1`。npm 安装的是最新稳定版本;测试尚未发布的改动时请使用
|
|
17
|
+
GitHub 安装。
|
|
18
18
|
|
|
19
19
|
如果要测试尚未发布的改动,也可以直接从这个 GitHub 仓库安装:
|
|
20
20
|
|
package/dist/builder/manager.js
CHANGED
|
@@ -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
|
|
335
|
-
|
|
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
|
|
348
|
-
|
|
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
|
|
389
|
-
|
|
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.
|
|
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;
|
package/extension/manifest.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "0.5.1",
|
|
6
6
|
"permissions": ["activeTab", "storage"],
|
|
7
7
|
"host_permissions": [
|
|
8
8
|
"http://playcanvas.com/*",
|