@bendyline/gezel-cli 1.2.13 → 1.3.0

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/tui/index.js CHANGED
@@ -126,7 +126,7 @@ var CLI_ENGAGEMENT_MODES = [
126
126
  name: "full-play",
127
127
  mode: "proactive",
128
128
  label: "Full play",
129
- description: "Everything runs, including proactive nudges and cross-gezel work."
129
+ description: "Everything runs, including proactive nudges and handoffs."
130
130
  }
131
131
  ];
132
132
  var MODE_ALIASES = {
@@ -425,7 +425,7 @@ function preferredModel(status) {
425
425
  const model = status.models.find((candidate) => candidate.id === status.configuredModel) ?? status.models.find((candidate) => candidate.id === status.recommendedModel) ?? status.models[0];
426
426
  if (!model) {
427
427
  throw new ManagedAppCommandError(
428
- "No compatible local gezel or tool-capable model is available for this integration."
428
+ "No compatible local crew member or tool-capable model is available for this integration."
429
429
  );
430
430
  }
431
431
  return model;
@@ -567,7 +567,7 @@ var SLASH_COMMAND_WORDWHEEL_SIZE = 4;
567
567
  var SLASH_COMMANDS = [
568
568
  { name: "help", description: "show the command reference" },
569
569
  { name: "project", description: "switch active project" },
570
- { name: "gezel", description: "switch gezel, or bring a role onto the project" },
570
+ { name: "gezel", description: "switch crew member, or bring a role onto the project" },
571
571
  { name: "allow", description: "allow a project permission" },
572
572
  { name: "disallow", description: "disallow a project permission" },
573
573
  { name: "show", description: "show optional chat details" },
@@ -584,7 +584,7 @@ var SLASH_COMMANDS = [
584
584
  { name: "disconnect", description: "remove Gezel from a connected local app" },
585
585
  { name: "focus", description: "send into another active chat" },
586
586
  { name: "cli", description: "make bare input run shell commands" },
587
- { name: "chat", description: "make bare input message your gezel" },
587
+ { name: "chat", description: "make bare input a message to Gezel" },
588
588
  { name: "clear", description: "clear the visible feed" },
589
589
  { name: "quit", description: "exit the TUI" }
590
590
  ];
@@ -1062,7 +1062,7 @@ function reduceFeed(rows, env, opts = {}) {
1062
1062
  sessionId,
1063
1063
  gezelId,
1064
1064
  kind: "note",
1065
- text: "\u23F3 awaiting another gezel\u2026",
1065
+ text: `\u23F3 waiting for ${event.targetGezelName || "someone on the crew"}\u2026`,
1066
1066
  open: false
1067
1067
  }
1068
1068
  ]);
@@ -1193,7 +1193,7 @@ function reduceTurns(turns, env) {
1193
1193
  case "heartbeat":
1194
1194
  return event.label ? set(heartbeatLabel(event.label), void 0, null) : turns;
1195
1195
  case "awaiting_gezel":
1196
- return set("awaiting gezel", void 0, null);
1196
+ return set(`waiting for ${event.targetGezelName || "a reply"}`, void 0, null);
1197
1197
  case "error":
1198
1198
  case "done":
1199
1199
  return clear();
@@ -1401,7 +1401,7 @@ function toolRowText(call) {
1401
1401
  }
1402
1402
  function gezelLabel(gezelId, gezels, boring) {
1403
1403
  const g = gezels.find((x) => x.id === gezelId);
1404
- if (!g) return boring ? "gezel" : gezelId;
1404
+ if (!g) return boring ? "Gezel" : gezelId;
1405
1405
  if (boring) return g.roleBasedName ?? g.role ?? g.id;
1406
1406
  return g.role ? `${g.name} \xB7 ${g.role}` : g.name;
1407
1407
  }
@@ -2181,7 +2181,7 @@ function NpmInstallApprovalPrompt(props) {
2181
2181
  /* @__PURE__ */ jsx4(Text5, { bold: true, color: "yellow", children: "npm package approval" }),
2182
2182
  currentPackage ? /* @__PURE__ */ jsxs5(Fragment3, { children: [
2183
2183
  /* @__PURE__ */ jsxs5(Text5, { wrap: "wrap", children: [
2184
- "A gezel wants to install ",
2184
+ "Gezel wants to install ",
2185
2185
  packages.length === 1 ? "this package" : "packages",
2186
2186
  " outside the pre-vetted list."
2187
2187
  ] }),
@@ -2360,7 +2360,7 @@ var CORE_ROLE_ORDER = [
2360
2360
  ];
2361
2361
  var SECTION_IN_PROJECT = "In this project";
2362
2362
  var SECTION_RECOMMENDED = "Recommended for this project";
2363
- var SECTION_OTHER_GEZELS = "Your other gezels";
2363
+ var SECTION_OTHER_GEZELS = "The rest of your crew";
2364
2364
  var SECTION_CORE = "Core roles";
2365
2365
  var SECTION_MORE = "More roles";
2366
2366
  var DEFAULT_HINT_WIDTH = 76;
@@ -2537,6 +2537,25 @@ var NATIVE_TOOLKIT = [
2537
2537
  "whisper-server",
2538
2538
  "llama-server"
2539
2539
  ];
2540
+ function nativeEngineUse(engine) {
2541
+ switch (engine) {
2542
+ case "llama-server":
2543
+ return "runs chat models on this computer";
2544
+ case "uv":
2545
+ return "runs local helpers such as voices and image reading";
2546
+ case "sd-server":
2547
+ return "makes images";
2548
+ case "whisper-server":
2549
+ return "turns speech into text";
2550
+ case "ds4-server":
2551
+ return "runs DeepSeek V4 models";
2552
+ case "duckdb":
2553
+ return "queries spreadsheets and data files";
2554
+ }
2555
+ }
2556
+ function nativeToolkitTitle(missing, provider) {
2557
+ return missing.includes(provider === "mlx" ? "uv" : "llama-server") ? "The engine Gezel needs to run chat models on this computer is not installed yet" : "Some optional Gezel engines are not installed yet";
2558
+ }
2540
2559
  function recoDevice(memory) {
2541
2560
  return {
2542
2561
  platform: memory.platform,
@@ -2957,7 +2976,7 @@ function useTerminalSize() {
2957
2976
  }
2958
2977
  var HELP = [
2959
2978
  "/project \u2014 switch project /model \u2014 switch engine + model",
2960
- "/gezel \u2014 switch gezel or bring on a role /gezel <role or name> \u2014 go straight there",
2979
+ "/gezel \u2014 switch crew member or bring on a role /gezel <role or name> \u2014 go straight there",
2961
2980
  "/model download \u2014 choose and download a new on-device model",
2962
2981
  "/allow edits \u2014 allow tool edits /disallow edits \u2014 make tool edits read-only",
2963
2982
  "/allow codexedits|claudeedits \u2014 allow provider-native project edits",
@@ -3272,7 +3291,7 @@ function App(props) {
3272
3291
  if (project.mode !== "solo") return;
3273
3292
  if (project.voormanGezelId === joinedGezelId) return;
3274
3293
  await client.updateProject(projectId, { mode: "crew" });
3275
- note("this job is now a crew project \u2014 gezels here can delegate and recruit.");
3294
+ note("this job is now a crew project \u2014 crew members here can delegate and recruit.");
3276
3295
  } catch (err) {
3277
3296
  note(`could not switch this job to a crew project: ${errMsg(err)}`, "error");
3278
3297
  }
@@ -3351,15 +3370,15 @@ function App(props) {
3351
3370
  "error"
3352
3371
  );
3353
3372
  default:
3354
- return note(`no gezel or role matches "${arg}". Type /gezel to browse.`, "error");
3373
+ return note(`no crew member or role matches "${arg}". Type /gezel to browse.`, "error");
3355
3374
  }
3356
3375
  },
3357
3376
  [gezels, loadRoleTemplates, note, recruitGezel, useGezel]
3358
3377
  );
3359
3378
  const openModelPicker = useCallback2(async () => {
3360
- if (!activeGezelId || !activeGezel) return note("no active gezel yet.", "error");
3379
+ if (!activeGezelId || !activeGezel) return note("no active crew member yet.", "error");
3361
3380
  if (activeGezel.fixedFunction) {
3362
- return note("this gezel runs a fixed tool and does not use a chat model.", "error");
3381
+ return note(`${activeGezel.name} runs a fixed tool and does not use a chat model.`, "error");
3363
3382
  }
3364
3383
  if (modelChoicesLoading) return note("model choices are already loading.");
3365
3384
  setModelChoicesLoading(true);
@@ -3376,9 +3395,12 @@ function App(props) {
3376
3395
  }, [activeGezel, activeGezelId, client, config, modelChoicesLoading, note]);
3377
3396
  const openModelDownloadPicker = useCallback2(
3378
3397
  async (returnTo = null) => {
3379
- if (!activeGezelId || !activeGezel) return note("no active gezel yet.", "error");
3398
+ if (!activeGezelId || !activeGezel) return note("no active crew member yet.", "error");
3380
3399
  if (activeGezel.fixedFunction) {
3381
- return note("this gezel runs a fixed tool and does not use a chat model.", "error");
3400
+ return note(
3401
+ `${activeGezel.name} runs a fixed tool and does not use a chat model.`,
3402
+ "error"
3403
+ );
3382
3404
  }
3383
3405
  if (modelChoicesLoading) return note("model choices are already loading.");
3384
3406
  setOverlay(null);
@@ -3407,7 +3429,7 @@ function App(props) {
3407
3429
  [activeGezel, activeGezelId, client, config, modelChoicesLoading, note, openModelPicker]
3408
3430
  );
3409
3431
  const openThreadPicker = useCallback2(async () => {
3410
- if (!activeGezelId) return note("no active gezel yet.", "error");
3432
+ if (!activeGezelId) return note("no active crew member yet.", "error");
3411
3433
  if (threadsLoading) return;
3412
3434
  setThreadsLoading(true);
3413
3435
  try {
@@ -3430,7 +3452,7 @@ function App(props) {
3430
3452
  try {
3431
3453
  const session = await client.getChatSession(sessionId);
3432
3454
  if (session.gezelId !== activeGezelId || session.projectId !== projectId) {
3433
- throw new Error("thread no longer belongs to the active gezel and project");
3455
+ throw new Error("thread no longer belongs to the active crew member and project");
3434
3456
  }
3435
3457
  setOwnSessionId(session.id);
3436
3458
  setFocusedSessionId(session.id);
@@ -3445,7 +3467,7 @@ function App(props) {
3445
3467
  );
3446
3468
  const startNewThread = useCallback2(async () => {
3447
3469
  setOverlay(null);
3448
- if (!activeGezelId) return note("no active gezel yet.", "error");
3470
+ if (!activeGezelId) return note("no active crew member yet.", "error");
3449
3471
  try {
3450
3472
  const session = await client.createChatSession({
3451
3473
  gezelId: activeGezelId,
@@ -3967,7 +3989,7 @@ function App(props) {
3967
3989
  if (result.projectStatus !== "active") {
3968
3990
  note(`${projectName} is ${result.projectStatus}; no project work was started.`);
3969
3991
  } else {
3970
- note(`no due schedules or gezel-owned active tasks found in ${projectName}.`);
3992
+ note(`no due schedules or active tasks for Gezel found in ${projectName}.`);
3971
3993
  }
3972
3994
  } else {
3973
3995
  note(`continue: ${parts.join("; ")}.`);
@@ -4078,7 +4100,7 @@ function App(props) {
4078
4100
  return note("CLI mode \u2014 bare input runs as a shell command. /chat to exit.");
4079
4101
  case "chat":
4080
4102
  setMode("chat");
4081
- return note("chat mode \u2014 bare input is a prompt to your gezel.");
4103
+ return note("chat mode \u2014 bare input is a prompt to Gezel.");
4082
4104
  case "clear":
4083
4105
  setTurns(/* @__PURE__ */ new Map());
4084
4106
  setPendingInput(null);
@@ -4197,14 +4219,14 @@ function App(props) {
4197
4219
  setModelDownloadProgress(null);
4198
4220
  if (companionResult.name && companionResult.error) {
4199
4221
  note(
4200
- `downloaded ${choice.model.name}; ${companionResult.name} image reader could not be added: ${companionResult.error}. Switching this gezel to ${choice.model.name}\u2026`
4222
+ `downloaded ${choice.model.name}; ${companionResult.name} image reader could not be added: ${companionResult.error}. Switching to ${choice.model.name}\u2026`
4201
4223
  );
4202
4224
  } else if (companionResult.name) {
4203
4225
  note(
4204
- `downloaded ${choice.model.name} with ${companionResult.name} for image reading; switching this gezel to it\u2026`
4226
+ `downloaded ${choice.model.name} with ${companionResult.name} for image reading; switching to it\u2026`
4205
4227
  );
4206
4228
  } else {
4207
- note(`downloaded ${choice.model.name}; switching this gezel to it\u2026`);
4229
+ note(`downloaded ${choice.model.name}; switching to it\u2026`);
4208
4230
  }
4209
4231
  await applyModelSelection(installedChoice);
4210
4232
  } catch (err) {
@@ -4302,7 +4324,7 @@ function App(props) {
4302
4324
  overlay === "gezel" ? /* @__PURE__ */ jsx5(
4303
4325
  Picker,
4304
4326
  {
4305
- title: "Switch gezel, or bring on a role",
4327
+ title: "Switch crew member, or bring on a role",
4306
4328
  items: gezelPickerItems,
4307
4329
  windowSize: gezelPickerWindowSize,
4308
4330
  onCancel: () => setOverlay(null),
@@ -4704,7 +4726,7 @@ function taskAssigneeLabel(task, gezels, boring) {
4704
4726
  if (task.assignee.kind === "user") return "you";
4705
4727
  const gezelId = task.assignee.gezelId;
4706
4728
  const gezel = gezels.find((item) => item.id === gezelId);
4707
- if (!gezel) return boring ? "gezel" : gezelId;
4729
+ if (!gezel) return boring ? "Gezel" : gezelId;
4708
4730
  return boring ? gezel.roleBasedName ?? gezel.role ?? gezel.id : gezel.name;
4709
4731
  }
4710
4732
  function taskStatusChoices(task) {
@@ -4737,8 +4759,32 @@ import { Box as Box7, Text as Text7, useApp as useApp2, useInput as useInput5 }
4737
4759
  import { useCallback as useCallback3, useEffect as useEffect5, useState as useState6 } from "react";
4738
4760
 
4739
4761
  // src/run-readiness.ts
4762
+ import { resolveOnDeviceProvider as resolveOnDeviceProvider3 } from "@bendyline/gezel/native";
4763
+
4764
+ // src/craftbook-setup.ts
4765
+ import { Writable } from "stream";
4766
+ import {
4767
+ craftbookSetupGaps,
4768
+ isCraftbookModelEngine,
4769
+ resolveCraftbookModelNeeds,
4770
+ resolveSecurityPolicy as resolveSecurityPolicy2
4771
+ } from "@bendyline/gezel";
4740
4772
  import { resolveOnDeviceProvider as resolveOnDeviceProvider2 } from "@bendyline/gezel/native";
4741
4773
 
4774
+ // src/native-command.ts
4775
+ import {
4776
+ NativeEngineNameSchema
4777
+ } from "@bendyline/gezel";
4778
+
4779
+ // src/settings-command.ts
4780
+ import {
4781
+ classifySecurityLevel,
4782
+ projectManagedWorkspaceWritable,
4783
+ resolveSecurityPolicy,
4784
+ securityCapabilitiesOf,
4785
+ securityPolicyForLevel
4786
+ } from "@bendyline/gezel";
4787
+
4742
4788
  // src/model-choice.ts
4743
4789
  import {
4744
4790
  measuredClaim,
@@ -4938,7 +4984,7 @@ function BootstrapGate(props) {
4938
4984
  return;
4939
4985
  }
4940
4986
  try {
4941
- await installNativeToolkit(client, context.nativeStatus, missing, setScreen);
4987
+ await installNativeToolkit2(client, context.nativeStatus, missing, setScreen);
4942
4988
  const [nativeStatus, memory] = await Promise.all([
4943
4989
  client.getNativeEngineStatus(),
4944
4990
  client.getMemoryProfile()
@@ -4983,7 +5029,7 @@ function BootstrapGate(props) {
4983
5029
  if (choice.kind === "bundle") {
4984
5030
  const missing = missingToolkit(await client.getNativeEngineStatus());
4985
5031
  if (missing.length > 0) {
4986
- await installNativeToolkit(client, plan.context.nativeStatus, missing, setScreen);
5032
+ await installNativeToolkit2(client, plan.context.nativeStatus, missing, setScreen);
4987
5033
  }
4988
5034
  }
4989
5035
  const chatAlreadyInstalled = choice.kind === "bundle" && plan.installedChatModels.some((model) => model.id === choice.model.id);
@@ -5052,25 +5098,22 @@ function BootstrapGate(props) {
5052
5098
  ] });
5053
5099
  }
5054
5100
  if (screen.kind === "native-choice") {
5055
- const labels = screen.missing.map(nativeLabel).join(", ");
5056
- return /* @__PURE__ */ jsxs7(BootstrapFrame, { title: "The Gezel native toolkit -- needed to run AI models locally -- is not installed yet", children: [
5101
+ return /* @__PURE__ */ jsxs7(BootstrapFrame, { title: nativeToolkitTitle(screen.missing, screen.context.provider), children: [
5057
5102
  /* @__PURE__ */ jsx6(Text7, { children: `Gezel can install the verified Gezel native toolkit (native-v${screen.context.nativeStatus.release}) for this device.` }),
5058
5103
  /* @__PURE__ */ jsxs7(Text7, { children: [
5059
5104
  "Downloaded from",
5060
5105
  " ",
5061
5106
  /* @__PURE__ */ jsx6(Text7, { bold: true, color: "cyan", children: "https://github.com/bendyline/gezel/releases/" })
5062
5107
  ] }),
5063
- /* @__PURE__ */ jsxs7(Text7, { dimColor: true, children: [
5064
- "Missing: ",
5065
- labels
5066
- ] }),
5108
+ /* @__PURE__ */ jsx6(Text7, { dimColor: true, children: "Not installed:" }),
5109
+ screen.missing.map((engine) => /* @__PURE__ */ jsx6(Text7, { dimColor: true, children: ` - ${nativeLabel(engine)}: ${nativeEngineUse(engine)}` }, engine)),
5067
5110
  /* @__PURE__ */ jsx6(
5068
5111
  BootstrapChoiceList,
5069
5112
  {
5070
5113
  options: [
5071
5114
  {
5072
5115
  label: "Install the Gezel native toolkit",
5073
- hint: "recommended \xB7 engines for chat, images, speech, and local model helpers",
5116
+ hint: `recommended \xB7 ${screen.missing.length === 1 ? "the engine" : `the ${screen.missing.length} engines`} above`,
5074
5117
  value: "install"
5075
5118
  },
5076
5119
  { label: "Not now", hint: "continue to model choices", value: "skip" }
@@ -5253,7 +5296,7 @@ function ProgressBar({ pct }) {
5253
5296
  "]"
5254
5297
  ] });
5255
5298
  }
5256
- async function installNativeToolkit(client, status, missing, setScreen) {
5299
+ async function installNativeToolkit2(client, status, missing, setScreen) {
5257
5300
  for (let index = 0; index < missing.length; index += 1) {
5258
5301
  const engine = missing[index];
5259
5302
  let terminalError = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/gezel-cli",
3
- "version": "1.2.13",
3
+ "version": "1.3.0",
4
4
  "description": "The gezel command-line tool: chat with your gezels, run craftbooks, and manage local models from the terminal.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -44,15 +44,15 @@
44
44
  "!dist/**/*.map"
45
45
  ],
46
46
  "dependencies": {
47
- "@bendyline/gezel": "1.2.13",
48
- "@bendyline/gezel-app-sdk": "1.1.13",
49
- "@bendyline/gezel-catalog": "1.2.13",
50
- "@bendyline/gezel-client": "1.2.13",
51
- "@bendyline/gezel-knowledge": "1.2.10",
52
- "@bendyline/gezel-service": "1.2.13",
53
- "@bendyline/squisq": "2.13.10",
54
- "@bendyline/squisq-formats": "2.8.12",
55
- "@bendyline/squisq-react": "2.12.22",
47
+ "@bendyline/gezel": "1.3.0",
48
+ "@bendyline/gezel-app-sdk": "1.2.0",
49
+ "@bendyline/gezel-catalog": "1.3.0",
50
+ "@bendyline/gezel-client": "1.3.0",
51
+ "@bendyline/gezel-knowledge": "1.2.11",
52
+ "@bendyline/gezel-service": "1.3.0",
53
+ "@bendyline/squisq": "2.13.12",
54
+ "@bendyline/squisq-formats": "2.8.14",
55
+ "@bendyline/squisq-react": "2.12.24",
56
56
  "commander": "^15.0.0",
57
57
  "ink": "^7.1.1",
58
58
  "ink-text-input": "^6.0.0",