@cydm/pie 4.4.0 → 4.4.2
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/builtin/extensions/ask-user/index.js +6 -6
- package/dist/builtin/extensions/changelog/index.js +1 -1
- package/dist/builtin/extensions/cron/index.js +2 -2
- package/dist/builtin/extensions/document-attachments/index.js +1 -1
- package/dist/builtin/extensions/herdr-agent-state/index.js +1 -1
- package/dist/builtin/extensions/im-forward/README.md +4 -3
- package/dist/builtin/extensions/im-forward/index.js +24 -5
- package/dist/builtin/extensions/init/index.js +1 -1
- package/dist/builtin/extensions/mcp-adapter/index.js +2 -2
- package/dist/builtin/extensions/memory/index.js +11 -9
- package/dist/builtin/extensions/pie-ipc/index.js +270 -344
- package/dist/builtin/extensions/pie-proc/index.js +70 -7
- package/dist/builtin/extensions/plan-mode/index.js +6 -6
- package/dist/builtin/extensions/subagent/index.js +11 -9
- package/dist/builtin/extensions/todo/index.js +6 -6
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +1 -1
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +1 -1
- package/dist/chunks/{auth-storage-3EGM3VTK.js → auth-storage-RABPRJ6T.js} +3 -3
- package/dist/chunks/chunk-7KLWHWZD.js +164 -0
- package/dist/chunks/{chunk-I7PBXG5Q.js → chunk-7LTQLJJF.js} +9 -6
- package/dist/chunks/{chunk-XXGYUYXI.js → chunk-BPSCGGVF.js} +1 -1
- package/dist/chunks/{chunk-VHKMWOG3.js → chunk-EQOI6RZV.js} +5 -3
- package/dist/chunks/{chunk-B4N5LJMD.js → chunk-IPLMGAML.js} +1 -1
- package/dist/chunks/{chunk-GY47MKCJ.js → chunk-IZDNZW3S.js} +8 -8
- package/dist/chunks/{chunk-AKXEZH7K.js → chunk-OFLKAWI4.js} +0 -7
- package/dist/chunks/{chunk-6DNYGVZP.js → chunk-OV7SLSHR.js} +4 -2
- package/dist/chunks/{chunk-6JEYRAQM.js → chunk-R7VO46EK.js} +2 -2
- package/dist/chunks/{chunk-LZQXQOPJ.js → chunk-RZGYXAJU.js} +12 -1
- package/dist/chunks/{chunk-ILUHTKF3.js → chunk-UCKOXAME.js} +61 -11
- package/dist/chunks/{chunk-XMOWWL4B.js → chunk-XO3NM7BB.js} +3 -3
- package/dist/chunks/{chunk-N5B5IGJ6.js → chunk-YNTIOWCD.js} +5 -5
- package/dist/chunks/{config-74AUVDLT.js → config-HF2PDLN5.js} +8 -4
- package/dist/chunks/{manager-cli-4Z6RZ7F4.js → manager-cli-BYCF4RKN.js} +5 -3
- package/dist/chunks/{model-registry-NKE3BRSZ.js → model-registry-7FNIUYPF.js} +5 -5
- package/dist/chunks/{src-V2M7FLWY.js → src-A5YI46OD.js} +6 -6
- package/dist/chunks/{src-4EQ7PBEI.js → src-OA3TP6DS.js} +5 -5
- package/dist/chunks/{src-46R5ZFOU.js → src-OVWRBWKU.js} +4 -4
- package/dist/chunks/{src-BHIH4VLE.js → src-TF2RAGRU.js} +3 -3
- package/dist/chunks/{test-stream-FC6ZRENI.js → test-stream-7YZDGBPO.js} +3 -3
- package/dist/cli.js +231 -49
- package/package.json +2 -2
|
@@ -11,6 +11,14 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
11
11
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
12
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
13
|
});
|
|
14
|
+
var __esm = (fn, res, err) => function __init() {
|
|
15
|
+
if (err) throw err[0];
|
|
16
|
+
try {
|
|
17
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw err = [e], e;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
14
22
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
23
|
try {
|
|
16
24
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -38,10 +46,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
46
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
47
|
mod
|
|
40
48
|
));
|
|
49
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
41
50
|
|
|
42
51
|
export {
|
|
43
52
|
__require,
|
|
53
|
+
__esm,
|
|
44
54
|
__commonJS,
|
|
45
55
|
__export,
|
|
46
|
-
__toESM
|
|
56
|
+
__toESM,
|
|
57
|
+
__toCommonJS
|
|
47
58
|
};
|
|
@@ -1,13 +1,38 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__esm,
|
|
4
|
+
__export
|
|
5
|
+
} from "./chunk-RZGYXAJU.js";
|
|
2
6
|
|
|
3
7
|
// src/config.ts
|
|
8
|
+
var config_exports = {};
|
|
9
|
+
__export(config_exports, {
|
|
10
|
+
APP_NAME: () => APP_NAME,
|
|
11
|
+
CONFIG_DIR_NAME: () => CONFIG_DIR_NAME,
|
|
12
|
+
ENV_AGENT_DIR: () => ENV_AGENT_DIR,
|
|
13
|
+
VERSION: () => VERSION,
|
|
14
|
+
getAgentDir: () => getAgentDir,
|
|
15
|
+
getBuiltinDir: () => getBuiltinDir,
|
|
16
|
+
getConfigDir: () => getConfigDir,
|
|
17
|
+
getCustomThemesDir: () => getCustomThemesDir,
|
|
18
|
+
getDebugLogPath: () => getDebugLogPath,
|
|
19
|
+
getKeybindingsPath: () => getKeybindingsPath,
|
|
20
|
+
getLogsDir: () => getLogsDir,
|
|
21
|
+
getPackageDir: () => getPackageDir,
|
|
22
|
+
getPackageJsonPath: () => getPackageJsonPath,
|
|
23
|
+
getProjectSettingsPath: () => getProjectSettingsPath,
|
|
24
|
+
getRuntimeLogPath: () => getRuntimeLogPath,
|
|
25
|
+
getSessionsDir: () => getSessionsDir,
|
|
26
|
+
getSettingsPath: () => getSettingsPath,
|
|
27
|
+
getThemesDir: () => getThemesDir,
|
|
28
|
+
isBunRuntime: () => isBunRuntime,
|
|
29
|
+
migrateConfigFromAgentDir: () => migrateConfigFromAgentDir,
|
|
30
|
+
resolveSessionsDirOverride: () => resolveSessionsDirOverride
|
|
31
|
+
});
|
|
4
32
|
import { existsSync, mkdirSync, readFileSync, renameSync } from "fs";
|
|
5
33
|
import { homedir } from "os";
|
|
6
|
-
import { dirname, join } from "path";
|
|
34
|
+
import { dirname, isAbsolute, join } from "path";
|
|
7
35
|
import { fileURLToPath } from "url";
|
|
8
|
-
var __filename = fileURLToPath(import.meta.url);
|
|
9
|
-
var __dirname = dirname(__filename);
|
|
10
|
-
var isBunRuntime = !!process.versions.bun;
|
|
11
36
|
function getPackageDir() {
|
|
12
37
|
const envDir = process.env.PIE_PACKAGE_DIR;
|
|
13
38
|
if (envDir) {
|
|
@@ -40,11 +65,6 @@ function getBuiltinDir() {
|
|
|
40
65
|
function getPackageJsonPath() {
|
|
41
66
|
return join(getPackageDir(), "package.json");
|
|
42
67
|
}
|
|
43
|
-
var pkg = JSON.parse(readFileSync(getPackageJsonPath(), "utf-8"));
|
|
44
|
-
var APP_NAME = "pie";
|
|
45
|
-
var CONFIG_DIR_NAME = ".pie";
|
|
46
|
-
var VERSION = pkg.version;
|
|
47
|
-
var ENV_AGENT_DIR = "PIE_CODING_AGENT_DIR";
|
|
48
68
|
function getConfigDir() {
|
|
49
69
|
const envDir = process.env[ENV_AGENT_DIR];
|
|
50
70
|
if (envDir !== void 0 && envDir !== "") {
|
|
@@ -74,8 +94,22 @@ function getSettingsPath() {
|
|
|
74
94
|
function getProjectSettingsPath(cwd) {
|
|
75
95
|
return join(cwd, CONFIG_DIR_NAME, "settings.json");
|
|
76
96
|
}
|
|
97
|
+
function resolveSessionsDirOverride() {
|
|
98
|
+
const override = process.env.PIE_SESSIONS_DIR;
|
|
99
|
+
if (override !== void 0 && override !== "") {
|
|
100
|
+
if (override === "~") return join(homedir(), "sessions");
|
|
101
|
+
if (override.startsWith("~/")) return join(homedir(), override.slice(2));
|
|
102
|
+
if (!isAbsolute(override)) {
|
|
103
|
+
throw new Error(
|
|
104
|
+
`PIE_SESSIONS_DIR is relative ("${override}"); it must be an absolute path \u2014 a relative store would resolve differently across working directories`
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
return override;
|
|
108
|
+
}
|
|
109
|
+
return void 0;
|
|
110
|
+
}
|
|
77
111
|
function getSessionsDir() {
|
|
78
|
-
return join(getConfigDir(), "sessions");
|
|
112
|
+
return resolveSessionsDirOverride() ?? join(getConfigDir(), "sessions");
|
|
79
113
|
}
|
|
80
114
|
function getLogsDir() {
|
|
81
115
|
return join(getConfigDir(), "logs");
|
|
@@ -124,6 +158,19 @@ function migrateConfigFromAgentDir() {
|
|
|
124
158
|
}
|
|
125
159
|
}
|
|
126
160
|
}
|
|
161
|
+
var __filename, __dirname, isBunRuntime, pkg, APP_NAME, CONFIG_DIR_NAME, VERSION, ENV_AGENT_DIR;
|
|
162
|
+
var init_config = __esm({
|
|
163
|
+
"src/config.ts"() {
|
|
164
|
+
__filename = fileURLToPath(import.meta.url);
|
|
165
|
+
__dirname = dirname(__filename);
|
|
166
|
+
isBunRuntime = !!process.versions.bun;
|
|
167
|
+
pkg = JSON.parse(readFileSync(getPackageJsonPath(), "utf-8"));
|
|
168
|
+
APP_NAME = "pie";
|
|
169
|
+
CONFIG_DIR_NAME = ".pie";
|
|
170
|
+
VERSION = pkg.version;
|
|
171
|
+
ENV_AGENT_DIR = "PIE_CODING_AGENT_DIR";
|
|
172
|
+
}
|
|
173
|
+
});
|
|
127
174
|
|
|
128
175
|
export {
|
|
129
176
|
isBunRuntime,
|
|
@@ -141,9 +188,12 @@ export {
|
|
|
141
188
|
getKeybindingsPath,
|
|
142
189
|
getSettingsPath,
|
|
143
190
|
getProjectSettingsPath,
|
|
191
|
+
resolveSessionsDirOverride,
|
|
144
192
|
getSessionsDir,
|
|
145
193
|
getLogsDir,
|
|
146
194
|
getRuntimeLogPath,
|
|
147
195
|
getDebugLogPath,
|
|
148
|
-
migrateConfigFromAgentDir
|
|
196
|
+
migrateConfigFromAgentDir,
|
|
197
|
+
config_exports,
|
|
198
|
+
init_config
|
|
149
199
|
};
|
|
@@ -2,17 +2,17 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
createAgentOperationError,
|
|
4
4
|
getAgentFailureMetadata
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IPLMGAML.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSystemGateway,
|
|
8
8
|
detectPlatform,
|
|
9
9
|
getFileSystemGateway,
|
|
10
10
|
getPlatformConfig,
|
|
11
11
|
streamSimple
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7VO46EK.js";
|
|
13
13
|
import {
|
|
14
14
|
Type
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BPSCGGVF.js";
|
|
16
16
|
|
|
17
17
|
// ../../packages/agent-framework/src/skills/parser.ts
|
|
18
18
|
function parseFrontmatter(yaml) {
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
parseEntryIdSeq,
|
|
14
14
|
readAncestryPage,
|
|
15
15
|
requestInteraction
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XO3NM7BB.js";
|
|
17
17
|
import {
|
|
18
18
|
Agent,
|
|
19
19
|
getToolCallerIdentity
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IPLMGAML.js";
|
|
21
21
|
import {
|
|
22
22
|
AssistantMessageEventStream,
|
|
23
23
|
completeSimple,
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
getFileSystem,
|
|
26
26
|
hashText,
|
|
27
27
|
streamSimple
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-R7VO46EK.js";
|
|
29
29
|
import {
|
|
30
30
|
Type
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BPSCGGVF.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RZGYXAJU.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/shell-quote/quote.js
|
|
38
38
|
var require_quote = __commonJS({
|
|
@@ -18,10 +18,13 @@ import {
|
|
|
18
18
|
getSessionsDir,
|
|
19
19
|
getSettingsPath,
|
|
20
20
|
getThemesDir,
|
|
21
|
+
init_config,
|
|
21
22
|
isBunRuntime,
|
|
22
|
-
migrateConfigFromAgentDir
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
migrateConfigFromAgentDir,
|
|
24
|
+
resolveSessionsDirOverride
|
|
25
|
+
} from "./chunk-UCKOXAME.js";
|
|
26
|
+
import "./chunk-RZGYXAJU.js";
|
|
27
|
+
init_config();
|
|
25
28
|
export {
|
|
26
29
|
APP_NAME,
|
|
27
30
|
CONFIG_DIR_NAME,
|
|
@@ -42,5 +45,6 @@ export {
|
|
|
42
45
|
getSettingsPath,
|
|
43
46
|
getThemesDir,
|
|
44
47
|
isBunRuntime,
|
|
45
|
-
migrateConfigFromAgentDir
|
|
48
|
+
migrateConfigFromAgentDir,
|
|
49
|
+
resolveSessionsDirOverride
|
|
46
50
|
};
|
|
@@ -3,9 +3,10 @@ import {
|
|
|
3
3
|
readProcessCommandLine
|
|
4
4
|
} from "./chunk-X6LBWHK3.js";
|
|
5
5
|
import {
|
|
6
|
-
getConfigDir
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
getConfigDir,
|
|
7
|
+
init_config
|
|
8
|
+
} from "./chunk-UCKOXAME.js";
|
|
9
|
+
import "./chunk-RZGYXAJU.js";
|
|
9
10
|
|
|
10
11
|
// src/commands/manager-cli.ts
|
|
11
12
|
import { spawn, execFileSync } from "node:child_process";
|
|
@@ -13,6 +14,7 @@ import { createRequire } from "node:module";
|
|
|
13
14
|
import * as fs from "node:fs";
|
|
14
15
|
import * as os from "node:os";
|
|
15
16
|
import * as path from "node:path";
|
|
17
|
+
init_config();
|
|
16
18
|
var require_ = createRequire(import.meta.url);
|
|
17
19
|
var CRON_SECTION_MARKER = "## \u5B9A\u65F6\u4EFB\u52A1";
|
|
18
20
|
var CRON_SECTION = `
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
assertNoSecretSubstrings,
|
|
5
5
|
configuredRemoteCredentialValues,
|
|
6
6
|
loadResolvedModelsConfig
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-EQOI6RZV.js";
|
|
8
|
+
import "./chunk-UCKOXAME.js";
|
|
9
|
+
import "./chunk-R7VO46EK.js";
|
|
10
|
+
import "./chunk-BPSCGGVF.js";
|
|
11
|
+
import "./chunk-RZGYXAJU.js";
|
|
12
12
|
export {
|
|
13
13
|
ModelRegistry,
|
|
14
14
|
assertNoSecretSubstrings,
|
|
@@ -213,14 +213,14 @@ import {
|
|
|
213
213
|
understandFileWithModel,
|
|
214
214
|
validateTodos,
|
|
215
215
|
writeJournalNarrative
|
|
216
|
-
} from "./chunk-
|
|
217
|
-
import "./chunk-
|
|
218
|
-
import "./chunk-
|
|
216
|
+
} from "./chunk-YNTIOWCD.js";
|
|
217
|
+
import "./chunk-XO3NM7BB.js";
|
|
218
|
+
import "./chunk-IPLMGAML.js";
|
|
219
219
|
import {
|
|
220
220
|
hashText
|
|
221
|
-
} from "./chunk-
|
|
222
|
-
import "./chunk-
|
|
223
|
-
import "./chunk-
|
|
221
|
+
} from "./chunk-R7VO46EK.js";
|
|
222
|
+
import "./chunk-BPSCGGVF.js";
|
|
223
|
+
import "./chunk-RZGYXAJU.js";
|
|
224
224
|
export {
|
|
225
225
|
ANTONYM_PAIRS,
|
|
226
226
|
AskUserMultiParamsSchema,
|
|
@@ -142,11 +142,11 @@ import {
|
|
|
142
142
|
substituteArgs,
|
|
143
143
|
validateRetainedTailEntries,
|
|
144
144
|
verifyPreparedCompactionCommit
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
148
|
-
import "./chunk-
|
|
149
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-XO3NM7BB.js";
|
|
146
|
+
import "./chunk-IPLMGAML.js";
|
|
147
|
+
import "./chunk-R7VO46EK.js";
|
|
148
|
+
import "./chunk-BPSCGGVF.js";
|
|
149
|
+
import "./chunk-RZGYXAJU.js";
|
|
150
150
|
export {
|
|
151
151
|
AGENTS_CONTEXT_FILE_NAME,
|
|
152
152
|
AgentSessionController,
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
createToolCallerIdentity,
|
|
9
9
|
getAgentFailureMetadata,
|
|
10
10
|
getToolCallerIdentity
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-IPLMGAML.js";
|
|
12
|
+
import "./chunk-R7VO46EK.js";
|
|
13
|
+
import "./chunk-BPSCGGVF.js";
|
|
14
|
+
import "./chunk-RZGYXAJU.js";
|
|
15
15
|
export {
|
|
16
16
|
Agent,
|
|
17
17
|
agentLoop,
|
|
@@ -62,11 +62,11 @@ import {
|
|
|
62
62
|
unregisterModel,
|
|
63
63
|
validateToolArguments,
|
|
64
64
|
validateToolCall
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-R7VO46EK.js";
|
|
66
66
|
import {
|
|
67
67
|
Type
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-BPSCGGVF.js";
|
|
69
|
+
import "./chunk-RZGYXAJU.js";
|
|
70
70
|
export {
|
|
71
71
|
ANTHROPIC_PROMPT_CACHE_CAPABILITY,
|
|
72
72
|
AssistantMessageEventStream,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
EventStream
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-R7VO46EK.js";
|
|
5
|
+
import "./chunk-BPSCGGVF.js";
|
|
6
|
+
import "./chunk-RZGYXAJU.js";
|
|
7
7
|
|
|
8
8
|
// src/app/test-stream.ts
|
|
9
9
|
function parseSystemPromptExpectations(value) {
|