@hearsay-tools/squawk 0.18.0-dev.6462 → 0.18.0-dev.6468

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 CHANGED
@@ -90,9 +90,9 @@ handoff journal, **Continue**, live follow-up messages, and `hsq message inbox`
90
90
  available.
91
91
  ## What Squawk does best 🏆
92
92
 
93
- **On your phone:** the [iPhone and Android companion apps](docs/mobile.md) connect
94
- to your existing HTTPS cockpit. Personal installation and device testing are
95
- documented; agents continue running on your server.
93
+ **On your phone:** open your HTTPS cockpit in the phone's browser and add it to
94
+ the home screen. [Squawk on your phone](docs/mobile.md) shows how; agents continue
95
+ running on your server.
96
96
 
97
97
  Plenty of tools wrap a single coding agent in a nicer window — a "Codex GUI", a
98
98
  conductor-style app, one-agent front-ends. Squawk's bet is different. Three things
@@ -12,10 +12,10 @@ import { z } from 'zod';
12
12
  /**
13
13
  * One line of a run transcript.
14
14
  *
15
- * Open by design: `type` is a plain string and unknown keys pass through, because the event
16
- * vocabulary is an APPEND-ONLY on-disk format (BACKWARD_COMPATIBILITY.md) that old NDJSON
17
- * recordings must keep replaying forever. Closing this schema would make a recording written by
18
- * a newer Squawk unreadable by an older one — the opposite of what the format promises.
15
+ * Open by design: `type` is a plain string and unknown keys pass through, because old NDJSON
16
+ * recordings on disk must keep replaying after an upgrade (AGENTS.md, Changing what already
17
+ * works). A closed schema would reject a recording that carries a type or key this build does
18
+ * not list.
19
19
  */
20
20
  export declare const runEventSchema: z.ZodObject<{
21
21
  seq: z.ZodNumber;
@@ -38,9 +38,8 @@ export declare const capabilitiesSchema: z.ZodObject<{
38
38
  }, z.core.$strip>;
39
39
  export type Capabilities = z.infer<typeof capabilitiesSchema>;
40
40
  /**
41
- * `GET /api/v1/health` — the CORS-open discovery endpoint (BACKWARD_COMPATIBILITY.md).
42
- *
43
- * Additive fields only: this is the most externally-depended-on JSON in the app.
41
+ * `GET /api/v1/health` — the CORS-open discovery endpoint. Callers outside the cockpit read
42
+ * this JSON.
44
43
  */
45
44
  export declare const healthResponseSchema: z.ZodObject<{
46
45
  version: z.ZodString;
@@ -2709,7 +2709,7 @@ var runRecordSchema = z20.object({
2709
2709
  pinned: z20.boolean().optional(),
2710
2710
  /** When the pin was set. Deliberately WRITE-ONLY today, like the `archivedAt` above it:
2711
2711
  * ordering inside `Pinned` uses the ordinary status/recency rules, so nothing reads this
2712
- * yet. It is here because a field on a protected surface is far cheaper to add now than to
2712
+ * yet. It is here because a field on the saved run record is far cheaper to add now than to
2713
2713
  * add later — "pinned oldest first" and "unpin what you pinned a month ago" both need it,
2714
2714
  * and neither can be reconstructed after the fact. */
2715
2715
  pinnedAt: z20.string().optional(),
@@ -123,7 +123,7 @@ export declare function normalizeSidebarLimits(value: unknown): Required<Sidebar
123
123
  /**
124
124
  * `GET/PUT /api/v1/ui-state` — the per-repo GUI prefs in `.ai/cezar/ui-state.json`.
125
125
  *
126
- * An OPEN bag on purpose (BACKWARD_COMPATIBILITY.md): unknown keys round-trip untouched, so a
126
+ * An OPEN bag on purpose (AGENTS.md, Changing what already works): unknown keys round-trip untouched, so a
127
127
  * newer cockpit's prefs survive an older server and a future pref needs no server change. Hence
128
128
  * `z.looseObject`, not a closed object — the keys below are the ones the server's schema *names*,
129
129
  * never the ones it *permits*. The write side caps the TOP-LEVEL key count at 200 (#429); that cap
@@ -10,7 +10,6 @@ export type LegacyProductIdentity = {
10
10
  envPrefix: 'CEZ_';
11
11
  desktopExecutable: 'cezar-desktop';
12
12
  desktopAppId: 'tools.hearsay.cezarion';
13
- mobileAppId: 'tools.hearsay.cezarion.mobile';
14
13
  };
15
14
  /** The new identity. npm refuses the unscoped name `hsq`, so it has no alias package. */
16
15
  export type RebrandProductIdentity = {
@@ -24,7 +23,6 @@ export type RebrandProductIdentity = {
24
23
  envPrefix: 'HSQ_';
25
24
  desktopExecutable: 'squawk-desktop';
26
25
  desktopAppId: 'tools.hearsay.squawk';
27
- mobileAppId: 'tools.hearsay.squawk.mobile';
28
26
  };
29
27
  /** Shared product names for the CLI, browser and native build tools. */
30
28
  export type ProductIdentity = LegacyProductIdentity | RebrandProductIdentity;
@@ -2,11 +2,11 @@ export function productIdentity(rebrand = true) {
2
2
  return rebrand ? {
3
3
  rebrand, displayName: 'Squawk', command: 'hsq', npmPackage: '@hearsay-tools/squawk',
4
4
  npmAlias: null, npmAliasDirectory: null, npx: 'npx -p @hearsay-tools/squawk hsq', envPrefix: 'HSQ_',
5
- desktopAppId: 'tools.hearsay.squawk', mobileAppId: 'tools.hearsay.squawk.mobile', desktopExecutable: 'squawk-desktop',
5
+ desktopAppId: 'tools.hearsay.squawk', desktopExecutable: 'squawk-desktop',
6
6
  } : {
7
7
  rebrand, displayName: 'Cezarion', command: 'cez', npmPackage: '@wjarka/cezarion',
8
8
  npmAlias: 'cezarion', npmAliasDirectory: 'alias-cezarion', npx: 'npx cezarion', envPrefix: 'CEZ_',
9
- desktopAppId: 'tools.hearsay.cezarion', mobileAppId: 'tools.hearsay.cezarion.mobile', desktopExecutable: 'cezar-desktop',
9
+ desktopAppId: 'tools.hearsay.cezarion', desktopExecutable: 'cezar-desktop',
10
10
  };
11
11
  }
12
12
  /** Runs the scoped package once. It has no binary named after it, so the new
@@ -1 +1 @@
1
- {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/home/identity.ts"],"names":[],"mappings":"AAqCA,MAAM,UAAU,eAAe,CAAC,OAAO,GAAG,IAAI;IAC5C,OAAO,OAAO,CAAC,CAAC,CAAC;QACf,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,uBAAuB;QACnF,QAAQ,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,EAAE,kCAAkC,EAAE,SAAS,EAAE,MAAM;QACnG,YAAY,EAAE,sBAAsB,EAAE,WAAW,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,gBAAgB;KACtH,CAAC,CAAC,CAAC;QACF,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;IACzC,OAAO,gBAAgB,CAAC,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAGhE,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,eAAe,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC,UAAU;CAC5F,CAAC;AAIX,oFAAoF;AACpF,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;SACnD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,KAAK,QAAQ,CAAC,UAAU,IAAI,CAAC,QAAQ,CAAC,QAAQ,KAAK,IAAI,IAAI,IAAI,KAAK,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;AAClH,CAAC"}
@@ -12,8 +12,7 @@ import type { ForgeAvailability, ForgeComment, ForgeCommentsData, ForgeDriver, F
12
12
  * The GitHub forge driver — all `gh`-CLI logic in one place, moved here from
13
13
  * `src/server/github.ts` (tab listing) and `src/server/pr.ts` (draft PRs)
14
14
  * behind the `ForgeDriver` seam. Those modules remain as thin delegates.
15
- * `/api/github`'s response shape is this driver's serialization and is
16
- * protected by BACKWARD_COMPATIBILITY.md — additive changes only.
15
+ * `/api/github`'s response shape is this driver's serialization.
17
16
  */
18
17
  export declare const GH_PR_DIFF_FILE_CAP = 300;
19
18
  export declare const GH_PR_PATCH_CAP: number;
@@ -23,8 +23,7 @@ import { refNumberFromUrl } from '../../contract/index.js';
23
23
  * The GitHub forge driver — all `gh`-CLI logic in one place, moved here from
24
24
  * `src/server/github.ts` (tab listing) and `src/server/pr.ts` (draft PRs)
25
25
  * behind the `ForgeDriver` seam. Those modules remain as thin delegates.
26
- * `/api/github`'s response shape is this driver's serialization and is
27
- * protected by BACKWARD_COMPATIBILITY.md — additive changes only.
26
+ * `/api/github`'s response shape is this driver's serialization.
28
27
  */
29
28
  export const GH_PR_DIFF_FILE_CAP = 300;
30
29
  export const GH_PR_PATCH_CAP = 512 * 1024;
@@ -1952,8 +1951,8 @@ function mockGithubRefStatus(prs, issues) {
1952
1951
  *
1953
1952
  * Since #525 the thread is sourced from `/issues/{n}/timeline`, which returns comments AND events
1954
1953
  * in one stream: `commented` rows go through the unchanged `normalizeComments`, the rest through
1955
- * `normalizeEvents`. `comments[]` therefore keeps its exact pre-#525 shape, contents and cap
1956
- * (BACKWARD_COMPATIBILITY.md) — see the top-up below for the one case that needed defending.
1954
+ * `normalizeEvents`. `comments[]` therefore keeps its exact pre-#525 shape, contents and cap;
1955
+ * see the top-up below for the one case that needed defending.
1957
1956
  */
1958
1957
  function commentsCacheKey(repoRoot, kind, number) {
1959
1958
  // NUL separator: cannot appear in a filesystem path, so roots can never alias.