@wherever-dev/pi 0.6.1 → 0.7.0
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @wherever-dev/pi
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6f4cc84: `assistant_notify` takes optional `attachments` (file paths, resolved like `attach_file`'s, validated at call time). Telegram sends each file after the notification message, as a reply to it (photo or document, or the existing too-large / missing / failed note), without ever failing the notify; the tool result reports each file's outcome. Web Push is unchanged. The CLI twin's schema and text are updated to match.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 32187fa: The CLI timezone line now appears in an assistant folder reached through a symlink: the extension compares its cwd with the server's `assistantFolder` with symlinks resolved on both sides.
|
|
12
|
+
- Updated dependencies [58bb85d]
|
|
13
|
+
- @wherever-dev/client@0.9.1
|
|
14
|
+
|
|
3
15
|
## 0.6.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -69,6 +69,7 @@ export declare const ASSISTANT_TWIN_PARAMETERS: {
|
|
|
69
69
|
body: Type.TString;
|
|
70
70
|
navigateSessionId: Type.TOptional<Type.TString>;
|
|
71
71
|
jobId: Type.TOptional<Type.TString>;
|
|
72
|
+
attachments: Type.TOptional<Type.TArray<Type.TString>>;
|
|
72
73
|
}>;
|
|
73
74
|
};
|
|
74
75
|
/**
|
|
@@ -79,6 +80,15 @@ export declare const ASSISTANT_TWIN_PARAMETERS: {
|
|
|
79
80
|
* recorded in work/notes/observations/cli-assistant-tool-twins-decisions.md.
|
|
80
81
|
*/
|
|
81
82
|
export declare const ASSISTANT_TWIN_REQUEST_TIMEOUT_MS = 30000;
|
|
83
|
+
/**
|
|
84
|
+
* Added to the timeout per `assistant_notify` attachment: the server answers
|
|
85
|
+
* only once every file has gone to Telegram (one at a time, up to 50 MB each),
|
|
86
|
+
* and a twin that gives up early tells the agent it failed when it did not,
|
|
87
|
+
* inviting a duplicate notification.
|
|
88
|
+
*/
|
|
89
|
+
export declare const ASSISTANT_TWIN_ATTACHMENT_TIMEOUT_MS = 120000;
|
|
90
|
+
/** The request timeout of one twin call (longer for a notify carrying files). */
|
|
91
|
+
export declare function twinRequestTimeoutMs(name: string, params: unknown): number;
|
|
82
92
|
/** How a twin reaches the server (the request client's `request`, faked in tests). */
|
|
83
93
|
export type TwinRequest = (op: string, args: unknown, opts?: {
|
|
84
94
|
timeoutMs?: number;
|
|
@@ -111,7 +121,18 @@ export type ActiveToolsApi = Pick<ExtensionAPI, "getActiveTools" | "setActiveToo
|
|
|
111
121
|
* unbound or stale pi API is ignored). Returns whether it changed the set.
|
|
112
122
|
*/
|
|
113
123
|
export declare function syncTwinActivation(pi: Partial<ActiveToolsApi>, info: AssistantInfo): boolean;
|
|
114
|
-
/**
|
|
124
|
+
/**
|
|
125
|
+
* `cwd` absolute with symlinks resolved: the deepest existing ancestor is
|
|
126
|
+
* realpath'd and the rest appended; no existing ancestor means just resolved.
|
|
127
|
+
* KEEP IN LOCKSTEP with `canonicalPath` in server/src/assistant-folder.ts.
|
|
128
|
+
*/
|
|
129
|
+
export declare function canonicalPath(p: string): string;
|
|
130
|
+
/**
|
|
131
|
+
* True when `cwd` is the assistant folder itself or its `jobs/`, compared with
|
|
132
|
+
* symlinks resolved on both sides, like the server. The server already sends
|
|
133
|
+
* the folder canonical; canonicalising it here too covers an older server that
|
|
134
|
+
* sends the configured (possibly symlinked) spelling.
|
|
135
|
+
*/
|
|
115
136
|
export declare function isAssistantFolderCwd(cwd: string, folder: string): boolean;
|
|
116
137
|
/** KEEP IN LOCKSTEP with `timezoneLine` in server/src/assistant-tool-text.ts. */
|
|
117
138
|
export declare function timezoneLine(timezone: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-tool-twins.d.ts","sourceRoot":"","sources":["../src/assistant-tool-twins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;
|
|
1
|
+
{"version":3,"file":"assistant-tool-twins.d.ts","sourceRoot":"","sources":["../src/assistant-tool-twins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAID,eAAO,MAAM,2BAA2B,EAAE,iBAoBzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,iBAW1C,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,iBAQ5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,iBAWzC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAoBnC,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,yBAAyB,EAAE,SAAS,iBAAiB,EAMjE,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAAiD,CAAC;AAEzG,kGAAkG;AAClG,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM/D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;CAsC5B,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,QAAS,CAAC;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MAAM,GAAG,MAAM,CAErD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAI3F;AAED,mHAAmH;AACnH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7E"}
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
* Kept free of pi runtime and `ws` imports (types only), so it is testable with
|
|
24
24
|
* a fake request function and importable by that server drift test.
|
|
25
25
|
*/
|
|
26
|
+
import * as fs from "node:fs";
|
|
26
27
|
import * as path from "node:path";
|
|
27
28
|
import { Type } from "typebox";
|
|
28
29
|
// KEEP IN LOCKSTEP with server/src/assistant-tool-text.ts (drift test above).
|
|
@@ -84,11 +85,15 @@ export const ASSISTANT_NOTIFY_TEXT = {
|
|
|
84
85
|
"their message: a scheduled job, or work in another session, is silent unless it calls this. Give a short " +
|
|
85
86
|
"`title` and a `body`. Tapping the notification opens `navigateSessionId` when given; otherwise, for a " +
|
|
86
87
|
"scheduled job (pass `jobId`, or call it from an isolated job session), the session that scheduled the " +
|
|
87
|
-
"job; otherwise this session.
|
|
88
|
+
"job; otherwise this session. To send files with it, pass `attachments`: paths relative to the working " +
|
|
89
|
+
"directory, or absolute, as attach_file takes them (a path that does not exist is an error). Telegram " +
|
|
90
|
+
"gets each file itself, after the message; a push notification cannot carry files. It fails with a " +
|
|
91
|
+
"clear error when no channel can deliver.",
|
|
88
92
|
promptSnippet: "Notify the user immediately (push / Telegram); the only way to reach them with anything that is not a reply",
|
|
89
93
|
promptGuidelines: [
|
|
90
94
|
"Use assistant_notify only for things the user should know about now (a finished job, a result they asked to be told about, something urgent); never for routine chatter, and not to repeat what you are already replying.",
|
|
91
95
|
"In a scheduled job, call assistant_notify with the result when the user should hear about it: a scheduled turn reaches the user ONLY through assistant_notify.",
|
|
96
|
+
"When the result is a file (a report, an export), pass it in assistant_notify's attachments so it reaches the user on Telegram itself; attach_file alone only offers it for download in the web app.",
|
|
92
97
|
],
|
|
93
98
|
};
|
|
94
99
|
/** Every twin's text, in the server's registration order. */
|
|
@@ -138,6 +143,9 @@ export const ASSISTANT_TWIN_PARAMETERS = {
|
|
|
138
143
|
body: Type.String({ description: "The message itself: one or two sentences the user can act on." }),
|
|
139
144
|
navigateSessionId: Type.Optional(Type.String({ description: "The session id a tap should open (default: see the description)." })),
|
|
140
145
|
jobId: Type.Optional(Type.String({ description: "The scheduled job this is about; a tap then opens the session that scheduled it." })),
|
|
146
|
+
attachments: Type.Optional(Type.Array(Type.String(), {
|
|
147
|
+
description: "Files to send with the notification: paths relative to the working directory, or absolute (as attach_file takes them).",
|
|
148
|
+
})),
|
|
141
149
|
}),
|
|
142
150
|
};
|
|
143
151
|
/**
|
|
@@ -148,6 +156,19 @@ export const ASSISTANT_TWIN_PARAMETERS = {
|
|
|
148
156
|
* recorded in work/notes/observations/cli-assistant-tool-twins-decisions.md.
|
|
149
157
|
*/
|
|
150
158
|
export const ASSISTANT_TWIN_REQUEST_TIMEOUT_MS = 30_000;
|
|
159
|
+
/**
|
|
160
|
+
* Added to the timeout per `assistant_notify` attachment: the server answers
|
|
161
|
+
* only once every file has gone to Telegram (one at a time, up to 50 MB each),
|
|
162
|
+
* and a twin that gives up early tells the agent it failed when it did not,
|
|
163
|
+
* inviting a duplicate notification.
|
|
164
|
+
*/
|
|
165
|
+
export const ASSISTANT_TWIN_ATTACHMENT_TIMEOUT_MS = 120_000;
|
|
166
|
+
/** The request timeout of one twin call (longer for a notify carrying files). */
|
|
167
|
+
export function twinRequestTimeoutMs(name, params) {
|
|
168
|
+
const attachments = name === "assistant_notify" ? params?.attachments : undefined;
|
|
169
|
+
const n = Array.isArray(attachments) ? attachments.length : 0;
|
|
170
|
+
return ASSISTANT_TWIN_REQUEST_TIMEOUT_MS + n * ASSISTANT_TWIN_ATTACHMENT_TIMEOUT_MS;
|
|
171
|
+
}
|
|
151
172
|
/** Turn a bridge answer into the tool result, mirroring the server tools' `toResult` shape. */
|
|
152
173
|
export function twinResult(name, res) {
|
|
153
174
|
if (res.ok) {
|
|
@@ -175,7 +196,7 @@ export function createAssistantToolTwins(request) {
|
|
|
175
196
|
async execute(_toolCallId, params) {
|
|
176
197
|
let res;
|
|
177
198
|
try {
|
|
178
|
-
res = await request(op, params ?? {}, { timeoutMs:
|
|
199
|
+
res = await request(op, params ?? {}, { timeoutMs: twinRequestTimeoutMs(text.name, params) });
|
|
179
200
|
}
|
|
180
201
|
catch (err) {
|
|
181
202
|
res = { ok: false, reason: "disconnected", error: err instanceof Error ? err.message : String(err) };
|
|
@@ -221,10 +242,37 @@ export function syncTwinActivation(pi, info) {
|
|
|
221
242
|
return false;
|
|
222
243
|
}
|
|
223
244
|
}
|
|
224
|
-
/**
|
|
245
|
+
/**
|
|
246
|
+
* `cwd` absolute with symlinks resolved: the deepest existing ancestor is
|
|
247
|
+
* realpath'd and the rest appended; no existing ancestor means just resolved.
|
|
248
|
+
* KEEP IN LOCKSTEP with `canonicalPath` in server/src/assistant-folder.ts.
|
|
249
|
+
*/
|
|
250
|
+
export function canonicalPath(p) {
|
|
251
|
+
const abs = path.resolve(p);
|
|
252
|
+
const tail = [];
|
|
253
|
+
let cur = abs;
|
|
254
|
+
for (;;) {
|
|
255
|
+
try {
|
|
256
|
+
return path.join(fs.realpathSync(cur), ...tail);
|
|
257
|
+
}
|
|
258
|
+
catch {
|
|
259
|
+
const parent = path.dirname(cur);
|
|
260
|
+
if (parent === cur)
|
|
261
|
+
return abs;
|
|
262
|
+
tail.unshift(path.basename(cur));
|
|
263
|
+
cur = parent;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* True when `cwd` is the assistant folder itself or its `jobs/`, compared with
|
|
269
|
+
* symlinks resolved on both sides, like the server. The server already sends
|
|
270
|
+
* the folder canonical; canonicalising it here too covers an older server that
|
|
271
|
+
* sends the configured (possibly symlinked) spelling.
|
|
272
|
+
*/
|
|
225
273
|
export function isAssistantFolderCwd(cwd, folder) {
|
|
226
|
-
const c =
|
|
227
|
-
const f =
|
|
274
|
+
const c = canonicalPath(cwd);
|
|
275
|
+
const f = canonicalPath(folder);
|
|
228
276
|
return c === f || c === path.join(f, "jobs");
|
|
229
277
|
}
|
|
230
278
|
/** KEEP IN LOCKSTEP with `timezoneLine` in server/src/assistant-tool-text.ts. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-tool-twins.js","sourceRoot":"","sources":["../src/assistant-tool-twins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAY/B,8EAA8E;AAE9E,MAAM,CAAC,MAAM,2BAA2B,GAAsB;IAC5D,IAAI,EAAE,wBAAwB;IAC9B,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,2GAA2G;QAC3G,0GAA0G;QAC1G,yGAAyG;QACzG,2GAA2G;QAC3G,4GAA4G;QAC5G,wGAAwG;QACxG,0GAA0G;QAC1G,2GAA2G;QAC3G,0GAA0G;IAC5G,aAAa,EACX,gIAAgI;IAClI,gBAAgB,EAAE;QAChB,gOAAgO;QAChO,gIAAgI;QAChI,sKAAsK;KACvK;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,IAAI,EAAE,yBAAyB;IAC/B,KAAK,EAAE,0BAA0B;IACjC,WAAW,EACT,6GAA6G;QAC7G,2GAA2G;QAC3G,mFAAmF;IACrF,aAAa,EAAE,uFAAuF;IACtG,gBAAgB,EAAE;QAChB,gHAAgH;KACjH;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAsB;IAC/D,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,E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9D,MAAM,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IAC7B,MAAM,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAC/C,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,YAAY,CAAC,QAAgB;IAC3C,OAAO,4BAA4B,QAAQ,EAAE,CAAC;AAChD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,IAAmB,EAAE,GAAuB;IAC1E,IAAI,IAAI,CAAC,KAAK,KAAK,YAAY,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACvE,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC;QAAE,OAAO,IAAI,CAAC;IAClE,OAAO,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACrC,CAAC;AAED,mHAAmH;AACnH,MAAM,UAAU,kBAAkB,CAAC,YAAoB,EAAE,IAAY;IACnE,OAAO,GAAG,YAAY,OAAO,IAAI,EAAE,CAAC;AACtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wherever-dev/pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "pi coding agent extension that bridges a terminal pi session to a Wherever server, to follow and steer it from your phone or any browser (wherever.dev)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"ws": "^8.18.0",
|
|
39
|
-
"@wherever-dev/client": "0.9.
|
|
39
|
+
"@wherever-dev/client": "0.9.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@earendil-works/pi-coding-agent": "*",
|