@hearsay-tools/squawk 0.18.0-pr3531.6325 → 0.18.0-pr3531.6331
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 +4 -4
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/core/host-path.d.ts +5 -0
- package/dist/core/host-path.js +9 -0
- package/dist/core/host-path.js.map +1 -0
- package/dist/delegation/routes.d.ts +13 -13
- package/dist/delegation/transport.d.ts +82 -82
- package/dist/server/checkout.js +2 -1
- package/dist/server/checkout.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +1416 -1416
- package/dist/server/server.js +3 -3
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/run/continuation-session.js +1 -1
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/family-reconciler.d.ts +0 -1
- package/dist/workflows/run/family-reconciler.js +0 -7
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/dist/workflows/run/input-delivery.d.ts +2 -3
- package/dist/workflows/run/input-delivery.js +26 -34
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/input-receipts.js +1 -2
- package/dist/workflows/run/input-receipts.js.map +1 -1
- package/dist/workflows/run/session-events.js +0 -1
- package/dist/workflows/run/session-events.js.map +1 -1
- package/dist/workflows/run/step-session.js +1 -1
- package/dist/workflows/run/step-session.js.map +1 -1
- package/dist/workflows/run/turn-markers.d.ts +0 -3
- package/dist/workflows/run/turn-markers.js +0 -11
- package/dist/workflows/run/turn-markers.js.map +1 -1
- package/dist/workflows/run/turn-settler.js +2 -2
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/types.d.ts +0 -2
- package/dist/workflows/run.d.ts +2 -2
- package/dist/workflows/run.js +1 -1
- package/dist/workflows/run.js.map +1 -1
- package/dist/workspace/config.js +2 -1
- package/dist/workspace/config.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-claude.mjs +4 -4
- package/scripts/mock-codex-app-server.mjs +4 -4
- package/scripts/mock-cursor-print.mjs +5 -6
- package/scripts/mock-nudge.mjs +1 -1
- package/scripts/mock-opencode-serve.mjs +4 -5
- package/scripts/mock-scenario.mjs +9 -18
- package/scripts/mock-silent-tail.mjs +1 -9
package/dist/server/server.js
CHANGED
|
@@ -29,6 +29,7 @@ import { commitQuerySchema } from '../contract/index.js';
|
|
|
29
29
|
import { imageMimeType } from '../contract/index.js';
|
|
30
30
|
import { providerForActiveRun } from '../contract/index.js';
|
|
31
31
|
import { defined } from '../core/defined.js';
|
|
32
|
+
import { isAbsoluteHostPath } from '../core/host-path.js';
|
|
32
33
|
import { resolveArchiveOnMerge, resolveGlobalArchiveOnMerge } from '../archive-on-merge-setting.js';
|
|
33
34
|
import { permissionDecisionSchema } from '../contract/index.js';
|
|
34
35
|
import { runIdParamSchema as permissionRunIdParamSchema } from '../contract/index.js';
|
|
@@ -2012,7 +2013,7 @@ export function createApp(deps) {
|
|
|
2012
2013
|
// dialog hands back absolute paths, but a hand-written body (curl, a
|
|
2013
2014
|
// future CLI) spells home the way a shell does.
|
|
2014
2015
|
const requested = expandTilde(spelled);
|
|
2015
|
-
if (!requested
|
|
2016
|
+
if (!isAbsoluteHostPath(requested)) {
|
|
2016
2017
|
return {
|
|
2017
2018
|
status: 400,
|
|
2018
2019
|
body: { error: `not a folder: ${spelled} is not an absolute path` },
|
|
@@ -2210,9 +2211,8 @@ export function createApp(deps) {
|
|
|
2210
2211
|
// exist; checkout roots use `mkdir -p`. Both get a real write probe.
|
|
2211
2212
|
// Any failure → 400 and NO change persisted.
|
|
2212
2213
|
const expanded = expandTilde(configuredRoot);
|
|
2213
|
-
if (!expanded
|
|
2214
|
+
if (!isAbsoluteHostPath(expanded))
|
|
2214
2215
|
return c.json({ error: `not writable: ${configuredRoot} is not an absolute path` }, 400);
|
|
2215
|
-
}
|
|
2216
2216
|
if (!create) {
|
|
2217
2217
|
try {
|
|
2218
2218
|
if (!(await stat(expanded)).isDirectory()) {
|