@docyrus/docyrus 0.0.41 → 0.0.42
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 -0
- package/main.js +1823 -697
- package/main.js.map +4 -4
- package/package.json +8 -7
- package/resources/pi-agent/extensions/control.ts +0 -8
- package/resources/pi-agent/extensions/knowledge.ts +0 -7
- package/resources/pi-agent/extensions/loop.ts +1 -5
- package/resources/pi-agent/extensions/pi-bash-live-view/package.json +1 -1
- package/resources/pi-agent/extensions/pi-custom-compaction/events/register-events.ts +0 -10
- package/resources/pi-agent/extensions/pi-custom-compaction/package.json +4 -4
- package/resources/pi-agent/extensions/plan.ts +0 -4
- package/resources/pi-agent/extensions/prompt-editor.ts +0 -18
- package/resources/pi-agent/extensions/prompt-url-widget.ts +0 -4
- package/resources/pi-agent/extensions/review.ts +0 -4
- package/resources/pi-agent/skills/agent-browser/SKILL.md +779 -0
- package/resources/pi-agent/skills/agent-browser/references/authentication.md +303 -0
- package/resources/pi-agent/skills/agent-browser/references/commands.md +295 -0
- package/resources/pi-agent/skills/agent-browser/references/profiling.md +120 -0
- package/resources/pi-agent/skills/agent-browser/references/proxy-support.md +194 -0
- package/resources/pi-agent/skills/agent-browser/references/session-management.md +193 -0
- package/resources/pi-agent/skills/agent-browser/references/snapshot-refs.md +219 -0
- package/resources/pi-agent/skills/agent-browser/references/video-recording.md +173 -0
- package/resources/pi-agent/skills/agent-browser/templates/authenticated-session.sh +105 -0
- package/resources/pi-agent/skills/agent-browser/templates/capture-workflow.sh +69 -0
- package/resources/pi-agent/skills/agent-browser/templates/form-automation.sh +62 -0
- package/resources/pi-agent/skills/docyrus-platform/references/docyrus-cli-usage.md +73 -0
- package/resources/pi-agent/skills/grill-me/SKILL.md +109 -0
- package/server-loader.js +79 -28
- package/server-loader.js.map +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docyrus/docyrus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Docyrus API CLI",
|
|
6
6
|
"main": "./main.js",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@clack/prompts": "^0.11.0",
|
|
15
|
-
"@hono/node-server": "^1.
|
|
16
|
-
"@mariozechner/pi-ai": "0.
|
|
17
|
-
"@mariozechner/pi-coding-agent": "0.
|
|
15
|
+
"@hono/node-server": "^1.19.13",
|
|
16
|
+
"@mariozechner/pi-ai": "0.65.0",
|
|
17
|
+
"@mariozechner/pi-coding-agent": "0.65.0",
|
|
18
18
|
"@modelcontextprotocol/ext-apps": "^1.2.2",
|
|
19
19
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
20
20
|
"@mozilla/readability": "^0.6.0",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@repomix/tree-sitter-wasms": "^0.1.16",
|
|
24
24
|
"@sinclair/typebox": "^0.34.48",
|
|
25
25
|
"@xterm/headless": "^5.5.0",
|
|
26
|
-
"diff": "^8.0.
|
|
27
|
-
"hono": "^4.
|
|
26
|
+
"diff": "^8.0.4",
|
|
27
|
+
"hono": "^4.12.12",
|
|
28
28
|
"ignore-walk": "^8.0.0",
|
|
29
29
|
"incur": "^0.1.6",
|
|
30
30
|
"jsdom": "^29.0.1",
|
|
@@ -40,13 +40,14 @@
|
|
|
40
40
|
"strip-ansi": "^7.1.0",
|
|
41
41
|
"turndown": "^7.2.2",
|
|
42
42
|
"turndown-plugin-gfm": "^1.0.2",
|
|
43
|
-
"undici": "^7.
|
|
43
|
+
"undici": "^7.24.0",
|
|
44
44
|
"unified": "^11.0.5",
|
|
45
45
|
"unist-util-visit": "^5.1.0",
|
|
46
46
|
"web-tree-sitter": "0.25.10",
|
|
47
47
|
"zod": "^4.3.6"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
+
"@types/node": "^24.12.2",
|
|
50
51
|
"@types/react": "^19.1.13"
|
|
51
52
|
},
|
|
52
53
|
"engines": {
|
|
@@ -1087,14 +1087,6 @@ export default function(pi: ExtensionAPI) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
});
|
|
1089
1089
|
|
|
1090
|
-
pi.on("session_switch", async(_event, ctx) => {
|
|
1091
|
-
await refreshServer(ctx);
|
|
1092
|
-
});
|
|
1093
|
-
|
|
1094
|
-
pi.on("session_fork", async(_event, ctx) => {
|
|
1095
|
-
await refreshServer(ctx);
|
|
1096
|
-
});
|
|
1097
|
-
|
|
1098
1090
|
pi.on("session_shutdown", async() => {
|
|
1099
1091
|
if (state.aliasTimer) {
|
|
1100
1092
|
clearInterval(state.aliasTimer);
|
|
@@ -621,13 +621,6 @@ export default function(pi: ExtensionAPI) {
|
|
|
621
621
|
});
|
|
622
622
|
});
|
|
623
623
|
|
|
624
|
-
pi.on("session_switch", async(_event, ctx) => {
|
|
625
|
-
await refreshKnowledgeState(pi, ctx, {
|
|
626
|
-
runCheck: false,
|
|
627
|
-
allowReminder: true,
|
|
628
|
-
});
|
|
629
|
-
});
|
|
630
|
-
|
|
631
624
|
pi.on("turn_end", async(_event: TurnEndEvent, ctx) => {
|
|
632
625
|
await refreshKnowledgeState(pi, ctx, {
|
|
633
626
|
runCheck: false,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { Type } from "@sinclair/typebox";
|
|
10
10
|
import { complete, type Api, type Model, type UserMessage } from "@mariozechner/pi-ai";
|
|
11
|
-
import type { ExtensionAPI, ExtensionContext
|
|
11
|
+
import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
|
|
12
12
|
import { compact } from "@mariozechner/pi-coding-agent";
|
|
13
13
|
import { Container, type SelectItem, SelectList, Text } from "@mariozechner/pi-tui";
|
|
14
14
|
import { DynamicBorder } from "@mariozechner/pi-coding-agent";
|
|
@@ -439,8 +439,4 @@ export default function loopExtension(pi: ExtensionAPI): void {
|
|
|
439
439
|
pi.on("session_start", async(_event, ctx) => {
|
|
440
440
|
await restoreLoopState(ctx);
|
|
441
441
|
});
|
|
442
|
-
|
|
443
|
-
pi.on("session_switch", async(_event: SessionSwitchEvent, ctx) => {
|
|
444
|
-
await restoreLoopState(ctx);
|
|
445
|
-
});
|
|
446
442
|
}
|
|
@@ -208,16 +208,6 @@ export function registerEvents(pi: ExtensionAPI, runtime: IRuntimeServices): voi
|
|
|
208
208
|
initializeSessionStatus(ctx, runtime);
|
|
209
209
|
});
|
|
210
210
|
|
|
211
|
-
pi.on("session_switch", async(_event, ctx) => {
|
|
212
|
-
runtime.clearSessionScopedState(ctx);
|
|
213
|
-
initializeSessionStatus(ctx, runtime);
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
pi.on("session_fork", async(_event, ctx) => {
|
|
217
|
-
runtime.clearSessionScopedState(ctx);
|
|
218
|
-
initializeSessionStatus(ctx, runtime);
|
|
219
|
-
});
|
|
220
|
-
|
|
221
211
|
pi.on("session_tree", async(_event, ctx) => {
|
|
222
212
|
runtime.clearSessionScopedState(ctx);
|
|
223
213
|
initializeSessionStatus(ctx, runtime);
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"test": "tsx --test test/**/*.test.ts"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@mariozechner/pi-agent-core": "^0.
|
|
47
|
-
"@mariozechner/pi-ai": "^0.
|
|
48
|
-
"@mariozechner/pi-coding-agent": "^0.
|
|
49
|
-
"@mariozechner/pi-tui": "^0.
|
|
46
|
+
"@mariozechner/pi-agent-core": "^0.65.0",
|
|
47
|
+
"@mariozechner/pi-ai": "^0.65.0",
|
|
48
|
+
"@mariozechner/pi-coding-agent": "^0.65.0",
|
|
49
|
+
"@mariozechner/pi-tui": "^0.65.0",
|
|
50
50
|
"tsx": "^4.20.5"
|
|
51
51
|
},
|
|
52
52
|
"pi": {
|
|
@@ -1277,10 +1277,6 @@ export default function planExtension(pi: ExtensionAPI) {
|
|
|
1277
1277
|
await syncPlanState(pi, ctx);
|
|
1278
1278
|
});
|
|
1279
1279
|
|
|
1280
|
-
pi.on("session_switch", async(_event, ctx) => {
|
|
1281
|
-
await syncPlanState(pi, ctx);
|
|
1282
|
-
});
|
|
1283
|
-
|
|
1284
1280
|
pi.on("session_tree", async(_event, ctx) => {
|
|
1285
1281
|
await syncPlanState(pi, ctx);
|
|
1286
1282
|
});
|
|
@@ -1267,24 +1267,6 @@ export default function(pi: ExtensionAPI) {
|
|
|
1267
1267
|
applyEditor(pi, ctx);
|
|
1268
1268
|
});
|
|
1269
1269
|
|
|
1270
|
-
pi.on("session_switch", async(_event, ctx) => {
|
|
1271
|
-
lastObservedModel = { provider: ctx.model?.provider, modelId: ctx.model?.id };
|
|
1272
|
-
await ensureRuntime(pi, ctx);
|
|
1273
|
-
customOverlay = null;
|
|
1274
|
-
|
|
1275
|
-
const inferred = inferModeFromSelection(ctx, pi, runtime.data);
|
|
1276
|
-
if (inferred) {
|
|
1277
|
-
runtime.currentMode = inferred;
|
|
1278
|
-
runtime.lastRealMode = inferred;
|
|
1279
|
-
} else {
|
|
1280
|
-
runtime.currentMode = CUSTOM_MODE_NAME;
|
|
1281
|
-
customOverlay = getCurrentSelectionSpec(pi, ctx);
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
applyEditor(pi, ctx);
|
|
1285
|
-
});
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
1270
|
pi.on("model_select", async(event: ModelSelectEvent, ctx) => {
|
|
1289
1271
|
// Always track the last observed model for overlay/store correctness.
|
|
1290
1272
|
lastObservedModel = { provider: event.model.provider, modelId: event.model.id };
|
|
@@ -108,10 +108,6 @@ export default function promptUrlWidgetExtension(pi: ExtensionAPI) {
|
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
pi.on("session_switch", async(_event, ctx) => {
|
|
112
|
-
rebuildFromSession(ctx);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
111
|
const getUserText = (content: string | { type: string; text?: string }[] | undefined): string => {
|
|
116
112
|
if (!content) {return "";}
|
|
117
113
|
if (typeof content === "string") {return content;}
|
|
@@ -938,10 +938,6 @@ export default function reviewExtension(pi: ExtensionAPI) {
|
|
|
938
938
|
applyAllReviewState(ctx);
|
|
939
939
|
});
|
|
940
940
|
|
|
941
|
-
pi.on("session_switch", (_event, ctx) => {
|
|
942
|
-
applyAllReviewState(ctx);
|
|
943
|
-
});
|
|
944
|
-
|
|
945
941
|
pi.on("session_tree", (_event, ctx) => {
|
|
946
942
|
applyAllReviewState(ctx);
|
|
947
943
|
});
|