@qwen-code/channel-github 0.27.2 → 0.27.3-nightly.20261115.6e3b2dcc19
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/dist/GithubAdapter.d.ts +130 -160
- package/dist/GithubAdapter.d.ts.map +1 -1
- package/dist/GithubAdapter.js +971 -1473
- package/dist/GithubAdapter.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -27
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACL,aAAa,EAMd,MAAM,oBAAoB,CAAC;AA8D5B,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,eAAO,MAAM,MAAM,EAAE,aAgJpB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MAX_POLL_INTERVAL_MS, PR_BINDING_ROLES, } from '@qwen-code/channel-base';
|
|
2
|
-
import { GithubChannel, validateBoundSessionConfig,
|
|
2
|
+
import { GithubChannel, validateBoundSessionConfig, validateRepoFilterConfig, PR_NOTIFICATION_REASONS, PR_WATCH_EVENTS, REPO_FILTER_MODES, } from './GithubAdapter.js';
|
|
3
3
|
/**
|
|
4
4
|
* One-line meaning of each unqualified boundSessionActions key, shown by
|
|
5
5
|
* management UIs next to the key and in the add picker. Role-qualified
|
|
@@ -8,10 +8,10 @@ import { GithubChannel, validateBoundSessionConfig, DEFAULT_PR_WATCH_LIMIT, MAX_
|
|
|
8
8
|
*/
|
|
9
9
|
const BOUND_ACTION_DESCRIPTIONS = {
|
|
10
10
|
default: 'Fallback template for any event without a more specific key',
|
|
11
|
-
'watch:ci_failure': '
|
|
12
|
-
'watch:merge_conflict': '
|
|
13
|
-
'watch:head_change': '
|
|
14
|
-
'watch:state_change': '
|
|
11
|
+
'watch:ci_failure': 'Deprecated (use serve.sessionPrWatch): checks turn red',
|
|
12
|
+
'watch:merge_conflict': 'Deprecated (use serve.sessionPrWatch): merge conflict',
|
|
13
|
+
'watch:head_change': 'Deprecated (use serve.sessionPrWatch): head changes',
|
|
14
|
+
'watch:state_change': 'Deprecated (use serve.sessionPrWatch): merged or closed',
|
|
15
15
|
mention: 'You are @mentioned in a comment',
|
|
16
16
|
review_requested: 'A review is requested from you',
|
|
17
17
|
assign: 'You are assigned to the PR',
|
|
@@ -156,36 +156,18 @@ export const plugin = {
|
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
key: 'prWatchEvents',
|
|
159
|
-
label: 'PR Watch Events',
|
|
159
|
+
label: 'PR Watch Events (Deprecated)',
|
|
160
160
|
kind: 'string-list',
|
|
161
|
-
description: '
|
|
161
|
+
description: 'Deprecated. The daemon now detects PR-state transitions: configure serve.sessionPrWatch in the daemon settings. This channel no longer watches bound PRs. For one minor release the key is accepted and read as a per-host alias when that setting is unset, for PRs on this channel’s web host; read only while Deliver To PR-Bound Sessions is on.',
|
|
162
162
|
// Built from the adapter's exported vocabulary so the UI options can
|
|
163
|
-
// never drift from the
|
|
163
|
+
// never drift from the alias vocabulary (R2-18).
|
|
164
164
|
options: PR_WATCH_EVENTS.map((value) => ({ value, label: value })),
|
|
165
165
|
},
|
|
166
|
-
{
|
|
167
|
-
key: 'prWatchLimit',
|
|
168
|
-
label: 'PR Watch Limit',
|
|
169
|
-
kind: 'number',
|
|
170
|
-
exclusiveMinimum: 0,
|
|
171
|
-
maximum: MAX_PR_WATCH_LIMIT,
|
|
172
|
-
default: String(DEFAULT_PR_WATCH_LIMIT),
|
|
173
|
-
description: 'Maximum open bound PRs watched per poll (requires Deliver To PR-Bound Sessions; the per-PR pulls.get also needs PR Watch Events — without them the cap only bounds the comment watch). Open PRs keep the full budget; merged/closed bindings drain in an additional slice (20% of the limit, at least one) outside it, so they never crowd out open PRs. Each watched PR still issues about one pulls.get per poll, but an unchanged PR answers 304 and costs no primary rate limit, so the state watch is near-free while PRs are quiet. What still counts is the default-on comment watch (~60 requests/hour per PR) and the periodic CI re-checks, which put a 5000/hour PAT budget at roughly 70-75 bound PRs. The ceiling moved from the state watch to the comment watch; it did not disappear. An over-budget configuration makes every watch pass abort on rate limits. Raise Poll Interval when raising this. Leave empty for the default.',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
key: 'prWatchBudgetReserve',
|
|
177
|
-
label: 'PR Watch Budget Reserve',
|
|
178
|
-
kind: 'number',
|
|
179
|
-
minimum: 0,
|
|
180
|
-
maximum: MAX_PR_WATCH_BUDGET_RESERVE,
|
|
181
|
-
default: String(DEFAULT_PR_WATCH_BUDGET_RESERVE),
|
|
182
|
-
description: 'REST requests held back for the interactive notification lane (requires Deliver To PR-Bound Sessions; the gate covers the comment watch too, so PR Watch Events are not required). When the last known remaining budget is at or below this, the PR state watch is skipped for that poll — and stopped mid-pass if a pass spends down to it — so a human mention is not starved by background polling; detection resumes once the budget recovers or its window resets. The default (200) is ~4% of a 5000/hour PAT budget. Set 0 to disable the gate. Leave empty for the default.',
|
|
183
|
-
},
|
|
184
166
|
{
|
|
185
167
|
key: 'boundSessionActions',
|
|
186
168
|
label: 'Bound Session Actions',
|
|
187
169
|
kind: 'record',
|
|
188
|
-
description: 'Optional. Instruction templates delivered to PR-bound sessions. Pick an event key below; a role prefix (review:, verify:, fix:) targets that binding role only. Requires Deliver To PR-Bound Sessions. Each role with a matching key gets its own delivery; roles without one skip the event. Variables: %repo%, %pr%, %url%, %title%, %event%, %sender%, %role%; %% for a literal %. Leave empty for the default generic prompt.',
|
|
170
|
+
description: 'Optional. Instruction templates delivered to PR-bound sessions. Pick an event key below; a role prefix (review:, verify:, fix:) targets that binding role only. Requires Deliver To PR-Bound Sessions. Each role with a matching key gets its own delivery; roles without one skip the event. The watch:* keys are deprecated: configure serve.sessionPrWatch.actions for state transitions. Variables: %repo%, %pr%, %url%, %title%, %event%, %sender%, %role%; %% for a literal %. Leave empty for the default generic prompt.',
|
|
189
171
|
options: BOUND_ACTION_KEY_OPTIONS,
|
|
190
172
|
},
|
|
191
173
|
],
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,eAAe,EACf,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,yBAAyB,GAA2B;IACxD,OAAO,EAAE,6DAA6D;IACtE,kBAAkB,EAAE,wDAAwD;IAC5E,sBAAsB,EACpB,uDAAuD;IACzD,mBAAmB,EAAE,qDAAqD;IAC1E,oBAAoB,EAClB,yDAAyD;IAC3D,OAAO,EAAE,iCAAiC;IAC1C,gBAAgB,EAAE,gCAAgC;IAClD,MAAM,EAAE,4BAA4B;IACpC,MAAM,EAAE,+BAA+B;IACvC,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,gCAAgC;IAC7C,MAAM,EAAE,mCAAmC;IAC3C,YAAY,EAAE,4BAA4B;IAC1C,UAAU,EAAE,oCAAoC;IA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E;YACD;gBACE,GAAG,EAAE,qBAAqB;gBAC1B,KAAK,EAAE,uBAAuB;gBAC9B,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,kgBAAkgB;gBACpgB,OAAO,EAAE,wBAAwB;aAClC;SACF;QACD,cAAc,EAAE,CAAC,MAAM,EAAE,EAAE;YACzB,MAAM,KAAK,GACT,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACpE,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC5C,OAAO,2EAA2E,CAAC;YACrF,CAAC;YACD,OAAO,CACL,0BAA0B,CAAC,MAAM,EAAE,QAAQ,CAAC;gBAC5C,wBAAwB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAC3C,CAAC;QACJ,CAAC;KACF;IACD,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CAC/C,IAAI,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;CACnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/channel-github",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.3-nightly.20261115.6e3b2dcc19",
|
|
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.27.
|
|
28
|
+
"@qwen-code/channel-base": "0.27.3-nightly.20261115.6e3b2dcc19",
|
|
29
29
|
"https-proxy-agent": "^7.0.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|