@positronic/cloudflare 0.0.73 → 0.0.74

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.
@@ -253,7 +253,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
253
253
  ]), _define_property(_this, "storage", void 0);
254
254
  _this.storage = state.storage.sql;
255
255
  // Initialize database schema
256
- _this.storage.exec("\n CREATE TABLE IF NOT EXISTS schedules (\n id TEXT PRIMARY KEY,\n brain_title TEXT NOT NULL,\n cron_expression TEXT NOT NULL,\n enabled INTEGER NOT NULL DEFAULT 1,\n created_at INTEGER NOT NULL,\n next_run_at INTEGER,\n run_as_user_id TEXT NOT NULL\n );\n\n CREATE INDEX IF NOT EXISTS idx_schedules_brain\n ON schedules(brain_title);\n\n CREATE INDEX IF NOT EXISTS idx_schedules_enabled\n ON schedules(enabled);\n\n CREATE TABLE IF NOT EXISTS scheduled_runs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n schedule_id TEXT NOT NULL,\n brain_run_id TEXT UNIQUE,\n status TEXT NOT NULL CHECK(status IN ('triggered', 'failed', 'complete')),\n ran_at INTEGER NOT NULL,\n completed_at INTEGER,\n error TEXT,\n FOREIGN KEY (schedule_id) REFERENCES schedules(id) ON DELETE CASCADE\n );\n\n CREATE INDEX IF NOT EXISTS idx_runs_schedule\n ON scheduled_runs(schedule_id, ran_at DESC);\n ");
256
+ _this.storage.exec("\n CREATE TABLE IF NOT EXISTS schedules (\n id TEXT PRIMARY KEY,\n brain_title TEXT NOT NULL,\n cron_expression TEXT NOT NULL,\n enabled INTEGER NOT NULL DEFAULT 1,\n created_at INTEGER NOT NULL,\n next_run_at INTEGER,\n run_as_user_name TEXT NOT NULL\n );\n\n CREATE INDEX IF NOT EXISTS idx_schedules_brain\n ON schedules(brain_title);\n\n CREATE INDEX IF NOT EXISTS idx_schedules_enabled\n ON schedules(enabled);\n\n CREATE TABLE IF NOT EXISTS scheduled_runs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n schedule_id TEXT NOT NULL,\n brain_run_id TEXT UNIQUE,\n status TEXT NOT NULL CHECK(status IN ('triggered', 'failed', 'complete')),\n ran_at INTEGER NOT NULL,\n completed_at INTEGER,\n error TEXT,\n FOREIGN KEY (schedule_id) REFERENCES schedules(id) ON DELETE CASCADE\n );\n\n CREATE INDEX IF NOT EXISTS idx_runs_schedule\n ON scheduled_runs(schedule_id, ran_at DESC);\n ");
257
257
  // Migration: add timezone column for existing DOs
258
258
  try {
259
259
  _this.storage.exec("ALTER TABLE schedules ADD COLUMN timezone TEXT NOT NULL DEFAULT 'UTC'");
@@ -266,7 +266,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
266
266
  {
267
267
  key: "createSchedule",
268
268
  value: function createSchedule(brainTitle, cronExpression) {
269
- var timezone = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'UTC', runAsUserId = arguments.length > 3 ? arguments[3] : void 0;
269
+ var timezone = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'UTC', runAsUserName = arguments.length > 3 ? arguments[3] : void 0;
270
270
  return _async_to_generator(function() {
271
271
  var id, createdAt, alarm, nextRunAt;
272
272
  return _ts_generator(this, function(_state) {
@@ -299,7 +299,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
299
299
  // Note: Cron expression is validated at the API level before calling this method
300
300
  // Calculate next run time
301
301
  nextRunAt = this.calculateNextRunTime(cronExpression, createdAt, timezone);
302
- this.storage.exec("INSERT INTO schedules (id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_id)\n VALUES (?, ?, ?, ?, 1, ?, ?, ?)", id, brainTitle, cronExpression, timezone, createdAt, nextRunAt, runAsUserId);
302
+ this.storage.exec("INSERT INTO schedules (id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_name)\n VALUES (?, ?, ?, ?, 1, ?, ?, ?)", id, brainTitle, cronExpression, timezone, createdAt, nextRunAt, runAsUserName);
303
303
  return [
304
304
  2,
305
305
  {
@@ -310,7 +310,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
310
310
  enabled: true,
311
311
  createdAt: createdAt,
312
312
  nextRunAt: nextRunAt,
313
- runAsUserId: runAsUserId
313
+ runAsUserName: runAsUserName
314
314
  }
315
315
  ];
316
316
  }
@@ -324,7 +324,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
324
324
  return _async_to_generator(function() {
325
325
  var results, result;
326
326
  return _ts_generator(this, function(_state) {
327
- results = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_id\n FROM schedules WHERE id = ?", scheduleId).toArray();
327
+ results = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_name\n FROM schedules WHERE id = ?", scheduleId).toArray();
328
328
  if (results.length === 0) {
329
329
  return [
330
330
  2,
@@ -342,7 +342,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
342
342
  enabled: result.enabled === 1,
343
343
  createdAt: result.created_at,
344
344
  nextRunAt: result.next_run_at,
345
- runAsUserId: result.run_as_user_id
345
+ runAsUserName: result.run_as_user_name
346
346
  }
347
347
  ];
348
348
  });
@@ -382,9 +382,9 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
382
382
  {
383
383
  key: "listSchedules",
384
384
  value: /**
385
- * List all schedules. Pass null for userId to skip ownership filter (root access).
385
+ * List all schedules. Pass null for userName to skip ownership filter (root access).
386
386
  */ function listSchedules() {
387
- var userId = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
387
+ var userName = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
388
388
  return _async_to_generator(function() {
389
389
  var alarm, schedules;
390
390
  return _ts_generator(this, function(_state) {
@@ -421,7 +421,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
421
421
  _state.sent();
422
422
  _state.label = 4;
423
423
  case 4:
424
- schedules = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_id\n FROM schedules\n WHERE (? IS NULL OR run_as_user_id = ?)\n ORDER BY created_at DESC", userId, userId).toArray().map(function(row) {
424
+ schedules = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_name\n FROM schedules\n WHERE (? IS NULL OR run_as_user_name = ?)\n ORDER BY created_at DESC", userName, userName).toArray().map(function(row) {
425
425
  return {
426
426
  id: row.id,
427
427
  brainTitle: row.brain_title,
@@ -430,7 +430,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
430
430
  enabled: row.enabled === 1,
431
431
  createdAt: row.created_at,
432
432
  nextRunAt: row.next_run_at,
433
- runAsUserId: row.run_as_user_id
433
+ runAsUserName: row.run_as_user_name
434
434
  };
435
435
  });
436
436
  return [
@@ -448,10 +448,10 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
448
448
  {
449
449
  key: "getAllRuns",
450
450
  value: /**
451
- * Get all scheduled runs. Pass null for userId to skip ownership filter (root access).
452
- * When userId is set, only returns runs for schedules owned by that user.
451
+ * Get all scheduled runs. Pass null for userName to skip ownership filter (root access).
452
+ * When userName is set, only returns runs for schedules owned by that user.
453
453
  */ function getAllRuns(scheduleId) {
454
- var limit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100, userId = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
454
+ var limit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100, userName = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
455
455
  return _async_to_generator(function() {
456
456
  var _this_storage, _this_storage1, query, params, runs, countQuery, countParams, countResult, count;
457
457
  return _ts_generator(this, function(_state) {
@@ -461,8 +461,8 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
461
461
  query += " AND sr.schedule_id = ?";
462
462
  params.push(scheduleId);
463
463
  }
464
- query += " AND (? IS NULL OR s.run_as_user_id = ?)";
465
- params.push(userId, userId);
464
+ query += " AND (? IS NULL OR s.run_as_user_name = ?)";
465
+ params.push(userName, userName);
466
466
  query += " ORDER BY sr.ran_at DESC LIMIT ?";
467
467
  params.push(limit);
468
468
  runs = (_this_storage = this.storage).exec.apply(_this_storage, [
@@ -485,8 +485,8 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
485
485
  countQuery += " AND sr.schedule_id = ?";
486
486
  countParams.push(scheduleId);
487
487
  }
488
- countQuery += " AND (? IS NULL OR s.run_as_user_id = ?)";
489
- countParams.push(userId, userId);
488
+ countQuery += " AND (? IS NULL OR s.run_as_user_name = ?)";
489
+ countParams.push(userName, userName);
490
490
  countResult = (_this_storage1 = this.storage).exec.apply(_this_storage1, [
491
491
  countQuery
492
492
  ].concat(_to_consumable_array(countParams))).one();
@@ -507,7 +507,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
507
507
  value: // Handle the alarm trigger - runs every minute in a perpetual cycle
508
508
  function alarm() {
509
509
  return _async_to_generator(function() {
510
- var now, dueSchedules, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, schedule, scheduleId, brainTitle, cronExpression, runAsUserId, brainRunId, error, errorMessage, timezone, nextRunAt, err;
510
+ var now, dueSchedules, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, schedule, scheduleId, brainTitle, cronExpression, runAsUserName, brainRunId, error, errorMessage, timezone, nextRunAt, err;
511
511
  return _ts_generator(this, function(_state) {
512
512
  switch(_state.label){
513
513
  case 0:
@@ -522,7 +522,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
522
522
  // checking every minute ensures we never miss a scheduled run.
523
523
  // Get all enabled schedules that are due
524
524
  now = Date.now();
525
- dueSchedules = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, run_as_user_id\n FROM schedules\n WHERE enabled = 1 AND next_run_at <= ?", now).toArray();
525
+ dueSchedules = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, run_as_user_name\n FROM schedules\n WHERE enabled = 1 AND next_run_at <= ?", now).toArray();
526
526
  _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
527
527
  _state.label = 1;
528
528
  case 1:
@@ -543,7 +543,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
543
543
  scheduleId = schedule.id;
544
544
  brainTitle = schedule.brain_title;
545
545
  cronExpression = schedule.cron_expression;
546
- runAsUserId = schedule.run_as_user_id;
546
+ runAsUserName = schedule.run_as_user_name;
547
547
  _state.label = 3;
548
548
  case 3:
549
549
  _state.trys.push([
@@ -554,7 +554,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
554
554
  ]);
555
555
  return [
556
556
  4,
557
- this.triggerBrainRun(brainTitle, runAsUserId)
557
+ this.triggerBrainRun(brainTitle, runAsUserName)
558
558
  ];
559
559
  case 4:
560
560
  brainRunId = _state.sent();
@@ -644,7 +644,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
644
644
  },
645
645
  {
646
646
  key: "triggerBrainRun",
647
- value: function triggerBrainRun(brainTitle, runAsUserId) {
647
+ value: function triggerBrainRun(brainTitle, runAsUserName) {
648
648
  return _async_to_generator(function() {
649
649
  var brainRunId, namespace, doId, stub;
650
650
  return _ts_generator(this, function(_state) {
@@ -654,11 +654,11 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
654
654
  namespace = this.env.BRAIN_RUNNER_DO;
655
655
  doId = namespace.idFromName(brainRunId);
656
656
  stub = namespace.get(doId);
657
- console.log("[ScheduleDO] Triggering brain run ".concat(brainTitle, " with id ").concat(brainRunId, " as user ").concat(runAsUserId));
657
+ console.log("[ScheduleDO] Triggering brain run ".concat(brainTitle, " with id ").concat(brainRunId, " as user ").concat(runAsUserName));
658
658
  return [
659
659
  4,
660
660
  stub.start(brainTitle, brainRunId, {
661
- id: runAsUserId
661
+ name: runAsUserName
662
662
  })
663
663
  ];
664
664
  case 1:
@@ -1,7 +1,7 @@
1
1
  import type { MiddlewareHandler } from 'hono';
2
2
  import type { Bindings } from './types.js';
3
3
  export interface AuthContext {
4
- userId: string | null;
4
+ userName: string | null;
5
5
  isRoot: boolean;
6
6
  }
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"auth-middleware.d.ts","sourceRoot":"","sources":["../../../src/api/auth-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,iBAAiB,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,iBAAiB,CAQ/C;AAGD,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAU,kBAAkB;QAC1B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAwBD;;;GAGG;AACH,wBAAgB,cAAc,IAAI,iBAAiB,CAAC;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC,CAsF1E"}
1
+ {"version":3,"file":"auth-middleware.d.ts","sourceRoot":"","sources":["../../../src/api/auth-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,iBAAiB,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,iBAAiB,CAQ/C;AAGD,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAU,kBAAkB;QAC1B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAwBD;;;GAGG;AACH,wBAAgB,cAAc,IAAI,iBAAiB,CAAC;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC,CAsF1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,MAAM,MAAM,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAW3C,QAAA,MAAM,GAAG;cAAwB,QAAQ;yCAAK,CAAC;AAkE/C,eAAe,GAAG,CAAC;AAGnB,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,MAAM,MAAM,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAW3C,QAAA,MAAM,GAAG;cAAwB,QAAQ;yCAAK,CAAC;AA0E/C,eAAe,GAAG,CAAC;AAGnB,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
@@ -4,13 +4,12 @@ export interface AuthEnv {
4
4
  NODE_ENV?: string;
5
5
  }
6
6
  export interface User {
7
- id: string;
8
7
  name: string;
9
8
  createdAt: number;
10
9
  }
11
10
  export interface UserKey {
12
11
  fingerprint: string;
13
- userId: string;
12
+ userName: string;
14
13
  jwk: string;
15
14
  label: string;
16
15
  addedAt: number;
@@ -19,19 +18,18 @@ export declare class AuthDO extends DurableObject<AuthEnv> {
19
18
  private readonly storage;
20
19
  constructor(state: DurableObjectState, env: AuthEnv);
21
20
  createUser(name: string): Promise<User>;
22
- getUser(userId: string): Promise<User | null>;
23
- getUserByName(name: string): Promise<User | null>;
21
+ getUser(name: string): Promise<User | null>;
24
22
  listUsers(): Promise<{
25
23
  users: User[];
26
24
  count: number;
27
25
  }>;
28
- deleteUser(userId: string): Promise<boolean>;
29
- addKey(userId: string, fingerprint: string, jwk: string, label?: string): Promise<UserKey>;
30
- listKeys(userId: string): Promise<{
26
+ deleteUser(name: string): Promise<boolean>;
27
+ addKey(userName: string, fingerprint: string, jwk: string, label?: string): Promise<UserKey>;
28
+ listKeys(userName: string): Promise<{
31
29
  keys: UserKey[];
32
30
  count: number;
33
31
  }>;
34
- removeKey(userId: string, fingerprint: string): Promise<boolean>;
32
+ removeKey(userName: string, fingerprint: string): Promise<boolean>;
35
33
  getKeyByFingerprint(fingerprint: string): Promise<UserKey | null>;
36
34
  }
37
35
  //# sourceMappingURL=auth-do.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-do.d.ts","sourceRoot":"","sources":["../../src/auth-do.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,MAAM,WAAW,OAAO;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,MAAO,SAAQ,aAAa,CAAC,OAAO,CAAC;IAChD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;gBAEzB,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,OAAO;IA0B7C,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBvC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,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ACjB;AAED,qBAAa,MAAO,SAAQ,aAAa,CAAC,OAAO,CAAC;IAChD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;gBAEzB,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,OAAO;IAwB7C,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAevC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAgB3C,SAAS,IAAI,OAAO,CAAC;QAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAetD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAa1C,MAAM,CACV,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,KAAK,GAAE,MAAW,GACjB,OAAO,CAAC,OAAO,CAAC;IAqBb,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAqBvE,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAsBlE,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;CAqBxE"}
@@ -78,7 +78,7 @@ export declare class BrainRunnerDO extends DurableObject<Env> {
78
78
  }>;
79
79
  alarm(): Promise<void>;
80
80
  start(brainTitle: string, brainRunId: string, currentUser: {
81
- id: string;
81
+ name: string;
82
82
  }, initialData?: Record<string, any>): Promise<void>;
83
83
  /**
84
84
  * Wake up (resume) a brain from a previous execution point.
@@ -1 +1 @@
1
- {"version":3,"file":"brain-runner-do.d.ts","sourceRoot":"","sources":["../../src/brain-runner-do.ts"],"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,KAAK,CACT,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAC7B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAkInC;;;;OAIG;IACG,MAAM,CAAC,UAAU,EAAE,MAAM;IAsKzB,KAAK,CAAC,OAAO,EAAE,OAAO;CAkE7B"}
@@ -5,7 +5,7 @@ import type { StoreProvider } from '@positronic/core';
5
5
  *
6
6
  * Key resolution:
7
7
  * shared: store/{brainTitle}/{key}.json
8
- * per-user: store/{brainTitle}/user/{userId}/{key}.json
8
+ * per-user: store/{brainTitle}/user/{userName}/{key}.json
9
9
  *
10
10
  * The factory receives the store schema, brain title, and currentUser,
11
11
  * and returns a typed Store<any> with full key resolution built in.
@@ -13,20 +13,20 @@ export declare class MonitorDO extends DurableObject<Env> {
13
13
  getLastEvent(brainRunId: string): Record<string, SqlStorageValue> | null;
14
14
  /**
15
15
  * Get detailed information about a specific brain run
16
- * Returns null if run not found or not owned by userId
17
- * Pass null for userId to skip ownership check (root access)
16
+ * Returns null if run not found or not owned by userName
17
+ * Pass null for userName to skip ownership check (root access)
18
18
  */
19
- getRun(brainRunId: string, userId?: string | null): any;
19
+ getRun(brainRunId: string, userName?: string | null): any;
20
20
  /**
21
21
  * Get run history for a brain.
22
- * Pass null for userId to skip ownership filter (root access).
22
+ * Pass null for userName to skip ownership filter (root access).
23
23
  */
24
- history(brainTitle: string, limit?: number, userId?: string | null): Record<string, SqlStorageValue>[];
24
+ history(brainTitle: string, limit?: number, userName?: string | null): Record<string, SqlStorageValue>[];
25
25
  /**
26
26
  * Get active brain runs for a specific brain (running, paused, or waiting).
27
- * Pass null for userId to skip ownership filter (root access).
27
+ * Pass null for userName to skip ownership filter (root access).
28
28
  */
29
- activeRuns(brainTitle: string, userId?: string | null): Record<string, SqlStorageValue>[];
29
+ activeRuns(brainTitle: string, userName?: string | null): Record<string, SqlStorageValue>[];
30
30
  /**
31
31
  * Register a webhook to wait for
32
32
  * Called when a brain emits a WEBHOOK event
@@ -1 +1 @@
1
- {"version":3,"file":"monitor-do.d.ts","sourceRoot":"","sources":["../../src/monitor-do.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,GAAG;CAEnB;AAED,qBAAa,SAAU,SAAQ,aAAa,CAAC,GAAG,CAAC;IAC/C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;IACrC,OAAO,CAAC,kBAAkB,CAA4B;IAEtD,OAAO,CAAC,QAAQ,CAAwC;gBAE5C,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,GAAG;IAgF/C,gBAAgB,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC;YA0HzB,sBAAsB;IA4B9B,KAAK,CAAC,OAAO,EAAE,OAAO;IAmE5B,YAAY,CAAC,UAAU,EAAE,MAAM;IAa/B;;;;OAIG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,IAAW;IAwCvD;;;OAGG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,EAAE,MAAM,GAAE,MAAM,GAAG,IAAW;IA8B5E;;;OAGG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,IAAW;IA+B3D;;;OAGG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAcpF;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,IAAI,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W;IA+B7D;;;OAGG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAcpF;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI;IAmBvG;;;OAGG;IACH,yBAAyB,CAAC,UAAU,EAAE,MAAM;IAU5C;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAgB/D;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM;IAU3B;;;OAGG;IACH,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE;IAezD;;;OAGG;IACH,sBAAsB,CAAC,UAAU,EAAE,MAAM;CAU1C"}
@@ -14,7 +14,7 @@ interface Schedule {
14
14
  enabled: boolean;
15
15
  createdAt: number;
16
16
  nextRunAt?: number;
17
- runAsUserId: string;
17
+ runAsUserName: string;
18
18
  }
19
19
  interface ScheduledRun {
20
20
  id: number;
@@ -28,21 +28,21 @@ interface ScheduledRun {
28
28
  export declare class ScheduleDO extends DurableObject<Env> {
29
29
  private readonly storage;
30
30
  constructor(state: DurableObjectState, env: Env);
31
- createSchedule(brainTitle: string, cronExpression: string, timezone: string | undefined, runAsUserId: string): Promise<Schedule>;
31
+ createSchedule(brainTitle: string, cronExpression: string, timezone: string | undefined, runAsUserName: string): Promise<Schedule>;
32
32
  getSchedule(scheduleId: string): Promise<Schedule | null>;
33
33
  deleteSchedule(scheduleId: string): Promise<boolean>;
34
34
  /**
35
- * List all schedules. Pass null for userId to skip ownership filter (root access).
35
+ * List all schedules. Pass null for userName to skip ownership filter (root access).
36
36
  */
37
- listSchedules(userId?: string | null): Promise<{
37
+ listSchedules(userName?: string | null): Promise<{
38
38
  schedules: Schedule[];
39
39
  count: number;
40
40
  }>;
41
41
  /**
42
- * Get all scheduled runs. Pass null for userId to skip ownership filter (root access).
43
- * When userId is set, only returns runs for schedules owned by that user.
42
+ * Get all scheduled runs. Pass null for userName to skip ownership filter (root access).
43
+ * When userName is set, only returns runs for schedules owned by that user.
44
44
  */
45
- getAllRuns(scheduleId?: string, limit?: number, userId?: string | null): Promise<{
45
+ getAllRuns(scheduleId?: string, limit?: number, userName?: string | null): Promise<{
46
46
  runs: ScheduledRun[];
47
47
  count: number;
48
48
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"schedule-do.d.ts","sourceRoot":"","sources":["../../src/schedule-do.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,GAAG;IAClB,eAAe,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC5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OAAO,CAAC,QAAQ,CAAC;IAqCd,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IA2BzD,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAY1D;;OAEG;IACG,aAAa,CAAC,QAAQ,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAuCtG;;;OAGG;IACG,UAAU,CACd,UAAU,CAAC,EAAE,MAAM,EACnB,KAAK,GAAE,MAAY,EACnB,QAAQ,GAAE,MAAM,GAAG,IAAW,GAC7B,OAAO,CAAC;QAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAyD7C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YA4Ed,eAAe;IAcvB,gBAAgB,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA6C7D,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,oBAAoB;IAMtB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC;CAG5C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positronic/cloudflare",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,9 +31,9 @@
31
31
  "clean": "rm -rf tsconfig.tsbuildinfo dist"
32
32
  },
33
33
  "dependencies": {
34
- "@positronic/core": "^0.0.73",
35
- "@positronic/spec": "^0.0.73",
36
- "@positronic/template-new-project": "^0.0.73",
34
+ "@positronic/core": "^0.0.74",
35
+ "@positronic/spec": "^0.0.74",
36
+ "@positronic/template-new-project": "^0.0.74",
37
37
  "aws4fetch": "^1.0.18",
38
38
  "caz": "^2.0.0",
39
39
  "croner": "^10.0.1",