@hearsay-tools/squawk 0.18.0-pr3531.6325 → 0.18.0-pr3532.6324
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/ci-wait/controller.d.ts +37 -37
- package/dist/delegation/routes.d.ts +62 -62
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/delegation/workspace-git.d.ts +2 -5
- package/dist/delegation/workspace-git.js +5 -11
- package/dist/delegation/workspace-git.js.map +1 -1
- package/dist/delegation/workspace.js +3 -3
- package/dist/delegation/workspace.js.map +1 -1
- package/dist/git-command.d.ts +14 -2
- package/dist/git-command.js +30 -3
- package/dist/git-command.js.map +1 -1
- package/dist/git-private-index.js +1 -2
- package/dist/git-private-index.js.map +1 -1
- package/dist/git-worktree-lock.js +5 -3
- package/dist/git-worktree-lock.js.map +1 -1
- package/dist/runs/store.d.ts +1 -1
- package/dist/runs/store.js +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/create-project.js +2 -1
- package/dist/server/create-project.js.map +1 -1
- package/dist/server/forge/draft-pr.js +2 -1
- package/dist/server/forge/draft-pr.js.map +1 -1
- package/dist/server/git-changes.d.ts +18 -0
- package/dist/server/git-changes.js +22 -17
- package/dist/server/git-changes.js.map +1 -1
- package/dist/server/repo-branches.js +2 -4
- package/dist/server/repo-branches.js.map +1 -1
- package/dist/server/repo-pull.js +2 -1
- package/dist/server/repo-pull.js.map +1 -1
- package/dist/server/server.d.ts +1416 -1416
- package/dist/server/server.js +21 -16
- package/dist/server/server.js.map +1 -1
- package/dist/skills-remote.js +2 -1
- package/dist/skills-remote.js.map +1 -1
- package/dist/voice/routes.d.ts +19 -19
- package/package.json +4 -4
package/dist/server/server.js
CHANGED
|
@@ -1189,13 +1189,6 @@ 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
|
-
};
|
|
1199
1192
|
/** Validate a client-supplied config dir. Returns the error text, or null when it is usable. */
|
|
1200
1193
|
const checkProfileDir = async (configDir, provider) => {
|
|
1201
1194
|
if (CONTROL_CHARS_RE.test(configDir))
|
|
@@ -1392,9 +1385,13 @@ export function createApp(deps) {
|
|
|
1392
1385
|
* unsettled one for a minute (`cacheTtlFor` in `core/provider-auth.ts`).
|
|
1393
1386
|
*/
|
|
1394
1387
|
.get('/workspace/agent-profiles/:id/status', paramZodValidator(agentProfileRouteParamsSchema), queryZodValidator(strictRefreshQuerySchema, { message: 'refresh must be 1 when provided' }), async (c) => {
|
|
1395
|
-
|
|
1396
|
-
if (
|
|
1397
|
-
return
|
|
1388
|
+
// jscpd:ignore-start -- hearsay-tools/cezarion#1888: unchanged gate; only the validator arguments around it moved.
|
|
1389
|
+
if (!capabilities().localHandoff)
|
|
1390
|
+
return c.json(hostedProfileRefusal, 409);
|
|
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
|
|
1398
1395
|
const refresh = c.req.valid('query').refresh === '1';
|
|
1399
1396
|
if (refresh)
|
|
1400
1397
|
invalidateHostModels(account.provider);
|
|
@@ -1427,9 +1424,13 @@ export function createApp(deps) {
|
|
|
1427
1424
|
* listings, logs and run persistence.
|
|
1428
1425
|
*/
|
|
1429
1426
|
.get('/workspace/agent-profiles/:id/details', paramZodValidator(agentProfileRouteParamsSchema), async (c) => {
|
|
1430
|
-
|
|
1431
|
-
if (
|
|
1432
|
-
return
|
|
1427
|
+
// jscpd:ignore-start -- hearsay-tools/cezarion#1888: unchanged gate; only the validator arguments around it moved.
|
|
1428
|
+
if (!capabilities().localHandoff)
|
|
1429
|
+
return c.json(hostedProfileRefusal, 409);
|
|
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
|
|
1433
1434
|
return c.json(await readAccountIdentity(account.provider, account.path));
|
|
1434
1435
|
})
|
|
1435
1436
|
/**
|
|
@@ -1441,9 +1442,13 @@ export function createApp(deps) {
|
|
|
1441
1442
|
* the account's dir rather than anything the caller spelled.
|
|
1442
1443
|
*/
|
|
1443
1444
|
.post('/workspace/agent-profiles/:id/open', paramZodValidator(agentProfileRouteParamsSchema), jsonZodValidator(() => openAgentAccountFileSchema), async (c) => {
|
|
1444
|
-
|
|
1445
|
-
if (
|
|
1446
|
-
return
|
|
1445
|
+
// jscpd:ignore-start -- hearsay-tools/cezarion#1888: unchanged gate; only the validator arguments around it moved.
|
|
1446
|
+
if (!capabilities().localHandoff)
|
|
1447
|
+
return c.json(hostedProfileRefusal, 409);
|
|
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
|
|
1447
1452
|
const { file, target } = c.req.valid('json');
|
|
1448
1453
|
let path;
|
|
1449
1454
|
if (file === 'folder') {
|