@namzu/cli 50.3.0 → 50.3.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/CHANGELOG.md +6 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-2T35QG5N.js → acp-GJQH42RG.js} +6 -6
- package/dist/chunks/{agent-2667K2DP.js → agent-DM74JBNA.js} +2 -2
- package/dist/chunks/{agent-session-5KMMWJTY.js → agent-session-MCYT4656.js} +3 -3
- package/dist/chunks/{bin-main-N76J3LXV.js → bin-main-EFP5SLD4.js} +3 -3
- package/dist/chunks/{chat-2JCXYCK4.js → chat-JHGNJACB.js} +2 -2
- package/dist/chunks/{chunk-GMCZYW6K.js → chunk-572QEPMC.js} +2 -2
- package/dist/chunks/{chunk-MZI3ULZR.js → chunk-C2Z7OQYW.js} +2 -2
- package/dist/chunks/{chunk-7OYYEJXX.js → chunk-EEN7FPSL.js} +2 -2
- package/dist/chunks/{chunk-7DCFWJDK.js → chunk-FBQ7SPP2.js} +2 -2
- package/dist/chunks/{chunk-WHZO5JAN.js → chunk-FKTZTO3B.js} +14 -14
- package/dist/chunks/{chunk-ULRP7FUP.js → chunk-H6NLFR25.js} +2 -2
- package/dist/chunks/{chunk-UDA4YOUW.js → chunk-HK7GUHPD.js} +86 -5
- package/dist/chunks/chunk-HK7GUHPD.js.map +6 -0
- package/dist/chunks/{chunk-4XONZ3IH.js → chunk-LML7JKQR.js} +2 -2
- package/dist/chunks/{chunk-5ISSWZYV.js → chunk-QKPM4YWZ.js} +2 -2
- package/dist/chunks/{chunk-I7DZMDL4.js → chunk-R5SZRIJ4.js} +2 -2
- package/dist/chunks/{chunk-B72UXUIV.js → chunk-R5W3XDG5.js} +3 -3
- package/dist/chunks/{chunk-YEDLKZJU.js → chunk-RJTLS6RP.js} +2 -2
- package/dist/chunks/{chunk-2WSCH27F.js → chunk-VWLPYZM7.js} +3 -3
- package/dist/chunks/{chunk-TKXFM6UF.js → chunk-XN7X4A7F.js} +2 -2
- package/dist/chunks/{doctor-J74VP3YF.js → doctor-7VGHHJPO.js} +6 -6
- package/dist/chunks/{drain-43YQMN3N.js → drain-XXZ2WGI7.js} +2 -2
- package/dist/chunks/{exec-3OL72UXM.js → exec-3SWUDHXF.js} +3 -3
- package/dist/chunks/{host-queries-PXLHY5OD.js → host-queries-U6KGTEF7.js} +2 -2
- package/dist/chunks/{learn-NNNC4PEC.js → learn-Y4THSWLS.js} +2 -2
- package/dist/chunks/{learn-builtin-BDKIORNW.js → learn-builtin-YLECAT67.js} +3 -3
- package/dist/chunks/{lifecycle-6UXAIU2W.js → lifecycle-ZUYCZRMU.js} +3 -3
- package/dist/chunks/{live-R457RDVD.js → live-R7UZIHRU.js} +5 -5
- package/dist/chunks/{message-command-HLV22I75.js → message-command-ALRNDWDM.js} +5 -5
- package/dist/chunks/{pal-F6UND6OQ.js → pal-Z72EQIYV.js} +3 -3
- package/dist/chunks/{schedule-3QGQRJB7.js → schedule-YZ5QHVUE.js} +3 -3
- package/dist/chunks/{service-MI36D5ZK.js → service-WE5GLBMV.js} +2 -2
- package/dist/chunks/{start-check-567HOC4A.js → start-check-EBQJY4RL.js} +2 -2
- package/dist/chunks/{tui-W7I4CLSF.js → tui-JPQMFVPY.js} +15 -15
- package/dist/chunks/tui-JPQMFVPY.js.map +6 -0
- package/dist/chunks/{upgrade-APJTDSEG.js → upgrade-XR3ZBXRQ.js} +3 -3
- package/dist/index.js +6 -6
- package/dist/integrations/decision/setup.d.ts +4 -1
- package/dist/integrations/decision/setup.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/chunks/chunk-UDA4YOUW.js.map +0 -6
- package/dist/chunks/tui-W7I4CLSF.js.map +0 -6
- /package/dist/chunks/{acp-2T35QG5N.js.map → acp-GJQH42RG.js.map} +0 -0
- /package/dist/chunks/{agent-2667K2DP.js.map → agent-DM74JBNA.js.map} +0 -0
- /package/dist/chunks/{agent-session-5KMMWJTY.js.map → agent-session-MCYT4656.js.map} +0 -0
- /package/dist/chunks/{bin-main-N76J3LXV.js.map → bin-main-EFP5SLD4.js.map} +0 -0
- /package/dist/chunks/{chat-2JCXYCK4.js.map → chat-JHGNJACB.js.map} +0 -0
- /package/dist/chunks/{chunk-GMCZYW6K.js.map → chunk-572QEPMC.js.map} +0 -0
- /package/dist/chunks/{chunk-MZI3ULZR.js.map → chunk-C2Z7OQYW.js.map} +0 -0
- /package/dist/chunks/{chunk-7OYYEJXX.js.map → chunk-EEN7FPSL.js.map} +0 -0
- /package/dist/chunks/{chunk-7DCFWJDK.js.map → chunk-FBQ7SPP2.js.map} +0 -0
- /package/dist/chunks/{chunk-WHZO5JAN.js.map → chunk-FKTZTO3B.js.map} +0 -0
- /package/dist/chunks/{chunk-ULRP7FUP.js.map → chunk-H6NLFR25.js.map} +0 -0
- /package/dist/chunks/{chunk-4XONZ3IH.js.map → chunk-LML7JKQR.js.map} +0 -0
- /package/dist/chunks/{chunk-5ISSWZYV.js.map → chunk-QKPM4YWZ.js.map} +0 -0
- /package/dist/chunks/{chunk-I7DZMDL4.js.map → chunk-R5SZRIJ4.js.map} +0 -0
- /package/dist/chunks/{chunk-B72UXUIV.js.map → chunk-R5W3XDG5.js.map} +0 -0
- /package/dist/chunks/{chunk-YEDLKZJU.js.map → chunk-RJTLS6RP.js.map} +0 -0
- /package/dist/chunks/{chunk-2WSCH27F.js.map → chunk-VWLPYZM7.js.map} +0 -0
- /package/dist/chunks/{chunk-TKXFM6UF.js.map → chunk-XN7X4A7F.js.map} +0 -0
- /package/dist/chunks/{doctor-J74VP3YF.js.map → doctor-7VGHHJPO.js.map} +0 -0
- /package/dist/chunks/{drain-43YQMN3N.js.map → drain-XXZ2WGI7.js.map} +0 -0
- /package/dist/chunks/{exec-3OL72UXM.js.map → exec-3SWUDHXF.js.map} +0 -0
- /package/dist/chunks/{host-queries-PXLHY5OD.js.map → host-queries-U6KGTEF7.js.map} +0 -0
- /package/dist/chunks/{learn-NNNC4PEC.js.map → learn-Y4THSWLS.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-BDKIORNW.js.map → learn-builtin-YLECAT67.js.map} +0 -0
- /package/dist/chunks/{lifecycle-6UXAIU2W.js.map → lifecycle-ZUYCZRMU.js.map} +0 -0
- /package/dist/chunks/{live-R457RDVD.js.map → live-R7UZIHRU.js.map} +0 -0
- /package/dist/chunks/{message-command-HLV22I75.js.map → message-command-ALRNDWDM.js.map} +0 -0
- /package/dist/chunks/{pal-F6UND6OQ.js.map → pal-Z72EQIYV.js.map} +0 -0
- /package/dist/chunks/{schedule-3QGQRJB7.js.map → schedule-YZ5QHVUE.js.map} +0 -0
- /package/dist/chunks/{service-MI36D5ZK.js.map → service-WE5GLBMV.js.map} +0 -0
- /package/dist/chunks/{start-check-567HOC4A.js.map → start-check-EBQJY4RL.js.map} +0 -0
- /package/dist/chunks/{upgrade-APJTDSEG.js.map → upgrade-XR3ZBXRQ.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @namzu/cli
|
|
2
2
|
|
|
3
|
+
## 50.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cfe2f22: A decision model that answered 400 on its connection test (for example `questions.q.criteria: expected object, received string`) now connects, and decision points that pass guidance (routing, memory, notifications, skills) work on it. A yes/no question's guidance is now sent in the object form the services publish; a model that still refuses it is asked once more with the guidance written into the question, and Namzu remembers that for the session. A model that refuses both reads "the model does not work with Namzu's questions" followed by one line of path and message instead of the raw error. `@namzu/decision` is private and ships inside this package, so only `@namzu/cli` is named.
|
|
8
|
+
|
|
3
9
|
## 50.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/bin.js
CHANGED
|
@@ -39,6 +39,6 @@ __name(suppressSqliteExperimentalWarning, "suppressSqliteExperimentalWarning");
|
|
|
39
39
|
suppressSqliteExperimentalWarning();
|
|
40
40
|
|
|
41
41
|
// src/bin.ts
|
|
42
|
-
var { main } = await import("./chunks/bin-main-
|
|
42
|
+
var { main } = await import("./chunks/bin-main-EFP5SLD4.js");
|
|
43
43
|
await main(fileURLToPath(new URL("./", import.meta.url).href + "bin.js"));
|
|
44
44
|
//# sourceMappingURL=bin.js.map
|
|
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
dispatchCliPalMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VWLPYZM7.js";
|
|
6
6
|
import {
|
|
7
7
|
readUserMcpServers,
|
|
8
8
|
summarizeUserMcpServer
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
outcomeLine,
|
|
17
17
|
runCommand,
|
|
18
18
|
withKeyNote
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-C2Z7OQYW.js";
|
|
20
|
+
import "./chunk-572QEPMC.js";
|
|
21
21
|
import "./chunk-JETLWXUE.js";
|
|
22
22
|
import {
|
|
23
23
|
deleteUserConfigValue,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
} from "./chunk-S5HIHXZO.js";
|
|
47
47
|
import {
|
|
48
48
|
palSessionEnvironment
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RJTLS6RP.js";
|
|
50
50
|
import {
|
|
51
51
|
cliPalActivitySubscriptionPolicy,
|
|
52
52
|
cliPalActivitySubscriptionStore,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
sessionLogCheckpointView,
|
|
70
70
|
validateComposerSendSettings,
|
|
71
71
|
verifyCredential
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-HK7GUHPD.js";
|
|
73
73
|
import "./chunk-VZD5OAVF.js";
|
|
74
74
|
import "./chunk-G3R4GLH5.js";
|
|
75
75
|
import "./chunk-P2CH7AHO.js";
|
|
@@ -9111,4 +9111,4 @@ export {
|
|
|
9111
9111
|
resolveAcpSession,
|
|
9112
9112
|
runAcpCommand
|
|
9113
9113
|
};
|
|
9114
|
-
//# sourceMappingURL=acp-
|
|
9114
|
+
//# sourceMappingURL=acp-GJQH42RG.js.map
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
verifyCredential,
|
|
31
31
|
viewToLines,
|
|
32
32
|
viewToSummary
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HK7GUHPD.js";
|
|
34
34
|
import "./chunk-VZD5OAVF.js";
|
|
35
35
|
import "./chunk-G3R4GLH5.js";
|
|
36
36
|
import "./chunk-P2CH7AHO.js";
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
viewToLines,
|
|
118
118
|
viewToSummary
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=agent-
|
|
120
|
+
//# sourceMappingURL=agent-DM74JBNA.js.map
|
|
@@ -3,10 +3,10 @@ const require = __namzuCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
createPalAgentSession,
|
|
5
5
|
palSessionEnvironment
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RJTLS6RP.js";
|
|
7
7
|
import "./chunk-JNPUGWLC.js";
|
|
8
8
|
import "./chunk-HHZYPDYM.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-HK7GUHPD.js";
|
|
10
10
|
import "./chunk-VZD5OAVF.js";
|
|
11
11
|
import "./chunk-G3R4GLH5.js";
|
|
12
12
|
import "./chunk-P2CH7AHO.js";
|
|
@@ -66,4 +66,4 @@ export {
|
|
|
66
66
|
createPalAgentSession,
|
|
67
67
|
palSessionEnvironment
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=agent-session-
|
|
69
|
+
//# sourceMappingURL=agent-session-MCYT4656.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-R66H2G5R.js";
|
|
7
7
|
import {
|
|
8
8
|
runCli
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FKTZTO3B.js";
|
|
10
10
|
import "./chunk-MZP6SH3M.js";
|
|
11
11
|
import "./chunk-PCUMISO3.js";
|
|
12
12
|
import "./chunk-CHIEVVQ2.js";
|
|
@@ -126,7 +126,7 @@ async function plainFailure(err) {
|
|
|
126
126
|
__name(plainFailure, "plainFailure");
|
|
127
127
|
function main(entrypoint) {
|
|
128
128
|
if (process.argv[2] === "--start-check") {
|
|
129
|
-
return import("./start-check-
|
|
129
|
+
return import("./start-check-EBQJY4RL.js").then((check) => check.runStartCheck()).then(
|
|
130
130
|
(code) => process.exit(code),
|
|
131
131
|
() => process.exit(1)
|
|
132
132
|
);
|
|
@@ -165,4 +165,4 @@ __name(main, "main");
|
|
|
165
165
|
export {
|
|
166
166
|
main
|
|
167
167
|
};
|
|
168
|
-
//# sourceMappingURL=bin-main-
|
|
168
|
+
//# sourceMappingURL=bin-main-EFP5SLD4.js.map
|
|
@@ -81,7 +81,7 @@ async function runPalChat(ctx, palId, args, options = {}) {
|
|
|
81
81
|
...ctx.config.composerTriggers ? { composerTriggers: ctx.config.composerTriggers } : {},
|
|
82
82
|
...ctx.config.statusLine ? { statusLine: ctx.config.statusLine } : {}
|
|
83
83
|
};
|
|
84
|
-
const { launchTui } = await import("./tui-
|
|
84
|
+
const { launchTui } = await import("./tui-JPQMFVPY.js");
|
|
85
85
|
await launchTui(tui, options);
|
|
86
86
|
} catch (error) {
|
|
87
87
|
ctx.formatter.error({ message: error instanceof Error ? error.message : String(error) });
|
|
@@ -102,4 +102,4 @@ __name(runPalChat, "runPalChat");
|
|
|
102
102
|
export {
|
|
103
103
|
runPalChat
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chat-
|
|
105
|
+
//# sourceMappingURL=chat-JHGNJACB.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-S5HIHXZO.js";
|
|
6
6
|
import {
|
|
7
7
|
palSessionEnvironment
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RJTLS6RP.js";
|
|
9
9
|
import {
|
|
10
10
|
palConversationBinding
|
|
11
11
|
} from "./chunk-HHZYPDYM.js";
|
|
@@ -70,4 +70,4 @@ export {
|
|
|
70
70
|
tuiPalEnvironment,
|
|
71
71
|
tuiPalWorkEnvironment
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-572QEPMC.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
describeHistoryRepairNotice,
|
|
10
10
|
describeProviderFallbackNotice,
|
|
11
11
|
visibleProjectInstructionPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HK7GUHPD.js";
|
|
13
13
|
import {
|
|
14
14
|
terminalDisplayText
|
|
15
15
|
} from "./chunk-IYUW2RAA.js";
|
|
@@ -911,4 +911,4 @@ export {
|
|
|
911
911
|
withKeyNote,
|
|
912
912
|
rawDetail
|
|
913
913
|
};
|
|
914
|
-
//# sourceMappingURL=chunk-
|
|
914
|
+
//# sourceMappingURL=chunk-C2Z7OQYW.js.map
|
|
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
START_CHECK_FLAG
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R5SZRIJ4.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-76FLAFCG.js";
|
|
@@ -1179,4 +1179,4 @@ export {
|
|
|
1179
1179
|
realRoot,
|
|
1180
1180
|
resolveUpdatePolicy
|
|
1181
1181
|
};
|
|
1182
|
-
//# sourceMappingURL=chunk-
|
|
1182
|
+
//# sourceMappingURL=chunk-EEN7FPSL.js.map
|
|
@@ -348,7 +348,7 @@ async function runLearningCommand({ ctx, rawArgs }) {
|
|
|
348
348
|
ctx.formatter.error({ message: misuse });
|
|
349
349
|
return EXIT_USAGE;
|
|
350
350
|
}
|
|
351
|
-
const { learnNow, listLearned, undoLearned } = await import("./learn-builtin-
|
|
351
|
+
const { learnNow, listLearned, undoLearned } = await import("./learn-builtin-YLECAT67.js");
|
|
352
352
|
if (flags.list) return listLearned(ctx, target.cwd);
|
|
353
353
|
if (flags.undo !== void 0)
|
|
354
354
|
return undoLearned(ctx, target.cwd, typeof flags.undo === "string" ? flags.undo : void 0);
|
|
@@ -553,4 +553,4 @@ export {
|
|
|
553
553
|
learningSummary,
|
|
554
554
|
runLearningCommand
|
|
555
555
|
};
|
|
556
|
-
//# sourceMappingURL=chunk-
|
|
556
|
+
//# sourceMappingURL=chunk-FBQ7SPP2.js.map
|
|
@@ -160,7 +160,7 @@ var acpCommand = lazyCommand(
|
|
|
160
160
|
description: "Speak the agent-client protocol over this process\u2019s stdio",
|
|
161
161
|
passThrough: true
|
|
162
162
|
},
|
|
163
|
-
async () => (await import("./acp-
|
|
163
|
+
async () => (await import("./acp-GJQH42RG.js")).acpCommand
|
|
164
164
|
);
|
|
165
165
|
var computerCommand = lazyCommand(
|
|
166
166
|
{
|
|
@@ -202,7 +202,7 @@ var doctorCommand = lazyCommand(
|
|
|
202
202
|
description: "Run health checks against the local Namzu environment",
|
|
203
203
|
passThrough: true
|
|
204
204
|
},
|
|
205
|
-
async () => (await import("./doctor-
|
|
205
|
+
async () => (await import("./doctor-7VGHHJPO.js")).doctorCommand
|
|
206
206
|
);
|
|
207
207
|
var execCommand = lazyCommand(
|
|
208
208
|
{
|
|
@@ -211,7 +211,7 @@ var execCommand = lazyCommand(
|
|
|
211
211
|
description: "Run a single prompt headlessly: print the reply, or stream events with --json",
|
|
212
212
|
passThrough: true
|
|
213
213
|
},
|
|
214
|
-
async () => (await import("./exec-
|
|
214
|
+
async () => (await import("./exec-3SWUDHXF.js")).execCommand
|
|
215
215
|
);
|
|
216
216
|
var learnCommand = lazyCommand(
|
|
217
217
|
{
|
|
@@ -219,7 +219,7 @@ var learnCommand = lazyCommand(
|
|
|
219
219
|
description: "Learn from what conversations kept, now; list or undo what was learned",
|
|
220
220
|
passThrough: true
|
|
221
221
|
},
|
|
222
|
-
async () => (await import("./learn-
|
|
222
|
+
async () => (await import("./learn-Y4THSWLS.js")).learnCommand
|
|
223
223
|
);
|
|
224
224
|
var learningCommand = lazyCommand(
|
|
225
225
|
{
|
|
@@ -227,7 +227,7 @@ var learningCommand = lazyCommand(
|
|
|
227
227
|
description: "Inspect learning experiments and the observations they start from",
|
|
228
228
|
passThrough: true
|
|
229
229
|
},
|
|
230
|
-
async () => (await import("./learn-
|
|
230
|
+
async () => (await import("./learn-Y4THSWLS.js")).learningCommand
|
|
231
231
|
);
|
|
232
232
|
var loginCommand = lazyCommand(
|
|
233
233
|
{
|
|
@@ -255,7 +255,7 @@ var drainCommand = lazyCommand(
|
|
|
255
255
|
description: "Continue a turn another process left behind (one pass, then exit)",
|
|
256
256
|
passThrough: true
|
|
257
257
|
},
|
|
258
|
-
async () => (await import("./drain-
|
|
258
|
+
async () => (await import("./drain-XXZ2WGI7.js")).drainCommand
|
|
259
259
|
);
|
|
260
260
|
var evalCommand = lazyCommand(
|
|
261
261
|
{ name: "eval", description: "Run eval suites and set an exit code", passThrough: true },
|
|
@@ -267,7 +267,7 @@ var historyCommand = lazyCommand(
|
|
|
267
267
|
description: "Print a session's persisted messages as JSON (for host UIs)",
|
|
268
268
|
passThrough: true
|
|
269
269
|
},
|
|
270
|
-
async () => (await import("./host-queries-
|
|
270
|
+
async () => (await import("./host-queries-U6KGTEF7.js")).historyCommand
|
|
271
271
|
);
|
|
272
272
|
var skillsCommand = lazyCommand(
|
|
273
273
|
{
|
|
@@ -283,7 +283,7 @@ var skillsJSONCommand = lazyCommand(
|
|
|
283
283
|
description: "Print discovered skills as JSON (for host UIs)",
|
|
284
284
|
passThrough: true
|
|
285
285
|
},
|
|
286
|
-
async () => (await import("./host-queries-
|
|
286
|
+
async () => (await import("./host-queries-U6KGTEF7.js")).skillsJSONCommand
|
|
287
287
|
);
|
|
288
288
|
var providersJSONCommand = lazyCommand(
|
|
289
289
|
{
|
|
@@ -291,7 +291,7 @@ var providersJSONCommand = lazyCommand(
|
|
|
291
291
|
description: "Print providers + per-provider models as JSON (for host UIs)",
|
|
292
292
|
passThrough: true
|
|
293
293
|
},
|
|
294
|
-
async () => (await import("./host-queries-
|
|
294
|
+
async () => (await import("./host-queries-U6KGTEF7.js")).providersJSONCommand
|
|
295
295
|
);
|
|
296
296
|
var upgradeCommand = lazyCommand(
|
|
297
297
|
{
|
|
@@ -299,7 +299,7 @@ var upgradeCommand = lazyCommand(
|
|
|
299
299
|
description: "Update the active global Namzu installation",
|
|
300
300
|
passThrough: true
|
|
301
301
|
},
|
|
302
|
-
async () => (await import("./upgrade-
|
|
302
|
+
async () => (await import("./upgrade-XR3ZBXRQ.js")).upgradeCommand
|
|
303
303
|
);
|
|
304
304
|
var serveCommand = lazyCommand(
|
|
305
305
|
{
|
|
@@ -322,7 +322,7 @@ var scheduleCommand = lazyCommand(
|
|
|
322
322
|
description: "Scheduled jobs that run while namzu is closed, and the service that runs them",
|
|
323
323
|
passThrough: true
|
|
324
324
|
},
|
|
325
|
-
async () => (await import("./schedule-
|
|
325
|
+
async () => (await import("./schedule-YZ5QHVUE.js")).scheduleCommand
|
|
326
326
|
);
|
|
327
327
|
var browserCommand = lazyCommand(
|
|
328
328
|
{
|
|
@@ -347,7 +347,7 @@ function createLazyPalCommand(resumeCommand) {
|
|
|
347
347
|
description: "Create and operate persistent Pals with their own local virtual computers",
|
|
348
348
|
passThrough: true
|
|
349
349
|
},
|
|
350
|
-
async () => (await import("./pal-
|
|
350
|
+
async () => (await import("./pal-Z72EQIYV.js")).createPalCommand(resumeCommand)
|
|
351
351
|
);
|
|
352
352
|
}
|
|
353
353
|
__name(createLazyPalCommand, "createLazyPalCommand");
|
|
@@ -979,7 +979,7 @@ async function runCli(opts) {
|
|
|
979
979
|
tuiCtx,
|
|
980
980
|
(cwd) => buildTuiContext(resolveTrustedProjectContext(commandCtx, cwd), cwd)
|
|
981
981
|
);
|
|
982
|
-
const { launchTui } = await import("./tui-
|
|
982
|
+
const { launchTui } = await import("./tui-JPQMFVPY.js");
|
|
983
983
|
const resumeCommand = launchOpts.outputSchema ? [
|
|
984
984
|
...opts.resumeCommand ?? ["namzu"],
|
|
985
985
|
"--output-schema",
|
|
@@ -1121,4 +1121,4 @@ export {
|
|
|
1121
1121
|
registerAll,
|
|
1122
1122
|
runCli
|
|
1123
1123
|
};
|
|
1124
|
-
//# sourceMappingURL=chunk-
|
|
1124
|
+
//# sourceMappingURL=chunk-FKTZTO3B.js.map
|
|
@@ -3,7 +3,7 @@ const require = __namzuCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
buildDoctorRegistry,
|
|
5
5
|
runDoctor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R5W3XDG5.js";
|
|
7
7
|
import {
|
|
8
8
|
CLI_VERSION
|
|
9
9
|
} from "./chunk-HE7WUOX2.js";
|
|
@@ -253,4 +253,4 @@ export {
|
|
|
253
253
|
runDoctorCommand,
|
|
254
254
|
doctorCommand
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-H6NLFR25.js.map
|
|
@@ -5570,7 +5570,8 @@ async function postDecision(post) {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
if (!res.ok) {
|
|
5572
5572
|
const err = isRecord(json) && isRecord(json.error) ? json.error : {};
|
|
5573
|
-
|
|
5573
|
+
const issueBody = Array.isArray(json) || isRecord(json) && Array.isArray(json.issues);
|
|
5574
|
+
throw new DecisionError(typeof err.message === "string" ? err.message : issueBody ? JSON.stringify(json) : `Decision request failed (${res.status})`, res.status, typeof err.code === "string" ? err.code : void 0);
|
|
5574
5575
|
}
|
|
5575
5576
|
const answers = isRecord(json) ? json.answers : void 0;
|
|
5576
5577
|
return isRecord(answers) ? answers.q : void 0;
|
|
@@ -5584,6 +5585,72 @@ function yesnoQuestion(instructions, criteria) {
|
|
|
5584
5585
|
};
|
|
5585
5586
|
}
|
|
5586
5587
|
__name(yesnoQuestion, "yesnoQuestion");
|
|
5588
|
+
var rememberedForms = /* @__PURE__ */ new Map();
|
|
5589
|
+
function yesnoQuestionAs(form, instructions, criteria) {
|
|
5590
|
+
if (form === "object")
|
|
5591
|
+
return { type: "noul", instructions, criteria: { true: criteria } };
|
|
5592
|
+
return { type: "noul", instructions: `${instructions}
|
|
5593
|
+
|
|
5594
|
+
The answer is yes when: ${criteria}` };
|
|
5595
|
+
}
|
|
5596
|
+
__name(yesnoQuestionAs, "yesnoQuestionAs");
|
|
5597
|
+
function schemaIssues(text2) {
|
|
5598
|
+
const trimmed = text2.trim();
|
|
5599
|
+
if (!trimmed.startsWith("[") && !trimmed.startsWith("{"))
|
|
5600
|
+
return [];
|
|
5601
|
+
let parsed;
|
|
5602
|
+
try {
|
|
5603
|
+
parsed = JSON.parse(trimmed);
|
|
5604
|
+
} catch {
|
|
5605
|
+
return [];
|
|
5606
|
+
}
|
|
5607
|
+
const list = Array.isArray(parsed) ? parsed : isRecord(parsed) && Array.isArray(parsed.issues) ? parsed.issues : [];
|
|
5608
|
+
const out = [];
|
|
5609
|
+
for (const item of list) {
|
|
5610
|
+
if (!isRecord(item) || !Array.isArray(item.path) || typeof item.message !== "string")
|
|
5611
|
+
continue;
|
|
5612
|
+
out.push({ path: item.path.map(String), message: item.message });
|
|
5613
|
+
}
|
|
5614
|
+
return out;
|
|
5615
|
+
}
|
|
5616
|
+
__name(schemaIssues, "schemaIssues");
|
|
5617
|
+
function readableServiceText(text2) {
|
|
5618
|
+
const issues = schemaIssues(text2);
|
|
5619
|
+
if (issues.length === 0)
|
|
5620
|
+
return text2;
|
|
5621
|
+
return issues.map((i) => `${i.path.join(".")}: ${i.message}`).join("; ");
|
|
5622
|
+
}
|
|
5623
|
+
__name(readableServiceText, "readableServiceText");
|
|
5624
|
+
function refusesQuestionField(error, fields) {
|
|
5625
|
+
if (!(error instanceof DecisionError) || error.status !== 400)
|
|
5626
|
+
return false;
|
|
5627
|
+
const issues = schemaIssues(error.message);
|
|
5628
|
+
if (issues.length > 0) {
|
|
5629
|
+
return issues.some((i) => i.path.some((part) => fields.includes(part)));
|
|
5630
|
+
}
|
|
5631
|
+
const named = fields.join("|");
|
|
5632
|
+
return new RegExp(`(missing|null|required).*(${named})|(${named}).*(missing|null|required)`, "i").test(error.message);
|
|
5633
|
+
}
|
|
5634
|
+
__name(refusesQuestionField, "refusesQuestionField");
|
|
5635
|
+
async function postYesNo(opts) {
|
|
5636
|
+
const criteria = opts.criteria;
|
|
5637
|
+
if (criteria === void 0 || criteria.length === 0) {
|
|
5638
|
+
return opts.post(yesnoQuestion(opts.instructions));
|
|
5639
|
+
}
|
|
5640
|
+
if (rememberedForms.get(opts.memoryKey) === "folded") {
|
|
5641
|
+
return opts.post(yesnoQuestionAs("folded", opts.instructions, criteria));
|
|
5642
|
+
}
|
|
5643
|
+
try {
|
|
5644
|
+
return await opts.post(yesnoQuestionAs("object", opts.instructions, criteria));
|
|
5645
|
+
} catch (error) {
|
|
5646
|
+
if (!refusesQuestionField(error, ["criteria"]))
|
|
5647
|
+
throw error;
|
|
5648
|
+
}
|
|
5649
|
+
const answer = await opts.post(yesnoQuestionAs("folded", opts.instructions, criteria));
|
|
5650
|
+
rememberedForms.set(opts.memoryKey, "folded");
|
|
5651
|
+
return answer;
|
|
5652
|
+
}
|
|
5653
|
+
__name(postYesNo, "postYesNo");
|
|
5587
5654
|
function choiceQuestion(instructions, options) {
|
|
5588
5655
|
return {
|
|
5589
5656
|
type: "choice",
|
|
@@ -5653,7 +5720,13 @@ var AzureFoundryDecisionModel = class {
|
|
|
5653
5720
|
this.config = config;
|
|
5654
5721
|
}
|
|
5655
5722
|
async yesno(state, instructions, opts) {
|
|
5656
|
-
return parseYesNo(await
|
|
5723
|
+
return parseYesNo(await postYesNo({
|
|
5724
|
+
post: /* @__PURE__ */ __name((question) => this.ask(state, question, opts), "post"),
|
|
5725
|
+
instructions,
|
|
5726
|
+
...opts?.criteria !== void 0 ? { criteria: opts.criteria } : {},
|
|
5727
|
+
memoryKey: `${this.config.endpoint}
|
|
5728
|
+
${this.config.deployment}`
|
|
5729
|
+
}));
|
|
5657
5730
|
}
|
|
5658
5731
|
async choice(state, instructions, options, opts) {
|
|
5659
5732
|
return parseChoice(await this.ask(state, choiceQuestion(instructions, options), opts));
|
|
@@ -5691,7 +5764,13 @@ var HttpDecisionModel = class {
|
|
|
5691
5764
|
this.config = config;
|
|
5692
5765
|
}
|
|
5693
5766
|
async yesno(state, instructions, opts) {
|
|
5694
|
-
return parseYesNo(await
|
|
5767
|
+
return parseYesNo(await postYesNo({
|
|
5768
|
+
post: /* @__PURE__ */ __name((question) => this.ask(state, question, opts), "post"),
|
|
5769
|
+
instructions,
|
|
5770
|
+
...opts?.criteria !== void 0 ? { criteria: opts.criteria } : {},
|
|
5771
|
+
memoryKey: `${this.config.url}
|
|
5772
|
+
${this.config.model ?? ""}`
|
|
5773
|
+
}));
|
|
5695
5774
|
}
|
|
5696
5775
|
async choice(state, instructions, options, opts) {
|
|
5697
5776
|
return parseChoice(await this.ask(state, choiceQuestion(instructions, options), opts));
|
|
@@ -18759,7 +18838,7 @@ __name(clipRequestContext, "clipRequestContext");
|
|
|
18759
18838
|
async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
18760
18839
|
const modelEnvironment = readModelLaunchEnvironment();
|
|
18761
18840
|
if (options.palEnvironment) {
|
|
18762
|
-
const { createPalAgentSession } = await import("./agent-session-
|
|
18841
|
+
const { createPalAgentSession } = await import("./agent-session-MCYT4656.js");
|
|
18763
18842
|
return createPalAgentSession(prefs, detectedProviders, options);
|
|
18764
18843
|
}
|
|
18765
18844
|
let detected = detectedProviders;
|
|
@@ -23322,6 +23401,8 @@ export {
|
|
|
23322
23401
|
PluginSettingsStore,
|
|
23323
23402
|
validateComposerSendSettings,
|
|
23324
23403
|
DecisionError,
|
|
23404
|
+
readableServiceText,
|
|
23405
|
+
refusesQuestionField,
|
|
23325
23406
|
maybeCreateDecisionTool,
|
|
23326
23407
|
maybeCreateDecisionModel,
|
|
23327
23408
|
resolveAutoDefault,
|
|
@@ -23456,4 +23537,4 @@ export {
|
|
|
23456
23537
|
RESULT_SUMMARY_WHOLE_MAX,
|
|
23457
23538
|
resultSummaryLine
|
|
23458
23539
|
};
|
|
23459
|
-
//# sourceMappingURL=chunk-
|
|
23540
|
+
//# sourceMappingURL=chunk-HK7GUHPD.js.map
|