@hearsay-tools/squawk 0.18.0-dev.8137 → 0.18.0-dev.8147
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/automations/service.js +3 -2
- package/dist/automations/service.js.map +1 -1
- package/dist/config.d.ts +2 -4
- package/dist/config.js +34 -10
- package/dist/config.js.map +1 -1
- package/dist/core/runner-id-schema.d.ts +7 -0
- package/dist/core/runner-id-schema.js +14 -0
- package/dist/core/runner-id-schema.js.map +1 -1
- package/dist/core/runner-registry.js +8 -0
- package/dist/core/runner-registry.js.map +1 -1
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/planner.js +8 -5
- package/dist/planner.js.map +1 -1
- package/dist/runs/auto-name.js +6 -3
- package/dist/runs/auto-name.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/provider-action-gate.js +3 -2
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/runners-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1613 -1613
- package/dist/server/server.js +9 -25
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.js +9 -3
- package/dist/server/start-run-options.js.map +1 -1
- package/dist/task-cli/cli.js +20 -4
- package/dist/task-cli/cli.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.js +5 -2
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workspace/agent-accounts.d.ts +6 -1
- package/dist/workspace/agent-accounts.js +33 -3
- package/dist/workspace/agent-accounts.js.map +1 -1
- package/dist/workspace/config.d.ts +7 -1
- package/dist/workspace/config.js +19 -4
- package/dist/workspace/config.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/accounts-section-CZzEOP8R.js +1 -0
- package/web/dist/assets/{activity-motion-D80Uv4-Z.js → activity-motion-Jmq2_2yL.js} +1 -1
- package/web/dist/assets/{activity-route-DVT8IWTR.js → activity-route-SFwjSBCp.js} +1 -1
- package/web/dist/assets/{agent-config-section-BbwkJunW.js → agent-config-section-BumcXk5K.js} +2 -2
- package/web/dist/assets/agent-defaults-section-VUhgYmuN.js +1 -0
- package/web/dist/assets/{appearance-B6YBsmTo.js → appearance-CpDAS_Ul.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-Bx1bEmI8.js → archive-on-merge-field-DlkEGuaI.js} +1 -1
- package/web/dist/assets/automations-route-BwDLBy9v.js +1 -0
- package/web/dist/assets/{commit-diff-panel-DKUnniap.js → commit-diff-panel-DE6af9SI.js} +1 -1
- package/web/dist/assets/diff-DKigJrIK.js +3 -0
- package/web/dist/assets/{diff-view-D_bjQyDl.js → diff-view-BV41OEIW.js} +1 -1
- package/web/dist/assets/{file-preview-glEH09z8.js → file-preview-CXXKcpBz.js} +1 -1
- package/web/dist/assets/{folder-browser-G_9ZgDjg.js → folder-browser-zsT1W215.js} +1 -1
- package/web/dist/assets/{git-toolbar-CTsmGICA.js → git-toolbar-DM1Z5LRO.js} +1 -1
- package/web/dist/assets/github-Z2_nA6EI.js +1 -0
- package/web/dist/assets/{global-activity-route-BP_Z7HNc.js → global-activity-route-DcQEMY2A.js} +1 -1
- package/web/dist/assets/index-jtycbyRq.js +21 -0
- package/web/dist/assets/{label-BWld23ke.js → label-9ElpAxAO.js} +1 -1
- package/web/dist/assets/{markdown-CT65TA_B.js → markdown-BDx7WnW8.js} +1 -1
- package/web/dist/assets/{notifications-section-DuSzYLwP.js → notifications-section-CjgS2_uZ.js} +1 -1
- package/web/dist/assets/open-in-menu-jthe8d7_.js +1 -0
- package/web/dist/assets/{preview-pane-connected-DHmgDHId.js → preview-pane-connected-BdpApHW4.js} +1 -1
- package/web/dist/assets/{project-location-BM-6wMI3.js → project-location-Do0zCjuE.js} +1 -1
- package/web/dist/assets/{projects-section-Dr0xJWTm.js → projects-section-B94Rc_Ig.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-COKMgKMw.js → prompt-templates-section-Bm4SvXEV.js} +1 -1
- package/web/dist/assets/queries-DfxoqDBz.js +1 -0
- package/web/dist/assets/{reference-chip-DTKtEtWv.js → reference-chip-B9Cnr6jR.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BV_sPAXc.js → remote-settings-notice-DXgS_yXZ.js} +1 -1
- package/web/dist/assets/{repo-git-BgXC4opq.js → repo-git-C99FduHG.js} +1 -1
- package/web/dist/assets/{report-reader-CtHvvSln.js → report-reader-BjVZrGCz.js} +1 -1
- package/web/dist/assets/{reports-CdbDUzkK.js → reports-DnQPedky.js} +1 -1
- package/web/dist/assets/{resources-section-C8KZ4hre.js → resources-section-DVi14Dy4.js} +1 -1
- package/web/dist/assets/run-header-CCO4OIcD.js +2 -0
- package/web/dist/assets/settings-agent-picker-DjvmMcxd.js +1 -0
- package/web/dist/assets/{settings-shell-DnYRfclU.js → settings-shell-BGvilCiB.js} +1 -1
- package/web/dist/assets/{sidebar-section-CCg4QGtg.js → sidebar-section-BR6GFKTd.js} +1 -1
- package/web/dist/assets/skills-BjtkIMxL.js +1 -0
- package/web/dist/assets/{task-changes-DWPWp6ZV.js → task-changes-B8siIdj_.js} +1 -1
- package/web/dist/assets/{task-commits-D576LERH.js → task-commits-CGYaXoYl.js} +1 -1
- package/web/dist/assets/{task-files-1EjplVVb.js → task-files-HaulqF8i.js} +1 -1
- package/web/dist/assets/{task-github-item-BubKlTej.js → task-github-item-DumSw4lZ.js} +1 -1
- package/web/dist/assets/{task-groups-D4RYW5I_.js → task-groups-BWeTwWTP.js} +1 -1
- package/web/dist/assets/task-thread-CeJ8GbmR.js +9 -0
- package/web/dist/assets/{tasks-table-DTNcYbbN.js → tasks-table-DS9DShj0.js} +1 -1
- package/web/dist/assets/{thread-state-BiS8rKQ-.js → thread-state-BeRGkUTA.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-DAmqctoU.js +1 -0
- package/web/dist/assets/{workflows-DbuTPPz7.js → workflows-bPgltsoh.js} +1 -1
- package/web/dist/assets/{workspace-tools-DPnEZoDL.js → workspace-tools-Clb89tgJ.js} +1 -1
- package/web/dist/assets/{worktrees-section-Vr8s9cio.js → worktrees-section-DdChlr21.js} +1 -1
- package/web/dist/index.html +8 -9
- package/web/dist/assets/accounts-section-BkKQ8sVH.js +0 -1
- package/web/dist/assets/agent-defaults-section-BLNTIZT_.js +0 -1
- package/web/dist/assets/automations-route-BOcGwfd4.js +0 -1
- package/web/dist/assets/diff-DUbLBjbg.js +0 -3
- package/web/dist/assets/github-BqW9PaQO.js +0 -1
- package/web/dist/assets/index-DXIRYobS.js +0 -21
- package/web/dist/assets/open-in-menu-D03osLGE.js +0 -1
- package/web/dist/assets/queries-yuG-mM6_.js +0 -1
- package/web/dist/assets/run-header-RQYKdIMw.js +0 -2
- package/web/dist/assets/runners-CDw7wLfd.js +0 -1
- package/web/dist/assets/settings-agent-picker-3uuSf9LK.js +0 -1
- package/web/dist/assets/skills-L01dfEnP.js +0 -1
- package/web/dist/assets/task-thread-yWACZZAo.js +0 -9
- package/web/dist/assets/use-hand-to-agent-state-BFx3SZia.js +0 -1
package/dist/server/server.js
CHANGED
|
@@ -85,7 +85,7 @@ import { setWorkspaceUiStateInputSchema } from '../contract/index.js';
|
|
|
85
85
|
// A contract VALUE, like `workspaceUiStateSchema` in workspace/migrations.ts — the request
|
|
86
86
|
// schema this route validates with is the same one the client compiles against.
|
|
87
87
|
import { openProjectInSchema } from '../contract/index.js';
|
|
88
|
-
import { knownRunnerIds, registeredRunnerId, registeredRunners, resolveRunnerId, runnerDefinition } from '../core/runner-registry.js';
|
|
88
|
+
import { isRegisteredRunner, knownRunnerIds, registeredRunnerId, registeredRunners, resolveRunnerId, runnerDefinition } from '../core/runner-registry.js';
|
|
89
89
|
import { REMOVED_RUNNER_IDS } from '../runs/legacy-run-rows.js';
|
|
90
90
|
import { attachmentFileParamSchema, } from '../contract/index.js';
|
|
91
91
|
import { agentWebhookParamsSchema, createProjectWebhookInputSchema, projectWebhookParamsSchema, sendAgentReportInputSchema, updateProjectInputSchema, updateProjectWebhookInputSchema, } from '../contract/index.js';
|
|
@@ -130,8 +130,8 @@ import { readConfigFile, writeConfigFile } from '../agent-config/files.js';
|
|
|
130
130
|
import { readAgentModelDefaults } from '../agent-config/models.js';
|
|
131
131
|
import { listAgentConfig } from '../agent-config/service.js';
|
|
132
132
|
import { findConfigFile } from '../agent-config/catalog.js';
|
|
133
|
-
import { defaultWorkspaceConfig, loadWorkspaceConfig, mergeWriteWorkspaceConfig, effectiveComposerDefault, } from '../workspace/config.js';
|
|
134
|
-
import { CONTROL_CHARS_RE, DEFAULT_AGENT_ACCOUNT_ID, defaultAgentAccountStore, isAbsoluteConfigDir, loadAgentAccounts, mergeWriteAgentAccounts, } from '../workspace/agent-accounts.js';
|
|
133
|
+
import { defaultWorkspaceConfig, loadWorkspaceConfig, mergeWriteWorkspaceConfig, preservedDisabledProviders, effectiveComposerDefault, } from '../workspace/config.js';
|
|
134
|
+
import { CONTROL_CHARS_RE, DEFAULT_AGENT_ACCOUNT_ID, defaultAgentAccountStore, isAbsoluteConfigDir, loadAgentAccounts, mergeWriteAgentAccounts, removeAgentAccount, } from '../workspace/agent-accounts.js';
|
|
135
135
|
import { defaultAgentProfile, listAgentProfiles, profileDirState, resolveStoredProfile, sameProfileDir, } from '../workspace/agent-profiles.js';
|
|
136
136
|
import { profileCapableProviders, profileEnv, supportsProfiles } from '../core/agent-profiles.js';
|
|
137
137
|
import { shellQuote, withEnvPrefix } from '../core/shell-env.js';
|
|
@@ -871,7 +871,7 @@ export function createApp(deps) {
|
|
|
871
871
|
disabled.delete(provider.data);
|
|
872
872
|
else
|
|
873
873
|
disabled.add(provider.data);
|
|
874
|
-
config.disabledProviders = registeredRunners().map(({ id }) => id)
|
|
874
|
+
config.disabledProviders = preservedDisabledProviders(registeredRunners().map(({ id }) => id), disabled, config.disabledProviders);
|
|
875
875
|
});
|
|
876
876
|
}
|
|
877
877
|
catch {
|
|
@@ -1015,7 +1015,7 @@ export function createApp(deps) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
try {
|
|
1017
1017
|
const stored = (await loadAgentAccounts(deps.home)).accounts.find((a) => a.id === id);
|
|
1018
|
-
return stored ? resolveStoredProfile(stored) : null;
|
|
1018
|
+
return stored && isRegisteredRunner(stored.provider) ? resolveStoredProfile(stored) : null;
|
|
1019
1019
|
}
|
|
1020
1020
|
catch {
|
|
1021
1021
|
return null;
|
|
@@ -1161,7 +1161,7 @@ export function createApp(deps) {
|
|
|
1161
1161
|
// unreadable store — treated as unknown, like DELETE and PATCH /projects
|
|
1162
1162
|
}
|
|
1163
1163
|
const current = existing.find((a) => a.id === id);
|
|
1164
|
-
if (!current)
|
|
1164
|
+
if (!current || !isRegisteredRunner(current.provider))
|
|
1165
1165
|
return c.json({ error: `unknown account: ${id}` }, 404);
|
|
1166
1166
|
if (configDir !== undefined) {
|
|
1167
1167
|
const conflict = await conflictingProfile(existing, current.provider, expandTilde(configDir), id);
|
|
@@ -1287,24 +1287,8 @@ export function createApp(deps) {
|
|
|
1287
1287
|
let removedProvider;
|
|
1288
1288
|
try {
|
|
1289
1289
|
await mergeWriteAgentAccounts((store) => {
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
store.accounts = store.accounts.filter((a) => a.id !== id);
|
|
1293
|
-
removed = store.accounts.length < before;
|
|
1294
|
-
if (!removed)
|
|
1295
|
-
return;
|
|
1296
|
-
// Scrub every reference IN THE SAME MUTATOR — the reason selections share this file.
|
|
1297
|
-
// A two-call delete-then-scrub can be observed mid-way by another Squawk process on
|
|
1298
|
-
// this machine, which would then resolve a dangling id; harmless today (it degrades
|
|
1299
|
-
// to the default) but only by luck.
|
|
1300
|
-
for (const [root, selection] of Object.entries(store.selections)) {
|
|
1301
|
-
for (const key of Object.keys(selection)) {
|
|
1302
|
-
if (selection[key] === id)
|
|
1303
|
-
delete selection[key];
|
|
1304
|
-
}
|
|
1305
|
-
if (Object.keys(selection).length === 0)
|
|
1306
|
-
delete store.selections[root];
|
|
1307
|
-
}
|
|
1290
|
+
removedProvider = removeAgentAccount(store, id);
|
|
1291
|
+
removed = removedProvider !== undefined;
|
|
1308
1292
|
}, deps.home);
|
|
1309
1293
|
}
|
|
1310
1294
|
catch (err) {
|
|
@@ -2094,7 +2078,7 @@ export function createApp(deps) {
|
|
|
2094
2078
|
.post('/plan', jsonZodValidator(planSchema), async (c) => {
|
|
2095
2079
|
const { root: repoRoot, manager } = c.get('project');
|
|
2096
2080
|
const parsed = { data: c.req.valid('json') };
|
|
2097
|
-
const planner = (await loadConfig(repoRoot, deps.home)).defaultRunner;
|
|
2081
|
+
const planner = resolveRunnerId((await loadConfig(repoRoot, deps.home)).defaultRunner);
|
|
2098
2082
|
const blocked = await providerActionError([planner], { repoRoot, picks: { [planner]: parsed.data.agentProfile } });
|
|
2099
2083
|
if (blocked)
|
|
2100
2084
|
return c.json({ error: blocked }, 409);
|