@cotal-ai/connector-claude-code 0.69.0 → 0.70.1

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.
@@ -48,20 +48,18 @@
48
48
  * the predicate does select, on a session that contains the thing it selects. The three captures
49
49
  * here simply contain none. **Both numbers belong together; either alone misleads.**
50
50
  *
51
- * **THIS WAS A COVERAGE GAP, IT WAS RULED, AND THE RULING IS IMPLEMENTED BELOW.** It read: on
52
- * agent-driven sessions no run is ever opened and the connector emits nothing, because the mapping table
53
- * sent every non-`human` origin to *nothing*. The session it was derived from had a human typing 44 times alongside
54
- * its 3068 mesh messages; a spawned lane seat has **0 and 67**, so the open question was **what
55
- * opens a run when nobody types**.
56
- *
57
- * **THE RULING: run-opening and attribution are two predicates, and that row was one predicate
58
- * doing both jobs.** A run opens on
59
- * `origin.kind ∈ { human, channel }`, ENUMERATED and never inferred; `task-notification` is named as
60
- * known-and-not-a-turn; absent `origin` gets its own enumeration over `promptSource`. Attribution
61
- * rides as `cotal.turnSource` — **a field on the run, never a gate on it**. The privacy argument is
62
- * untouched: a `RUN_STARTED` attributed to a peer republishes no message body, so a peer-initiated
63
- * turn can be a turn without re-emitting the peer's content. See {@link ORIGIN_RULE} and
64
- * {@link ABSENT_ORIGIN_RULE}, which are where this now lives.
51
+ * **WHAT OPENS A RUN WHEN NOBODY TYPES.** A mapping that sends every non-`human` origin to
52
+ * *nothing* opens no run on an agent-driven session, and the connector emits nothing there. The
53
+ * session the mapping was derived from had a human typing 44 times alongside its 3068 mesh
54
+ * messages; a spawned lane seat has **0 and 67**.
55
+ *
56
+ * **THE RULE: run-opening and attribution are two predicates, not one doing both jobs.** A run
57
+ * opens on `origin.kind ∈ { human, channel }`, ENUMERATED and never inferred; `task-notification`
58
+ * is named as known-and-not-a-turn; absent `origin` gets its own enumeration over `promptSource`.
59
+ * Attribution rides as `cotal.turnSource` — **a field on the run, never a gate on it**. The privacy
60
+ * argument holds: a `RUN_STARTED` attributed to a peer republishes no message body, so a
61
+ * peer-initiated turn can be a turn without re-emitting the peer's content. See
62
+ * {@link ORIGIN_RULE} and {@link ABSENT_ORIGIN_RULE}, which are where this lives.
65
63
  *
66
64
  * On the 5938-record session the real mapper opens **67 runs** and emits **5217 events**, and
67
65
  * `diagnose()` returns `null`.
@@ -73,12 +71,12 @@
73
71
  * not emit nothing — it would emit a flood, each entry opening a run, which looks like the connector
74
72
  * working.
75
73
  *
76
- * **The rule is implemented exactly as RULED, and still not guessed at.** `promptSource` was
77
- * proposed as the selector and REJECTED: it is bounded by the partition it was inferred from, and
78
- * "sdk" also covers programmatic injection. It survives only inside {@link ABSENT_ORIGIN_RULE},
79
- * where there is no `origin.kind` to enumerate — a second table rather than a synthetic member,
80
- * because an enumeration over `origin.kind` cannot classify a record that has none. Every value
81
- * outside either table **fails loud** rather than being silently treated as not-a-turn.
74
+ * **The rule is not guessed at.** `promptSource` is not the selector: it is bounded by the
75
+ * partition it was inferred from, and "sdk" also covers programmatic injection. It is read only
76
+ * inside {@link ABSENT_ORIGIN_RULE}, where there is no `origin.kind` to enumerate — a second table
77
+ * rather than a synthetic member, because an enumeration over `origin.kind` cannot classify a
78
+ * record that has none. Every value outside either table **fails loud** rather than being silently
79
+ * treated as not-a-turn.
82
80
  *
83
81
  * **(C) `TOOL_CALL_RESULT.messageId` is unstated in §3.1's table** (the row names only
84
82
  * `toolCallId`) while the real schema REQUIRES it. It is keyed the same way every other message
@@ -1 +1 @@
1
- {"version":3,"file":"agui-map.d.ts","sourceRoot":"","sources":["../src/agui-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AACH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,YAAY,EAalB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI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