agentic-drive 0.8.0 → 0.9.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/dist/mcp.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- import { D as Drive, C as Ctx } from './drive-Dxy0gL0_.js';
2
+ import { D as Drive, C as Ctx } from './drive-BRg1Uj_3.js';
3
3
  import { Store } from 'agentic-identity';
4
4
 
5
5
  declare function createMcpServer(drive: Drive, ctx: Ctx, exportDir: string, store: Store): McpServer;
package/dist/mcp.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-6UQ6CDLJ.js";
3
+ } from "./chunk-D6KW6NVM.js";
4
4
  import {
5
5
  ACTOR_KINDS,
6
6
  DriveError,
@@ -8,7 +8,7 @@ import {
8
8
  inviteIdentity,
9
9
  publicNode,
10
10
  upload
11
- } from "./chunk-R2DUVOJT.js";
11
+ } from "./chunk-622NAJ6K.js";
12
12
 
13
13
  // src/mcp.ts
14
14
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -40,6 +40,7 @@ function createMcpServer(drive, ctx, exportDir, store) {
40
40
  }));
41
41
  tool("drive_ls", "List a folder.", { path: loc.optional() }, async ({ path }) => (await drive.list(ctx, path ?? "/")).map((n) => publicNode(n)), { readOnlyHint: true });
42
42
  tool("drive_stat", "Show one item with its metadata and who made it.", { path: loc }, async ({ path }) => publicNode(await drive.stat(ctx, path)), { readOnlyHint: true });
43
+ tool("drive_activity", "List the changes to an item, newest first: who made each one (kind human or agent), what, and when.", { path: loc, limit: z.number().int().positive().optional() }, async ({ path, limit }) => drive.listActivity(ctx, path, { limit }), { readOnlyHint: true });
43
44
  tool("drive_mkdir", "Make a folder.", { path: z.string(), parents: z.boolean().optional() }, async ({ path, parents }) => publicNode(await drive.mkdir(ctx, path, { parents })));
44
45
  tool(
45
46
  "drive_upload",
package/dist/worker.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Hono } from 'hono';
2
2
  import { D1Like, R2Like } from 'agentic-identity/cloudflare';
3
3
  import { Store, Blobs } from 'agentic-identity';
4
- import { C as Ctx, D as Drive } from './drive-Dxy0gL0_.js';
5
- export { g as ERROR_STATUS, E as ErrorCode, N as Node } from './drive-Dxy0gL0_.js';
4
+ import { C as Ctx, D as Drive } from './drive-BRg1Uj_3.js';
5
+ export { i as ERROR_STATUS, E as ErrorCode, N as Node } from './drive-BRg1Uj_3.js';
6
6
  export { B as BackfillOptions, a as BackfillResult, b as backfillAuthorIds, c as backfillResources } from './migrate-B79gRPMu.js';
7
7
 
8
8
  /**
package/dist/worker.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  publicNode,
13
13
  safeMime,
14
14
  upload
15
- } from "./chunk-R2DUVOJT.js";
15
+ } from "./chunk-622NAJ6K.js";
16
16
 
17
17
  // src/worker.ts
18
18
  import { Hono } from "hono";
@@ -46,6 +46,11 @@ async function defaultStore(env) {
46
46
  await ready;
47
47
  return createD1Store(env.DB, { region: regionOf(env) });
48
48
  }
49
+ var limitOf = (v) => {
50
+ const n = number(v, "limit");
51
+ if (n !== void 0 && (!Number.isInteger(n) || n < 1)) throw new DriveError("INVALID_PATH", "limit needs a whole number of 1 or more");
52
+ return n;
53
+ };
49
54
  var number = (v, name) => {
50
55
  if (v === void 0) return void 0;
51
56
  const n = Number(v);
@@ -113,6 +118,7 @@ function createApp(options = {}) {
113
118
  };
114
119
  const opt = (v, name) => v === void 0 ? void 0 : str(v, name);
115
120
  api.get("/items", async (c) => c.json((await c.var.drive.list(c.var.ctx, q(c, "path") ?? "/")).map((n) => publicNode(n))));
121
+ 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
122
  api.get("/stat", async (c) => c.json(publicNode(await c.var.drive.stat(c.var.ctx, need(q(c, "path"), "path")))));
117
123
  api.post("/folders", async (c) => {
118
124
  const b = await body(c);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-drive",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Store, sort, and share files and folders.",
5
5
  "keywords": [
6
6
  "drive",
@@ -68,12 +68,14 @@
68
68
  "ci:local": "npm run build && npm run build:ui && npm run typecheck && npm test && npm run test:e2e",
69
69
  "build:ui": "vite build",
70
70
  "deploy:demo": "npm run build:ui && wrangler deploy -c wrangler.demo.jsonc",
71
- "test:e2e": "playwright test"
71
+ "test:e2e": "playwright test",
72
+ "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",
73
+ "dev:smoke": "node scripts/dev-smoke.mjs"
72
74
  },
73
75
  "dependencies": {
74
76
  "@modelcontextprotocol/sdk": "^1.12.0",
75
- "agentic-design": "^0.4.0",
76
- "agentic-identity": "^0.6.0",
77
+ "agentic-design": "^0.5.0",
78
+ "agentic-identity": "^0.9.0",
77
79
  "hono": "^4.13.14",
78
80
  "zod": "^4.6.6"
79
81
  },