@hearsay-tools/squawk 0.18.0-dev.6739 → 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 (48) 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/core/agent-profiles.d.ts +42 -9
  4. package/dist/core/agent-profiles.js +33 -26
  5. package/dist/core/agent-profiles.js.map +1 -1
  6. package/dist/core/agent-runner.d.ts +5 -0
  7. package/dist/core/agent-runner.js +11 -0
  8. package/dist/core/agent-runner.js.map +1 -1
  9. package/dist/core/claude-cli-runner.d.ts +1 -0
  10. package/dist/core/codex-app-server-runner.d.ts +1 -0
  11. package/dist/core/cursor-print-runner.d.ts +1 -0
  12. package/dist/core/cursor-runner.d.ts +1 -0
  13. package/dist/core/omp-runner.d.ts +1 -0
  14. package/dist/core/opencode-server-runner.d.ts +1 -0
  15. package/dist/core/pi-runner.d.ts +1 -0
  16. package/dist/core/runner-facts.d.ts +9 -0
  17. package/dist/core/runner-facts.js +6 -0
  18. package/dist/core/runner-facts.js.map +1 -1
  19. package/dist/delegation/execution-identity.js +25 -30
  20. package/dist/delegation/execution-identity.js.map +1 -1
  21. package/dist/home/legacy-account-paths.js +2 -1
  22. package/dist/home/legacy-account-paths.js.map +1 -1
  23. package/dist/home/migration-accounts.d.ts +1 -1
  24. package/dist/home/migration-accounts.js +3 -2
  25. package/dist/home/migration-accounts.js.map +1 -1
  26. package/dist/paths.d.ts +3 -0
  27. package/dist/paths.js +4 -0
  28. package/dist/paths.js.map +1 -1
  29. package/dist/planner.js +4 -3
  30. package/dist/planner.js.map +1 -1
  31. package/dist/runs/auto-name.d.ts +1 -1
  32. package/dist/runs/auto-name.js +3 -2
  33. package/dist/runs/auto-name.js.map +1 -1
  34. package/dist/runs/store.js +2 -2
  35. package/dist/runs/store.js.map +1 -1
  36. package/dist/server/server.d.ts +58 -58
  37. package/dist/server/server.js +6 -10
  38. package/dist/server/server.js.map +1 -1
  39. package/dist/server-install/steps.js +24 -17
  40. package/dist/server-install/steps.js.map +1 -1
  41. package/dist/workflows/types.js +2 -3
  42. package/dist/workflows/types.js.map +1 -1
  43. package/dist/workspace/agent-accounts.js +2 -2
  44. package/dist/workspace/agent-accounts.js.map +1 -1
  45. package/dist/workspace/agent-profiles.d.ts +1 -1
  46. package/dist/workspace/agent-profiles.js +5 -5
  47. package/dist/workspace/agent-profiles.js.map +1 -1
  48. package/package.json +4 -4
@@ -4794,6 +4794,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4794
4794
  } & {
4795
4795
  "/repo/commit/:sha": {
4796
4796
  $get: {
4797
+ output: string;
4798
+ outputFormat: "text";
4799
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4800
+ input: {
4801
+ query: {
4802
+ structured?: string | undefined;
4803
+ };
4804
+ } & {
4805
+ param: {
4806
+ sha: string;
4807
+ };
4808
+ };
4809
+ } | {
4797
4810
  output: {
4798
4811
  error: string;
4799
4812
  code?: "invalid_input" | undefined;
@@ -4857,19 +4870,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4857
4870
  sha: string;
4858
4871
  };
4859
4872
  };
4860
- } | {
4861
- output: string;
4862
- outputFormat: "text";
4863
- status: import("hono/utils/http-status").ContentfulStatusCode;
4864
- input: {
4865
- query: {
4866
- structured?: string | undefined;
4867
- };
4868
- } & {
4869
- param: {
4870
- sha: string;
4871
- };
4872
- };
4873
4873
  };
4874
4874
  };
4875
4875
  } & {
@@ -18206,20 +18206,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18206
18206
  } & {
18207
18207
  "/runs/:id/handoff": {
18208
18208
  $get: {
18209
- output: {
18210
- error: string;
18211
- };
18212
- outputFormat: "json";
18213
- status: 404;
18209
+ output: string;
18210
+ outputFormat: "text";
18211
+ status: 200;
18214
18212
  input: {
18215
18213
  param: {
18216
18214
  id: string;
18217
18215
  };
18218
18216
  };
18219
18217
  } | {
18220
- output: string;
18221
- outputFormat: "text";
18222
- status: 200;
18218
+ output: {
18219
+ error: string;
18220
+ };
18221
+ outputFormat: "json";
18222
+ status: 404;
18223
18223
  input: {
18224
18224
  param: {
18225
18225
  id: string;
@@ -18257,20 +18257,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18257
18257
  } & {
18258
18258
  "/runs/:id/diff": {
18259
18259
  $get: {
18260
- output: {
18261
- error: string;
18262
- };
18263
- outputFormat: "json";
18264
- status: 404 | 409;
18260
+ output: string;
18261
+ outputFormat: "text";
18262
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18265
18263
  input: {
18266
18264
  param: {
18267
18265
  id: string;
18268
18266
  };
18269
18267
  };
18270
18268
  } | {
18271
- output: string;
18272
- outputFormat: "text";
18273
- status: import("hono/utils/http-status").ContentfulStatusCode;
18269
+ output: {
18270
+ error: string;
18271
+ };
18272
+ outputFormat: "json";
18273
+ status: 404 | 409;
18274
18274
  input: {
18275
18275
  param: {
18276
18276
  id: string;
@@ -20563,6 +20563,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20563
20563
  } & {
20564
20564
  "/repo/commit/:sha": {
20565
20565
  $get: {
20566
+ output: string;
20567
+ outputFormat: "text";
20568
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20569
+ input: {
20570
+ query: {
20571
+ structured?: string | undefined;
20572
+ };
20573
+ } & {
20574
+ param: {
20575
+ sha: string;
20576
+ };
20577
+ };
20578
+ } | {
20566
20579
  output: {
20567
20580
  error: string;
20568
20581
  code?: "invalid_input" | undefined;
@@ -20626,19 +20639,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20626
20639
  sha: string;
20627
20640
  };
20628
20641
  };
20629
- } | {
20630
- output: string;
20631
- outputFormat: "text";
20632
- status: import("hono/utils/http-status").ContentfulStatusCode;
20633
- input: {
20634
- query: {
20635
- structured?: string | undefined;
20636
- };
20637
- } & {
20638
- param: {
20639
- sha: string;
20640
- };
20641
- };
20642
20642
  };
20643
20643
  };
20644
20644
  } & {
@@ -33975,20 +33975,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33975
33975
  } & {
33976
33976
  "/runs/:id/handoff": {
33977
33977
  $get: {
33978
- output: {
33979
- error: string;
33980
- };
33981
- outputFormat: "json";
33982
- status: 404;
33978
+ output: string;
33979
+ outputFormat: "text";
33980
+ status: 200;
33983
33981
  input: {
33984
33982
  param: {
33985
33983
  id: string;
33986
33984
  };
33987
33985
  };
33988
33986
  } | {
33989
- output: string;
33990
- outputFormat: "text";
33991
- status: 200;
33987
+ output: {
33988
+ error: string;
33989
+ };
33990
+ outputFormat: "json";
33991
+ status: 404;
33992
33992
  input: {
33993
33993
  param: {
33994
33994
  id: string;
@@ -34026,20 +34026,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34026
34026
  } & {
34027
34027
  "/runs/:id/diff": {
34028
34028
  $get: {
34029
- output: {
34030
- error: string;
34031
- };
34032
- outputFormat: "json";
34033
- status: 404 | 409;
34029
+ output: string;
34030
+ outputFormat: "text";
34031
+ status: import("hono/utils/http-status").ContentfulStatusCode;
34034
34032
  input: {
34035
34033
  param: {
34036
34034
  id: string;
34037
34035
  };
34038
34036
  };
34039
34037
  } | {
34040
- output: string;
34041
- outputFormat: "text";
34042
- status: import("hono/utils/http-status").ContentfulStatusCode;
34038
+ output: {
34039
+ error: string;
34040
+ };
34041
+ outputFormat: "json";
34042
+ status: 404 | 409;
34043
34043
  input: {
34044
34044
  param: {
34045
34045
  id: string;
@@ -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
  };