@qwen-code/channel-github 0.28.1-preview.0 → 0.28.1-preview.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.
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { createHash, randomUUID } from 'node:crypto';
7
- import { closeSync, fsyncSync, mkdirSync, openSync, readFileSync, renameSync, rmSync, writeFileSync, } from 'node:fs';
7
+ import { closeSync, existsSync, fsyncSync, mkdirSync, openSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync, } from 'node:fs';
8
8
  import { join } from 'node:path';
9
9
  import { getGlobalQwenDir, getWorkspaceScopeDirName, MANAGED_OUTBOUND_LIMIT, validManagedReceipt, } from '@qwen-code/channel-base';
10
10
  // H5f of #12827: the managed GitHub adapter's own locked state. The cursor
@@ -17,6 +17,63 @@ import { getGlobalQwenDir, getWorkspaceScopeDirName, MANAGED_OUTBOUND_LIMIT, val
17
17
  // docs/design/2026-11-16-managed-channel-github-adapter.md.
18
18
  export const MANAGED_GITHUB_PENDING_LIMIT = 32;
19
19
  export const DISPATCHED_COMMENTS_LIMIT = 500;
20
+ export const MANAGED_GITHUB_PR_TRANSITIONS = ['ci_failure', 'merge_conflict', 'head_change'];
21
+ /**
22
+ * Per-PR pending cap, the daemon's bound: overflow drops the oldest with a
23
+ * log line instead of growing the state file without limit.
24
+ */
25
+ export const MANAGED_GITHUB_PR_WATCH_PENDING_LIMIT = 16;
26
+ /** Fired-ring cap, the retired channel watch's bound (MAX_FIRED_KEYS). */
27
+ export const MANAGED_GITHUB_PR_WATCH_FIRED_LIMIT = 64;
28
+ /**
29
+ * Durable per-PR episode-watermark cap. The watermark outlives prune/rebind
30
+ * (the admission ledger is permanent), so it is bounded separately from the
31
+ * prunable baselines; overflow evicts the oldest watermark.
32
+ */
33
+ export const MANAGED_GITHUB_PR_WATCH_EPISODE_LIMIT = 1024;
34
+ function validPrWatchEntry(value) {
35
+ if (!value || typeof value !== 'object' || Array.isArray(value))
36
+ return false;
37
+ const entry = value;
38
+ const nonEmptyStringOrUndefined = (v) => v === undefined || (typeof v === 'string' && v.length > 0);
39
+ return (nonEmptyStringOrUndefined(entry.headSha) &&
40
+ nonEmptyStringOrUndefined(entry.mergeableState) &&
41
+ nonEmptyStringOrUndefined(entry.ciFiredSha) &&
42
+ (entry.ci === undefined ||
43
+ entry.ci === 'passing' ||
44
+ entry.ci === 'failing' ||
45
+ entry.ci === 'pending' ||
46
+ entry.ci === 'none') &&
47
+ (entry.seq === undefined ||
48
+ (Number.isSafeInteger(entry.seq) && entry.seq >= 0)) &&
49
+ (entry.episode === undefined ||
50
+ (Number.isSafeInteger(entry.episode) && entry.episode >= 0)) &&
51
+ (entry.fired === undefined ||
52
+ (Array.isArray(entry.fired) &&
53
+ entry.fired.length <= MANAGED_GITHUB_PR_WATCH_FIRED_LIMIT &&
54
+ entry.fired.every((key) => typeof key === 'string' && key.length > 0))) &&
55
+ (entry.pending === undefined ||
56
+ (Array.isArray(entry.pending) &&
57
+ entry.pending.length <= MANAGED_GITHUB_PR_WATCH_PENDING_LIMIT &&
58
+ entry.pending.every((p) => !!p &&
59
+ typeof p === 'object' &&
60
+ typeof p.key === 'string' &&
61
+ p.key.length > 0 &&
62
+ Number.isSafeInteger(p.episode) &&
63
+ p.episode >= 1 &&
64
+ typeof p.owner === 'string' &&
65
+ p.owner.length > 0 &&
66
+ typeof p.repo === 'string' &&
67
+ p.repo.length > 0 &&
68
+ Number.isSafeInteger(p.prNumber) &&
69
+ p.prNumber >= 1 &&
70
+ MANAGED_GITHUB_PR_TRANSITIONS.includes(p.transition) &&
71
+ typeof p.headSha === 'string' &&
72
+ p.headSha.length > 0 &&
73
+ typeof p.evidence === 'string' &&
74
+ typeof p.detectedAt === 'string' &&
75
+ !Number.isNaN(Date.parse(p.detectedAt))))));
76
+ }
20
77
  export function validManagedGithubState(value) {
21
78
  if (!value || typeof value !== 'object')
22
79
  return false;
@@ -54,35 +111,277 @@ export function validManagedGithubState(value) {
54
111
  entry.deliveryId.length > 0 &&
55
112
  Number.isSafeInteger(entry.ordinal) &&
56
113
  entry.ordinal >= 0 &&
57
- validManagedReceipt(entry.receipt)));
114
+ validManagedReceipt(entry.receipt)) &&
115
+ (state.watch === undefined ||
116
+ (!!state.watch &&
117
+ typeof state.watch === 'object' &&
118
+ !Array.isArray(state.watch) &&
119
+ !!state.watch.prs &&
120
+ typeof state.watch.prs === 'object' &&
121
+ !Array.isArray(state.watch.prs) &&
122
+ Object.values(state.watch.prs).every(validPrWatchEntry) &&
123
+ (state.watch.sweepStart === undefined ||
124
+ (Number.isSafeInteger(state.watch.sweepStart) &&
125
+ state.watch.sweepStart >= 0)) &&
126
+ (state.watch.episodes === undefined ||
127
+ (!!state.watch.episodes &&
128
+ typeof state.watch.episodes === 'object' &&
129
+ !Array.isArray(state.watch.episodes) &&
130
+ Object.keys(state.watch.episodes).length <=
131
+ MANAGED_GITHUB_PR_WATCH_EPISODE_LIMIT &&
132
+ Object.values(state.watch.episodes).every((episode) => Number.isSafeInteger(episode) && episode >= 1))))));
58
133
  }
59
134
  export class ManagedGithubStateStore {
60
135
  directory;
61
136
  file;
62
- constructor(name, cwd, baseUrl) {
63
- // One directory per channel name per endpoint per workspace, beside the
64
- // other channel state. Credentials never define identity. The lock
65
- // serializes concurrent managed instances of this name + endpoint; it
66
- // does not cross-lock the Legacy GitHub channel, so the operator must run
67
- // exactly one consumer per bot identity.
68
- const key = createHash('sha256')
137
+ constructor(name, cwd, baseUrl, identityKey = '') {
138
+ // The lock directory is keyed by the configured entry (channel name +
139
+ // endpoint baseUrl) per workspace — NOT by destination — so two instances
140
+ // of the same name + endpoint contend for one connection lock even when
141
+ // they target different control-plane destinations; a per-destination lock
142
+ // would let both run concurrently and duplicate inbound processing. The
143
+ // ledger FILE beneath that directory is keyed by the full registration
144
+ // identity (control plane + tenant + channel + actor + workspace +
145
+ // cwd-relative), so a pending comment staged under one registration is
146
+ // never loaded or replayed under another. Credentials never define
147
+ // identity. The lock does not cross-lock the Legacy GitHub channel, so the
148
+ // operator must run exactly one consumer per bot identity.
149
+ const entryKey = createHash('sha256')
69
150
  .update(`${name}\u0000${baseUrl}`)
70
151
  .digest('hex')
71
152
  .slice(0, 16);
72
- this.directory = join(getGlobalQwenDir(), 'channels', getWorkspaceScopeDirName(cwd), `github-${key}`);
73
- this.file = join(this.directory, 'managed-state.json');
153
+ this.directory = join(getGlobalQwenDir(), 'channels', getWorkspaceScopeDirName(cwd), `github-${entryKey}`);
154
+ const ledgerKey = createHash('sha256')
155
+ .update(identityKey)
156
+ .digest('hex')
157
+ .slice(0, 16);
158
+ this.file = join(this.directory, `managed-state-${ledgerKey}.json`);
74
159
  }
75
160
  load() {
161
+ // Name the file and keep the cause, and keep an I/O failure distinguishable
162
+ // from a corrupt state: the directory now holds a ledger per registration,
163
+ // so the operator must know WHICH file is unreadable (e.g. EISDIR) versus
164
+ // merely invalid, while a sibling registration's healthy ledger sits beside
165
+ // it. Mirrors the WeCom / DingTalk stores this change parallels.
166
+ let raw;
76
167
  try {
77
- const value = JSON.parse(readFileSync(this.file, 'utf8'));
78
- if (!validManagedGithubState(value))
79
- throw new Error('invalid state');
80
- return value;
168
+ raw = readFileSync(this.file, 'utf8');
81
169
  }
82
170
  catch (error) {
83
171
  if (error.code === 'ENOENT')
84
172
  return undefined;
85
- throw new Error('Managed GitHub state is unreadable or invalid; restore it before restarting.');
173
+ throw new Error(`Managed GitHub state at ${this.file} could not be read; restore it before restarting.`, { cause: error });
174
+ }
175
+ let value;
176
+ try {
177
+ value = JSON.parse(raw);
178
+ }
179
+ catch (error) {
180
+ throw new Error(`Managed GitHub state at ${this.file} is not valid JSON; restore it before restarting.`, { cause: error });
181
+ }
182
+ if (!validManagedGithubState(value)) {
183
+ throw new Error(`Managed GitHub state at ${this.file} is invalid; restore it before restarting.`);
184
+ }
185
+ return value;
186
+ }
187
+ /**
188
+ * The pre-registration-identity ledger this entry used before the upgrade.
189
+ * A sibling `managed-state.json` is stranded by the upgrade: its staged-but-
190
+ * unadmitted claims were never seen by the control plane (only `submitInbound`
191
+ * makes a claim visible), and the fresh ledger's null cursor starts the poll
192
+ * window at connect time, so the old notification is not re-listed. Report
193
+ * the path and its pending / outbound counts so the drop is explicit, never
194
+ * silent. Detection is NOT gated on the identity-keyed ledger being absent: a
195
+ * rollback to the pre-upgrade build can stage fresh claims into
196
+ * `managed-state.json` after a keyed ledger already exists, and those must
197
+ * still be reported. The caller archives the file once the start succeeds
198
+ * (`archiveStrandedLegacy`). The legacy ledger is NOT adopted — adopting it
199
+ * would replay one registration's pending into another, the cross-ownership
200
+ * hazard the identity keying prevents.
201
+ *
202
+ * `readable` distinguishes a legacy whose contents could not be read or
203
+ * parsed (counts unknown, reported as 0 but flagged) from one that parsed to
204
+ * an empty ledger: an unreadable legacy certainly strands whatever it held,
205
+ * so the caller must not render it as a quiescent "nothing was lost".
206
+ */
207
+ strandedLegacyLedger() {
208
+ const legacyPath = join(this.directory, 'managed-state.json');
209
+ if (!existsSync(legacyPath))
210
+ return undefined;
211
+ let pending = 0;
212
+ let outbound = 0;
213
+ let watchPending = 0;
214
+ const watchPendingKeys = [];
215
+ let readable = true;
216
+ let watermark = null;
217
+ try {
218
+ const value = JSON.parse(readFileSync(legacyPath, 'utf8'));
219
+ // A parseable non-ledger (`{}`, `[]`, `null`, or an object without the
220
+ // ledger's pending/outbound arrays) is not a quiescent empty ledger: it
221
+ // is an unrecognized file whose claims are unknown. Flag it unreadable so
222
+ // the notice reports a possible loss, never a loss-free "0 pending / 0
223
+ // outbound" all-clear (deferred item 7).
224
+ const isLedgerShape = !!value &&
225
+ typeof value === 'object' &&
226
+ !Array.isArray(value) &&
227
+ Array.isArray(value.pending) &&
228
+ Array.isArray(value.outbound);
229
+ if (!isLedgerShape)
230
+ readable = false;
231
+ const pendingList = value?.pending;
232
+ const outboundList = value?.outbound;
233
+ pending = Array.isArray(pendingList) ? pendingList.length : 0;
234
+ // Only segments whose delivery status is UNKNOWN are a loss: a definitive
235
+ // receipt (accepted/rejected) proves the outcome, but an absent receipt —
236
+ // or one whose outcome is 'unknown' — does not, so both count toward the
237
+ // unknown-status clause (deferred item 9; an {outcome:'unknown'} receipt
238
+ // is not a known outcome).
239
+ outbound = Array.isArray(outboundList)
240
+ ? outboundList.filter((segment) => {
241
+ const receipt = segment && typeof segment === 'object'
242
+ ? segment.receipt
243
+ : undefined;
244
+ return !(receipt &&
245
+ (receipt.outcome === 'accepted' || receipt.outcome === 'rejected'));
246
+ }).length
247
+ : 0;
248
+ // The legacy notification watermark: the fresh ledger's null cursor
249
+ // restarts the poll window at connect time, so unread notifications
250
+ // updated after this watermark while the bot was down are never listed.
251
+ // Surfacing it lets the notice name that skipped window even when the
252
+ // legacy staged no pending/outbound (R1-4).
253
+ const lastProcessedAt = value?.cursor?.lastProcessedAt;
254
+ watermark = typeof lastProcessedAt === 'string' ? lastProcessedAt : null;
255
+ // The legacy watch.prs queue holds detected-but-undelivered transitions
256
+ // (R3-1). The fresh ledger re-baselines watch.prs empty and does NOT
257
+ // adopt them — injecting one registration's detected events under
258
+ // another is the cross-ownership replay the keying prevents — so they
259
+ // are stranded work. Count the PR entries whose queue is non-empty so
260
+ // the notice names that loss instead of a quiescent "0 pending", and
261
+ // collect their keys so the caller can tell whether the loaded ledger
262
+ // holds a baseline to re-detect them against (R5). The durable episode
263
+ // counters are carried separately, entry-scoped, by entryWatchEpisodes().
264
+ const rawPrs = value?.watch?.prs;
265
+ if (!!rawPrs && typeof rawPrs === 'object' && !Array.isArray(rawPrs)) {
266
+ for (const [key, entry] of Object.entries(rawPrs)) {
267
+ const queue = entry?.pending;
268
+ if (Array.isArray(queue) && queue.length > 0) {
269
+ watchPending += 1;
270
+ watchPendingKeys.push(key);
271
+ }
272
+ }
273
+ }
274
+ }
275
+ catch {
276
+ // A corrupt or unreadable legacy still strands; flag it so the caller
277
+ // reports unknown counts and a possible loss, never a silent "empty".
278
+ readable = false;
279
+ }
280
+ return {
281
+ path: legacyPath,
282
+ pending,
283
+ outbound,
284
+ watchPending,
285
+ watchPendingKeys,
286
+ readable,
287
+ watermark,
288
+ };
289
+ }
290
+ /**
291
+ * The entry-scoped durable PR-watch episode counters, merged across every
292
+ * ledger this entry directory holds: the live legacy, each registration's
293
+ * identity-keyed ledger, and the `.stranded-*` archives (R3-1). The
294
+ * admission ledger is permanent and keyed without a registration
295
+ * discriminant, so the counters must outlive the legacy archive:
296
+ * registration A adopts them and archives the legacy, then registration B
297
+ * must still resume them rather than restart at 0 and re-derive an
298
+ * already-admitted input id (a silently deduped recurrence). Reading the
299
+ * archives — not just the live legacy — is what makes the carry survive the
300
+ * first start's rename. `Math.max` per key only errs toward a new id (the
301
+ * input id already binds tenant/channel), and values are sanitized to safe
302
+ * integers >= 1. A counter whose only home is a `watch.prs` baseline (its
303
+ * watermark was evicted) is carried too. This is the carry SOURCE, not the
304
+ * persisted state: it is returned uncapped, and the adapter merges it into the
305
+ * loaded ledger non-destructively under the validator's 1024 bound (R7-1) —
306
+ * capping here would discard recoverable counters before the adapter can
307
+ * place them. Best-effort: an unreadable or corrupt sibling is skipped, never
308
+ * a startup failure, but its path is returned in `skipped` so the caller can
309
+ * log that a counter source was unreadable rather than dropping it silently
310
+ * (deferred item 8). `episodes` is undefined when no ledger carries counters.
311
+ */
312
+ entryWatchEpisodes() {
313
+ const skipped = [];
314
+ let names;
315
+ try {
316
+ names = readdirSync(this.directory);
317
+ }
318
+ catch {
319
+ return { episodes: undefined, skipped };
320
+ }
321
+ const merged = {};
322
+ for (const name of names) {
323
+ // The legacy ledger, the identity-keyed ledgers, and the legacy archives
324
+ // — never an in-flight <uuid>.tmp or the lock metadata.
325
+ if (!/^managed-state(-[0-9a-f]{16})?\.json(\.stranded-.+)?$/.test(name)) {
326
+ continue;
327
+ }
328
+ const filePath = join(this.directory, name);
329
+ let value;
330
+ try {
331
+ value = JSON.parse(readFileSync(filePath, 'utf8'));
332
+ }
333
+ catch {
334
+ skipped.push(filePath);
335
+ continue;
336
+ }
337
+ const watch = value?.watch;
338
+ const raw = watch?.episodes;
339
+ if (!!raw && typeof raw === 'object' && !Array.isArray(raw)) {
340
+ for (const [key, entry] of Object.entries(raw)) {
341
+ if (Number.isSafeInteger(entry) && entry >= 1) {
342
+ merged[key] = Math.max(merged[key] ?? 0, entry);
343
+ }
344
+ }
345
+ }
346
+ // A counter whose only home is a prs baseline (its watermark was evicted
347
+ // by the live cap) is still durable; carry it too, or a rebind would
348
+ // restart it and re-derive an admitted id.
349
+ const rawPrs = watch?.prs;
350
+ if (!!rawPrs && typeof rawPrs === 'object' && !Array.isArray(rawPrs)) {
351
+ for (const [key, entry] of Object.entries(rawPrs)) {
352
+ const episode = entry?.episode;
353
+ if (Number.isSafeInteger(episode) && episode >= 1) {
354
+ merged[key] = Math.max(merged[key] ?? 0, episode);
355
+ }
356
+ }
357
+ }
358
+ }
359
+ if (Object.keys(merged).length === 0)
360
+ return { episodes: undefined, skipped };
361
+ return { episodes: merged, skipped };
362
+ }
363
+ /**
364
+ * Archive a reported legacy ledger so it is not re-announced on every later
365
+ * start (and a second registration of the entry is not told the first
366
+ * registration's claims were its own). Renaming — not deleting — keeps the
367
+ * stranded claims inspectable, and a rollback that stages a fresh
368
+ * `managed-state.json` is detected again on the next upgrade. This never
369
+ * adopts the claims into the keyed ledger. Returns the archived path, or
370
+ * undefined when there is nothing to archive or the rename fails (the file
371
+ * then stays and is reported again next start — degraded, never a startup
372
+ * failure).
373
+ */
374
+ archiveStrandedLegacy() {
375
+ const legacyPath = join(this.directory, 'managed-state.json');
376
+ if (!existsSync(legacyPath))
377
+ return undefined;
378
+ const archived = `${legacyPath}.stranded-${randomUUID()}`;
379
+ try {
380
+ renameSync(legacyPath, archived);
381
+ return archived;
382
+ }
383
+ catch {
384
+ return undefined;
86
385
  }
87
386
  }
88
387
  save(state) {
@@ -1 +1 @@
1
- {"version":3,"file":"managed-state.js","sourceRoot":"","sources":["../src/managed-state.ts"],"names":[],"mappings":"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,CAAC;QACnB,CAAC;IACH,CAAC;IAED,IAAI,CAAC,KAAyB;QAC5B,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAC5D,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,UAAU,EAAE,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC;YACH,MAAM,EAAE,GAAG,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;YAC5C,IAAI,CAAC;gBACH,aAAa,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gBACzC,SAAS,CAAC,EAAE,CAAC,CAAC;YAChB,CAAC;oBAAS,CAAC;gBACT,SAAS,CAAC,EAAE,CAAC,CAAC;YAChB,CAAC;YACD,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACnC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,wEAAwE;YACxE,uEAAuE;YACvE,MAAM,IAAI,KAAK,CACb,6DAA6D,EAC7D,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/channel-github",
3
- "version": "0.28.1-preview.0",
3
+ "version": "0.28.1-preview.1",
4
4
  "description": "GitHub polling channel adapter for Qwen Code",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@octokit/rest": "^21.1.1",
28
- "@qwen-code/channel-base": "0.28.1-preview.0",
28
+ "@qwen-code/channel-base": "0.28.1-preview.1",
29
29
  "https-proxy-agent": "^7.0.6",
30
30
  "proper-lockfile": "^4.1.2",
31
31
  "undici": "^7.30.2"