@pome-sh/checks 0.1.2 → 0.1.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @pome-sh/checks
2
2
 
3
+ ## 0.1.3
4
+
5
+ No change to the published surface — `dist/` is byte-identical to 0.1.2, so no
6
+ declaration moved and no consumer's verdict changes. The declaration layer has
7
+ not been touched since 0.1.2 was cut (`38acaf9`), which is the version-bump
8
+ gate doing its job rather than an absence of work.
9
+
10
+ What this version is for: it is the first release cut by following
11
+ [`RELEASING.md`](../../RELEASING.md) end to end since the `packages-v*` batch
12
+ flow was replaced by version-diff-on-push, and it exists to prove that runbook
13
+ is followable — bump, merge, `release.yml` publishes, pome-cloud pins. The
14
+ consumer half is the part that was actually owed: pome-cloud has been pinned at
15
+ 0.1.1 since before 0.1.2 shipped, so F-1157's redaction-survival vocabulary has
16
+ not reached the grader.
17
+
18
+ Version-only bumps are accepted here rather than carrying an exception list,
19
+ per `cli/CHANGELOG.md` 0.21.7.
20
+
3
21
  ## 0.1.2
4
22
 
5
23
  Carries F-1157 to the grader. Three things move in `dist/`:
@@ -61,9 +61,9 @@ export declare const seedSchema: z.ZodObject<{
61
61
  context: z.ZodDefault<z.ZodString>;
62
62
  state: z.ZodDefault<z.ZodEnum<{
63
63
  error: "error";
64
+ success: "success";
64
65
  failure: "failure";
65
66
  pending: "pending";
66
- success: "success";
67
67
  }>>;
68
68
  description: z.ZodDefault<z.ZodString>;
69
69
  }, z.core.$strip>>>;
@@ -4,7 +4,44 @@ export type LinearWorkflowStateType = "backlog" | "unstarted" | "started" | "com
4
4
  export type LinearTokenType = "personal" | "oauth_access" | "oauth_refresh" | "client_credentials";
5
5
  export type LinearTokenActorType = "user" | "app";
6
6
  export type LinearIssuePriority = 0 | 1 | 2 | 3 | 4;
7
+ /** Linear's `AgentActivityType` enum, member-for-member — the `content` discriminator. */
7
8
  export type LinearAgentActivityType = "thought" | "elicitation" | "action" | "response" | "error" | "prompt";
9
+ /** Linear's `AgentActivitySignal` enum, member-for-member (F-1176). */
10
+ export type LinearAgentActivitySignal = "stop" | "continue" | "auth" | "select";
11
+ /**
12
+ * Linear's `AgentActivityContent` union, member-for-member (F-1176).
13
+ *
14
+ * Upstream this is a real GraphQL union discriminated on `type`, whose six
15
+ * members are `AgentActivity{Thought,Action,Response,Elicitation,Error,Prompt}
16
+ * Content`. Five of the six carry `body`; `action` carries `action` /
17
+ * `parameter` / `result` instead, which is why an activity's payload cannot be
18
+ * flattened back to the `{ type, body }` pair the twin used to accept.
19
+ *
20
+ * `bodyData` / `resultData` are upstream's structured companions to the text
21
+ * fields. The twin does not derive them, but it accepts and stores them rather
22
+ * than refusing an agent that was written against real Linear and sends them.
23
+ */
24
+ export type LinearAgentActivityContent = {
25
+ type: "thought" | "response" | "elicitation";
26
+ body: string;
27
+ bodyData?: unknown;
28
+ } | {
29
+ type: "prompt";
30
+ body: string;
31
+ title?: string | null;
32
+ bodyData?: unknown;
33
+ } | {
34
+ type: "error";
35
+ body: string;
36
+ reasonCode?: string | null;
37
+ bodyData?: unknown;
38
+ } | {
39
+ type: "action";
40
+ action: string;
41
+ parameter: string;
42
+ result?: string | null;
43
+ resultData?: unknown;
44
+ };
8
45
  /** Linear's `AgentSessionStatus` enum, member-for-member (F-1172). */
9
46
  export type LinearAgentSessionStatus = "pending" | "active" | "awaitingInput" | "complete" | "error" | "stale";
10
47
  /** One entry of Linear's `AgentSession.externalUrls` JSON payload. */
@@ -208,10 +245,15 @@ export type LinearAgentSession = {
208
245
  };
209
246
  export type LinearAgentActivity = {
210
247
  id: string;
211
- sessionId: string;
212
- userId: string | null;
213
- type: LinearAgentActivityType;
214
- body: string;
248
+ agentSessionId: string;
249
+ /**
250
+ * Non-null, matching Linear's `AgentActivity.user: User!`. The column is
251
+ * still nullable — its FK is `ON DELETE SET NULL` — so this is enforced at
252
+ * the read boundary, next to the status check, rather than assumed.
253
+ */
254
+ userId: string;
255
+ content: LinearAgentActivityContent;
256
+ signal: LinearAgentActivitySignal | null;
215
257
  ephemeral: boolean;
216
258
  createdAt: string;
217
259
  updatedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pome-sh/checks",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Pome's grading vocabulary — the check declarations, seed schemas and default seeds of all five digital twins, plus the check DSL they are written in. Declarations only: no twin server, no database, no routes, no tools.",
5
5
  "private": false,
6
6
  "type": "module",