agentic-drive 0.9.0 → 0.10.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/dist/worker.js CHANGED
@@ -1,18 +1,20 @@
1
1
  import {
2
2
  DEFAULT_MAX_BYTES,
3
+ buildExport,
4
+ upload
5
+ } from "./chunk-HJXRMOUY.js";
6
+ import {
3
7
  DEFAULT_URL_SECONDS,
4
8
  DriveError,
5
9
  ERROR_STATUS,
6
10
  authenticate,
7
11
  backfillAuthorIds,
8
12
  backfillResources,
9
- buildExport,
10
13
  createDrive,
11
14
  inviteIdentity,
12
15
  publicNode,
13
- safeMime,
14
- upload
15
- } from "./chunk-R2DUVOJT.js";
16
+ safeMime
17
+ } from "./chunk-DB4F5EWD.js";
16
18
 
17
19
  // src/worker.ts
18
20
  import { Hono } from "hono";
@@ -46,6 +48,11 @@ async function defaultStore(env) {
46
48
  await ready;
47
49
  return createD1Store(env.DB, { region: regionOf(env) });
48
50
  }
51
+ var limitOf = (v) => {
52
+ const n = number(v, "limit");
53
+ if (n !== void 0 && (!Number.isInteger(n) || n < 1)) throw new DriveError("INVALID_PATH", "limit needs a whole number of 1 or more");
54
+ return n;
55
+ };
49
56
  var number = (v, name) => {
50
57
  if (v === void 0) return void 0;
51
58
  const n = Number(v);
@@ -113,6 +120,7 @@ function createApp(options = {}) {
113
120
  };
114
121
  const opt = (v, name) => v === void 0 ? void 0 : str(v, name);
115
122
  api.get("/items", async (c) => c.json((await c.var.drive.list(c.var.ctx, q(c, "path") ?? "/")).map((n) => publicNode(n))));
123
+ api.get("/items/:id/activity", async (c) => c.json(await c.var.drive.listActivity(c.var.ctx, c.req.param("id"), { limit: limitOf(q(c, "limit")) })));
116
124
  api.get("/stat", async (c) => c.json(publicNode(await c.var.drive.stat(c.var.ctx, need(q(c, "path"), "path")))));
117
125
  api.post("/folders", async (c) => {
118
126
  const b = await body(c);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-drive",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Store, sort, and share files and folders.",
5
5
  "keywords": [
6
6
  "drive",
@@ -45,6 +45,10 @@
45
45
  "types": "./dist/index.d.ts",
46
46
  "import": "./dist/index.js"
47
47
  },
48
+ "./account": {
49
+ "types": "./dist/account.d.ts",
50
+ "import": "./dist/account.js"
51
+ },
48
52
  "./client": {
49
53
  "types": "./dist/client.d.ts",
50
54
  "import": "./dist/client.js"
@@ -68,12 +72,14 @@
68
72
  "ci:local": "npm run build && npm run build:ui && npm run typecheck && npm test && npm run test:e2e",
69
73
  "build:ui": "vite build",
70
74
  "deploy:demo": "npm run build:ui && wrangler deploy -c wrangler.demo.jsonc",
71
- "test:e2e": "playwright test"
75
+ "test:e2e": "playwright test",
76
+ "dev": "npm run build:ui && WRANGLER_SEND_METRICS=false wrangler dev --local --var DRIVE_PUBLIC_URL:http://127.0.0.1:8787 --var DRIVE_REGION:unknown",
77
+ "dev:smoke": "node scripts/dev-smoke.mjs"
72
78
  },
73
79
  "dependencies": {
74
80
  "@modelcontextprotocol/sdk": "^1.12.0",
75
- "agentic-design": "^0.4.0",
76
- "agentic-identity": "^0.6.0",
81
+ "agentic-design": "^0.5.0",
82
+ "agentic-identity": "^0.9.0",
77
83
  "hono": "^4.13.14",
78
84
  "zod": "^4.6.6"
79
85
  },