pi-dent-agent 0.2.0 → 0.2.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/README.md +2 -2
- package/index.ts +1 -1
- package/lib/bash-tool.ts +2 -2
- package/lib/engine.ts +21 -28
- package/node_modules/standardwebhooks/README.md +21 -0
- package/node_modules/standardwebhooks/dist/index.d.ts +4 -2
- package/node_modules/standardwebhooks/dist/index.js +42 -29
- package/node_modules/standardwebhooks/dist/index.js.map +1 -1
- package/node_modules/standardwebhooks/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# pi-dent
|
|
2
2
|
|
|
3
3
|
A generic coding agent, built as a pi extension: it registers the `Bash`, `Task`, `Agent`, `Fleet`,
|
|
4
|
-
`Script`, `Plugin`, `Skill`, `Session`, `Schedule`, `Search`, `Markdown`, and `AskUserQuestion` tools and the `tasks`, `fleet`, and `
|
|
4
|
+
`Script`, `Plugin`, `Skill`, `Session`, `Schedule`, `Search`, `Markdown`, and `AskUserQuestion` tools and the `tasks`, `fleet`, and `dent`
|
|
5
5
|
slash commands, replaces the host's built-in `bash` tool, and adds the task browser.
|
|
6
6
|
Specifications live in [specs/](specs/AGENTS.md); the formal
|
|
7
7
|
source of truth for every behavior.
|
|
@@ -37,7 +37,7 @@ Paths in a user-scope `packages` list resolve against `~/.pi/agent`, so `../../s
|
|
|
37
37
|
`pi config` enables or disables the resources a package declares.
|
|
38
38
|
|
|
39
39
|
Listing the package is the whole installation. It loads pi-dent and its bundled extensions, each
|
|
40
|
-
as its own extension: `purse` (the billing service), `pi-dent-terms` (the `Terms` tool),
|
|
40
|
+
as its own extension: `pi-dent-purse` (the billing service), `pi-dent-terms` (the `Terms` tool),
|
|
41
41
|
`pi-mcp-adapter`, `pi-anthropic-oauth`, and `pi-web-access`, per
|
|
42
42
|
[specs/package.md](specs/package.md). Those extensions come from this package, so they must not
|
|
43
43
|
also appear in `packages` — a second copy loads twice and its tools collide. Update them with
|
package/index.ts
CHANGED
package/lib/bash-tool.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const bashParameterSchema = Type.Object(
|
|
|
62
62
|
{
|
|
63
63
|
command: Type.String({
|
|
64
64
|
pattern: "\\S",
|
|
65
|
-
description: `Shell command text: one line or several, passed to the shell unchanged.
|
|
65
|
+
description: `Shell command text: one line or several, passed to the shell unchanged. Its output is captured to a file by default: do not cut it with \`| tail\`, \`| head\` or \`| grep\`. At least one character that is not white space.`,
|
|
66
66
|
}),
|
|
67
67
|
timeout: Type.Optional(
|
|
68
68
|
Type.Integer({
|
|
@@ -852,7 +852,7 @@ export function makeBashTool(deps: BashToolDeps) {
|
|
|
852
852
|
name: "Bash",
|
|
853
853
|
label: "Bash",
|
|
854
854
|
description:
|
|
855
|
-
"Run a shell command as a task, in the foreground or, with `background: true`, as a background task that returns at once with a task ID and keeps running. Output is written to a file and to the task's output feed; long output shows a bounded excerpt of its last lines. An omitted `timeout` gives a foreground call 600000 ms and imposes none on a background call. Do not start processes with & or nohup: use background: true.
|
|
855
|
+
"`Bash` output is captured to a file by default: never cut it with `| tail`, `| head` or `| grep` or redirect it, and `Read` or `rg` that file instead of rerunning the command. Run a shell command as a task, in the foreground or, with `background: true`, as a background task that returns at once with a task ID and keeps running. Output is written to a file and to the task's output feed; long output shows a bounded excerpt of its last lines. An omitted `timeout` gives a foreground call 600000 ms and imposes none on a background call. Do not start processes with & or nohup: use background: true. Temporary files go under $TMPDIR, the session's tmp folder, never /tmp; create them with mktemp \"$TMPDIR/name.XXXXXX\", since a bare mktemp may ignore $TMPDIR.",
|
|
856
856
|
promptSnippet: "Run a shell command as a task, in the foreground or background",
|
|
857
857
|
parameters: bashParameterSchema,
|
|
858
858
|
async execute(
|
package/lib/engine.ts
CHANGED
|
@@ -656,6 +656,10 @@ const SESSION_NOTE_LINES: readonly (readonly [tools: readonly string[], line: st
|
|
|
656
656
|
["Bash"],
|
|
657
657
|
"Run a long-running command with `Bash` and `background: true`, never with `&` or `nohup`.",
|
|
658
658
|
],
|
|
659
|
+
[
|
|
660
|
+
["Bash"],
|
|
661
|
+
"Before every `Bash` call, check the command: if it ends in `| tail`, `| head`, `| grep` or `> file`, delete that ending. `Bash` already returns only the last 50 lines and saves the full output to a file the result names.",
|
|
662
|
+
],
|
|
659
663
|
[["Skill"], "Load a `Skill` when the task matches one in `<available_skills>`."],
|
|
660
664
|
[
|
|
661
665
|
// A child that can dispatch an agent needs the transcript it can look back into.
|
|
@@ -757,44 +761,33 @@ export function readBootSnapshot(cwd = process.cwd()): BootSnapshot {
|
|
|
757
761
|
}
|
|
758
762
|
|
|
759
763
|
/**
|
|
760
|
-
*
|
|
761
|
-
*
|
|
764
|
+
* Whether any of `dir`, every entry inside it at any depth, or `extra` paths has a
|
|
765
|
+
* modification time of `cutoff` or later. Stops at the first one; symlinks are not
|
|
766
|
+
* followed; unreadable entries count as old.
|
|
762
767
|
*/
|
|
763
|
-
function
|
|
764
|
-
|
|
765
|
-
const visit = (path: string) => {
|
|
768
|
+
function isActiveSince(dir: string, cutoff: number, extra: readonly string[] = []): boolean {
|
|
769
|
+
const recent = (path: string): boolean => {
|
|
766
770
|
try {
|
|
767
|
-
|
|
771
|
+
return lstatSync(path).mtimeMs >= cutoff;
|
|
768
772
|
} catch {
|
|
769
|
-
return;
|
|
773
|
+
return false;
|
|
770
774
|
}
|
|
775
|
+
};
|
|
776
|
+
const visit = (path: string): boolean => {
|
|
777
|
+
if (recent(path)) return true;
|
|
771
778
|
let entries;
|
|
772
779
|
try {
|
|
773
780
|
entries = readdirSync(path, { withFileTypes: true });
|
|
774
781
|
} catch {
|
|
775
|
-
return;
|
|
782
|
+
return false;
|
|
776
783
|
}
|
|
777
|
-
|
|
784
|
+
return entries.some((entry) => {
|
|
778
785
|
const child = join(path, entry.name);
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
try {
|
|
782
|
-
latest = Math.max(latest, lstatSync(child).mtimeMs);
|
|
783
|
-
} catch {
|
|
784
|
-
// Best effort.
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
786
|
+
return entry.isDirectory() ? visit(child) : recent(child);
|
|
787
|
+
});
|
|
788
788
|
};
|
|
789
|
-
visit(dir);
|
|
790
|
-
|
|
791
|
-
try {
|
|
792
|
-
latest = Math.max(latest, lstatSync(path).mtimeMs);
|
|
793
|
-
} catch {
|
|
794
|
-
// Absent.
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
return latest;
|
|
789
|
+
if (visit(dir)) return true;
|
|
790
|
+
return extra.some(recent);
|
|
798
791
|
}
|
|
799
792
|
|
|
800
793
|
/**
|
|
@@ -815,7 +808,7 @@ export function retentionSweep(ttlDays: number, liveDirs: readonly string[] | un
|
|
|
815
808
|
const top = resolve(path);
|
|
816
809
|
if (live.some((dir) => dir === top || dir.startsWith(top + sep))) return;
|
|
817
810
|
try {
|
|
818
|
-
if (
|
|
811
|
+
if (!isActiveSince(path, cutoff, sessionFile ? [sessionFile] : [])) {
|
|
819
812
|
rmSync(path, { recursive: true, force: true });
|
|
820
813
|
}
|
|
821
814
|
} catch {
|
|
@@ -11,6 +11,27 @@ const wh = new Webhook(base64_secret);
|
|
|
11
11
|
wh.verify(webhook_payload, webhook_headers);
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
`webhook_payload` must be the raw request body exactly as received, before any JSON parsing.
|
|
15
|
+
Pass it as a `Buffer` or `Uint8Array` to verify the bytes as sent, including bodies that aren't
|
|
16
|
+
valid UTF-8. A string is verified as its UTF-8 encoding.
|
|
17
|
+
|
|
18
|
+
Responding to [endpoint verification](../../spec/extensions/endpoint-verification.md):
|
|
19
|
+
|
|
20
|
+
```javascript
|
|
21
|
+
const challenge = webhook_headers["webhook-challenge"];
|
|
22
|
+
if (challenge) {
|
|
23
|
+
response_headers["webhook-challenge-response"] = wh.endpointVerificationResponse(challenge);
|
|
24
|
+
// Not a webhook delivery: respond (e.g. with 204 No Content) without processing the body
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Verifying the response as a producer (throws `WebhookVerificationError` if it doesn't match):
|
|
30
|
+
|
|
31
|
+
```javascript
|
|
32
|
+
wh.verifyEndpointVerificationResponse(challenge, response_headers["webhook-challenge-response"]);
|
|
33
|
+
```
|
|
34
|
+
|
|
14
35
|
# Development
|
|
15
36
|
|
|
16
37
|
## Requirements
|
|
@@ -19,8 +19,10 @@ export declare class Webhook {
|
|
|
19
19
|
private static prefix;
|
|
20
20
|
private readonly key;
|
|
21
21
|
constructor(secret: string | Uint8Array, options?: WebhookOptions);
|
|
22
|
-
verify(payload: string |
|
|
23
|
-
sign(msgId: string, timestamp: Date, payload: string |
|
|
22
|
+
verify(payload: string | Uint8Array, headers: WebhookUnbrandedRequiredHeaders | Record<string, string>, options?: VerifyOptions): unknown;
|
|
23
|
+
sign(msgId: string, timestamp: Date, payload: string | Uint8Array): string;
|
|
24
|
+
endpointVerificationResponse(challenge: string): string;
|
|
25
|
+
verifyEndpointVerificationResponse(challenge: string, header: string): void;
|
|
24
26
|
private verifyTimestamp;
|
|
25
27
|
}
|
|
26
28
|
export {};
|
|
@@ -21,6 +21,15 @@ class WebhookVerificationError extends ExtendableError {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.WebhookVerificationError = WebhookVerificationError;
|
|
24
|
+
function payloadBytes(payload) {
|
|
25
|
+
if (typeof payload === "string") {
|
|
26
|
+
return new TextEncoder().encode(payload);
|
|
27
|
+
}
|
|
28
|
+
if (ArrayBuffer.isView(payload) && payload.BYTES_PER_ELEMENT === 1) {
|
|
29
|
+
return new Uint8Array(payload.buffer, payload.byteOffset, payload.byteLength);
|
|
30
|
+
}
|
|
31
|
+
throw new Error("Expected payload to be of type string, Buffer or Uint8Array.");
|
|
32
|
+
}
|
|
24
33
|
class Webhook {
|
|
25
34
|
constructor(secret, options) {
|
|
26
35
|
if ((options === null || options === void 0 ? void 0 : options.format) === "raw") {
|
|
@@ -58,45 +67,49 @@ class Webhook {
|
|
|
58
67
|
throw new WebhookVerificationError("Missing required headers");
|
|
59
68
|
}
|
|
60
69
|
const timestamp = this.verifyTimestamp(msgTimestamp);
|
|
61
|
-
const
|
|
62
|
-
const expectedSignature = computedSignature.split(",")[1];
|
|
63
|
-
const passedSignatures = msgSignature.split(" ");
|
|
70
|
+
const bytes = payloadBytes(payload);
|
|
64
71
|
const encoder = new globalThis.TextEncoder();
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
if ((0, timing_safe_equal_1.timingSafeEqual)(encoder.encode(signature), encoder.encode(expectedSignature))) {
|
|
71
|
-
const payloadString = payload.toString();
|
|
72
|
-
if (payloadString === "") {
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
if (jsonParse) {
|
|
76
|
-
return JSON.parse(payloadString);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return undefined;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
72
|
+
const expectedSignature = encoder.encode(this.sign(msgId, timestamp, bytes));
|
|
73
|
+
const passedSignatures = msgSignature.split(" ");
|
|
74
|
+
if (!passedSignatures.some((versionedSignature) => (0, timing_safe_equal_1.timingSafeEqual)(encoder.encode(versionedSignature), expectedSignature))) {
|
|
75
|
+
throw new WebhookVerificationError("No matching signature found");
|
|
82
76
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
sign(msgId, timestamp, payload) {
|
|
86
|
-
if (typeof payload === "string") {
|
|
77
|
+
if (bytes.length === 0) {
|
|
78
|
+
return undefined;
|
|
87
79
|
}
|
|
88
|
-
|
|
89
|
-
payload
|
|
80
|
+
if (jsonParse) {
|
|
81
|
+
return JSON.parse(typeof payload === "string" ? payload : new TextDecoder().decode(bytes));
|
|
90
82
|
}
|
|
91
83
|
else {
|
|
92
|
-
|
|
84
|
+
return undefined;
|
|
93
85
|
}
|
|
94
|
-
|
|
86
|
+
}
|
|
87
|
+
sign(msgId, timestamp, payload) {
|
|
88
|
+
const bytes = payloadBytes(payload);
|
|
95
89
|
const timestampNumber = Math.floor(timestamp.getTime() / 1000);
|
|
96
|
-
const
|
|
90
|
+
const prefix = new TextEncoder().encode(`${msgId}.${timestampNumber}.`);
|
|
91
|
+
const toSign = new Uint8Array(prefix.length + bytes.length);
|
|
92
|
+
toSign.set(prefix);
|
|
93
|
+
toSign.set(bytes, prefix.length);
|
|
97
94
|
const expectedSignature = base64.encode(sha256.hmac(this.key, toSign));
|
|
98
95
|
return `v1,${expectedSignature}`;
|
|
99
96
|
}
|
|
97
|
+
endpointVerificationResponse(challenge) {
|
|
98
|
+
const encoder = new TextEncoder();
|
|
99
|
+
const verificationKey = sha256.hmac(this.key, encoder.encode("wev-v1"));
|
|
100
|
+
const signature = base64.encode(sha256.hmac(verificationKey, encoder.encode(challenge)));
|
|
101
|
+
return `v1,${signature}`;
|
|
102
|
+
}
|
|
103
|
+
verifyEndpointVerificationResponse(challenge, header) {
|
|
104
|
+
if (!header) {
|
|
105
|
+
throw new WebhookVerificationError("Missing challenge response");
|
|
106
|
+
}
|
|
107
|
+
const encoder = new globalThis.TextEncoder();
|
|
108
|
+
const expectedSignature = encoder.encode(this.endpointVerificationResponse(challenge));
|
|
109
|
+
if (!(0, timing_safe_equal_1.timingSafeEqual)(encoder.encode(header), expectedSignature)) {
|
|
110
|
+
throw new WebhookVerificationError("No matching signature found");
|
|
111
|
+
}
|
|
112
|
+
}
|
|
100
113
|
verifyTimestamp(timestampHeader) {
|
|
101
114
|
const now = Math.floor(Date.now() / 1000);
|
|
102
115
|
const timestamp = parseInt(timestampHeader, 10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,sCAAsC;AACtC,2DAAsD;AAEtD,MAAM,4BAA4B,GAAG,CAAC,GAAG,EAAE,CAAC;A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,GAAG,4BAA4B,EAAE,CAAC;YACnD,MAAM,IAAI,wBAAwB,CAAC,2BAA2B,CAAC,CAAC;QAClE,CAAC;QACD,IAAI,SAAS,GAAG,GAAG,GAAG,4BAA4B,EAAE,CAAC;YACnD,MAAM,IAAI,wBAAwB,CAAC,2BAA2B,CAAC,CAAC;QAClE,CAAC;QACD,OAAO,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACpC,CAAC;;AAlJH,0BAmJC;AAlJgB,cAAM,GAAG,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-dent-agent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "A generic coding agent as a pi extension: Bash, Task, Agent, Fleet, Script, Search, Markdown and more tools, with billing and terms extensions bundled",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coding-agent",
|