@omg-dev/protocol 0.6.136 → 0.6.137

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.
@@ -36,4 +36,68 @@ export declare function formatSessionMentionToken(sessionId: string, title: stri
36
36
  export declare function sessionRefFromHref(href: string): string | null;
37
37
  /** Every reference in `text`, first-appearance order, one entry per session. */
38
38
  export declare function parseSessionMentions(text: string): ParsedSessionMention[];
39
+ /**
40
+ * Agents quote a session as a bare short id in inline code (`228efabd`),
41
+ * because that is the form every omg.dev tool returns. The `omg:session_`
42
+ * href for such a span, or null when the text is not a session id. Only the
43
+ * exact 8-hex short form or a full UUID qualifies: anything looser would
44
+ * turn ordinary code into links. A span that looks right but names no
45
+ * session (an 8-char git sha) resolves to nothing, so the tap does nothing.
46
+ */
47
+ export declare function sessionHrefFromCodespan(text: string): string | null;
48
+ export type SessionIds = {
49
+ sessionId?: string | null;
50
+ nativeSessionId?: string | null;
51
+ /** Shown in place of a bare id when a reference is rendered. */
52
+ title?: string | null;
53
+ };
54
+ /** The subset of OmgClient a reference lookup needs, so tests can fake it. */
55
+ export type SessionRefClient = {
56
+ peekSessions(): SessionIds[] | null;
57
+ listSessions(): Promise<SessionIds[]>;
58
+ transport: {
59
+ request<T>(path: string, init?: RequestInit): Promise<T>;
60
+ };
61
+ };
62
+ /**
63
+ * The one session in `list` that `ref` names. Null when nothing or more than
64
+ * one session matches: a guess would open the wrong transcript.
65
+ */
66
+ export declare function findSessionRef(ref: string, list: SessionIds[] | null): SessionIds | null;
67
+ /** Full id for a short ref within `list`, or null (see `findSessionRef`). */
68
+ export declare function resolveSessionRef(ref: string, list: SessionIds[] | null): string | null;
69
+ /**
70
+ * The same ladder omg.dev's MCP layer climbs for an agent-facing short id:
71
+ * the sessions already in hand, then the live list, then the durable
72
+ * catalog. Each rung is skipped once a rung below has answered.
73
+ */
74
+ export declare function lookupSessionRefWith(client: SessionRefClient, ref: string): Promise<SessionIds | null>;
75
+ export declare function resolveSessionRefWith(client: SessionRefClient, ref: string): Promise<string | null>;
76
+ /**
77
+ * The tap handler for a rendered reference, with the router injected.
78
+ *
79
+ * The lookup is asynchronous and the app can switch machine or sign out
80
+ * while it runs. An answer is only acted on when the client it came from is
81
+ * still the registered one: a session id from the previous box must never
82
+ * be pushed onto the new one. Every failure is swallowed here, because a
83
+ * markdown tap has nowhere to report and an unhandled rejection is worse
84
+ * than a tap that does nothing.
85
+ */
86
+ export declare function createSessionRefOpener(deps: {
87
+ navigate: (sessionId: string) => void;
88
+ resolve?: (client: SessionRefClient, ref: string) => Promise<string | null>;
89
+ lookup?: (client: SessionRefClient, ref: string) => Promise<SessionIds | null>;
90
+ }): {
91
+ register(client: SessionRefClient | null): void;
92
+ /** True when `href` was a session reference and has been taken over. */
93
+ open(href: string): boolean;
94
+ /**
95
+ * The title to show for `ref`, or null while it is unknown. The first call
96
+ * for a ref starts one lookup; `subscribe` fires when it lands. A ref that
97
+ * names no session, or one without a title, stays null so the caller
98
+ * keeps showing the id.
99
+ */
100
+ label(ref: string): string | null;
101
+ subscribe(listener: () => void): () => void;
102
+ };
39
103
  //# sourceMappingURL=session-mention-token.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-mention-token.d.ts","sourceRoot":"","sources":["../src/session-mention-token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,mEAAmE;AACnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,E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,IAAI,GAAG,IAAI,CAAC;IAChD,wEAAwE;IACxE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC7C,CAqEA"}
@@ -60,4 +60,158 @@ export function parseSessionMentions(text) {
60
60
  }
61
61
  return out;
62
62
  }
63
+ /**
64
+ * Agents quote a session as a bare short id in inline code (`228efabd`),
65
+ * because that is the form every omg.dev tool returns. The `omg:session_`
66
+ * href for such a span, or null when the text is not a session id. Only the
67
+ * exact 8-hex short form or a full UUID qualifies: anything looser would
68
+ * turn ordinary code into links. A span that looks right but names no
69
+ * session (an 8-char git sha) resolves to nothing, so the tap does nothing.
70
+ */
71
+ export function sessionHrefFromCodespan(text) {
72
+ const t = text.trim();
73
+ if (/^[0-9a-f]{8}$/i.test(t))
74
+ return `omg:session_${t}`;
75
+ if (/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)) {
76
+ return `omg:session_${t}`;
77
+ }
78
+ return null;
79
+ }
80
+ /**
81
+ * The one session in `list` that `ref` names. Null when nothing or more than
82
+ * one session matches: a guess would open the wrong transcript.
83
+ */
84
+ export function findSessionRef(ref, list) {
85
+ const lower = ref.toLowerCase();
86
+ const matches = new Map();
87
+ for (const session of list ?? []) {
88
+ for (const candidate of [session.sessionId, session.nativeSessionId]) {
89
+ if (candidate && candidate.toLowerCase().startsWith(lower)) {
90
+ matches.set(session.sessionId ?? candidate, session);
91
+ }
92
+ }
93
+ }
94
+ if (matches.size !== 1)
95
+ return null;
96
+ const [[id, session]] = [...matches];
97
+ return { ...session, sessionId: id };
98
+ }
99
+ /** Full id for a short ref within `list`, or null (see `findSessionRef`). */
100
+ export function resolveSessionRef(ref, list) {
101
+ return findSessionRef(ref, list)?.sessionId ?? null;
102
+ }
103
+ /**
104
+ * The same ladder omg.dev's MCP layer climbs for an agent-facing short id:
105
+ * the sessions already in hand, then the live list, then the durable
106
+ * catalog. Each rung is skipped once a rung below has answered.
107
+ */
108
+ export async function lookupSessionRefWith(client, ref) {
109
+ const peeked = findSessionRef(ref, client.peekSessions());
110
+ if (peeked)
111
+ return peeked;
112
+ const listed = await client.listSessions().catch(() => null);
113
+ const live = findSessionRef(ref, listed);
114
+ if (live)
115
+ return live;
116
+ const found = await client.transport
117
+ .request("/api/sessions/find", {
118
+ method: "POST",
119
+ headers: { "Content-Type": "application/json" },
120
+ body: JSON.stringify({ sessionId: ref, limit: 5 }),
121
+ })
122
+ .catch(() => null);
123
+ return findSessionRef(ref, found?.sessions ?? null);
124
+ }
125
+ export async function resolveSessionRefWith(client, ref) {
126
+ return (await lookupSessionRefWith(client, ref))?.sessionId ?? null;
127
+ }
128
+ /**
129
+ * The tap handler for a rendered reference, with the router injected.
130
+ *
131
+ * The lookup is asynchronous and the app can switch machine or sign out
132
+ * while it runs. An answer is only acted on when the client it came from is
133
+ * still the registered one: a session id from the previous box must never
134
+ * be pushed onto the new one. Every failure is swallowed here, because a
135
+ * markdown tap has nowhere to report and an unhandled rejection is worse
136
+ * than a tap that does nothing.
137
+ */
138
+ export function createSessionRefOpener(deps) {
139
+ const resolve = deps.resolve ?? resolveSessionRefWith;
140
+ const lookup = deps.lookup ?? lookupSessionRefWith;
141
+ let current = null;
142
+ let generation = 0;
143
+ // Titles belong to the registered client: a switch clears them.
144
+ let labels = new Map();
145
+ const pending = new Set();
146
+ const listeners = new Set();
147
+ const notify = () => {
148
+ for (const listener of listeners)
149
+ listener();
150
+ };
151
+ return {
152
+ register(client) {
153
+ generation += 1;
154
+ current = client;
155
+ const hadLabels = labels.size > 0;
156
+ labels = new Map();
157
+ pending.clear();
158
+ // A reader can trigger registration from inside a render. Tell
159
+ // subscribers later, and only when titles were actually dropped.
160
+ if (hadLabels)
161
+ queueMicrotask(notify);
162
+ },
163
+ label(ref) {
164
+ const key = ref.toLowerCase();
165
+ if (labels.has(key))
166
+ return labels.get(key) ?? null;
167
+ const client = current;
168
+ if (!client)
169
+ return null;
170
+ const known = findSessionRef(ref, client.peekSessions());
171
+ if (known) {
172
+ const title = known.title?.trim() || null;
173
+ labels.set(key, title);
174
+ return title;
175
+ }
176
+ if (pending.has(key))
177
+ return null;
178
+ pending.add(key);
179
+ const startedAt = generation;
180
+ Promise.resolve()
181
+ .then(() => lookup(client, ref))
182
+ .catch(() => null)
183
+ .then((session) => {
184
+ if (current !== client || generation !== startedAt)
185
+ return;
186
+ pending.delete(key);
187
+ labels.set(key, session?.title?.trim() || null);
188
+ notify();
189
+ });
190
+ return null;
191
+ },
192
+ subscribe(listener) {
193
+ listeners.add(listener);
194
+ return () => {
195
+ listeners.delete(listener);
196
+ };
197
+ },
198
+ open(href) {
199
+ const ref = sessionRefFromHref(href);
200
+ if (!ref)
201
+ return false;
202
+ const client = current;
203
+ if (!client)
204
+ return true;
205
+ const startedAt = generation;
206
+ Promise.resolve()
207
+ .then(() => resolve(client, ref))
208
+ .then((full) => {
209
+ if (full && current === client && generation === startedAt)
210
+ deps.navigate(full);
211
+ })
212
+ .catch(() => { });
213
+ return true;
214
+ },
215
+ };
216
+ }
63
217
  //# sourceMappingURL=session-mention-token.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-mention-token.js","sourceRoot":"","sources":["../src/session-mention-token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,SAAS,GAAG,+EAA+E,CAAC;AAClG,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAE3C,MAAM,UAAU,eAAe,CAAC,SAAiB;IAC/C,OAAO,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CA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 @@
1
1
  {
2
2
  "name": "@omg-dev/protocol",
3
- "version": "0.6.136",
3
+ "version": "0.6.137",
4
4
  "description": "Typed public protocol for OMG sessions and live streams.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://omg.dev",