@hearsay-tools/squawk 0.18.0-dev.6703 → 0.18.0-dev.6743

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 (89) hide show
  1. package/dist/agent-config/account-identity.js +12 -11
  2. package/dist/agent-config/account-identity.js.map +1 -1
  3. package/dist/ci-wait/controller.d.ts +37 -37
  4. package/dist/contract/index.js +67 -26
  5. package/dist/contract/tool-display.d.ts +8 -2
  6. package/dist/core/agent-profiles.d.ts +42 -9
  7. package/dist/core/agent-profiles.js +33 -26
  8. package/dist/core/agent-profiles.js.map +1 -1
  9. package/dist/core/agent-runner.d.ts +5 -0
  10. package/dist/core/agent-runner.js +11 -0
  11. package/dist/core/agent-runner.js.map +1 -1
  12. package/dist/core/claude-cli-runner.d.ts +1 -0
  13. package/dist/core/codex-app-server-runner.d.ts +1 -0
  14. package/dist/core/cursor-print-runner.d.ts +1 -0
  15. package/dist/core/cursor-runner.d.ts +1 -0
  16. package/dist/core/omp-runner.d.ts +1 -0
  17. package/dist/core/opencode-server-runner.d.ts +1 -0
  18. package/dist/core/pi-runner.d.ts +1 -0
  19. package/dist/core/runner-facts.d.ts +9 -0
  20. package/dist/core/runner-facts.js +6 -0
  21. package/dist/core/runner-facts.js.map +1 -1
  22. package/dist/delegation/execution-identity.js +25 -30
  23. package/dist/delegation/execution-identity.js.map +1 -1
  24. package/dist/delegation/transport.d.ts +62 -62
  25. package/dist/home/legacy-account-paths.js +2 -1
  26. package/dist/home/legacy-account-paths.js.map +1 -1
  27. package/dist/home/migration-accounts.d.ts +1 -1
  28. package/dist/home/migration-accounts.js +3 -2
  29. package/dist/home/migration-accounts.js.map +1 -1
  30. package/dist/paths.d.ts +3 -0
  31. package/dist/paths.js +4 -0
  32. package/dist/paths.js.map +1 -1
  33. package/dist/planner.js +4 -3
  34. package/dist/planner.js.map +1 -1
  35. package/dist/runs/auto-name.d.ts +1 -1
  36. package/dist/runs/auto-name.js +3 -2
  37. package/dist/runs/auto-name.js.map +1 -1
  38. package/dist/runs/store.js +2 -2
  39. package/dist/runs/store.js.map +1 -1
  40. package/dist/server/activity-routes.d.ts +23 -23
  41. package/dist/server/server.js +6 -10
  42. package/dist/server/server.js.map +1 -1
  43. package/dist/server-install/steps.js +24 -17
  44. package/dist/server-install/steps.js.map +1 -1
  45. package/dist/workflows/types.js +2 -3
  46. package/dist/workflows/types.js.map +1 -1
  47. package/dist/workspace/agent-accounts.js +2 -2
  48. package/dist/workspace/agent-accounts.js.map +1 -1
  49. package/dist/workspace/agent-profiles.d.ts +1 -1
  50. package/dist/workspace/agent-profiles.js +5 -5
  51. package/dist/workspace/agent-profiles.js.map +1 -1
  52. package/package.json +4 -4
  53. package/web/dist/assets/{activity-motion-DhLXb8Pt.js → activity-motion-DMp6Uo_E.js} +1 -1
  54. package/web/dist/assets/{activity-route-CpwAMYLn.js → activity-route-D04JxCzp.js} +1 -1
  55. package/web/dist/assets/agent-accounts-C48RdN3o.js +18 -0
  56. package/web/dist/assets/{commit-diff-panel-B1KZl0GP.js → commit-diff-panel-Din879JP.js} +1 -1
  57. package/web/dist/assets/{diff-Ci-qd1lU.js → diff-Btt23N3M.js} +2 -2
  58. package/web/dist/assets/{diff-view-CWZElKoD.js → diff-view-CfWaBIJu.js} +1 -1
  59. package/web/dist/assets/{file-preview-CoWRr13R.js → file-preview-DcznUbkx.js} +1 -1
  60. package/web/dist/assets/{git-toolbar-BYIni94R.js → git-toolbar-DUnmDIe8.js} +1 -1
  61. package/web/dist/assets/github-C6OOf2Jp.js +1 -0
  62. package/web/dist/assets/{global-activity-route-DLEwsMA7.js → global-activity-route-ko4iBoc3.js} +1 -1
  63. package/web/dist/assets/index-C3YyGC-J.js +17 -0
  64. package/web/dist/assets/preview-pane-connected-gIoE5-9m.js +3 -0
  65. package/web/dist/assets/{prompt-template-menu-BZTz2mIG.js → prompt-template-menu-C3d8Xkvo.js} +1 -1
  66. package/web/dist/assets/{reference-chip-Ht4xX9-k.js → reference-chip-BliLpdSz.js} +1 -1
  67. package/web/dist/assets/{repo-git-CzVLCWig.js → repo-git-DGrhzyWR.js} +1 -1
  68. package/web/dist/assets/{report-reader-iTBkUgg-.js → report-reader-C2yXiPa9.js} +1 -1
  69. package/web/dist/assets/{reports-BJF1Cl3C.js → reports-mmONzYgk.js} +1 -1
  70. package/web/dist/assets/{run-header-BxB6gyt1.js → run-header-Cin11tct.js} +1 -1
  71. package/web/dist/assets/{skills-DvgHKWgK.js → skills-N0vkndca.js} +1 -1
  72. package/web/dist/assets/{task-changes-CStxhLFG.js → task-changes-BhvqWHW7.js} +1 -1
  73. package/web/dist/assets/{task-commits-DhpOAdOf.js → task-commits-RGVmBirX.js} +1 -1
  74. package/web/dist/assets/{task-files-COmKUUfN.js → task-files-B-W_PC8S.js} +1 -1
  75. package/web/dist/assets/{task-github-item-BNLeAz58.js → task-github-item-csNEiMBa.js} +1 -1
  76. package/web/dist/assets/task-thread-B23Uq5iQ.js +9 -0
  77. package/web/dist/assets/thread-state-DeDb0lsY.js +4 -0
  78. package/web/dist/assets/use-desktop-jIeTPw3K.js +1 -0
  79. package/web/dist/assets/use-hand-to-agent-state-CIysCyMM.js +1 -0
  80. package/web/dist/assets/{workflows-CN8uKYnY.js → workflows-k0YtC-LB.js} +1 -1
  81. package/web/dist/index.html +5 -5
  82. package/web/dist/assets/agent-accounts-Bc0LJ4SB.js +0 -18
  83. package/web/dist/assets/github-CAPNq5vY.js +0 -1
  84. package/web/dist/assets/index-CpwAOct4.js +0 -17
  85. package/web/dist/assets/preview-pane-connected-CGw_9VuF.js +0 -3
  86. package/web/dist/assets/task-thread-DjSFvEQe.js +0 -9
  87. package/web/dist/assets/thread-state-B5tTsVNm.js +0 -4
  88. package/web/dist/assets/use-desktop-BPWIJ0Kw.js +0 -1
  89. package/web/dist/assets/use-hand-to-agent-state-Ce6QW2j_.js +0 -1
@@ -59,6 +59,29 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
59
59
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
60
60
  "/workspace/activity": {
61
61
  $get: {
62
+ output: {
63
+ error: string;
64
+ code?: "invalid_input" | undefined;
65
+ };
66
+ outputFormat: "json";
67
+ status: 400;
68
+ input: {
69
+ query: {
70
+ project?: string | undefined;
71
+ };
72
+ };
73
+ } | {
74
+ output: {
75
+ error: string;
76
+ };
77
+ outputFormat: "json";
78
+ status: 404 | 409 | 503;
79
+ input: {
80
+ query: {
81
+ project?: string | undefined;
82
+ };
83
+ };
84
+ } | {
62
85
  output: {
63
86
  generatedAt: string;
64
87
  projects: {
@@ -289,29 +312,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
289
312
  project?: string | undefined;
290
313
  };
291
314
  };
292
- } | {
293
- output: {
294
- error: string;
295
- code?: "invalid_input" | undefined;
296
- };
297
- outputFormat: "json";
298
- status: 400;
299
- input: {
300
- query: {
301
- project?: string | undefined;
302
- };
303
- };
304
- } | {
305
- output: {
306
- error: string;
307
- };
308
- outputFormat: "json";
309
- status: 404 | 409 | 503;
310
- input: {
311
- query: {
312
- project?: string | undefined;
313
- };
314
- };
315
315
  };
316
316
  };
317
317
  }, "/", "/workspace/activity">;
@@ -125,7 +125,7 @@ import { readAccountIdentity } from '../agent-config/account-identity.js';
125
125
  import { defaultWorkspaceConfig, loadWorkspaceConfig, mergeWriteWorkspaceConfig, effectiveComposerDefault, } from '../workspace/config.js';
126
126
  import { CONTROL_CHARS_RE, DEFAULT_AGENT_ACCOUNT_ID, defaultAgentAccountStore, isAbsoluteConfigDir, loadAgentAccounts, mergeWriteAgentAccounts, } from '../workspace/agent-accounts.js';
127
127
  import { defaultAgentProfile, listAgentProfiles, namedAccountUnavailable, ompProfileDirError, profileDirState, resolveStoredProfile, sameProfileDir, } from '../workspace/agent-profiles.js';
128
- import { PROFILE_CAPABLE_PROVIDERS, profileAgentDir, profileEnv, supportsProfiles } from '../core/agent-profiles.js';
128
+ import { PROFILE_CAPABLE_PROVIDERS, profileAgentDir, profileEnv, selectsByProfileName, supportsProfiles } from '../core/agent-profiles.js';
129
129
  import { quoteExecutable, shellQuote, withEnvPrefix } from '../core/shell-env.js';
130
130
  import { resolveCursorExecutable } from '../core/cursor-model-catalog.js';
131
131
  import { resolveOmpExecutable } from '../core/omp-model-catalog.js';
@@ -135,7 +135,7 @@ import { checkoutRepo } from './checkout.js';
135
135
  import { createProject, listGithubOwners } from './create-project.js';
136
136
  import { createWorkspaceRunFeed } from './workspace-run-feed.js';
137
137
  import { mergeWriteProjectUiState, readUiState } from '../ui-state.js';
138
- import { agentHomePaths, expandTilde } from '../paths.js';
138
+ import { AGENT_HOME_SLOT, agentHomePaths, expandTilde } from '../paths.js';
139
139
  import { isLoopbackHostHeader, normalizeHostname, resolveCapabilities } from './capabilities.js';
140
140
  import { browseDirectory, isInsideBrowseRoot, isLexicallyInsideBrowseRoot, resolveBrowseRoot } from './fs-browse.js';
141
141
  import { resolveForge, forgeWebRoot, resolveForgeRoot, GithubPrNotFoundError, GH_CHECKS_MAX, GH_REF_STATUS_MAX } from './forge/index.js';
@@ -1069,15 +1069,11 @@ export function createApp(deps) {
1069
1069
  * ids opaque and stable so the open route below never takes a path from the client.
1070
1070
  */
1071
1071
  const accountFiles = async (profile) => {
1072
+ // A discovered default is already an agent dir; a named account may keep its config in a
1073
+ // subfolder of its folder (omp's `agent/`).
1072
1074
  const home = {
1073
1075
  ...agentHomePaths(),
1074
- ...(profile.provider === 'claude' ? { claude: profile.path } : {}),
1075
- ...(profile.provider === 'codex' ? { codex: profile.path } : {}),
1076
- ...(profile.provider === 'opencode' ? { opencodeConfig: profile.path } : {}),
1077
- ...(profile.provider === 'pi' ? { pi: profile.path } : {}),
1078
- // The discovered omp account is already an agent dir; a named one is a profile folder that
1079
- // keeps its config in `agent/`.
1080
- ...(profile.provider === 'omp' ? { omp: profile.isDefault ? profile.path : profileAgentDir('omp', profile.path) } : {}),
1076
+ [AGENT_HOME_SLOT[profile.provider]]: profile.isDefault ? profile.path : profileAgentDir(profile.provider, profile.path),
1081
1077
  };
1082
1078
  const defs = listConfigFiles().filter((def) => def.scope === 'user' && def.runners.includes(profile.provider));
1083
1079
  return Promise.all(defs.map(async (def) => {
@@ -1152,7 +1148,7 @@ export function createApp(deps) {
1152
1148
  if (!isAbsoluteConfigDir(expanded))
1153
1149
  return `folder must be an absolute path: ${configDir}`;
1154
1150
  // An omp account is selected by profile NAME, so only a folder in omp's profiles dir can be one.
1155
- if (provider === 'omp')
1151
+ if (selectsByProfileName(provider))
1156
1152
  return ompProfileDirError(expanded);
1157
1153
  return null;
1158
1154
  };