@agimon-ai/po 0.0.0-alpha.5 → 0.0.0-alpha.7
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/dist/bin/cli.cjs +37 -14
- package/dist/bin/cli.cjs.map +1 -1
- package/dist/bin/cli.mjs +34 -14
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/catalog/index.json +51 -51
- package/dist/src/bin/agentDirectory.cjs +14 -48
- package/dist/src/bin/agentDirectory.cjs.map +1 -1
- package/dist/src/bin/agentDirectory.mjs +14 -49
- package/dist/src/bin/agentDirectory.mjs.map +1 -1
- package/dist/src/cli/commands/web/index.cjs +3 -20
- package/dist/src/cli/commands/web/index.cjs.map +1 -1
- package/dist/src/cli/commands/web/index.mjs +3 -20
- package/dist/src/cli/commands/web/index.mjs.map +1 -1
- package/dist/src/cli/help.cjs +2 -0
- package/dist/src/cli/help.cjs.map +1 -1
- package/dist/src/cli/help.mjs +2 -0
- package/dist/src/cli/help.mjs.map +1 -1
- package/dist/src/composition/harnessState/index.d.mts +2 -2
- package/dist/src/composition/harnessState/index.mjs +2 -2
- package/dist/src/composition/layerPackageInstaller/index.cjs +4 -3
- package/dist/src/composition/layerPackageInstaller/index.cjs.map +1 -1
- package/dist/src/composition/layerPackageInstaller/index.mjs +5 -4
- package/dist/src/composition/layerPackageInstaller/index.mjs.map +1 -1
- package/dist/src/composition/syncService/index.cjs +9 -7
- package/dist/src/composition/syncService/index.cjs.map +1 -1
- package/dist/src/composition/syncService/index.d.mts.map +1 -1
- package/dist/src/composition/syncService/index.mjs +9 -7
- package/dist/src/composition/syncService/index.mjs.map +1 -1
- package/dist/src/composition/syncService/localBuilds.cjs +7 -2
- package/dist/src/composition/syncService/localBuilds.cjs.map +1 -1
- package/dist/src/composition/syncService/localBuilds.mjs +7 -2
- package/dist/src/composition/syncService/localBuilds.mjs.map +1 -1
- package/package.json +19 -19
package/dist/bin/cli.cjs
CHANGED
|
@@ -1,19 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
require("
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_agentDirectory = require("../src/bin/agentDirectory.cjs");
|
|
4
|
+
let node_fs = require("node:fs");
|
|
5
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
6
|
+
let node_path = require("node:path");
|
|
7
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
8
|
+
let node_url = require("node:url");
|
|
5
9
|
//#region src/bin/cli.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
/**
|
|
11
|
+
* CLI Entry Point for po
|
|
12
|
+
*
|
|
13
|
+
* The executable installed as the `po` binary, and the file the repository
|
|
14
|
+
* launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.
|
|
15
|
+
*/
|
|
16
|
+
async function main() {
|
|
17
|
+
if (require_agentDirectory.testRoot) {
|
|
18
|
+
const target = node_path.default.join(require_agentDirectory.testRoot, "packages/cli/po/dist/bin/cli.mjs");
|
|
19
|
+
if (!node_fs.default.existsSync(target)) throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);
|
|
20
|
+
if (node_fs.default.realpathSync(target) !== node_fs.default.realpathSync((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href))) {
|
|
21
|
+
await import((0, node_url.pathToFileURL)(target).href);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const { HARNESS_VERSION, printHelp } = await Promise.resolve().then(() => require("../src/cli/help.cjs"));
|
|
26
|
+
const { informationalRequest, routeCommand } = await Promise.resolve().then(() => require("../src/cli/router.cjs"));
|
|
27
|
+
const args = process.argv.slice(2);
|
|
28
|
+
const informational = routeCommand(args) !== void 0 ? void 0 : informationalRequest(args);
|
|
29
|
+
const informationalExit = informational === "help" ? (() => {
|
|
30
|
+
printHelp();
|
|
31
|
+
return 0;
|
|
32
|
+
})() : informational === "version" ? (() => {
|
|
33
|
+
process.stdout.write(`${HARNESS_VERSION}\n`);
|
|
34
|
+
return 0;
|
|
35
|
+
})() : void 0;
|
|
36
|
+
return informationalExit === void 0 ? Promise.resolve().then(() => require("../src/cli/cliApp.cjs")).then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit);
|
|
37
|
+
}
|
|
38
|
+
main().then((exitCode) => {
|
|
39
|
+
if (exitCode !== void 0) process.exitCode = exitCode;
|
|
17
40
|
}, (error) => {
|
|
18
41
|
const message = error instanceof Error ? error.message : String(error);
|
|
19
42
|
process.stderr.write(`[po] ${message}\n`);
|
package/dist/bin/cli.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.cjs","names":["
|
|
1
|
+
{"version":3,"file":"cli.cjs","names":["testRoot","path","fs","fileURLToPath","pathToFileURL"],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.\n */\n\nimport fs from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { testRoot } from './agentDirectory';\n\nasync function main(): Promise<number | undefined> {\n if (testRoot) {\n const target = path.join(testRoot, 'packages/cli/po/dist/bin/cli.mjs');\n if (!fs.existsSync(target))\n throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);\n if (fs.realpathSync(target) !== fs.realpathSync(fileURLToPath(import.meta.url))) {\n await import(pathToFileURL(target).href);\n return;\n }\n }\n const { HARNESS_VERSION, printHelp } = await import('../cli/help');\n const { informationalRequest, routeCommand } = await import('../cli/router');\n\n const args = process.argv.slice(2);\n // A named subcommand parses its own arguments, including its own --help, so the\n // fast path below must not answer for it.\n const ownsArguments = routeCommand(args) !== undefined;\n\n // Keep informational startup independent from telemetry, configuration, Pi,\n // and the extension compiler. Those graphs are useful for a real command but\n // used to account for almost all of `po --help` and `po --version`.\n const informational = ownsArguments ? undefined : informationalRequest(args);\n const informationalExit =\n informational === 'help'\n ? (() => {\n printHelp();\n return 0;\n })()\n : informational === 'version'\n ? (() => {\n process.stdout.write(`${HARNESS_VERSION}\\n`);\n return 0;\n })()\n : undefined;\n\n const run =\n informationalExit === undefined\n ? import('../cli/cliApp').then(({ runCli }) => runCli(args))\n : Promise.resolve(informationalExit);\n\n return run;\n}\n\nmain().then(\n (exitCode) => {\n if (exitCode !== undefined) process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po] ${message}\\n`);\n process.exitCode = 1;\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;AAeA,eAAe,OAAoC;CACjD,IAAIA,uBAAAA,UAAU;EACZ,MAAM,SAASC,UAAAA,QAAK,KAAKD,uBAAAA,UAAU,kCAAkC;EACrE,IAAI,CAACE,QAAAA,QAAG,WAAW,MAAM,GACvB,MAAM,IAAI,MAAM,oCAAoC,OAAO,6BAA6B;EAC1F,IAAIA,QAAAA,QAAG,aAAa,MAAM,MAAMA,QAAAA,QAAG,cAAA,GAAaC,SAAAA,cAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,IAA6B,CAAC,GAAG;GAC/E,MAAM,QAAA,GAAOC,SAAAA,cAAAA,CAAc,MAAM,CAAC,CAAC;GACnC;EACF;CACF;CACA,MAAM,EAAE,iBAAiB,cAAc,MAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAAM,qBAAA,CAAA;CAC7C,MAAM,EAAE,sBAAsB,iBAAiB,MAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAAM,uBAAA,CAAA;CAErD,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;CAQjC,MAAM,gBALgB,aAAa,IAAI,MAAM,KAAA,IAKP,KAAA,IAAY,qBAAqB,IAAI;CAC3E,MAAM,oBACJ,kBAAkB,gBACP;EACL,UAAU;EACV,OAAO;CACT,EAAA,CAAG,IACH,kBAAkB,mBACT;EACL,QAAQ,OAAO,MAAM,GAAG,gBAAgB,GAAG;EAC3C,OAAO;CACT,EAAA,CAAG,IACH,KAAA;CAOR,OAJE,sBAAsB,KAAA,IAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAClB,uBAAA,CAAA,CAAA,CAAwB,MAAM,EAAE,aAAa,OAAO,IAAI,CAAC,IACzD,QAAQ,QAAQ,iBAAiB;AAGzC;AAEA,KAAK,CAAC,CAAC,MACJ,aAAa;CACZ,IAAI,aAAa,KAAA,GAAW,QAAQ,WAAW;AACjD,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,QAAQ,QAAQ,GAAG;CACxC,QAAQ,WAAW;AACrB,CACF"}
|
package/dist/bin/cli.mjs
CHANGED
|
@@ -1,19 +1,39 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
2
|
+
import { testRoot } from "../src/bin/agentDirectory.mjs";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
6
|
//#region src/bin/cli.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
(
|
|
16
|
-
|
|
7
|
+
/**
|
|
8
|
+
* CLI Entry Point for po
|
|
9
|
+
*
|
|
10
|
+
* The executable installed as the `po` binary, and the file the repository
|
|
11
|
+
* launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.
|
|
12
|
+
*/
|
|
13
|
+
async function main() {
|
|
14
|
+
if (testRoot) {
|
|
15
|
+
const target = path.join(testRoot, "packages/cli/po/dist/bin/cli.mjs");
|
|
16
|
+
if (!fs.existsSync(target)) throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);
|
|
17
|
+
if (fs.realpathSync(target) !== fs.realpathSync(fileURLToPath(import.meta.url))) {
|
|
18
|
+
await import(pathToFileURL(target).href);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const { HARNESS_VERSION, printHelp } = await import("../src/cli/help.mjs");
|
|
23
|
+
const { informationalRequest, routeCommand } = await import("../src/cli/router.mjs");
|
|
24
|
+
const args = process.argv.slice(2);
|
|
25
|
+
const informational = routeCommand(args) !== void 0 ? void 0 : informationalRequest(args);
|
|
26
|
+
const informationalExit = informational === "help" ? (() => {
|
|
27
|
+
printHelp();
|
|
28
|
+
return 0;
|
|
29
|
+
})() : informational === "version" ? (() => {
|
|
30
|
+
process.stdout.write(`${HARNESS_VERSION}\n`);
|
|
31
|
+
return 0;
|
|
32
|
+
})() : void 0;
|
|
33
|
+
return informationalExit === void 0 ? import("../src/cli/cliApp.mjs").then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit);
|
|
34
|
+
}
|
|
35
|
+
main().then((exitCode) => {
|
|
36
|
+
if (exitCode !== void 0) process.exitCode = exitCode;
|
|
17
37
|
}, (error) => {
|
|
18
38
|
const message = error instanceof Error ? error.message : String(error);
|
|
19
39
|
process.stderr.write(`[po] ${message}\n`);
|
package/dist/bin/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","names":[],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.\n */\n\nimport './agentDirectory';\
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":[],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.\n */\n\nimport fs from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { testRoot } from './agentDirectory';\n\nasync function main(): Promise<number | undefined> {\n if (testRoot) {\n const target = path.join(testRoot, 'packages/cli/po/dist/bin/cli.mjs');\n if (!fs.existsSync(target))\n throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);\n if (fs.realpathSync(target) !== fs.realpathSync(fileURLToPath(import.meta.url))) {\n await import(pathToFileURL(target).href);\n return;\n }\n }\n const { HARNESS_VERSION, printHelp } = await import('../cli/help');\n const { informationalRequest, routeCommand } = await import('../cli/router');\n\n const args = process.argv.slice(2);\n // A named subcommand parses its own arguments, including its own --help, so the\n // fast path below must not answer for it.\n const ownsArguments = routeCommand(args) !== undefined;\n\n // Keep informational startup independent from telemetry, configuration, Pi,\n // and the extension compiler. Those graphs are useful for a real command but\n // used to account for almost all of `po --help` and `po --version`.\n const informational = ownsArguments ? undefined : informationalRequest(args);\n const informationalExit =\n informational === 'help'\n ? (() => {\n printHelp();\n return 0;\n })()\n : informational === 'version'\n ? (() => {\n process.stdout.write(`${HARNESS_VERSION}\\n`);\n return 0;\n })()\n : undefined;\n\n const run =\n informationalExit === undefined\n ? import('../cli/cliApp').then(({ runCli }) => runCli(args))\n : Promise.resolve(informationalExit);\n\n return run;\n}\n\nmain().then(\n (exitCode) => {\n if (exitCode !== undefined) process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po] ${message}\\n`);\n process.exitCode = 1;\n },\n);\n"],"mappings":";;;;;;;;;;;;AAeA,eAAe,OAAoC;CACjD,IAAI,UAAU;EACZ,MAAM,SAAS,KAAK,KAAK,UAAU,kCAAkC;EACrE,IAAI,CAAC,GAAG,WAAW,MAAM,GACvB,MAAM,IAAI,MAAM,oCAAoC,OAAO,6BAA6B;EAC1F,IAAI,GAAG,aAAa,MAAM,MAAM,GAAG,aAAa,cAAc,YAAY,GAAG,CAAC,GAAG;GAC/E,MAAM,OAAO,cAAc,MAAM,CAAC,CAAC;GACnC;EACF;CACF;CACA,MAAM,EAAE,iBAAiB,cAAc,MAAM,OAAO;CACpD,MAAM,EAAE,sBAAsB,iBAAiB,MAAM,OAAO;CAE5D,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;CAQjC,MAAM,gBALgB,aAAa,IAAI,MAAM,KAAA,IAKP,KAAA,IAAY,qBAAqB,IAAI;CAC3E,MAAM,oBACJ,kBAAkB,gBACP;EACL,UAAU;EACV,OAAO;CACT,EAAA,CAAG,IACH,kBAAkB,mBACT;EACL,QAAQ,OAAO,MAAM,GAAG,gBAAgB,GAAG;EAC3C,OAAO;CACT,EAAA,CAAG,IACH,KAAA;CAOR,OAJE,sBAAsB,KAAA,IAClB,OAAO,wBAAgB,CAAC,MAAM,EAAE,aAAa,OAAO,IAAI,CAAC,IACzD,QAAQ,QAAQ,iBAAiB;AAGzC;AAEA,KAAK,CAAC,CAAC,MACJ,aAAa;CACZ,IAAI,aAAa,KAAA,GAAW,QAAQ,WAAW;AACjD,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,QAAQ,QAAQ,GAAG;CACxC,QAAQ,WAAW;AACrB,CACF"}
|
package/dist/catalog/index.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 1,
|
|
3
3
|
"packages": {
|
|
4
4
|
"@agimon-ai/po": {
|
|
5
|
-
"version": "0.0.0-alpha.
|
|
5
|
+
"version": "0.0.0-alpha.7",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"@agimon-ai/po-artifact",
|
|
8
8
|
"@agimon-ai/po-autostop",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"@agimon-ai/po-artifact": {
|
|
26
|
-
"version": "0.0.0-alpha.
|
|
26
|
+
"version": "0.0.0-alpha.6",
|
|
27
27
|
"dependencies": [
|
|
28
28
|
"@agimon-ai/po-core",
|
|
29
29
|
"@agimon-ai/po-web-components",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
"@agimon-ai/po-author": {
|
|
34
|
-
"version": "0.0.0-alpha.
|
|
34
|
+
"version": "0.0.0-alpha.7",
|
|
35
35
|
"dependencies": [
|
|
36
36
|
"@agimon-ai/po-artifact",
|
|
37
37
|
"@agimon-ai/po-core",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"@agimon-ai/po-autocompact": {
|
|
44
|
-
"version": "0.0.0-alpha.
|
|
44
|
+
"version": "0.0.0-alpha.7",
|
|
45
45
|
"dependencies": [
|
|
46
46
|
"@agimon-ai/po-config",
|
|
47
47
|
"@agimon-ai/po-core",
|
|
@@ -49,25 +49,25 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"@agimon-ai/po-autostop": {
|
|
52
|
-
"version": "0.0.0-alpha.
|
|
52
|
+
"version": "0.0.0-alpha.7",
|
|
53
53
|
"dependencies": [
|
|
54
54
|
"@agimon-ai/po-core",
|
|
55
55
|
"@agimon-ai/po-telemetry"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"@agimon-ai/po-browse": {
|
|
59
|
-
"version": "0.0.1-alpha.
|
|
59
|
+
"version": "0.0.1-alpha.5",
|
|
60
60
|
"dependencies": [
|
|
61
61
|
"@agimon-ai/po-core",
|
|
62
62
|
"@agimon-ai/po-web-components"
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"@agimon-ai/po-build": {
|
|
66
|
-
"version": "0.0.0-alpha.
|
|
66
|
+
"version": "0.0.0-alpha.7",
|
|
67
67
|
"dependencies": []
|
|
68
68
|
},
|
|
69
69
|
"@agimon-ai/po-cache": {
|
|
70
|
-
"version": "0.0.0-alpha.
|
|
70
|
+
"version": "0.0.0-alpha.7",
|
|
71
71
|
"dependencies": [
|
|
72
72
|
"@agimon-ai/po-config",
|
|
73
73
|
"@agimon-ai/po-core",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
77
|
"@agimon-ai/po-computer-use": {
|
|
78
|
-
"version": "0.0.0-alpha.
|
|
78
|
+
"version": "0.0.0-alpha.7",
|
|
79
79
|
"dependencies": [
|
|
80
80
|
"@agimon-ai/po-config",
|
|
81
81
|
"@agimon-ai/po-core",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
"@agimon-ai/po-config": {
|
|
88
|
-
"version": "0.0.0-alpha.
|
|
88
|
+
"version": "0.0.0-alpha.7",
|
|
89
89
|
"dependencies": [
|
|
90
90
|
"@agimon-ai/po-core",
|
|
91
91
|
"@agimon-ai/po-telemetry",
|
|
@@ -93,14 +93,14 @@
|
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
95
|
"@agimon-ai/po-core": {
|
|
96
|
-
"version": "0.0.0-alpha.
|
|
96
|
+
"version": "0.0.0-alpha.7",
|
|
97
97
|
"dependencies": [
|
|
98
98
|
"@agimon-ai/po-telemetry",
|
|
99
99
|
"@agimon-ai/po-web-security"
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
"@agimon-ai/po-domain": {
|
|
103
|
-
"version": "0.0.0-alpha.
|
|
103
|
+
"version": "0.0.0-alpha.7",
|
|
104
104
|
"dependencies": [
|
|
105
105
|
"@agimon-ai/po-config",
|
|
106
106
|
"@agimon-ai/po-core",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
111
|
"@agimon-ai/po-edit": {
|
|
112
|
-
"version": "0.0.0-alpha.
|
|
112
|
+
"version": "0.0.0-alpha.7",
|
|
113
113
|
"dependencies": [
|
|
114
114
|
"@agimon-ai/po-core",
|
|
115
115
|
"@agimon-ai/po-hashline",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
"@agimon-ai/po-file-edit": {
|
|
121
|
-
"version": "0.0.0-alpha.
|
|
121
|
+
"version": "0.0.0-alpha.7",
|
|
122
122
|
"dependencies": [
|
|
123
123
|
"@agimon-ai/po-config",
|
|
124
124
|
"@agimon-ai/po-core",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
131
|
"@agimon-ai/po-git": {
|
|
132
|
-
"version": "0.0.0-alpha.
|
|
132
|
+
"version": "0.0.0-alpha.7",
|
|
133
133
|
"dependencies": [
|
|
134
134
|
"@agimon-ai/po-core",
|
|
135
135
|
"@agimon-ai/po-session",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
]
|
|
139
139
|
},
|
|
140
140
|
"@agimon-ai/po-goal": {
|
|
141
|
-
"version": "0.0.0-alpha.
|
|
141
|
+
"version": "0.0.0-alpha.7",
|
|
142
142
|
"dependencies": [
|
|
143
143
|
"@agimon-ai/po-core",
|
|
144
144
|
"@agimon-ai/po-minor-mode",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
149
|
"@agimon-ai/po-grep": {
|
|
150
|
-
"version": "0.0.0-alpha.
|
|
150
|
+
"version": "0.0.0-alpha.7",
|
|
151
151
|
"dependencies": [
|
|
152
152
|
"@agimon-ai/po-core",
|
|
153
153
|
"@agimon-ai/po-hashline",
|
|
@@ -156,11 +156,11 @@
|
|
|
156
156
|
]
|
|
157
157
|
},
|
|
158
158
|
"@agimon-ai/po-hashline": {
|
|
159
|
-
"version": "0.0.0-alpha.
|
|
159
|
+
"version": "0.0.0-alpha.7",
|
|
160
160
|
"dependencies": []
|
|
161
161
|
},
|
|
162
162
|
"@agimon-ai/po-help": {
|
|
163
|
-
"version": "0.0.0-alpha.
|
|
163
|
+
"version": "0.0.0-alpha.7",
|
|
164
164
|
"dependencies": [
|
|
165
165
|
"@agimon-ai/po-core",
|
|
166
166
|
"@agimon-ai/po-minor-mode",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
"@agimon-ai/po-hook": {
|
|
171
|
-
"version": "0.0.0-alpha.
|
|
171
|
+
"version": "0.0.0-alpha.7",
|
|
172
172
|
"dependencies": [
|
|
173
173
|
"@agimon-ai/po-config",
|
|
174
174
|
"@agimon-ai/po-core",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
]
|
|
177
177
|
},
|
|
178
178
|
"@agimon-ai/po-image-gen": {
|
|
179
|
-
"version": "0.0.0-alpha.
|
|
179
|
+
"version": "0.0.0-alpha.6",
|
|
180
180
|
"dependencies": [
|
|
181
181
|
"@agimon-ai/po-core",
|
|
182
182
|
"@agimon-ai/po-web-components",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
]
|
|
185
185
|
},
|
|
186
186
|
"@agimon-ai/po-log": {
|
|
187
|
-
"version": "0.0.0-alpha.
|
|
187
|
+
"version": "0.0.0-alpha.7",
|
|
188
188
|
"dependencies": [
|
|
189
189
|
"@agimon-ai/po-core",
|
|
190
190
|
"@agimon-ai/po-telemetry",
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
]
|
|
194
194
|
},
|
|
195
195
|
"@agimon-ai/po-loop": {
|
|
196
|
-
"version": "0.0.0-alpha.
|
|
196
|
+
"version": "0.0.0-alpha.7",
|
|
197
197
|
"dependencies": [
|
|
198
198
|
"@agimon-ai/po-core",
|
|
199
199
|
"@agimon-ai/po-minor-mode",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
]
|
|
203
203
|
},
|
|
204
204
|
"@agimon-ai/po-major-mode": {
|
|
205
|
-
"version": "0.0.0-alpha.
|
|
205
|
+
"version": "0.0.0-alpha.7",
|
|
206
206
|
"dependencies": [
|
|
207
207
|
"@agimon-ai/po-config",
|
|
208
208
|
"@agimon-ai/po-core",
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
]
|
|
212
212
|
},
|
|
213
213
|
"@agimon-ai/po-mcp": {
|
|
214
|
-
"version": "0.0.0-alpha.
|
|
214
|
+
"version": "0.0.0-alpha.7",
|
|
215
215
|
"dependencies": [
|
|
216
216
|
"@agimon-ai/po-config",
|
|
217
217
|
"@agimon-ai/po-core",
|
|
@@ -220,33 +220,33 @@
|
|
|
220
220
|
]
|
|
221
221
|
},
|
|
222
222
|
"@agimon-ai/po-minor-mode": {
|
|
223
|
-
"version": "0.0.0-alpha.
|
|
223
|
+
"version": "0.0.0-alpha.7",
|
|
224
224
|
"dependencies": [
|
|
225
225
|
"@agimon-ai/po-core",
|
|
226
226
|
"@agimon-ai/po-telemetry"
|
|
227
227
|
]
|
|
228
228
|
},
|
|
229
229
|
"@agimon-ai/po-model-guidance": {
|
|
230
|
-
"version": "0.0.0-alpha.
|
|
230
|
+
"version": "0.0.0-alpha.7",
|
|
231
231
|
"dependencies": [
|
|
232
232
|
"@agimon-ai/po-config",
|
|
233
233
|
"@agimon-ai/po-core"
|
|
234
234
|
]
|
|
235
235
|
},
|
|
236
236
|
"@agimon-ai/po-native-components": {
|
|
237
|
-
"version": "0.0.0-alpha.
|
|
237
|
+
"version": "0.0.0-alpha.7",
|
|
238
238
|
"dependencies": [
|
|
239
239
|
"@agimon-ai/po-web-components"
|
|
240
240
|
]
|
|
241
241
|
},
|
|
242
242
|
"@agimon-ai/po-notification": {
|
|
243
|
-
"version": "0.0.0-alpha.
|
|
243
|
+
"version": "0.0.0-alpha.7",
|
|
244
244
|
"dependencies": [
|
|
245
245
|
"@agimon-ai/po-core"
|
|
246
246
|
]
|
|
247
247
|
},
|
|
248
248
|
"@agimon-ai/po-plan": {
|
|
249
|
-
"version": "0.0.0-alpha.
|
|
249
|
+
"version": "0.0.0-alpha.7",
|
|
250
250
|
"dependencies": [
|
|
251
251
|
"@agimon-ai/po-config",
|
|
252
252
|
"@agimon-ai/po-core",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
]
|
|
258
258
|
},
|
|
259
259
|
"@agimon-ai/po-profile": {
|
|
260
|
-
"version": "0.0.0-alpha.
|
|
260
|
+
"version": "0.0.0-alpha.7",
|
|
261
261
|
"dependencies": [
|
|
262
262
|
"@agimon-ai/po-config",
|
|
263
263
|
"@agimon-ai/po-core",
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
]
|
|
267
267
|
},
|
|
268
268
|
"@agimon-ai/po-prompt": {
|
|
269
|
-
"version": "0.0.0-alpha.
|
|
269
|
+
"version": "0.0.0-alpha.7",
|
|
270
270
|
"dependencies": [
|
|
271
271
|
"@agimon-ai/po-core",
|
|
272
272
|
"@agimon-ai/po-web-components",
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
]
|
|
275
275
|
},
|
|
276
276
|
"@agimon-ai/po-read": {
|
|
277
|
-
"version": "0.0.0-alpha.
|
|
277
|
+
"version": "0.0.0-alpha.7",
|
|
278
278
|
"dependencies": [
|
|
279
279
|
"@agimon-ai/po-config",
|
|
280
280
|
"@agimon-ai/po-core",
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
]
|
|
285
285
|
},
|
|
286
286
|
"@agimon-ai/po-runner": {
|
|
287
|
-
"version": "0.0.0-alpha.
|
|
287
|
+
"version": "0.0.0-alpha.7",
|
|
288
288
|
"dependencies": [
|
|
289
289
|
"@agimon-ai/po-core",
|
|
290
290
|
"@agimon-ai/po-telemetry",
|
|
@@ -294,19 +294,19 @@
|
|
|
294
294
|
]
|
|
295
295
|
},
|
|
296
296
|
"@agimon-ai/po-sandbox": {
|
|
297
|
-
"version": "0.0.0-alpha.
|
|
297
|
+
"version": "0.0.0-alpha.7",
|
|
298
298
|
"dependencies": [
|
|
299
299
|
"@agimon-ai/po-core"
|
|
300
300
|
]
|
|
301
301
|
},
|
|
302
302
|
"@agimon-ai/po-session": {
|
|
303
|
-
"version": "0.0.0-alpha.
|
|
303
|
+
"version": "0.0.0-alpha.7",
|
|
304
304
|
"dependencies": [
|
|
305
305
|
"@agimon-ai/po-core"
|
|
306
306
|
]
|
|
307
307
|
},
|
|
308
308
|
"@agimon-ai/po-skill": {
|
|
309
|
-
"version": "0.0.0-alpha.
|
|
309
|
+
"version": "0.0.0-alpha.7",
|
|
310
310
|
"dependencies": [
|
|
311
311
|
"@agimon-ai/po-config",
|
|
312
312
|
"@agimon-ai/po-core",
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
]
|
|
317
317
|
},
|
|
318
318
|
"@agimon-ai/po-style-system": {
|
|
319
|
-
"version": "0.0.0-alpha.
|
|
319
|
+
"version": "0.0.0-alpha.7",
|
|
320
320
|
"dependencies": [
|
|
321
321
|
"@agimon-ai/po-core",
|
|
322
322
|
"@agimon-ai/po-web-components",
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
]
|
|
325
325
|
},
|
|
326
326
|
"@agimon-ai/po-task": {
|
|
327
|
-
"version": "0.0.0-alpha.
|
|
327
|
+
"version": "0.0.0-alpha.7",
|
|
328
328
|
"dependencies": [
|
|
329
329
|
"@agimon-ai/po-core",
|
|
330
330
|
"@agimon-ai/po-telemetry",
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
]
|
|
334
334
|
},
|
|
335
335
|
"@agimon-ai/po-team": {
|
|
336
|
-
"version": "0.0.0-alpha.
|
|
336
|
+
"version": "0.0.0-alpha.7",
|
|
337
337
|
"dependencies": [
|
|
338
338
|
"@agimon-ai/po-cache",
|
|
339
339
|
"@agimon-ai/po-config",
|
|
@@ -346,11 +346,11 @@
|
|
|
346
346
|
]
|
|
347
347
|
},
|
|
348
348
|
"@agimon-ai/po-telemetry": {
|
|
349
|
-
"version": "0.0.0-alpha.
|
|
349
|
+
"version": "0.0.0-alpha.7",
|
|
350
350
|
"dependencies": []
|
|
351
351
|
},
|
|
352
352
|
"@agimon-ai/po-template-advanced": {
|
|
353
|
-
"version": "0.0.0-alpha.
|
|
353
|
+
"version": "0.0.0-alpha.7",
|
|
354
354
|
"dependencies": [
|
|
355
355
|
"@agimon-ai/po-core",
|
|
356
356
|
"@agimon-ai/po-web-components",
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
]
|
|
359
359
|
},
|
|
360
360
|
"@agimon-ai/po-template-elegant": {
|
|
361
|
-
"version": "0.0.0-alpha.
|
|
361
|
+
"version": "0.0.0-alpha.7",
|
|
362
362
|
"dependencies": [
|
|
363
363
|
"@agimon-ai/po-core",
|
|
364
364
|
"@agimon-ai/po-web-components",
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
]
|
|
367
367
|
},
|
|
368
368
|
"@agimon-ai/po-ui": {
|
|
369
|
-
"version": "0.0.0-alpha.
|
|
369
|
+
"version": "0.0.0-alpha.7",
|
|
370
370
|
"dependencies": [
|
|
371
371
|
"@agimon-ai/po-core",
|
|
372
372
|
"@agimon-ai/po-hashline",
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
]
|
|
377
377
|
},
|
|
378
378
|
"@agimon-ai/po-user-feedback": {
|
|
379
|
-
"version": "0.0.0-alpha.
|
|
379
|
+
"version": "0.0.0-alpha.7",
|
|
380
380
|
"dependencies": [
|
|
381
381
|
"@agimon-ai/po-core",
|
|
382
382
|
"@agimon-ai/po-minor-mode",
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
]
|
|
385
385
|
},
|
|
386
386
|
"@agimon-ai/po-voice": {
|
|
387
|
-
"version": "0.0.0-alpha.
|
|
387
|
+
"version": "0.0.0-alpha.7",
|
|
388
388
|
"dependencies": [
|
|
389
389
|
"@agimon-ai/po-config",
|
|
390
390
|
"@agimon-ai/po-core",
|
|
@@ -397,11 +397,11 @@
|
|
|
397
397
|
]
|
|
398
398
|
},
|
|
399
399
|
"@agimon-ai/po-web-components": {
|
|
400
|
-
"version": "0.0.0-alpha.
|
|
400
|
+
"version": "0.0.0-alpha.7",
|
|
401
401
|
"dependencies": []
|
|
402
402
|
},
|
|
403
403
|
"@agimon-ai/po-web-dashboard": {
|
|
404
|
-
"version": "0.0.0-alpha.
|
|
404
|
+
"version": "0.0.0-alpha.7",
|
|
405
405
|
"dependencies": [
|
|
406
406
|
"@agimon-ai/po-core",
|
|
407
407
|
"@agimon-ai/po-web-components",
|
|
@@ -409,18 +409,18 @@
|
|
|
409
409
|
]
|
|
410
410
|
},
|
|
411
411
|
"@agimon-ai/po-web-search": {
|
|
412
|
-
"version": "0.0.0-alpha.
|
|
412
|
+
"version": "0.0.0-alpha.6",
|
|
413
413
|
"dependencies": [
|
|
414
414
|
"@agimon-ai/po-core",
|
|
415
415
|
"@agimon-ai/po-web-components"
|
|
416
416
|
]
|
|
417
417
|
},
|
|
418
418
|
"@agimon-ai/po-web-security": {
|
|
419
|
-
"version": "0.0.0-alpha.
|
|
419
|
+
"version": "0.0.0-alpha.7",
|
|
420
420
|
"dependencies": []
|
|
421
421
|
},
|
|
422
422
|
"@agimon-ai/po-workflow": {
|
|
423
|
-
"version": "0.0.0-alpha.
|
|
423
|
+
"version": "0.0.0-alpha.7",
|
|
424
424
|
"dependencies": [
|
|
425
425
|
"@agimon-ai/po-core",
|
|
426
426
|
"@agimon-ai/po-minor-mode",
|
|
@@ -6,62 +6,28 @@ let node_path = require("node:path");
|
|
|
6
6
|
node_path = require_runtime.__toESM(node_path, 1);
|
|
7
7
|
let node_os = require("node:os");
|
|
8
8
|
node_os = require_runtime.__toESM(node_os, 1);
|
|
9
|
+
let _agimon_ai_po_config_harnessState = require("@agimon-ai/po-config/harnessState");
|
|
10
|
+
let _agimon_ai_po_config_harnessStore = require("@agimon-ai/po-config/harnessStore");
|
|
9
11
|
let _agimon_ai_po_core_piSettings = require("@agimon-ai/po-core/piSettings");
|
|
12
|
+
let node_url = require("node:url");
|
|
13
|
+
let _agimon_ai_po_core_testMode = require("@agimon-ai/po-core/testMode");
|
|
14
|
+
let _agimon_ai_po_config_init = require("@agimon-ai/po-config/init");
|
|
10
15
|
//#region src/bin/agentDirectory.ts
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* reads it.
|
|
14
|
-
*
|
|
15
|
-
* Every Po executable imports this first. It assigns unconditionally, so a
|
|
16
|
-
* PI_CODING_AGENT_DIR exported for plain Pi cannot pull Po back into `~/.pi`;
|
|
17
|
-
* PO_HOME is the supported way to move Po, agent directory included. Pi reads
|
|
18
|
-
* the variable on every call, and the server freezes its environment after
|
|
19
|
-
* this runs, so both sides agree. It also runs the one-time copy of `~/.pi/.po`.
|
|
20
|
-
*
|
|
21
|
-
* `--test` runs a development build beside the stable install: it defaults
|
|
22
|
-
* PO_HOME to `~/.po-test`, refuses the stable home, and seeds that home's
|
|
23
|
-
* login once from `~/.po/agent`. The flag is removed here, before any parser sees it.
|
|
24
|
-
*/
|
|
25
|
-
const TEST_FLAG = "--test";
|
|
26
|
-
const TEST_HOME_DIRECTORY = ".po-test";
|
|
27
|
-
const SEEDED_AGENT_FILES = ["auth.json", "models.json"];
|
|
28
|
-
const home = node_os.default.homedir();
|
|
29
|
-
const argumentEnd = process.argv.indexOf("--", 2);
|
|
30
|
-
const testFlagIndex = process.argv.indexOf(TEST_FLAG, 2);
|
|
31
|
-
const testMode = testFlagIndex !== -1 && (argumentEnd === -1 || testFlagIndex < argumentEnd);
|
|
32
|
-
if (testMode) {
|
|
33
|
-
process.argv.splice(testFlagIndex, 1);
|
|
34
|
-
process.env.PO_TEST = "1";
|
|
35
|
-
if (!process.env.PO_HOME?.trim()) process.env.PO_HOME = node_path.default.join(home, TEST_HOME_DIRECTORY);
|
|
36
|
-
}
|
|
16
|
+
/** Pins Pi's agent directory before configuration or runtime imports read it. */
|
|
17
|
+
const testRoot = (0, _agimon_ai_po_core_testMode.initializeTestMode)(require("url").pathToFileURL(__filename).href);
|
|
37
18
|
const poHome = (0, _agimon_ai_po_core_piSettings.poHomeDirectory)();
|
|
38
|
-
const stableHome = (0, _agimon_ai_po_core_piSettings.poHomeDirectory)(home, {});
|
|
39
|
-
if (testMode && node_path.default.resolve(poHome) === node_path.default.resolve(stableHome)) {
|
|
40
|
-
process.stderr.write(`[po] --test refuses to use the stable Po home ${stableHome}; unset PO_HOME or point it elsewhere.\n`);
|
|
41
|
-
process.exit(1);
|
|
42
|
-
}
|
|
43
19
|
process.env.PI_CODING_AGENT_DIR = node_path.default.join(poHome, "agent");
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
recursive: true,
|
|
48
|
-
mode: 448
|
|
49
|
-
});
|
|
50
|
-
for (const file of SEEDED_AGENT_FILES) {
|
|
51
|
-
const source = node_path.default.join(stableHome, "agent", file);
|
|
52
|
-
const target = node_path.default.join(agentDirectory, file);
|
|
53
|
-
if (node_fs.default.existsSync(target) || !node_fs.default.existsSync(source)) continue;
|
|
54
|
-
node_fs.default.copyFileSync(source, target, node_fs.default.constants.COPYFILE_EXCL);
|
|
55
|
-
node_fs.default.chmodSync(target, 384);
|
|
56
|
-
}
|
|
57
|
-
} catch (error) {
|
|
58
|
-
process.stderr.write(`[po] Could not copy the stable login into ${poHome}: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
20
|
+
if (testRoot && process.env.PO_TEST_RESET_HARNESS === "1") {
|
|
21
|
+
delete process.env.PO_TEST_RESET_HARNESS;
|
|
22
|
+
for (const key of [_agimon_ai_po_config_harnessStore.HARNESS_STATE_POINTER, ...Object.values(_agimon_ai_po_config_harnessState.HARNESS_STATE_KEYS)]) delete process.env[key];
|
|
59
23
|
}
|
|
60
|
-
|
|
61
|
-
|
|
24
|
+
if (testRoot && (0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href).startsWith(node_fs.default.realpathSync(testRoot) + node_path.default.sep)) (0, _agimon_ai_po_config_init.initializeGlobalPoConfig)(process.env.HOME ?? node_os.default.homedir());
|
|
25
|
+
if (!testRoot) try {
|
|
26
|
+
require_index.migratePoHome(process.env.HOME ?? node_os.default.homedir(), poHome);
|
|
62
27
|
} catch (error) {
|
|
63
28
|
process.stderr.write(`[po] Could not move ~/.pi/.po into ${poHome}: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
64
29
|
}
|
|
65
30
|
//#endregion
|
|
31
|
+
exports.testRoot = testRoot;
|
|
66
32
|
|
|
67
33
|
//# sourceMappingURL=agentDirectory.cjs.map
|