dsh-plugin-t-expert 0.3.88 → 0.3.89
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/README.md +29 -56
- package/THIRD-PARTY-NOTICES +6 -31
- package/lib/bootstrap.js +11 -33
- package/lib/catalog.js +1 -1
- package/lib/client.js +20707 -21863
- package/lib/i18n.js +0 -4
- package/lib/index.js +171 -858
- package/lib/remote-schemas.js +5 -104
- package/lib/remote.js +7 -174
- package/lib/schedule.js +93 -23
- package/lib/skill.js +1 -1
- package/package.json +3 -10
- package/vendor/third-party-licenses/README.md +0 -1
- package/data/t-team.config.json +0 -1558
- package/data/team-profiles.py +0 -367
- package/data/teams.json +0 -791
- package/data/teams.resolved.json +0 -1594
- package/lib/command.js +0 -251
- package/lib/plan-check.js +0 -166
- package/lib/squads.js +0 -446
- package/lib/teams/assignee-contract.js +0 -47
- package/lib/teams/capabilities.js +0 -106
- package/lib/teams/command.js +0 -147
- package/lib/teams/event-types.js +0 -12
- package/lib/teams/events.js +0 -60
- package/lib/teams/harness-compat.js +0 -561
- package/lib/teams/index.js +0 -463
- package/lib/teams/members.js +0 -619
- package/lib/teams/profiles.js +0 -572
- package/lib/teams/quality-gates.js +0 -905
- package/lib/teams/scheduler.js +0 -642
- package/lib/teams/snapshot.js +0 -184
- package/lib/teams/state.js +0 -946
- package/lib/teams/tool-names.js +0 -11
- package/lib/teams/tools.js +0 -2346
- package/lib/teams/types.js +0 -22
- package/lib/teams/web-routes.js +0 -86
- package/vendor/dsh-agent-teams/LICENSE +0 -21
package/lib/teams/types.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Durable T Team state types.
|
|
3
|
-
*
|
|
4
|
-
* A team is one directory under the state root holding `team.json` plus an
|
|
5
|
-
* `inbox/` of per-agent JSONL mailboxes. Members are continuable subagents
|
|
6
|
-
* whose durable child session ids are recorded in the team file, so a team
|
|
7
|
-
* survives harness restarts.
|
|
8
|
-
* @module t-team/types
|
|
9
|
-
*/
|
|
10
|
-
/** Statuses after which a task can no longer be claimed or worked on. */
|
|
11
|
-
export const TERMINAL_TASK_STATUSES = ['completed', 'failed', 'cancelled'];
|
|
12
|
-
export const TASK_KINDS = [
|
|
13
|
-
'requirements',
|
|
14
|
-
'implementation',
|
|
15
|
-
'verification',
|
|
16
|
-
'review',
|
|
17
|
-
'repair',
|
|
18
|
-
'integration',
|
|
19
|
-
'work',
|
|
20
|
-
];
|
|
21
|
-
export const REVIEW_VERDICTS = ['pass', 'needs_revision', 'reject'];
|
|
22
|
-
export const FINDING_SEVERITIES = ['low', 'medium', 'high', 'blocker'];
|
package/lib/teams/web-routes.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export class RequestBodyError extends Error {
|
|
2
|
-
status;
|
|
3
|
-
constructor(message, status) {
|
|
4
|
-
super(message);
|
|
5
|
-
this.status = status;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
/** Bound memory while draining oversized requests so the route can return 413. */
|
|
9
|
-
export async function readJsonRequest(req, maxBytes = 1_000_000) {
|
|
10
|
-
const raw = await new Promise((resolve, reject) => {
|
|
11
|
-
let size = 0;
|
|
12
|
-
let settled = false;
|
|
13
|
-
const chunks = [];
|
|
14
|
-
const finish = (error) => {
|
|
15
|
-
if (settled)
|
|
16
|
-
return;
|
|
17
|
-
settled = true;
|
|
18
|
-
req.off('data', onData);
|
|
19
|
-
req.off('end', onEnd);
|
|
20
|
-
req.off('aborted', onAborted);
|
|
21
|
-
req.off('error', onError);
|
|
22
|
-
if (error) {
|
|
23
|
-
chunks.length = 0;
|
|
24
|
-
// IncomingMessage may still receive data; discard it without buffering.
|
|
25
|
-
req.once('error', () => { });
|
|
26
|
-
req.resume();
|
|
27
|
-
reject(error);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
resolve(Buffer.concat(chunks).toString('utf8'));
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const onData = (chunk) => {
|
|
34
|
-
const part = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
35
|
-
size += part.length;
|
|
36
|
-
if (size > maxBytes)
|
|
37
|
-
finish(new RequestBodyError('request body is too large', 413));
|
|
38
|
-
else
|
|
39
|
-
chunks.push(part);
|
|
40
|
-
};
|
|
41
|
-
const onEnd = () => finish();
|
|
42
|
-
const onAborted = () => finish(new RequestBodyError('request body was aborted', 400));
|
|
43
|
-
const onError = () => finish(new RequestBodyError('invalid request body', 400));
|
|
44
|
-
req.on('data', onData);
|
|
45
|
-
req.once('end', onEnd);
|
|
46
|
-
req.once('aborted', onAborted);
|
|
47
|
-
req.once('error', onError);
|
|
48
|
-
});
|
|
49
|
-
let value;
|
|
50
|
-
try {
|
|
51
|
-
value = raw.trim() === '' ? {} : JSON.parse(raw);
|
|
52
|
-
}
|
|
53
|
-
catch {
|
|
54
|
-
throw new RequestBodyError('invalid JSON', 400);
|
|
55
|
-
}
|
|
56
|
-
if (typeof value !== 'object' || value === null || Array.isArray(value)) {
|
|
57
|
-
throw new RequestBodyError('body must be an object', 400);
|
|
58
|
-
}
|
|
59
|
-
return value;
|
|
60
|
-
}
|
|
61
|
-
/** Raw WebServer routes do not inherit Connection's authentication fence. */
|
|
62
|
-
export function authenticatedWebRoutes(server, connection) {
|
|
63
|
-
return {
|
|
64
|
-
register(route) {
|
|
65
|
-
return server.register({
|
|
66
|
-
...route,
|
|
67
|
-
async handler(req, res) {
|
|
68
|
-
const gate = connection();
|
|
69
|
-
// Missing/disposing Connection is an assembly failure, never an
|
|
70
|
-
// invitation to expose workspace state or accept plan mutations.
|
|
71
|
-
const rejection = gate === undefined ? 503 : gate.requestRejection(req);
|
|
72
|
-
if (rejection !== undefined) {
|
|
73
|
-
res.writeHead(rejection, {
|
|
74
|
-
'content-type': 'application/json; charset=utf-8',
|
|
75
|
-
'cache-control': 'no-store',
|
|
76
|
-
});
|
|
77
|
-
res.end(JSON.stringify({ error: rejection === 503 ? 'authentication unavailable'
|
|
78
|
-
: rejection === 401 ? 'unauthorized' : 'forbidden' }));
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
await route.handler(req, res);
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 程序员阿江(Relakkes)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|