@hearsay-tools/squawk 0.18.0-pr3329.5837 → 0.18.0-pr3330.5844
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/README.md +1 -1
- package/dist/release/stable.d.ts +20 -0
- package/dist/release/stable.js +26 -0
- package/dist/release/stable.js.map +1 -1
- package/dist/server/server.d.ts +58 -58
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1831,7 +1831,7 @@ from this checkout. Run `pnpm install --frozen-lockfile` in each new worktree fi
|
|
|
1831
1831
|
Packaged CLI tests import built modules; CI checks them with
|
|
1832
1832
|
`npm run typecheck:package` after `npm run build`.
|
|
1833
1833
|
|
|
1834
|
-
CI runs
|
|
1834
|
+
CI runs eight duration-balanced Vitest shards alongside the build and package checks.
|
|
1835
1835
|
See [CI verification](docs/sdlc/ci.md) for the job graph and local commands.
|
|
1836
1836
|
|
|
1837
1837
|
The stack is deliberately small: **TypeScript** (strict, ESM), **Hono** + SSE for
|
package/dist/release/stable.d.ts
CHANGED
|
@@ -36,3 +36,23 @@ export type { ManifestLike, ReleaseManifests } from './manifests.ts';
|
|
|
36
36
|
* from. Everything else — which manifests exist, which sections carry the pin, what the alias
|
|
37
37
|
* inherits — lives in `manifests.ts` so the two channels cannot drift apart. */
|
|
38
38
|
export declare function stampStableManifests(manifests: ReleaseManifestSet, version: string): ReleaseManifestSet;
|
|
39
|
+
/** What one publication of the Release workflow writes: the version, its dist-tag, and how
|
|
40
|
+
* the set pins its siblings. */
|
|
41
|
+
export interface ReleaseTarget {
|
|
42
|
+
version: string;
|
|
43
|
+
distTag: string;
|
|
44
|
+
/** A release candidate pins its siblings exactly, so its tests run exactly that build. */
|
|
45
|
+
exactPins: boolean;
|
|
46
|
+
}
|
|
47
|
+
/** Resolve the release target, or explain why it is refused.
|
|
48
|
+
*
|
|
49
|
+
* Without a requested version the bump decides, under `latest`, as before. A requested
|
|
50
|
+
* version is either stable (`x.y.z`, under `latest` or a maintenance line's `latest-x.y`)
|
|
51
|
+
* or a release candidate (`x.y.z-rc.n`, under `next` or `next-x.y`). A candidate can never
|
|
52
|
+
* take `latest`, so an install of `@latest` never resolves to one. */
|
|
53
|
+
export declare function resolveReleaseTarget(bump: ReleaseBump, base: string, requested?: {
|
|
54
|
+
version?: string | undefined;
|
|
55
|
+
distTag?: string | undefined;
|
|
56
|
+
}): ReleaseTarget | {
|
|
57
|
+
error: string;
|
|
58
|
+
};
|
package/dist/release/stable.js
CHANGED
|
@@ -52,4 +52,30 @@ export function computeStableVersion(bump, base) {
|
|
|
52
52
|
export function stampStableManifests(manifests, version) {
|
|
53
53
|
return stampManifestSet(manifests, version, (v) => `^${v}`);
|
|
54
54
|
}
|
|
55
|
+
const STABLE_VERSION = /^\d+\.\d+\.\d+$/;
|
|
56
|
+
const CANDIDATE_VERSION = /^\d+\.\d+\.\d+-rc\.[1-9]\d*$/;
|
|
57
|
+
const STABLE_TAG = /^latest(?:-\d+\.\d+)?$/;
|
|
58
|
+
const CANDIDATE_TAG = /^next(?:-\d+\.\d+)?$/;
|
|
59
|
+
/** Resolve the release target, or explain why it is refused.
|
|
60
|
+
*
|
|
61
|
+
* Without a requested version the bump decides, under `latest`, as before. A requested
|
|
62
|
+
* version is either stable (`x.y.z`, under `latest` or a maintenance line's `latest-x.y`)
|
|
63
|
+
* or a release candidate (`x.y.z-rc.n`, under `next` or `next-x.y`). A candidate can never
|
|
64
|
+
* take `latest`, so an install of `@latest` never resolves to one. */
|
|
65
|
+
export function resolveReleaseTarget(bump, base, requested = {}) {
|
|
66
|
+
const version = requested.version || computeStableVersion(bump, base);
|
|
67
|
+
if (!version)
|
|
68
|
+
return { error: `cannot ${bump}-bump base version "${base}" — a stable release must start from a plain x.y.z.` };
|
|
69
|
+
const candidate = CANDIDATE_VERSION.test(version);
|
|
70
|
+
if (!candidate && !STABLE_VERSION.test(version))
|
|
71
|
+
return { error: `"${version}" is neither x.y.z nor x.y.z-rc.n.` };
|
|
72
|
+
const distTag = requested.distTag || (candidate ? '' : 'latest');
|
|
73
|
+
if (!(candidate ? CANDIDATE_TAG : STABLE_TAG).test(distTag)) {
|
|
74
|
+
return { error: `dist-tag "${distTag}" does not fit ${candidate ? 'a release candidate (next or next-x.y)' : 'a stable version (latest or latest-x.y)'}.` };
|
|
75
|
+
}
|
|
76
|
+
const line = /-(\d+\.\d+)$/.exec(distTag)?.[1];
|
|
77
|
+
if (line && !version.startsWith(`${line}.`))
|
|
78
|
+
return { error: `dist-tag "${distTag}" names another version line than ${version}.` };
|
|
79
|
+
return { version, distTag, exactPins: candidate };
|
|
80
|
+
}
|
|
55
81
|
//# sourceMappingURL=stable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stable.js","sourceRoot":"","sources":["../../src/release/stable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,gBAAgB,EAA+C,MAAM,gBAAgB,CAAC;AAO/F,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;AAE7F,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAQ,aAAmC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;;2DAM2D;AAC3D,MAAM,UAAU,oBAAoB,CAAC,IAAiB,EAAE,IAAY;IAClE,MAAM,CAAC,GAAG,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACpD,IAAI,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IACpB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzE,QAAQ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AC,CAAC;IAClD,IAAI,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,KAAK,EAAE,IAAI,OAAO,oCAAoC,EAAE,CAAC;IACnH,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5D,OAAO,EAAE,KAAK,EAAE,aAAa,OAAO,kBAAkB,SAAS,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAC,yCAAyC,GAAG,EAAE,CAAC;IAC9J,CAAC;IACD,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC/C,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,CAAC;QAAE,OAAO,EAAE,KAAK,EAAE,aAAa,OAAO,qCAAqC,OAAO,GAAG,EAAE,CAAC;IACnI,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACpD,CAAC"}
|
package/dist/server/server.d.ts
CHANGED
|
@@ -5289,19 +5289,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
5289
5289
|
} & {
|
|
5290
5290
|
"/repo/commit/:sha": {
|
|
5291
5291
|
$get: {
|
|
5292
|
-
output: string;
|
|
5293
|
-
outputFormat: "text";
|
|
5294
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
5295
|
-
input: {
|
|
5296
|
-
query: {
|
|
5297
|
-
structured?: string | undefined;
|
|
5298
|
-
};
|
|
5299
|
-
} & {
|
|
5300
|
-
param: {
|
|
5301
|
-
sha: string;
|
|
5302
|
-
};
|
|
5303
|
-
};
|
|
5304
|
-
} | {
|
|
5305
5292
|
output: {
|
|
5306
5293
|
error: string;
|
|
5307
5294
|
code?: "invalid_input" | undefined;
|
|
@@ -5365,6 +5352,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
5365
5352
|
sha: string;
|
|
5366
5353
|
};
|
|
5367
5354
|
};
|
|
5355
|
+
} | {
|
|
5356
|
+
output: string;
|
|
5357
|
+
outputFormat: "text";
|
|
5358
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
5359
|
+
input: {
|
|
5360
|
+
query: {
|
|
5361
|
+
structured?: string | undefined;
|
|
5362
|
+
};
|
|
5363
|
+
} & {
|
|
5364
|
+
param: {
|
|
5365
|
+
sha: string;
|
|
5366
|
+
};
|
|
5367
|
+
};
|
|
5368
5368
|
};
|
|
5369
5369
|
};
|
|
5370
5370
|
} & {
|
|
@@ -18687,20 +18687,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18687
18687
|
} & {
|
|
18688
18688
|
"/runs/:id/handoff": {
|
|
18689
18689
|
$get: {
|
|
18690
|
-
output:
|
|
18691
|
-
|
|
18692
|
-
|
|
18690
|
+
output: {
|
|
18691
|
+
error: string;
|
|
18692
|
+
};
|
|
18693
|
+
outputFormat: "json";
|
|
18694
|
+
status: 404;
|
|
18693
18695
|
input: {
|
|
18694
18696
|
param: {
|
|
18695
18697
|
id: string;
|
|
18696
18698
|
};
|
|
18697
18699
|
};
|
|
18698
18700
|
} | {
|
|
18699
|
-
output:
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
outputFormat: "json";
|
|
18703
|
-
status: 404;
|
|
18701
|
+
output: string;
|
|
18702
|
+
outputFormat: "text";
|
|
18703
|
+
status: 200;
|
|
18704
18704
|
input: {
|
|
18705
18705
|
param: {
|
|
18706
18706
|
id: string;
|
|
@@ -18738,20 +18738,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18738
18738
|
} & {
|
|
18739
18739
|
"/runs/:id/diff": {
|
|
18740
18740
|
$get: {
|
|
18741
|
-
output:
|
|
18742
|
-
|
|
18743
|
-
|
|
18741
|
+
output: {
|
|
18742
|
+
error: string;
|
|
18743
|
+
};
|
|
18744
|
+
outputFormat: "json";
|
|
18745
|
+
status: 404 | 409;
|
|
18744
18746
|
input: {
|
|
18745
18747
|
param: {
|
|
18746
18748
|
id: string;
|
|
18747
18749
|
};
|
|
18748
18750
|
};
|
|
18749
18751
|
} | {
|
|
18750
|
-
output:
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
outputFormat: "json";
|
|
18754
|
-
status: 404 | 409;
|
|
18752
|
+
output: string;
|
|
18753
|
+
outputFormat: "text";
|
|
18754
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18755
18755
|
input: {
|
|
18756
18756
|
param: {
|
|
18757
18757
|
id: string;
|
|
@@ -21151,19 +21151,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21151
21151
|
} & {
|
|
21152
21152
|
"/repo/commit/:sha": {
|
|
21153
21153
|
$get: {
|
|
21154
|
-
output: string;
|
|
21155
|
-
outputFormat: "text";
|
|
21156
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21157
|
-
input: {
|
|
21158
|
-
query: {
|
|
21159
|
-
structured?: string | undefined;
|
|
21160
|
-
};
|
|
21161
|
-
} & {
|
|
21162
|
-
param: {
|
|
21163
|
-
sha: string;
|
|
21164
|
-
};
|
|
21165
|
-
};
|
|
21166
|
-
} | {
|
|
21167
21154
|
output: {
|
|
21168
21155
|
error: string;
|
|
21169
21156
|
code?: "invalid_input" | undefined;
|
|
@@ -21227,6 +21214,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21227
21214
|
sha: string;
|
|
21228
21215
|
};
|
|
21229
21216
|
};
|
|
21217
|
+
} | {
|
|
21218
|
+
output: string;
|
|
21219
|
+
outputFormat: "text";
|
|
21220
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21221
|
+
input: {
|
|
21222
|
+
query: {
|
|
21223
|
+
structured?: string | undefined;
|
|
21224
|
+
};
|
|
21225
|
+
} & {
|
|
21226
|
+
param: {
|
|
21227
|
+
sha: string;
|
|
21228
|
+
};
|
|
21229
|
+
};
|
|
21230
21230
|
};
|
|
21231
21231
|
};
|
|
21232
21232
|
} & {
|
|
@@ -34549,20 +34549,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34549
34549
|
} & {
|
|
34550
34550
|
"/runs/:id/handoff": {
|
|
34551
34551
|
$get: {
|
|
34552
|
-
output:
|
|
34553
|
-
|
|
34554
|
-
|
|
34552
|
+
output: {
|
|
34553
|
+
error: string;
|
|
34554
|
+
};
|
|
34555
|
+
outputFormat: "json";
|
|
34556
|
+
status: 404;
|
|
34555
34557
|
input: {
|
|
34556
34558
|
param: {
|
|
34557
34559
|
id: string;
|
|
34558
34560
|
};
|
|
34559
34561
|
};
|
|
34560
34562
|
} | {
|
|
34561
|
-
output:
|
|
34562
|
-
|
|
34563
|
-
|
|
34564
|
-
outputFormat: "json";
|
|
34565
|
-
status: 404;
|
|
34563
|
+
output: string;
|
|
34564
|
+
outputFormat: "text";
|
|
34565
|
+
status: 200;
|
|
34566
34566
|
input: {
|
|
34567
34567
|
param: {
|
|
34568
34568
|
id: string;
|
|
@@ -34600,20 +34600,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34600
34600
|
} & {
|
|
34601
34601
|
"/runs/:id/diff": {
|
|
34602
34602
|
$get: {
|
|
34603
|
-
output:
|
|
34604
|
-
|
|
34605
|
-
|
|
34603
|
+
output: {
|
|
34604
|
+
error: string;
|
|
34605
|
+
};
|
|
34606
|
+
outputFormat: "json";
|
|
34607
|
+
status: 404 | 409;
|
|
34606
34608
|
input: {
|
|
34607
34609
|
param: {
|
|
34608
34610
|
id: string;
|
|
34609
34611
|
};
|
|
34610
34612
|
};
|
|
34611
34613
|
} | {
|
|
34612
|
-
output:
|
|
34613
|
-
|
|
34614
|
-
|
|
34615
|
-
outputFormat: "json";
|
|
34616
|
-
status: 404 | 409;
|
|
34614
|
+
output: string;
|
|
34615
|
+
outputFormat: "text";
|
|
34616
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34617
34617
|
input: {
|
|
34618
34618
|
param: {
|
|
34619
34619
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-
|
|
3
|
+
"version": "0.18.0-pr3330.5844",
|
|
4
4
|
"description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/parser": "^8.0.8",
|
|
62
62
|
"@babel/types": "^8.0.8",
|
|
63
|
-
"@open-mercato/cezar-api-client": "0.18.0-
|
|
64
|
-
"@open-mercato/cezar-contract": "0.18.0-
|
|
63
|
+
"@open-mercato/cezar-api-client": "0.18.0-pr3330.5844",
|
|
64
|
+
"@open-mercato/cezar-contract": "0.18.0-pr3330.5844",
|
|
65
65
|
"@types/node": "^24.19.1",
|
|
66
66
|
"@types/ws": "^8.18.1",
|
|
67
67
|
"esbuild": "^0.28.1",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "36ee2dc913f01e4e892404c7ce0e204b23d0c5e4"
|
|
82
82
|
}
|