nolo-cli 0.36.0-alpha.1 → 0.36.0-alpha.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.
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-W445DPVT.js";
5
5
  import {
6
6
  runAgentCreateCommand
7
- } from "./chunk-QIMPDPEE.js";
7
+ } from "./chunk-3SNGK3FB.js";
8
8
  import {
9
9
  positionalArgs,
10
10
  readFlagValue
11
11
  } from "./chunk-4AWH4LQA.js";
12
- import "./chunk-7MWPUOKI.js";
12
+ import "./chunk-2BKJBSQ4.js";
13
13
  import "./chunk-IZNJDUJ4.js";
14
14
  import "./chunk-6XG52ZQ6.js";
15
15
  import {
@@ -84,7 +84,7 @@ async function defaultExecuteCli(provider, prompt, options) {
84
84
  return executeCli(provider, prompt, options);
85
85
  }
86
86
  async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
87
- const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-KBPZKHM2.js");
87
+ const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-ZOAJQHTU.js");
88
88
  return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
89
89
  }
90
90
  async function detectLaunchableMachineInfo() {
@@ -2,8 +2,8 @@ import {
2
2
  runAgentCreateCommand,
3
3
  runAgentReadCommand,
4
4
  runAgentUpdateCommand
5
- } from "./chunk-QIMPDPEE.js";
6
- import "./chunk-7MWPUOKI.js";
5
+ } from "./chunk-3SNGK3FB.js";
6
+ import "./chunk-2BKJBSQ4.js";
7
7
  import "./chunk-IZNJDUJ4.js";
8
8
  import "./chunk-6XG52ZQ6.js";
9
9
  import "./chunk-UNHKVD2N.js";
@@ -5,12 +5,12 @@ import {
5
5
  prependSubjectDialogMarker,
6
6
  resolveWorkflowReference,
7
7
  runAgentRunCommand
8
- } from "./chunk-MUG4FG5J.js";
8
+ } from "./chunk-RPPRK6EZ.js";
9
9
  import "./chunk-IMHO5LC6.js";
10
10
  import {
11
11
  parseAgentRunArgs
12
12
  } from "./chunk-4AWH4LQA.js";
13
- import "./chunk-7MWPUOKI.js";
13
+ import "./chunk-2BKJBSQ4.js";
14
14
  import "./chunk-IZNJDUJ4.js";
15
15
  import "./chunk-6XG52ZQ6.js";
16
16
  import "./chunk-UNHKVD2N.js";
@@ -712,6 +712,10 @@ var STRINGS = {
712
712
  en: "question",
713
713
  zh: "\u95EE\u9898"
714
714
  },
715
+ askChoiceScrollHint: {
716
+ en: "\u2191 Shift+wheel scrolls back terminal history",
717
+ zh: "\u2191 Shift+\u6EDA\u8F6E\u53EF\u56DE\u770B\u4E0A\u65B9\u6D88\u606F"
718
+ },
715
719
  askChoiceSubmit: {
716
720
  en: "Submit",
717
721
  zh: "\u63D0\u4EA4"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-7MWPUOKI.js";
3
+ } from "./chunk-2BKJBSQ4.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-UNHKVD2N.js";
@@ -20,7 +20,7 @@ import {
20
20
  parseAgentRunEvent,
21
21
  t,
22
22
  toolLabel
23
- } from "./chunk-7MWPUOKI.js";
23
+ } from "./chunk-2BKJBSQ4.js";
24
24
  import {
25
25
  getReadableCliDb
26
26
  } from "./chunk-UNHKVD2N.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-7MWPUOKI.js";
4
+ } from "./chunk-2BKJBSQ4.js";
5
5
  import {
6
6
  clipMultilineText
7
7
  } from "./chunk-JK7UM3LT.js";
package/index.js CHANGED
@@ -127,7 +127,7 @@ function createDaemonShortcutCommand(path, description, command2) {
127
127
  // packages/cli/agentInternalCommandEntries.ts
128
128
  function getAgentInternalCommandEntries() {
129
129
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args2, ctx) => {
130
- const { runAgentRunCommand } = await import("./agentRunCommand-RUCLOMIL.js");
130
+ const { runAgentRunCommand } = await import("./agentRunCommand-AS4N52UF.js");
131
131
  return runAgentRunCommand(args2, {
132
132
  env: ctx.env,
133
133
  scriptDir: ctx.scriptDir,
@@ -143,7 +143,7 @@ function getAgentInternalCommandEntries() {
143
143
  return runAgentListCommand(args2, deps);
144
144
  }),
145
145
  createEnvCommand(["agent", "create"], "Create a new agent", async (args2, deps) => {
146
- const { runAgentCreateCommand } = await import("./agentRecordCommands-NLRF3ZCV.js");
146
+ const { runAgentCreateCommand } = await import("./agentRecordCommands-PUFDQBQ5.js");
147
147
  return runAgentCreateCommand(args2, deps);
148
148
  }),
149
149
  createEnvCommand(["agent", "models"], "List models available on an OpenAI-compatible provider", async (args2, deps) => {
@@ -155,7 +155,7 @@ function getAgentInternalCommandEntries() {
155
155
  return runAgentPullCommand(args2, deps);
156
156
  }),
157
157
  createEnvCommand(["agent", "read"], "Read a single agent", async (args2, deps) => {
158
- const { runAgentReadCommand } = await import("./agentRecordCommands-NLRF3ZCV.js");
158
+ const { runAgentReadCommand } = await import("./agentRecordCommands-PUFDQBQ5.js");
159
159
  return runAgentReadCommand(args2, deps);
160
160
  }),
161
161
  createAgentRunCommand(["agent", "run"], "Run an agent"),
@@ -193,26 +193,26 @@ function getAgentInternalCommandEntries() {
193
193
  return runSetupOfflineMarxistsAgentCommand(args2, deps);
194
194
  }),
195
195
  createEnvCommand(["agent", "update"], "Update agent fields", async (args2, deps) => {
196
- const { runAgentUpdateCommand } = await import("./agentRecordCommands-NLRF3ZCV.js");
196
+ const { runAgentUpdateCommand } = await import("./agentRecordCommands-PUFDQBQ5.js");
197
197
  return runAgentUpdateCommand(args2, deps);
198
198
  }),
199
199
  createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args2, deps) => {
200
- const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-44XJPIUG.js");
200
+ const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-APU6G6PK.js");
201
201
  return runAgentEmailProvisionCommand(args2, deps);
202
202
  }),
203
203
  createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args2, deps) => {
204
- const { runAgentEmailBindCommand } = await import("./agentEmailCommands-44XJPIUG.js");
204
+ const { runAgentEmailBindCommand } = await import("./agentEmailCommands-APU6G6PK.js");
205
205
  return runAgentEmailBindCommand(args2, deps);
206
206
  }),
207
207
  createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args2, deps) => {
208
- const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-44XJPIUG.js");
208
+ const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-APU6G6PK.js");
209
209
  return runAgentEmailTransferCommand(args2, deps);
210
210
  }),
211
211
  createEnvCommand(
212
212
  ["agent", "email", "create-and-provision"],
213
213
  "Create an agent and provision its controlled inbox",
214
214
  async (args2, deps) => {
215
- const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-44XJPIUG.js");
215
+ const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-APU6G6PK.js");
216
216
  return runAgentEmailCreateAndProvisionCommand(args2, deps);
217
217
  }
218
218
  ),
@@ -233,15 +233,15 @@ function getAgentInternalCommandEntries() {
233
233
  return runAgentRevokeGrantCommand(args2, deps);
234
234
  }),
235
235
  createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args2, deps) => {
236
- const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-VMWDSASB.js");
236
+ const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-G7JQUUDC.js");
237
237
  return runAgentBindCurrentCommand(args2, deps);
238
238
  }),
239
239
  createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args2, deps) => {
240
- const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-VMWDSASB.js");
240
+ const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-G7JQUUDC.js");
241
241
  return runAgentSmokeCurrentCommand(args2, deps);
242
242
  }),
243
243
  createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args2, deps) => {
244
- const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-VMWDSASB.js");
244
+ const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-G7JQUUDC.js");
245
245
  return runAgentRuntimeDoctorCommand(args2, deps);
246
246
  }),
247
247
  createAgentRunCommand(["agent", "chat"], "Chat with an agent")
@@ -426,15 +426,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
426
426
  return runWhoamiCommand({ args: args2, env: ctx.env });
427
427
  }),
428
428
  createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args2, deps) => {
429
- const { runMachineConnectCommand } = await import("./machineCommands-4J5NN3JH.js");
429
+ const { runMachineConnectCommand } = await import("./machineCommands-DSFTSYUL.js");
430
430
  return runMachineConnectCommand(args2, deps);
431
431
  }),
432
432
  createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args2, deps) => {
433
- const { runMachineConnectCommand } = await import("./machineCommands-4J5NN3JH.js");
433
+ const { runMachineConnectCommand } = await import("./machineCommands-DSFTSYUL.js");
434
434
  return runMachineConnectCommand(args2, deps);
435
435
  }),
436
436
  createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args2, deps) => {
437
- const { runMachineStatusCommand } = await import("./machineCommands-4J5NN3JH.js");
437
+ const { runMachineStatusCommand } = await import("./machineCommands-DSFTSYUL.js");
438
438
  return runMachineStatusCommand(args2, deps);
439
439
  }),
440
440
  createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args2, deps) => {
@@ -824,7 +824,7 @@ async function runScript(script, forwardedArgs, env) {
824
824
  return proc.exited;
825
825
  }
826
826
  async function launchTuiWorkspace(args2) {
827
- const { startTuiWorkspace } = await import("./readlineWorkspace-EP2W65SI.js");
827
+ const { startTuiWorkspace } = await import("./readlineWorkspace-5G3UFHYG.js");
828
828
  const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-LH7F2SP7.js");
829
829
  return startTuiWorkspace({
830
830
  ...args2,
@@ -2,13 +2,13 @@ import {
2
2
  buildMachinePermissionPromptBlock,
3
3
  handleConnectorRunMessage,
4
4
  resolveMachineRunPermissionPolicy
5
- } from "./chunk-ANM6AIWX.js";
5
+ } from "./chunk-ZQ3IDY66.js";
6
6
  import {
7
7
  isConnectorWebSocketAuthError,
8
8
  isConnectorWebSocketRetryableError,
9
9
  resolveConnectorWebSocketTarget
10
10
  } from "./chunk-MQRZ5QUH.js";
11
- import "./chunk-7MWPUOKI.js";
11
+ import "./chunk-2BKJBSQ4.js";
12
12
  import "./chunk-IZNJDUJ4.js";
13
13
  import "./chunk-6XG52ZQ6.js";
14
14
  import "./chunk-J5NMOM35.js";
@@ -11,8 +11,8 @@ import {
11
11
  runtimeWorkspacePermissionPolicy,
12
12
  scopePermissionPolicyToRuntimeWorkspace,
13
13
  summarizeAgentConfigForLogs
14
- } from "./chunk-ANM6AIWX.js";
15
- import "./chunk-7MWPUOKI.js";
14
+ } from "./chunk-ZQ3IDY66.js";
15
+ import "./chunk-2BKJBSQ4.js";
16
16
  import "./chunk-IZNJDUJ4.js";
17
17
  import "./chunk-6XG52ZQ6.js";
18
18
  import "./chunk-J5NMOM35.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolo-cli",
3
- "version": "0.36.0-alpha.1",
3
+ "version": "0.36.0-alpha.2",
4
4
  "type": "module",
5
5
  "description": "Agent-first terminal workspace for Nolo",
6
6
  "bin": {
@@ -76,7 +76,7 @@ import {
76
76
  wrapTextToLines,
77
77
  wrapTranscriptLine,
78
78
  wrapTranscriptLineWithLayout
79
- } from "./chunk-MUG4FG5J.js";
79
+ } from "./chunk-RPPRK6EZ.js";
80
80
  import "./chunk-IMHO5LC6.js";
81
81
  import "./chunk-4AWH4LQA.js";
82
82
  import {
@@ -86,7 +86,7 @@ import {
86
86
  readTimestamp,
87
87
  setCliLocale,
88
88
  t
89
- } from "./chunk-7MWPUOKI.js";
89
+ } from "./chunk-2BKJBSQ4.js";
90
90
  import "./chunk-IZNJDUJ4.js";
91
91
  import "./chunk-6XG52ZQ6.js";
92
92
  import {
@@ -1515,13 +1515,18 @@ function renderFooter(multiSelect, colorEnabled) {
1515
1515
  function otherRowPrefix(index) {
1516
1516
  return ` [${index + 1}] ${t("askChoiceOtherLabel")}: `;
1517
1517
  }
1518
- function renderAskChoiceFrame(state) {
1518
+ function renderAskChoiceFrame(state, options) {
1519
1519
  const colorEnabled = resolveCliColorEnabled();
1520
1520
  const q = state.questions[state.activeIndex];
1521
1521
  const qs = state.questionStates[state.activeIndex];
1522
1522
  const lines = [];
1523
1523
  let otherCursor = null;
1524
1524
  lines.push(renderDialogTitle(t("askChoiceTitle")));
1525
+ if (options?.bottomAnchored) {
1526
+ lines.push(
1527
+ colorEnabled ? themeText(` ${t("askChoiceScrollHint")}`, "muted", colorEnabled) : ` ${t("askChoiceScrollHint")}`
1528
+ );
1529
+ }
1525
1530
  lines.push("");
1526
1531
  if (state.questions.length > 1) {
1527
1532
  lines.push(renderTabBar(state.questions, state.activeIndex, colorEnabled));
@@ -1620,19 +1625,25 @@ async function runAskChoiceDialog(args) {
1620
1625
  unanchoredCursorLift = 0;
1621
1626
  };
1622
1627
  const paint = () => {
1623
- const frame = renderAskChoiceFrame(state);
1628
+ const frame = renderAskChoiceFrame(state, { bottomAnchored });
1624
1629
  const lines = frame.text.split("\n");
1625
1630
  const lineCount = lines.length;
1626
1631
  const canPosition = outputIsTty(output) && typeof output.write === "function";
1627
1632
  if (bottomAnchored && canPosition) {
1628
1633
  const anchorRow = resolveBottomRow();
1634
+ const ttyRows = typeof output === "object" && output !== null && "rows" in output && typeof output.rows === "number" ? output.rows : 24;
1629
1635
  if (!scrolledHeadroom) {
1630
- const ttyRows = typeof output === "object" && output !== null && "rows" in output && typeof output.rows === "number" ? output.rows : 24;
1631
1636
  const scrollN = Math.min(lineCount, Math.max(0, ttyRows - 1));
1632
1637
  if (scrollN > 0) {
1633
1638
  output.write(`\x1B[${scrollN}S`);
1634
1639
  }
1635
1640
  scrolledHeadroom = true;
1641
+ } else if (lineCount > renderedLineCount) {
1642
+ const delta = lineCount - renderedLineCount;
1643
+ const scrollN = Math.min(delta, Math.max(0, ttyRows - 1));
1644
+ if (scrollN > 0) {
1645
+ output.write(`\x1B[${scrollN}S`);
1646
+ }
1636
1647
  }
1637
1648
  clearAnchoredLines(
1638
1649
  output,
@@ -1660,6 +1671,11 @@ async function runAskChoiceDialog(args) {
1660
1671
  for (let i = 0; i < renderedLineCount; i++) {
1661
1672
  output.write("\x1B[1A\x1B[2K");
1662
1673
  }
1674
+ if (renderedLineCount > 0 && lineCount > renderedLineCount) {
1675
+ const delta = lineCount - renderedLineCount;
1676
+ output.write("\n".repeat(delta));
1677
+ output.write(`\x1B[${delta}A`);
1678
+ }
1663
1679
  output.write(`${frame.text}
1664
1680
  `);
1665
1681
  renderedLineCount = lineCount;
@@ -1713,12 +1729,12 @@ async function runAskChoiceDialog(args) {
1713
1729
  const qs = state.questionStates[state.activeIndex];
1714
1730
  const q = state.questions[state.activeIndex];
1715
1731
  const isOtherRow = qs.cursorIndex >= q.choices.length;
1716
- if (isCancel(sequence)) {
1717
- action = { type: "CANCEL" };
1732
+ if (sequence === CSI_SHIFT_TAB) {
1733
+ action = { type: "PREV_TAB" };
1718
1734
  } else if (sequence === CSI_TAB) {
1719
1735
  action = { type: "NEXT_TAB" };
1720
- } else if (sequence === CSI_SHIFT_TAB) {
1721
- action = { type: "PREV_TAB" };
1736
+ } else if (isCancel(sequence)) {
1737
+ action = { type: "CANCEL" };
1722
1738
  } else if (isArrowUp(sequence)) {
1723
1739
  action = { type: "MOVE_CURSOR", delta: -1 };
1724
1740
  } else if (isArrowDown(sequence)) {