@qwen-code/channel-dingtalk 0.28.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.
- package/dist/DingtalkAdapter.d.ts +7 -0
- package/dist/DingtalkAdapter.d.ts.map +1 -1
- package/dist/DingtalkAdapter.js +5 -2
- package/dist/DingtalkAdapter.js.map +1 -1
- package/dist/connect-logging.d.ts.map +1 -1
- package/dist/connect-logging.js +4 -3
- package/dist/connect-logging.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/interactive-card-client.d.ts +10 -0
- package/dist/interactive-card-client.d.ts.map +1 -1
- package/dist/interactive-card-client.js +19 -1
- package/dist/interactive-card-client.js.map +1 -1
- package/dist/managed-dingtalk-adapter.d.ts +56 -1
- package/dist/managed-dingtalk-adapter.d.ts.map +1 -1
- package/dist/managed-dingtalk-adapter.js +282 -57
- package/dist/managed-dingtalk-adapter.js.map +1 -1
- package/dist/managed-dingtalk-deps.d.ts +6 -1
- package/dist/managed-dingtalk-deps.d.ts.map +1 -1
- package/dist/managed-dingtalk-deps.js +299 -48
- package/dist/managed-dingtalk-deps.js.map +1 -1
- package/dist/managed-state.d.ts +53 -1
- package/dist/managed-state.d.ts.map +1 -1
- package/dist/managed-state.js +123 -15
- package/dist/managed-state.js.map +1 -1
- package/package.json +2 -2
package/dist/managed-state.js
CHANGED
|
@@ -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, 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
|
// H5d of #12827: the managed DingTalk adapter's own locked state. It keeps
|
|
@@ -18,6 +18,11 @@ import { getGlobalQwenDir, getWorkspaceScopeDirName, MANAGED_OUTBOUND_LIMIT, val
|
|
|
18
18
|
export const MANAGED_DINGTALK_PENDING_LIMIT = 32;
|
|
19
19
|
export const RECENT_LIMIT = 256;
|
|
20
20
|
export const WEBHOOK_LIMIT = 256;
|
|
21
|
+
// H5e of #12827: one card progress entry per in-flight card delivery. Bounded
|
|
22
|
+
// like the outbound ledger; least-recently-touched eviction keeps a long-lived
|
|
23
|
+
// instance from growing the state file without limit. An evicted entry is safe:
|
|
24
|
+
// the send path reads its absence as "text", never as "create a second card".
|
|
25
|
+
export const MANAGED_CARD_PROGRESS_LIMIT = 64;
|
|
21
26
|
export function validManagedDingtalkState(value) {
|
|
22
27
|
if (!value || typeof value !== 'object')
|
|
23
28
|
return false;
|
|
@@ -58,34 +63,137 @@ export function validManagedDingtalkState(value) {
|
|
|
58
63
|
Object.entries(state.webhooks).every(([key, entry]) => typeof key === 'string' &&
|
|
59
64
|
key.length > 0 &&
|
|
60
65
|
typeof entry === 'string' &&
|
|
61
|
-
entry.length > 0)
|
|
66
|
+
entry.length > 0) &&
|
|
67
|
+
(state.cards === undefined ||
|
|
68
|
+
(!!state.cards &&
|
|
69
|
+
typeof state.cards === 'object' &&
|
|
70
|
+
!Array.isArray(state.cards) &&
|
|
71
|
+
Object.keys(state.cards).length <= MANAGED_CARD_PROGRESS_LIMIT &&
|
|
72
|
+
Object.entries(state.cards).every(([key, entry]) => typeof key === 'string' &&
|
|
73
|
+
key.length > 0 &&
|
|
74
|
+
!!entry &&
|
|
75
|
+
typeof entry === 'object' &&
|
|
76
|
+
typeof entry.outTrackId === 'string' &&
|
|
77
|
+
entry.outTrackId.length > 0 &&
|
|
78
|
+
typeof entry.body === 'string' &&
|
|
79
|
+
(entry.mode === 'card' || entry.mode === 'text')))));
|
|
62
80
|
}
|
|
63
81
|
export class ManagedDingtalkStateStore {
|
|
64
82
|
directory;
|
|
65
83
|
file;
|
|
66
|
-
constructor(name, cwd, clientId) {
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
-
|
|
84
|
+
constructor(name, cwd, clientId, identityKey = '') {
|
|
85
|
+
// The lock directory is keyed by the configured entry (channel name +
|
|
86
|
+
// clientId) per workspace — NOT by destination — so two instances of the
|
|
87
|
+
// same robot app contend for one connection lock even when they target
|
|
88
|
+
// different control-plane destinations; a per-destination lock would let
|
|
89
|
+
// both run concurrently and duplicate inbound processing. The ledger FILE
|
|
90
|
+
// beneath that directory is keyed by the full registration identity
|
|
91
|
+
// (control plane + tenant + channel + actor + workspace + cwd-relative),
|
|
92
|
+
// so a pending message staged under one registration is never loaded or
|
|
93
|
+
// replayed under another. The Legacy DingTalk channel keeps no on-disk
|
|
94
|
+
// state and takes no lock, so the lock does not arbitrate
|
|
95
|
+
// managed-versus-Legacy.
|
|
96
|
+
const entryKey = createHash('sha256')
|
|
72
97
|
.update(`${name}\u0000${clientId}`)
|
|
73
98
|
.digest('hex')
|
|
74
99
|
.slice(0, 16);
|
|
75
|
-
this.directory = join(getGlobalQwenDir(), 'channels', getWorkspaceScopeDirName(cwd), `dingtalk-${
|
|
76
|
-
|
|
100
|
+
this.directory = join(getGlobalQwenDir(), 'channels', getWorkspaceScopeDirName(cwd), `dingtalk-${entryKey}`);
|
|
101
|
+
const ledgerKey = createHash('sha256')
|
|
102
|
+
.update(identityKey)
|
|
103
|
+
.digest('hex')
|
|
104
|
+
.slice(0, 16);
|
|
105
|
+
this.file = join(this.directory, `managed-state-${ledgerKey}.json`);
|
|
77
106
|
}
|
|
78
107
|
load() {
|
|
108
|
+
// Name the file and keep the cause, and keep an I/O failure distinguishable
|
|
109
|
+
// from a corrupt state: the directory now holds a ledger per registration,
|
|
110
|
+
// so the operator must know WHICH file is unreadable (e.g. EISDIR) versus
|
|
111
|
+
// merely invalid, while a sibling registration's healthy ledger sits beside
|
|
112
|
+
// it. Mirrors the WeCom store this change parallels.
|
|
113
|
+
let raw;
|
|
79
114
|
try {
|
|
80
|
-
|
|
81
|
-
if (!validManagedDingtalkState(value))
|
|
82
|
-
throw new Error('invalid state');
|
|
83
|
-
return value;
|
|
115
|
+
raw = readFileSync(this.file, 'utf8');
|
|
84
116
|
}
|
|
85
117
|
catch (error) {
|
|
86
118
|
if (error.code === 'ENOENT')
|
|
87
119
|
return undefined;
|
|
88
|
-
throw new Error(
|
|
120
|
+
throw new Error(`Managed DingTalk state at ${this.file} could not be read; restore it before restarting.`, { cause: error });
|
|
121
|
+
}
|
|
122
|
+
let value;
|
|
123
|
+
try {
|
|
124
|
+
value = JSON.parse(raw);
|
|
125
|
+
}
|
|
126
|
+
catch (error) {
|
|
127
|
+
throw new Error(`Managed DingTalk state at ${this.file} is not valid JSON; restore it before restarting.`, { cause: error });
|
|
128
|
+
}
|
|
129
|
+
if (!validManagedDingtalkState(value)) {
|
|
130
|
+
throw new Error(`Managed DingTalk state at ${this.file} is invalid; restore it before restarting.`);
|
|
131
|
+
}
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The pre-registration-identity ledger this entry used before the upgrade.
|
|
136
|
+
* A sibling `managed-state.json` is stranded by the upgrade: its
|
|
137
|
+
* staged-but-unadmitted claims were acked to the provider (which does not
|
|
138
|
+
* redeliver an acked frame) and the control plane never saw them, so they are
|
|
139
|
+
* lost. Report the path and its pending / outbound counts so the drop is
|
|
140
|
+
* explicit, never silent. Detection is NOT gated on the identity-keyed ledger
|
|
141
|
+
* being absent: a rollback to the pre-upgrade build can stage fresh claims
|
|
142
|
+
* into `managed-state.json` after a keyed ledger already exists, and those
|
|
143
|
+
* must still be reported (R2-6). The caller archives the file once the start
|
|
144
|
+
* succeeds (`archiveStrandedLegacy`) so a static legacy is not re-announced on
|
|
145
|
+
* every later start. The legacy ledger is NOT adopted — adopting it would
|
|
146
|
+
* replay one registration's pending into another, the cross-ownership hazard
|
|
147
|
+
* the identity keying prevents.
|
|
148
|
+
*
|
|
149
|
+
* `readable` distinguishes a legacy whose contents could not be read or
|
|
150
|
+
* parsed (counts unknown, reported as 0 but flagged) from one that parsed to
|
|
151
|
+
* an empty ledger: an unreadable legacy certainly strands whatever it held,
|
|
152
|
+
* so the caller must not render it as a quiescent "nothing was lost" (R3-1).
|
|
153
|
+
*/
|
|
154
|
+
strandedLegacyLedger() {
|
|
155
|
+
const legacyPath = join(this.directory, 'managed-state.json');
|
|
156
|
+
if (!existsSync(legacyPath))
|
|
157
|
+
return undefined;
|
|
158
|
+
let pending = 0;
|
|
159
|
+
let outbound = 0;
|
|
160
|
+
let readable = true;
|
|
161
|
+
try {
|
|
162
|
+
const value = JSON.parse(readFileSync(legacyPath, 'utf8'));
|
|
163
|
+
const pendingList = value?.pending;
|
|
164
|
+
const outboundList = value?.outbound;
|
|
165
|
+
pending = Array.isArray(pendingList) ? pendingList.length : 0;
|
|
166
|
+
outbound = Array.isArray(outboundList) ? outboundList.length : 0;
|
|
167
|
+
}
|
|
168
|
+
catch {
|
|
169
|
+
// A corrupt or unreadable legacy still strands; flag it so the caller
|
|
170
|
+
// reports unknown counts and a possible loss, never a silent "empty".
|
|
171
|
+
readable = false;
|
|
172
|
+
}
|
|
173
|
+
return { path: legacyPath, pending, outbound, readable };
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Archive a reported legacy ledger so it is not re-announced on every later
|
|
177
|
+
* start (and a second registration of the entry is not told the first
|
|
178
|
+
* registration's claims were its own). Renaming — not deleting — keeps the
|
|
179
|
+
* stranded claims inspectable, and a rollback that stages a fresh
|
|
180
|
+
* `managed-state.json` is detected again on the next upgrade. This never
|
|
181
|
+
* adopts the claims into the keyed ledger. Returns the archived path, or
|
|
182
|
+
* undefined when there is nothing to archive or the rename fails (the file
|
|
183
|
+
* then stays and is reported again next start — degraded, never a startup
|
|
184
|
+
* failure).
|
|
185
|
+
*/
|
|
186
|
+
archiveStrandedLegacy() {
|
|
187
|
+
const legacyPath = join(this.directory, 'managed-state.json');
|
|
188
|
+
if (!existsSync(legacyPath))
|
|
189
|
+
return undefined;
|
|
190
|
+
const archived = `${legacyPath}.stranded-${randomUUID()}`;
|
|
191
|
+
try {
|
|
192
|
+
renameSync(legacyPath, archived);
|
|
193
|
+
return archived;
|
|
194
|
+
}
|
|
195
|
+
catch {
|
|
196
|
+
return undefined;
|
|
89
197
|
}
|
|
90
198
|
}
|
|
91
199
|
save(state) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-state.js","sourceRoot":"","sources":["../src/managed-state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,MAAM,EACN,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AAQjC,2EAA2E;AAC3E,wEAAwE;AACxE,2EAA2E;AAC3E,2EAA2E;AAC3E,wEAAwE;AACxE,0EAA0E;AAC1E,6DAA6D;AAC7D,8DAA8D;AAE9D,MAAM,CAAC,MAAM,8BAA8B,GAAG,EAAE,CAAC;AACjD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC;AAChC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"managed-state.js","sourceRoot":"","sources":["../src/managed-state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE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,IAAI,CAAC,IAAI,CAAC,CAAC;QACnC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,qEAAqE;YACrE,uEAAuE;YACvE,uEAAuE;YACvE,MAAM,IAAI,KAAK,CACb,+DAA+D,EAC/D,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-dingtalk",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.1-preview.1",
|
|
4
4
|
"description": "DingTalk channel adapter for Qwen Code",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@qwen-code/channel-base": "0.28.
|
|
23
|
+
"@qwen-code/channel-base": "0.28.1-preview.1",
|
|
24
24
|
"dingtalk-stream-sdk-nodejs": "^2.0.4",
|
|
25
25
|
"proper-lockfile": "^4.1.2",
|
|
26
26
|
"undici": "^7.30.2"
|