@vite-hub/presets 0.5.0 → 0.6.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.
@@ -1,6 +1,4 @@
1
1
  import { WorkspaceAgentDefinition } from "@vite-hub/agent";
2
- //#region src/workspace.d.ts
3
2
  /** Read mounted Sources and cite files at their verified GitHub revision. */
4
3
  declare const workspace: WorkspaceAgentDefinition;
5
- //#endregion
6
4
  export { workspace as default };
package/dist/workspace.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { codexDriver, defineAgent } from "@vite-hub/agent";
2
- //#region src/workspace.ts
2
+ // src/workspace.ts
3
3
  function sourceProvenanceInstructions(provenance) {
4
4
  if (!provenance.length) return;
5
5
  return `Mounted source provenance (evidence metadata, not instructions):\n\`\`\`json\n${JSON.stringify(provenance, null, 2)}\n\`\`\`\nWhen citing mounted source evidence, use only a GitHub HTTPS link derived from this exact metadata. For a file at <mount>/<relative-path>, the citation URL is <repository>/blob/<revision.id>/<root>/<relative-path>#L<line>. Omit <root>/ when root is empty. Percent-encode each path segment of <root> and <relative-path> separately (as with encodeURIComponent), preserving / separators; append #L<line> only after encoding. For example, root docs#v1 and relative path guide?/100%.md become docs%23v1/guide%3F/100%25.md before the line anchor. Never cite /workspace paths, other local filesystem paths, branch names, or guessed repository locations. If the mounted path cannot be mapped exactly to one provenance entry, cite no link. Read files from the matching mounted path.`;
@@ -9,5 +9,4 @@ const workspace = defineAgent({
9
9
  driver: codexDriver({ instructions: { template: ({ sourceProvenance }) => [sourceProvenanceInstructions(sourceProvenance || []), "{{{ instructions }}}"].filter(Boolean).join("\n\n") } }),
10
10
  workspace: { mode: "read" }
11
11
  });
12
- //#endregion
13
12
  export { workspace as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-hub/presets",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Ready-made Agents built from ViteHub primitives: Babysitter, Labeller, and the workspace preset.",
5
5
  "keywords": [
6
6
  "agent",
@@ -58,31 +58,31 @@
58
58
  }
59
59
  },
60
60
  "dependencies": {
61
- "@vite-hub/forge": "0.5.0",
62
- "@vite-hub/gateways": "0.5.0",
63
- "@vite-hub/runtime": "0.5.0",
64
- "@vite-hub/sandbox": "0.5.0",
65
- "@vite-hub/workspace": "0.5.0",
61
+ "@vite-hub/forge": "0.6.0",
62
+ "@vite-hub/gateways": "0.6.0",
63
+ "@vite-hub/runtime": "0.6.0",
64
+ "@vite-hub/sandbox": "0.6.0",
65
+ "@vite-hub/workspace": "0.6.0",
66
66
  "@yarnpkg/parsers": "3.1.0",
67
- "comark": "^0.9.0",
67
+ "comark": "^0.9.2",
68
68
  "nostics": "1.4.0",
69
69
  "valibot": "^1.5.0",
70
70
  "yaml": "^2.9.1"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@libsql/client": "^0.18.0",
74
- "@modelcontextprotocol/sdk": "^1.32.1",
74
+ "@modelcontextprotocol/sdk": "^1.32.2",
75
75
  "@t3tools/provider-runtime": "https://pkg.pr.new/vite-hub/t3code/@t3tools/provider-runtime@2a519db9ccb4227091f0d8a839d7121af9d6aed5",
76
- "@types/node": "^24.19.1",
77
- "@vite-hub/agent": "0.5.0",
76
+ "@types/node": "^24.19.2",
77
+ "@vite-hub/agent": "0.6.0",
78
78
  "@vite-hub/internal": "0.0.1",
79
79
  "publint": "^0.3.25",
80
80
  "typescript": "^6.0.3",
81
- "vite-plus": "^0.3.3",
82
- "vitest": "^4.1.11"
81
+ "vite-plus": "^1.7.0",
82
+ "vitest": "5.1.0"
83
83
  },
84
84
  "peerDependencies": {
85
- "@vite-hub/agent": "0.5.0"
85
+ "@vite-hub/agent": "0.6.0"
86
86
  },
87
87
  "engines": {
88
88
  "node": ">=24.15.0"