@mduan/paseo-cli 0.11.0-fork.20 → 0.11.0-fork.21
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/node_modules/@getpaseo/client/package.json +3 -3
- package/node_modules/@getpaseo/highlight/package.json +1 -1
- package/node_modules/@getpaseo/plugin/package.json +3 -3
- package/node_modules/@getpaseo/protocol/package.json +1 -1
- package/node_modules/@getpaseo/relay/package.json +1 -1
- package/node_modules/@getpaseo/server/dist/server/builtin-plugins/antigravity-provider/server/internal/signals.ts +9 -1
- package/node_modules/@getpaseo/server/dist/server/builtin-plugins/package.json +1 -1
- package/node_modules/@getpaseo/server/dist/server/server/agent/conversation-title.js +2 -2
- package/node_modules/@getpaseo/server/dist/server/server/json-utils.d.ts +2 -3
- package/node_modules/@getpaseo/server/dist/server/server/json-utils.js +4 -3
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/{index-ff14d0c4aa0884c65e605fe1a3b3e7c0.js → index-2f14d51f716979f258ca5ace197d24c8.js} +5 -5
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/index-2f14d51f716979f258ca5ace197d24c8.js.br +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/{index-ff14d0c4aa0884c65e605fe1a3b3e7c0.js.gz → index-2f14d51f716979f258ca5ace197d24c8.js.gz} +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/index.html +1 -1
- package/node_modules/@getpaseo/server/dist/server/web-ui/index.html.br +0 -0
- package/node_modules/@getpaseo/server/dist/server/web-ui/index.html.gz +0 -0
- package/node_modules/@getpaseo/server/package.json +6 -6
- package/package.json +7 -7
- package/node_modules/@getpaseo/server/dist/server/web-ui/_expo/static/js/web/index-ff14d0c4aa0884c65e605fe1a3b3e7c0.js.br +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/client",
|
|
3
|
-
"version": "0.11.0-fork.
|
|
3
|
+
"version": "0.11.0-fork.21",
|
|
4
4
|
"description": "Paseo client SDK package",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"vitest": "^4.1.6"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@getpaseo/protocol": "0.11.0-fork.
|
|
48
|
-
"@getpaseo/relay": "0.11.0-fork.
|
|
47
|
+
"@getpaseo/protocol": "0.11.0-fork.21",
|
|
48
|
+
"@getpaseo/relay": "0.11.0-fork.21"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/plugin",
|
|
3
|
-
"version": "0.11.0-fork.
|
|
3
|
+
"version": "0.11.0-fork.21",
|
|
4
4
|
"description": "Paseo plugin SDK package",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"test": "vitest run"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@getpaseo/client": "0.11.0-fork.
|
|
70
|
-
"@getpaseo/protocol": "0.11.0-fork.
|
|
69
|
+
"@getpaseo/client": "0.11.0-fork.21",
|
|
70
|
+
"@getpaseo/protocol": "0.11.0-fork.21",
|
|
71
71
|
"@types/node": "^20.9.0",
|
|
72
72
|
"@types/react": "~19.2.0",
|
|
73
73
|
"react": "19.1.0",
|
|
@@ -26,7 +26,15 @@ export function signalProcess(options: SignalOptions): void | Promise<void> {
|
|
|
26
26
|
try {
|
|
27
27
|
process.kill(plan.pid, plan.signal);
|
|
28
28
|
} catch (error) {
|
|
29
|
-
if (
|
|
29
|
+
if (error instanceof Error && "code" in error && error.code === "ESRCH") return;
|
|
30
|
+
if (!(error instanceof Error && "code" in error && error.code === "EPERM")) throw error;
|
|
31
|
+
// macOS can reject a group signal while its exited leader awaits reaping.
|
|
32
|
+
try {
|
|
33
|
+
process.kill(options.pid, options.signal);
|
|
34
|
+
} catch (directError) {
|
|
35
|
+
if (!(directError instanceof Error && "code" in directError && directError.code === "ESRCH"))
|
|
36
|
+
throw directError;
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
40
|
|
|
@@ -3,7 +3,7 @@ import { ConversationTitleTarget, } from "@getpaseo/protocol/messages";
|
|
|
3
3
|
import { ensureAgentLoaded } from "./agent-loading.js";
|
|
4
4
|
import { buildAgentForkContextAttachment } from "./activity-curator.js";
|
|
5
5
|
import { buildMetadataPrompt } from "../../utils/build-metadata-prompt.js";
|
|
6
|
-
const TITLE_SCHEMA = z.object({ title: z.string().min(1).
|
|
6
|
+
const TITLE_SCHEMA = z.object({ title: z.string().min(1).regex(/\S/) });
|
|
7
7
|
export function createConversationTitleGenerator(deps) {
|
|
8
8
|
return async function generate(input) {
|
|
9
9
|
let agentIds = [input.id];
|
|
@@ -42,7 +42,7 @@ export function createConversationTitleGenerator(deps) {
|
|
|
42
42
|
styles: [
|
|
43
43
|
{
|
|
44
44
|
configKey: "title",
|
|
45
|
-
default: "Use a concise, specific name in sentence case, max
|
|
45
|
+
default: "Use a concise, specific name in sentence case, max 120 characters. Preserve the task, its target, and distinguishing identifiers. Prefer clarity over brevity.",
|
|
46
46
|
},
|
|
47
47
|
],
|
|
48
48
|
after: "Return JSON only with a single field 'title'.",
|
|
@@ -3,9 +3,8 @@ export type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
5
|
* Coerce arbitrary values into JSON-safe structures.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* so responses always make it back to the client.
|
|
6
|
+
* Omit undefined object properties, as JSON.stringify does, so optional fields
|
|
7
|
+
* do not become schema-invalid nulls. Unsupported array values become null.
|
|
9
8
|
*/
|
|
10
9
|
export declare function ensureValidJson<T>(value: T): T;
|
|
11
10
|
//# sourceMappingURL=json-utils.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Coerce arbitrary values into JSON-safe structures.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* so responses always make it back to the client.
|
|
3
|
+
* Omit undefined object properties, as JSON.stringify does, so optional fields
|
|
4
|
+
* do not become schema-invalid nulls. Unsupported array values become null.
|
|
6
5
|
*/
|
|
7
6
|
export function ensureValidJson(value) {
|
|
8
7
|
const seen = new WeakSet();
|
|
@@ -32,6 +31,8 @@ export function ensureValidJson(value) {
|
|
|
32
31
|
seen.add(current);
|
|
33
32
|
const obj = {};
|
|
34
33
|
for (const [key, val] of Object.entries(current)) {
|
|
34
|
+
if (val === undefined)
|
|
35
|
+
continue;
|
|
35
36
|
obj[key] = sanitize(val);
|
|
36
37
|
}
|
|
37
38
|
seen.delete(current);
|