@cydm/pie 2.7.9 → 2.7.10
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 +3 -3
- package/dist/builtin/extensions/plan-mode/index.js +3 -3
- package/dist/builtin/extensions/subagent/index.js +4 -4
- package/dist/builtin/extensions/todo/index.js +3 -3
- package/dist/chunks/{chunk-SMGBZQI5.js → chunk-2B6VS2NH.js} +26 -15
- package/dist/chunks/{chunk-ABZOXNDK.js → chunk-5GUPRFNP.js} +2 -2
- package/dist/chunks/{chunk-AX5QEIKP.js → chunk-C4LXD56O.js} +3 -2
- package/dist/chunks/{chunk-5SP2H5QK.js → chunk-JO6EDWHP.js} +1 -1
- package/dist/chunks/{src-BQUDKBQ7.js → src-WFN4JWLE.js} +2 -2
- package/dist/chunks/{test-stream-A5KBYYZD.js → test-stream-GXZ7NT4H.js} +1 -1
- package/dist/cli.js +9 -9
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createAskUserCapability
|
|
4
|
-
} from "../../../chunks/chunk-
|
|
5
|
-
import "../../../chunks/chunk-
|
|
6
|
-
import "../../../chunks/chunk-
|
|
4
|
+
} from "../../../chunks/chunk-C4LXD56O.js";
|
|
5
|
+
import "../../../chunks/chunk-JO6EDWHP.js";
|
|
6
|
+
import "../../../chunks/chunk-2B6VS2NH.js";
|
|
7
7
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
8
8
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
9
9
|
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
extractPlanTodoItems,
|
|
7
7
|
markCompletedPlanSteps,
|
|
8
8
|
restoreExecutionState
|
|
9
|
-
} from "../../../chunks/chunk-
|
|
10
|
-
import "../../../chunks/chunk-
|
|
11
|
-
import "../../../chunks/chunk-
|
|
9
|
+
} from "../../../chunks/chunk-C4LXD56O.js";
|
|
10
|
+
import "../../../chunks/chunk-JO6EDWHP.js";
|
|
11
|
+
import "../../../chunks/chunk-2B6VS2NH.js";
|
|
12
12
|
import {
|
|
13
13
|
Type
|
|
14
14
|
} from "../../../chunks/chunk-XXGYUYXI.js";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
formatTransportLifecycle,
|
|
5
5
|
getConfigDir,
|
|
6
6
|
logTransportLifecycle
|
|
7
|
-
} from "../../../chunks/chunk-
|
|
7
|
+
} from "../../../chunks/chunk-5GUPRFNP.js";
|
|
8
8
|
import {
|
|
9
9
|
SUBAGENT_SESSION_RECORD_VERSION,
|
|
10
10
|
createPolicyEnforcedTools,
|
|
11
11
|
createSharedFileSystemTools,
|
|
12
12
|
createSubagentCapability
|
|
13
|
-
} from "../../../chunks/chunk-
|
|
14
|
-
import "../../../chunks/chunk-
|
|
15
|
-
import "../../../chunks/chunk-
|
|
13
|
+
} from "../../../chunks/chunk-C4LXD56O.js";
|
|
14
|
+
import "../../../chunks/chunk-JO6EDWHP.js";
|
|
15
|
+
import "../../../chunks/chunk-2B6VS2NH.js";
|
|
16
16
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
17
17
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
18
18
|
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
executeManageTodoList,
|
|
9
9
|
executionStateToTodos,
|
|
10
10
|
restoreExecutionState
|
|
11
|
-
} from "../../../chunks/chunk-
|
|
12
|
-
import "../../../chunks/chunk-
|
|
13
|
-
import "../../../chunks/chunk-
|
|
11
|
+
} from "../../../chunks/chunk-C4LXD56O.js";
|
|
12
|
+
import "../../../chunks/chunk-JO6EDWHP.js";
|
|
13
|
+
import "../../../chunks/chunk-2B6VS2NH.js";
|
|
14
14
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
15
15
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
16
16
|
|
|
@@ -3170,8 +3170,8 @@ var FileSystemGateway = class {
|
|
|
3170
3170
|
throw new Error(`Directory not found: ${source}`);
|
|
3171
3171
|
}
|
|
3172
3172
|
if (CS.System.IO.Directory.Exists(destination)) {
|
|
3173
|
-
const destinationFiles =
|
|
3174
|
-
const destinationDirs =
|
|
3173
|
+
const destinationFiles = csharpStringArray(CS.System.IO.Directory.GetFiles(destination));
|
|
3174
|
+
const destinationDirs = csharpStringArray(CS.System.IO.Directory.GetDirectories(destination));
|
|
3175
3175
|
const isEmpty = destinationFiles.length === 0 && destinationDirs.length === 0;
|
|
3176
3176
|
if (!isEmpty) {
|
|
3177
3177
|
throw new Error(`Move target already exists: ${destination}`);
|
|
@@ -3225,14 +3225,10 @@ var FileSystemGateway = class {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
const files = CS.System.IO.Directory.GetFiles(path);
|
|
3227
3227
|
const dirs = CS.System.IO.Directory.GetDirectories(path);
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
for (let i = 0; i < dirs.Length; i++) {
|
|
3233
|
-
result.push(this.basename(dirs[i]));
|
|
3234
|
-
}
|
|
3235
|
-
return result;
|
|
3228
|
+
return [
|
|
3229
|
+
...csharpStringArray(files).map((entry) => this.basename(entry)),
|
|
3230
|
+
...csharpStringArray(dirs).map((entry) => this.basename(entry))
|
|
3231
|
+
];
|
|
3236
3232
|
}
|
|
3237
3233
|
const fs = nodeRequire("fs");
|
|
3238
3234
|
if (!fs.existsSync(path)) {
|
|
@@ -3303,6 +3299,21 @@ var FileSystemGateway = class {
|
|
|
3303
3299
|
return this.config;
|
|
3304
3300
|
}
|
|
3305
3301
|
};
|
|
3302
|
+
function csharpStringArray(value) {
|
|
3303
|
+
if (Array.isArray(value)) {
|
|
3304
|
+
return value.map((entry) => String(entry ?? ""));
|
|
3305
|
+
}
|
|
3306
|
+
if (value && typeof value.Length === "number") {
|
|
3307
|
+
const array = value;
|
|
3308
|
+
const results = [];
|
|
3309
|
+
for (let i = 0; i < array.Length; i++) {
|
|
3310
|
+
const entry = typeof array.get_Item === "function" ? array.get_Item(i) : array[i];
|
|
3311
|
+
results.push(String(entry ?? ""));
|
|
3312
|
+
}
|
|
3313
|
+
return results;
|
|
3314
|
+
}
|
|
3315
|
+
return [];
|
|
3316
|
+
}
|
|
3306
3317
|
function movePuertsDirectoryContents(source, destination) {
|
|
3307
3318
|
const directory = CS.System.IO.Directory;
|
|
3308
3319
|
const file = CS.System.IO.File;
|
|
@@ -3317,16 +3328,16 @@ function movePuertsDirectoryContents(source, destination) {
|
|
|
3317
3328
|
);
|
|
3318
3329
|
}
|
|
3319
3330
|
directory.CreateDirectory(destination);
|
|
3320
|
-
for (const entry of
|
|
3331
|
+
for (const entry of csharpStringArray(directory.GetFiles(source))) {
|
|
3321
3332
|
const name = String(entry).replace(/\\/g, "/").split("/").pop();
|
|
3322
3333
|
file.Copy(String(entry), `${destination}/${name}`, true);
|
|
3323
3334
|
}
|
|
3324
|
-
for (const subdir of
|
|
3335
|
+
for (const subdir of csharpStringArray(directory.GetDirectories(source))) {
|
|
3325
3336
|
const name = String(subdir).replace(/\\/g, "/").split("/").pop();
|
|
3326
3337
|
if (isPuertsReparsePoint(String(subdir))) continue;
|
|
3327
3338
|
movePuertsDirectoryContents(String(subdir), `${destination}/${name}`);
|
|
3328
3339
|
}
|
|
3329
|
-
for (const entry of
|
|
3340
|
+
for (const entry of csharpStringArray(directory.GetFiles(source))) {
|
|
3330
3341
|
try {
|
|
3331
3342
|
file.Delete(String(entry));
|
|
3332
3343
|
} catch {
|
|
@@ -3382,8 +3393,8 @@ function deletePuertsDirectoryByEnumeration(path, recursive) {
|
|
|
3382
3393
|
`Refusing to delete '${path}' through a reparse point (symlink/junction); resolve the link or delete it directly`
|
|
3383
3394
|
);
|
|
3384
3395
|
}
|
|
3385
|
-
const files =
|
|
3386
|
-
const subdirs =
|
|
3396
|
+
const files = csharpStringArray(directory.GetFiles(path));
|
|
3397
|
+
const subdirs = csharpStringArray(directory.GetDirectories(path));
|
|
3387
3398
|
if (!recursive) {
|
|
3388
3399
|
if (files.length > 0 || subdirs.length > 0) {
|
|
3389
3400
|
throw new Error(`Directory not empty: ${path}`);
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
defaultShellKindForPlatform,
|
|
8
8
|
interpretShellExit,
|
|
9
9
|
requestInteraction
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C4LXD56O.js";
|
|
11
11
|
import {
|
|
12
12
|
getLogger
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2B6VS2NH.js";
|
|
14
14
|
import {
|
|
15
15
|
Type
|
|
16
16
|
} from "./chunk-XXGYUYXI.js";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
Agent,
|
|
4
4
|
getToolCallerIdentity
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JO6EDWHP.js";
|
|
6
6
|
import {
|
|
7
7
|
AssistantMessageEventStream,
|
|
8
8
|
FileSystemGateway,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getPlatformConfig,
|
|
13
13
|
hashText,
|
|
14
14
|
streamSimple
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2B6VS2NH.js";
|
|
16
16
|
import {
|
|
17
17
|
Type
|
|
18
18
|
} from "./chunk-XXGYUYXI.js";
|
|
@@ -2886,6 +2886,7 @@ var FileSessionStore = class {
|
|
|
2886
2886
|
const heads = [];
|
|
2887
2887
|
for (const name of this.gateway.readdir(this.sessionsDir)) {
|
|
2888
2888
|
if (name.startsWith(STAGING_SESSION_PREFIX)) continue;
|
|
2889
|
+
if (!name.trim()) continue;
|
|
2889
2890
|
const dirPath = this.gateway.join(this.sessionsDir, name);
|
|
2890
2891
|
if (sessionDirIsSymlink(dirPath)) {
|
|
2891
2892
|
console.warn(`[FileSessionStore] Skipping session directory that is a symbolic link: ${dirPath}`);
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
bindToolCallerIdentity,
|
|
7
7
|
createToolCallerIdentity,
|
|
8
8
|
getToolCallerIdentity
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-JO6EDWHP.js";
|
|
10
|
+
import "./chunk-2B6VS2NH.js";
|
|
11
11
|
import "./chunk-XXGYUYXI.js";
|
|
12
12
|
import "./chunk-LZQXQOPJ.js";
|
|
13
13
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
EventStream
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2B6VS2NH.js";
|
|
5
5
|
import "./chunk-XXGYUYXI.js";
|
|
6
6
|
import "./chunk-LZQXQOPJ.js";
|
|
7
7
|
|
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
logTransportLifecycle,
|
|
24
24
|
migrateConfigFromAgentDir,
|
|
25
25
|
truncateHeadTail
|
|
26
|
-
} from "./chunks/chunk-
|
|
26
|
+
} from "./chunks/chunk-5GUPRFNP.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveCliProjectRoot
|
|
29
29
|
} from "./chunks/chunk-WLFOBECN.js";
|
|
@@ -88,8 +88,8 @@ import {
|
|
|
88
88
|
shouldPreserveExecutionStateForUserText,
|
|
89
89
|
supersedeExecutionState,
|
|
90
90
|
verifyPreparedCompactionCommit
|
|
91
|
-
} from "./chunks/chunk-
|
|
92
|
-
import "./chunks/chunk-
|
|
91
|
+
} from "./chunks/chunk-C4LXD56O.js";
|
|
92
|
+
import "./chunks/chunk-JO6EDWHP.js";
|
|
93
93
|
import {
|
|
94
94
|
Deref,
|
|
95
95
|
EMPTY_ASSISTANT_CONTENT_ERROR,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
sortToolModelCandidatesByCapability,
|
|
115
115
|
streamSimple,
|
|
116
116
|
type_exports
|
|
117
|
-
} from "./chunks/chunk-
|
|
117
|
+
} from "./chunks/chunk-2B6VS2NH.js";
|
|
118
118
|
import {
|
|
119
119
|
IsArray,
|
|
120
120
|
IsBigInt,
|
|
@@ -82332,7 +82332,7 @@ var InteractiveMode = class {
|
|
|
82332
82332
|
async init() {
|
|
82333
82333
|
const activeSession = this.sessionManager.getActiveSession();
|
|
82334
82334
|
this.thinkingLevel = resolveInitialThinkingLevel({ session: activeSession, settingsManager: this.options.settingsManager });
|
|
82335
|
-
const { Agent } = await import("./chunks/src-
|
|
82335
|
+
const { Agent } = await import("./chunks/src-WFN4JWLE.js");
|
|
82336
82336
|
this.agent = new Agent({
|
|
82337
82337
|
initialState: {
|
|
82338
82338
|
systemPrompt: this.buildSystemPrompt(),
|
|
@@ -83210,7 +83210,7 @@ async function runPrintMode(params) {
|
|
|
83210
83210
|
`);
|
|
83211
83211
|
console.log("Assistant: ");
|
|
83212
83212
|
}
|
|
83213
|
-
const { Agent: AgentClass } = await import("./chunks/src-
|
|
83213
|
+
const { Agent: AgentClass } = await import("./chunks/src-WFN4JWLE.js");
|
|
83214
83214
|
let agent;
|
|
83215
83215
|
const printModeExtensions = await loadPrintModeExtensions({
|
|
83216
83216
|
cwd: runtime.cwd,
|
|
@@ -84099,7 +84099,7 @@ async function runJsonEventsMode(params) {
|
|
|
84099
84099
|
return;
|
|
84100
84100
|
}
|
|
84101
84101
|
const parent = agent;
|
|
84102
|
-
const { Agent: AgentClass } = await import("./chunks/src-
|
|
84102
|
+
const { Agent: AgentClass } = await import("./chunks/src-WFN4JWLE.js");
|
|
84103
84103
|
const sideAgent = new AgentClass({
|
|
84104
84104
|
initialState: {
|
|
84105
84105
|
systemPrompt: parent.state.systemPrompt,
|
|
@@ -84459,7 +84459,7 @@ async function runJsonEventsMode(params) {
|
|
|
84459
84459
|
if (runtime.initialModel.unconfigured || controller) {
|
|
84460
84460
|
return;
|
|
84461
84461
|
}
|
|
84462
|
-
const { Agent: AgentClass } = await import("./chunks/src-
|
|
84462
|
+
const { Agent: AgentClass } = await import("./chunks/src-WFN4JWLE.js");
|
|
84463
84463
|
if (runtimeClosing) return;
|
|
84464
84464
|
const jsonModeExtensions = await loadJsonModeExtensions({ runtime, getAgent: () => agent });
|
|
84465
84465
|
if (runtimeClosing) {
|
|
@@ -85121,7 +85121,7 @@ async function runWithJsonEventsConsoleIsolation(fn) {
|
|
|
85121
85121
|
}
|
|
85122
85122
|
async function createCliTestStreamFnFromEnv() {
|
|
85123
85123
|
if (!process.env.PIE_TEST_MOCK_STREAM_SEQUENCE) return void 0;
|
|
85124
|
-
return (await import("./chunks/test-stream-
|
|
85124
|
+
return (await import("./chunks/test-stream-GXZ7NT4H.js")).createTestStreamFnFromSequenceEnv();
|
|
85125
85125
|
}
|
|
85126
85126
|
function resolveJsonEventsDetailFlag() {
|
|
85127
85127
|
for (let index = 0; index < process.argv.length; index += 1) {
|