@mariozechner/pi-coding-agent 0.12.3 → 0.12.5
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/CHANGELOG.md +26 -1
- package/README.md +38 -1
- package/dist/changelog.d.ts +1 -1
- package/dist/changelog.d.ts.map +1 -1
- package/dist/changelog.js +1 -1
- package/dist/changelog.js.map +1 -1
- package/dist/config.d.ts +48 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +109 -0
- package/dist/config.js.map +1 -0
- package/dist/export-html.d.ts.map +1 -1
- package/dist/export-html.js +1 -4
- package/dist/export-html.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +23 -27
- package/dist/main.js.map +1 -1
- package/dist/model-config.d.ts.map +1 -1
- package/dist/model-config.js +3 -4
- package/dist/model-config.js.map +1 -1
- package/dist/oauth/storage.d.ts.map +1 -1
- package/dist/oauth/storage.js +4 -12
- package/dist/oauth/storage.js.map +1 -1
- package/dist/session-manager.d.ts +2 -2
- package/dist/session-manager.d.ts.map +1 -1
- package/dist/session-manager.js +2 -2
- package/dist/session-manager.js.map +1 -1
- package/dist/settings-manager.d.ts.map +1 -1
- package/dist/settings-manager.js +2 -2
- package/dist/settings-manager.js.map +1 -1
- package/dist/slash-commands.d.ts +2 -2
- package/dist/slash-commands.d.ts.map +1 -1
- package/dist/slash-commands.js +7 -8
- package/dist/slash-commands.js.map +1 -1
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +11 -15
- package/dist/theme/theme.js.map +1 -1
- package/dist/tools-manager.d.ts.map +1 -1
- package/dist/tools-manager.js +3 -2
- package/dist/tools-manager.js.map +1 -1
- package/dist/tui/model-selector.d.ts.map +1 -1
- package/dist/tui/model-selector.js +1 -1
- package/dist/tui/model-selector.js.map +1 -1
- package/dist/tui/tool-execution.d.ts.map +1 -1
- package/dist/tui/tool-execution.js +3 -2
- package/dist/tui/tool-execution.js.map +1 -1
- package/dist/tui/tui-renderer.d.ts +1 -0
- package/dist/tui/tui-renderer.d.ts.map +1 -1
- package/dist/tui/tui-renderer.js +40 -6
- package/dist/tui/tui-renderer.js.map +1 -1
- package/package.json +8 -4
- package/dist/paths.d.ts +0 -32
- package/dist/paths.d.ts.map +0 -1
- package/dist/paths.js +0 -60
- package/dist/paths.js.map +0 -1
package/dist/paths.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { existsSync } from "fs";
|
|
2
|
-
import { dirname, join, resolve } from "path";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
4
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
5
|
-
const __dirname = dirname(__filename);
|
|
6
|
-
/**
|
|
7
|
-
* Detect if we're running as a Bun compiled binary.
|
|
8
|
-
* Bun binaries have import.meta.url containing "%7EBUN" (URL-encoded ~BUN virtual filesystem path)
|
|
9
|
-
*/
|
|
10
|
-
export const isBunBinary = import.meta.url.includes("%7EBUN");
|
|
11
|
-
/**
|
|
12
|
-
* Get the base directory for resolving package assets (themes, package.json, README.md, CHANGELOG.md).
|
|
13
|
-
* - For Bun binary: returns the directory containing the executable
|
|
14
|
-
* - For Node.js (dist/): returns __dirname (the dist/ directory)
|
|
15
|
-
* - For tsx (src/): returns parent directory (the package root)
|
|
16
|
-
*/
|
|
17
|
-
export function getPackageDir() {
|
|
18
|
-
if (isBunBinary) {
|
|
19
|
-
// Bun binary: process.execPath points to the compiled executable
|
|
20
|
-
return dirname(process.execPath);
|
|
21
|
-
}
|
|
22
|
-
// Node.js: check if package.json exists in __dirname (dist/) or parent (src/ case)
|
|
23
|
-
if (existsSync(join(__dirname, "package.json"))) {
|
|
24
|
-
return __dirname;
|
|
25
|
-
}
|
|
26
|
-
// Running from src/ via tsx - go up one level to package root
|
|
27
|
-
return dirname(__dirname);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Get path to the theme directory
|
|
31
|
-
* - For Bun binary: theme/ next to executable
|
|
32
|
-
* - For Node.js (dist/): dist/theme/
|
|
33
|
-
* - For tsx (src/): src/theme/
|
|
34
|
-
*/
|
|
35
|
-
export function getThemeDir() {
|
|
36
|
-
if (isBunBinary) {
|
|
37
|
-
return join(dirname(process.execPath), "theme");
|
|
38
|
-
}
|
|
39
|
-
// __dirname is either dist/ or src/ - theme is always a subdirectory
|
|
40
|
-
return join(__dirname, "theme");
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Get path to package.json
|
|
44
|
-
*/
|
|
45
|
-
export function getPackageJsonPath() {
|
|
46
|
-
return join(getPackageDir(), "package.json");
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Get path to README.md
|
|
50
|
-
*/
|
|
51
|
-
export function getReadmePath() {
|
|
52
|
-
return resolve(join(getPackageDir(), "README.md"));
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Get path to CHANGELOG.md
|
|
56
|
-
*/
|
|
57
|
-
export function getChangelogPath() {
|
|
58
|
-
return resolve(join(getPackageDir(), "CHANGELOG.md"));
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=paths.js.map
|
package/dist/paths.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAO9D;;;;;GAKG;AACH,MAAM,UAAU,aAAa,GAAW;IACvC,IAAI,WAAW,EAAE,CAAC;QACjB,iEAAiE;QACjE,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,mFAAmF;IACnF,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC;QACjD,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,8DAA8D;IAC9D,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAAA,CAC1B;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,GAAW;IACrC,IAAI,WAAW,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IACD,qEAAqE;IACrE,OAAO,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAAA,CAChC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,GAAW;IAC5C,OAAO,IAAI,CAAC,aAAa,EAAE,EAAE,cAAc,CAAC,CAAC;AAAA,CAC7C;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,GAAW;IACvC,OAAO,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AAAA,CACnD;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,GAAW;IAC1C,OAAO,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;AAAA,CACtD","sourcesContent":["import { existsSync } from \"fs\";\nimport { dirname, join, resolve } from \"path\";\nimport { fileURLToPath } from \"url\";\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n/**\n * Detect if we're running as a Bun compiled binary.\n * Bun binaries have import.meta.url containing \"%7EBUN\" (URL-encoded ~BUN virtual filesystem path)\n */\nexport const isBunBinary = import.meta.url.includes(\"%7EBUN\");\n\n/**\n * Type definition for Bun global (only available when running via Bun)\n */\ndeclare const Bun: { main: string } | undefined;\n\n/**\n * Get the base directory for resolving package assets (themes, package.json, README.md, CHANGELOG.md).\n * - For Bun binary: returns the directory containing the executable\n * - For Node.js (dist/): returns __dirname (the dist/ directory)\n * - For tsx (src/): returns parent directory (the package root)\n */\nexport function getPackageDir(): string {\n\tif (isBunBinary) {\n\t\t// Bun binary: process.execPath points to the compiled executable\n\t\treturn dirname(process.execPath);\n\t}\n\t// Node.js: check if package.json exists in __dirname (dist/) or parent (src/ case)\n\tif (existsSync(join(__dirname, \"package.json\"))) {\n\t\treturn __dirname;\n\t}\n\t// Running from src/ via tsx - go up one level to package root\n\treturn dirname(__dirname);\n}\n\n/**\n * Get path to the theme directory\n * - For Bun binary: theme/ next to executable\n * - For Node.js (dist/): dist/theme/\n * - For tsx (src/): src/theme/\n */\nexport function getThemeDir(): string {\n\tif (isBunBinary) {\n\t\treturn join(dirname(process.execPath), \"theme\");\n\t}\n\t// __dirname is either dist/ or src/ - theme is always a subdirectory\n\treturn join(__dirname, \"theme\");\n}\n\n/**\n * Get path to package.json\n */\nexport function getPackageJsonPath(): string {\n\treturn join(getPackageDir(), \"package.json\");\n}\n\n/**\n * Get path to README.md\n */\nexport function getReadmePath(): string {\n\treturn resolve(join(getPackageDir(), \"README.md\"));\n}\n\n/**\n * Get path to CHANGELOG.md\n */\nexport function getChangelogPath(): string {\n\treturn resolve(join(getPackageDir(), \"CHANGELOG.md\"));\n}\n"]}
|