@hearsay-tools/squawk 0.18.0-pr3528.6317 → 0.18.0-pr3531.6325
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/delegation/transport.d.ts +62 -62
- package/dist/runs/run-index.js +46 -16
- package/dist/runs/run-index.js.map +1 -1
- package/dist/runs/run-references.d.ts +0 -3
- package/dist/runs/run-references.js +1 -8
- package/dist/runs/run-references.js.map +1 -1
- package/dist/runs/store.d.ts +1 -11
- package/dist/runs/store.js +22 -19
- package/dist/runs/store.js.map +1 -1
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +1416 -1416
- package/dist/server/server.js +16 -21
- package/dist/server/server.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-EQnubAye.js → activity-motion-DC9hC5nV.js} +1 -1
- package/web/dist/assets/{activity-route-r8W5w3yi.js → activity-route-BJxCiEIp.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-D5znh9KC.js → commit-diff-panel-CtUOJAqz.js} +1 -1
- package/web/dist/assets/{diff-chMTLAOx.js → diff-DJyC6ofi.js} +2 -2
- package/web/dist/assets/{diff-view-BW1lfwHY.js → diff-view-20SWzhxR.js} +1 -1
- package/web/dist/assets/{file-preview-CHkgDXDV.js → file-preview-C_c-tyCm.js} +1 -1
- package/web/dist/assets/{git-toolbar-C341Gf_9.js → git-toolbar-Dm75uXLu.js} +1 -1
- package/web/dist/assets/{github-BCvTNEUj.js → github-BtFBo0G5.js} +1 -1
- package/web/dist/assets/{global-activity-route-BTB-eVuo.js → global-activity-route-Dr3RsNfM.js} +1 -1
- package/web/dist/assets/{index-CyyH67ZV.js → index-jbljrsnC.js} +3 -3
- package/web/dist/assets/{preview-pane-connected-DT7LGLl1.js → preview-pane-connected-NLUpfhGa.js} +1 -1
- package/web/dist/assets/{repo-git-DbRTlhfY.js → repo-git-uAud743a.js} +1 -1
- package/web/dist/assets/{report-reader-BWiwqjkj.js → report-reader-CdSUukXf.js} +1 -1
- package/web/dist/assets/{reports-Dshiq6sf.js → reports-C842hFaD.js} +1 -1
- package/web/dist/assets/{run-header-CfnMPD0X.js → run-header-Bj-L6zkj.js} +1 -1
- package/web/dist/assets/{skills-C9220-7a.js → skills-DFTYrwoH.js} +1 -1
- package/web/dist/assets/{task-changes-DZjJTxlb.js → task-changes-Bh_7YAeI.js} +1 -1
- package/web/dist/assets/{task-commits-BD4B1joH.js → task-commits-DfXEs6zT.js} +1 -1
- package/web/dist/assets/{task-files-DsZVyYC-.js → task-files-BRhNrDE4.js} +1 -1
- package/web/dist/assets/{task-github-item-CBKDdiMH.js → task-github-item-BqZH0LVz.js} +1 -1
- package/web/dist/assets/{task-thread-CI3Vr8ly.js → task-thread-DvZKVSna.js} +3 -3
- package/web/dist/assets/{thread-state-VqLmoI6u.js → thread-state-FqUDnt89.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-ulIFVdrs.js → use-hand-to-agent-state-DeLboLqM.js} +1 -1
- package/web/dist/assets/{workflows-Dlef9w9O.js → workflows-DIB7faC8.js} +1 -1
- package/web/dist/index.html +1 -1
package/dist/server/server.js
CHANGED
|
@@ -1189,6 +1189,13 @@ export function createApp(deps) {
|
|
|
1189
1189
|
return null;
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
|
+
/** The per-account routes' gate: refuse hosted mode before resolving the id, then 404 an unknown id. */
|
|
1193
|
+
const localAccount = async (c) => {
|
|
1194
|
+
if (!capabilities().localHandoff)
|
|
1195
|
+
return c.json(hostedProfileRefusal, 409);
|
|
1196
|
+
const id = c.req.param('id');
|
|
1197
|
+
return (await accountById(id)) ?? c.json({ error: `unknown account: ${id}` }, 404);
|
|
1198
|
+
};
|
|
1192
1199
|
/** Validate a client-supplied config dir. Returns the error text, or null when it is usable. */
|
|
1193
1200
|
const checkProfileDir = async (configDir, provider) => {
|
|
1194
1201
|
if (CONTROL_CHARS_RE.test(configDir))
|
|
@@ -1385,13 +1392,9 @@ export function createApp(deps) {
|
|
|
1385
1392
|
* unsettled one for a minute (`cacheTtlFor` in `core/provider-auth.ts`).
|
|
1386
1393
|
*/
|
|
1387
1394
|
.get('/workspace/agent-profiles/:id/status', paramZodValidator(agentProfileRouteParamsSchema), queryZodValidator(strictRefreshQuerySchema, { message: 'refresh must be 1 when provided' }), async (c) => {
|
|
1388
|
-
|
|
1389
|
-
if (
|
|
1390
|
-
return
|
|
1391
|
-
const account = await accountById(c.req.param('id'));
|
|
1392
|
-
if (!account)
|
|
1393
|
-
return c.json({ error: `unknown account: ${c.req.param('id')}` }, 404);
|
|
1394
|
-
// jscpd:ignore-end
|
|
1395
|
+
const account = await localAccount(c);
|
|
1396
|
+
if (account instanceof Response)
|
|
1397
|
+
return account;
|
|
1395
1398
|
const refresh = c.req.valid('query').refresh === '1';
|
|
1396
1399
|
if (refresh)
|
|
1397
1400
|
invalidateHostModels(account.provider);
|
|
@@ -1424,13 +1427,9 @@ export function createApp(deps) {
|
|
|
1424
1427
|
* listings, logs and run persistence.
|
|
1425
1428
|
*/
|
|
1426
1429
|
.get('/workspace/agent-profiles/:id/details', paramZodValidator(agentProfileRouteParamsSchema), async (c) => {
|
|
1427
|
-
|
|
1428
|
-
if (
|
|
1429
|
-
return
|
|
1430
|
-
const account = await accountById(c.req.param('id'));
|
|
1431
|
-
if (!account)
|
|
1432
|
-
return c.json({ error: `unknown account: ${c.req.param('id')}` }, 404);
|
|
1433
|
-
// jscpd:ignore-end
|
|
1430
|
+
const account = await localAccount(c);
|
|
1431
|
+
if (account instanceof Response)
|
|
1432
|
+
return account;
|
|
1434
1433
|
return c.json(await readAccountIdentity(account.provider, account.path));
|
|
1435
1434
|
})
|
|
1436
1435
|
/**
|
|
@@ -1442,13 +1441,9 @@ export function createApp(deps) {
|
|
|
1442
1441
|
* the account's dir rather than anything the caller spelled.
|
|
1443
1442
|
*/
|
|
1444
1443
|
.post('/workspace/agent-profiles/:id/open', paramZodValidator(agentProfileRouteParamsSchema), jsonZodValidator(() => openAgentAccountFileSchema), async (c) => {
|
|
1445
|
-
|
|
1446
|
-
if (
|
|
1447
|
-
return
|
|
1448
|
-
const account = await accountById(c.req.param('id'));
|
|
1449
|
-
if (!account)
|
|
1450
|
-
return c.json({ error: `unknown account: ${c.req.param('id')}` }, 404);
|
|
1451
|
-
// jscpd:ignore-end
|
|
1444
|
+
const account = await localAccount(c);
|
|
1445
|
+
if (account instanceof Response)
|
|
1446
|
+
return account;
|
|
1452
1447
|
const { file, target } = c.req.valid('json');
|
|
1453
1448
|
let path;
|
|
1454
1449
|
if (file === 'folder') {
|