perchai-cli 2.4.35 → 2.4.36

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.
Files changed (2) hide show
  1. package/dist/perch.mjs +19 -0
  2. package/package.json +1 -1
package/dist/perch.mjs CHANGED
@@ -86724,6 +86724,7 @@ function truncateHistoryLine(value, max2) {
86724
86724
  }
86725
86725
  var init_operatorTruth = __esm({
86726
86726
  "features/perchTerminal/runtime/operatorTruth.ts"() {
86727
+ "use strict";
86727
86728
  }
86728
86729
  });
86729
86730
 
@@ -197922,6 +197923,15 @@ async function dispatchAgentHandler(args, ctx) {
197922
197923
  const agentCtx = {
197923
197924
  workspaceRoot,
197924
197925
  desktopConnected: ctx.desktopConnected,
197926
+ // CLI surface: children inherit the local bridge and server auth, same as
197927
+ // flock's buildSpawnContext — otherwise filesystem workers fail with
197928
+ // worker_desktop_workspace_required on the CLI.
197929
+ cliLocalTools: ctx.cliLocalTools === true,
197930
+ scopedFolderPath: ctx.scopedFolderPath,
197931
+ cliServerAppUrl: ctx.cliServerAppUrl ?? null,
197932
+ cliServerAccessToken: ctx.cliServerAccessToken ?? null,
197933
+ marketDeskProxyAppUrl: ctx.marketDeskProxyAppUrl ?? null,
197934
+ marketDeskProxyAccessToken: ctx.marketDeskProxyAccessToken ?? null,
197925
197935
  activeRootPath: ctx.activeRootPath,
197926
197936
  permissionMode: ctx.permissionMode,
197927
197937
  workspaceId: ctx.workspaceId,
@@ -205558,6 +205568,15 @@ Proceed with the available context. If a missing fact is essential, ask the user
205558
205568
  {
205559
205569
  workspaceRoot: effectiveWorkspaceRoot(ctx),
205560
205570
  desktopConnected: ctx.desktopConnected,
205571
+ // CLI surface: children inherit the local bridge and server auth,
205572
+ // same as flock's buildSpawnContext — without these, every worker
205573
+ // needing filesystem access dies with worker_desktop_workspace_required.
205574
+ cliLocalTools: ctx.cliLocalTools === true,
205575
+ scopedFolderPath: ctx.scopedFolderPath,
205576
+ cliServerAppUrl: ctx.cliServerAppUrl ?? null,
205577
+ cliServerAccessToken: ctx.cliServerAccessToken ?? null,
205578
+ marketDeskProxyAppUrl: ctx.marketDeskProxyAppUrl ?? null,
205579
+ marketDeskProxyAccessToken: ctx.marketDeskProxyAccessToken ?? null,
205561
205580
  activeRootPath: ctx.activeRootPath,
205562
205581
  permissionMode: ctx.permissionMode,
205563
205582
  workspaceId: ctx.workspaceId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perchai-cli",
3
- "version": "2.4.35",
3
+ "version": "2.4.36",
4
4
  "description": "Perch AI command-line interface",
5
5
  "bin": {
6
6
  "perch": "bin/perch"