@vite-hub/presets 0.1.0 → 0.4.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 +171 -35
- package/dist/babysitter/server.d.ts +59 -6
- package/dist/babysitter/server.js +2 -2
- package/dist/babysitter-DQeA81N0.js +2541 -0
- package/dist/babysitter.d.ts +200 -18
- package/dist/babysitter.js +2 -2
- package/dist/error-diagnostics-o3pHscWs.js +729 -0
- package/dist/host-DH0o7xSq.js +695 -0
- package/dist/labeller.d.ts +47 -3
- package/dist/labeller.js +115 -33
- package/dist/{admission-DBJdt-CX.d.ts → pr-workspaces-CMdQ9U15.d.ts} +375 -88
- package/dist/server-ILDJE5V7.js +12254 -0
- package/dist/workspace.js +2 -5
- package/package.json +17 -18
- package/dist/babysitter-B4D1zeYf.js +0 -715
- package/dist/host-CH0L3VC9.js +0 -438
- package/dist/server-DDmyZ98B.js +0 -6745
package/dist/workspace.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAgent } from "@vite-hub/agent";
|
|
1
|
+
import { codexDriver, defineAgent } from "@vite-hub/agent";
|
|
2
2
|
//#region src/workspace.ts
|
|
3
3
|
function sourceProvenanceInstructions(provenance) {
|
|
4
4
|
if (!provenance.length) return;
|
|
@@ -6,10 +6,7 @@ function sourceProvenanceInstructions(provenance) {
|
|
|
6
6
|
}
|
|
7
7
|
/** Read mounted Sources and cite files at their verified GitHub revision. */
|
|
8
8
|
const workspace = defineAgent({
|
|
9
|
-
driver: {
|
|
10
|
-
kind: "codex",
|
|
11
|
-
instructions: { template: ({ sourceProvenance }) => [sourceProvenanceInstructions(sourceProvenance || []), "{{{ instructions }}}"].filter(Boolean).join("\n\n") }
|
|
12
|
-
},
|
|
9
|
+
driver: codexDriver({ instructions: { template: ({ sourceProvenance }) => [sourceProvenanceInstructions(sourceProvenance || []), "{{{ instructions }}}"].filter(Boolean).join("\n\n") } }),
|
|
13
10
|
workspace: { mode: "read" }
|
|
14
11
|
});
|
|
15
12
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-hub/presets",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Ready-made Agents built from ViteHub primitives: Babysitter, Labeller, and the workspace preset.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -54,36 +54,35 @@
|
|
|
54
54
|
"agent": {
|
|
55
55
|
"processHost": [
|
|
56
56
|
"./babysitter"
|
|
57
|
-
],
|
|
58
|
-
"providerDriver": [
|
|
59
|
-
"./babysitter",
|
|
60
|
-
"./babysitter/server",
|
|
61
|
-
"./workspace"
|
|
62
57
|
]
|
|
63
58
|
}
|
|
64
59
|
},
|
|
65
60
|
"dependencies": {
|
|
66
|
-
"@vite-hub/forge": "0.1
|
|
67
|
-
"@vite-hub/gateways": "0.1
|
|
68
|
-
"@vite-hub/runtime": "0.1
|
|
69
|
-
"@vite-hub/sandbox": "0.1
|
|
70
|
-
"@vite-hub/workspace": "0.1
|
|
71
|
-
"
|
|
61
|
+
"@vite-hub/forge": "0.4.1",
|
|
62
|
+
"@vite-hub/gateways": "0.4.1",
|
|
63
|
+
"@vite-hub/runtime": "0.4.1",
|
|
64
|
+
"@vite-hub/sandbox": "0.4.1",
|
|
65
|
+
"@vite-hub/workspace": "0.4.1",
|
|
66
|
+
"@yarnpkg/parsers": "3.1.0",
|
|
67
|
+
"comark": "^0.9.0",
|
|
68
|
+
"nostics": "1.4.0",
|
|
69
|
+
"valibot": "^1.5.0",
|
|
70
|
+
"yaml": "^2.9.1"
|
|
72
71
|
},
|
|
73
72
|
"devDependencies": {
|
|
74
73
|
"@libsql/client": "^0.18.0",
|
|
75
74
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
76
|
-
"@t3tools/provider-runtime": "https://pkg.pr.new/vite-hub/t3code/@t3tools/provider-runtime@
|
|
75
|
+
"@t3tools/provider-runtime": "https://pkg.pr.new/vite-hub/t3code/@t3tools/provider-runtime@2a519db9ccb4227091f0d8a839d7121af9d6aed5",
|
|
77
76
|
"@types/node": "^24.19.1",
|
|
78
|
-
"@vite-hub/agent": "0.1
|
|
77
|
+
"@vite-hub/agent": "0.4.1",
|
|
78
|
+
"@vite-hub/internal": "0.0.1",
|
|
79
79
|
"publint": "^0.3.25",
|
|
80
80
|
"typescript": "^6.0.3",
|
|
81
81
|
"vite-plus": "^0.3.3",
|
|
82
|
-
"vitest": "^4.1.11"
|
|
83
|
-
"@vite-hub/internal": "0.0.1"
|
|
82
|
+
"vitest": "^4.1.11"
|
|
84
83
|
},
|
|
85
84
|
"peerDependencies": {
|
|
86
|
-
"@vite-hub/agent": "0.1
|
|
85
|
+
"@vite-hub/agent": "0.4.1"
|
|
87
86
|
},
|
|
88
87
|
"engines": {
|
|
89
88
|
"node": ">=24.15.0"
|
|
@@ -92,6 +91,6 @@
|
|
|
92
91
|
"build": "vp pack",
|
|
93
92
|
"dev": "vp pack --watch",
|
|
94
93
|
"typecheck": "vp run --cache -t @vite-hub/presets#build && node ../../test/package-typecheck.mjs --noEmit -p ./tsconfig.json",
|
|
95
|
-
"test": "vp run -t @vite-hub/presets#build && vp test"
|
|
94
|
+
"test": "vp run --cache -t @vite-hub/presets#build && vp test"
|
|
96
95
|
}
|
|
97
96
|
}
|