@positronic/cloudflare 0.0.73 → 0.0.75
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/src/api/auth-middleware.js +2 -2
- package/dist/src/api/brains.js +28 -28
- package/dist/src/api/index.js +26 -1
- package/dist/src/api/store.js +30 -30
- package/dist/src/api/users.js +34 -34
- package/dist/src/auth-do.js +21 -53
- package/dist/src/brain-runner-do.js +7 -7
- package/dist/src/create-r2-store.js +2 -2
- package/dist/src/monitor-do.js +15 -15
- package/dist/src/schedule-do.js +37 -25
- package/dist/types/api/auth-middleware.d.ts +1 -1
- package/dist/types/api/auth-middleware.d.ts.map +1 -1
- package/dist/types/api/brains.d.ts.map +1 -1
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/auth-do.d.ts +6 -8
- package/dist/types/auth-do.d.ts.map +1 -1
- package/dist/types/brain-runner-do.d.ts +1 -1
- package/dist/types/brain-runner-do.d.ts.map +1 -1
- package/dist/types/create-r2-store.d.ts +1 -1
- package/dist/types/monitor-do.d.ts +7 -7
- package/dist/types/monitor-do.d.ts.map +1 -1
- package/dist/types/schedule-do.d.ts +8 -7
- package/dist/types/schedule-do.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/src/schedule-do.js
CHANGED
|
@@ -253,20 +253,26 @@ 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
|
|
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'");
|
|
260
260
|
} catch (e) {
|
|
261
261
|
// Column already exists
|
|
262
262
|
}
|
|
263
|
+
// Migration: add options column for existing DOs
|
|
264
|
+
try {
|
|
265
|
+
_this.storage.exec("ALTER TABLE schedules ADD COLUMN options TEXT");
|
|
266
|
+
} catch (e) {
|
|
267
|
+
// Column already exists
|
|
268
|
+
}
|
|
263
269
|
return _this;
|
|
264
270
|
}
|
|
265
271
|
_create_class(ScheduleDO, [
|
|
266
272
|
{
|
|
267
273
|
key: "createSchedule",
|
|
268
274
|
value: function createSchedule(brainTitle, cronExpression) {
|
|
269
|
-
var timezone = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'UTC',
|
|
275
|
+
var timezone = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'UTC', runAsUserName = arguments.length > 3 ? arguments[3] : void 0, options = arguments.length > 4 ? arguments[4] : void 0;
|
|
270
276
|
return _async_to_generator(function() {
|
|
271
277
|
var id, createdAt, alarm, nextRunAt;
|
|
272
278
|
return _ts_generator(this, function(_state) {
|
|
@@ -299,7 +305,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
299
305
|
// Note: Cron expression is validated at the API level before calling this method
|
|
300
306
|
// Calculate next run time
|
|
301
307
|
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,
|
|
308
|
+
this.storage.exec("INSERT INTO schedules (id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_name, options)\n VALUES (?, ?, ?, ?, 1, ?, ?, ?, ?)", id, brainTitle, cronExpression, timezone, createdAt, nextRunAt, runAsUserName, options ? JSON.stringify(options) : null);
|
|
303
309
|
return [
|
|
304
310
|
2,
|
|
305
311
|
{
|
|
@@ -310,7 +316,8 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
310
316
|
enabled: true,
|
|
311
317
|
createdAt: createdAt,
|
|
312
318
|
nextRunAt: nextRunAt,
|
|
313
|
-
|
|
319
|
+
runAsUserName: runAsUserName,
|
|
320
|
+
options: options
|
|
314
321
|
}
|
|
315
322
|
];
|
|
316
323
|
}
|
|
@@ -324,7 +331,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
324
331
|
return _async_to_generator(function() {
|
|
325
332
|
var results, result;
|
|
326
333
|
return _ts_generator(this, function(_state) {
|
|
327
|
-
results = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at,
|
|
334
|
+
results = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_name, options\n FROM schedules WHERE id = ?", scheduleId).toArray();
|
|
328
335
|
if (results.length === 0) {
|
|
329
336
|
return [
|
|
330
337
|
2,
|
|
@@ -342,7 +349,8 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
342
349
|
enabled: result.enabled === 1,
|
|
343
350
|
createdAt: result.created_at,
|
|
344
351
|
nextRunAt: result.next_run_at,
|
|
345
|
-
|
|
352
|
+
runAsUserName: result.run_as_user_name,
|
|
353
|
+
options: result.options ? JSON.parse(result.options) : undefined
|
|
346
354
|
}
|
|
347
355
|
];
|
|
348
356
|
});
|
|
@@ -382,9 +390,9 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
382
390
|
{
|
|
383
391
|
key: "listSchedules",
|
|
384
392
|
value: /**
|
|
385
|
-
* List all schedules. Pass null for
|
|
393
|
+
* List all schedules. Pass null for userName to skip ownership filter (root access).
|
|
386
394
|
*/ function listSchedules() {
|
|
387
|
-
var
|
|
395
|
+
var userName = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
388
396
|
return _async_to_generator(function() {
|
|
389
397
|
var alarm, schedules;
|
|
390
398
|
return _ts_generator(this, function(_state) {
|
|
@@ -421,7 +429,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
421
429
|
_state.sent();
|
|
422
430
|
_state.label = 4;
|
|
423
431
|
case 4:
|
|
424
|
-
schedules = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at,
|
|
432
|
+
schedules = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, enabled, created_at, next_run_at, run_as_user_name, options\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
433
|
return {
|
|
426
434
|
id: row.id,
|
|
427
435
|
brainTitle: row.brain_title,
|
|
@@ -430,7 +438,8 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
430
438
|
enabled: row.enabled === 1,
|
|
431
439
|
createdAt: row.created_at,
|
|
432
440
|
nextRunAt: row.next_run_at,
|
|
433
|
-
|
|
441
|
+
runAsUserName: row.run_as_user_name,
|
|
442
|
+
options: row.options ? JSON.parse(row.options) : undefined
|
|
434
443
|
};
|
|
435
444
|
});
|
|
436
445
|
return [
|
|
@@ -448,10 +457,10 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
448
457
|
{
|
|
449
458
|
key: "getAllRuns",
|
|
450
459
|
value: /**
|
|
451
|
-
* Get all scheduled runs. Pass null for
|
|
452
|
-
* When
|
|
460
|
+
* Get all scheduled runs. Pass null for userName to skip ownership filter (root access).
|
|
461
|
+
* When userName is set, only returns runs for schedules owned by that user.
|
|
453
462
|
*/ function getAllRuns(scheduleId) {
|
|
454
|
-
var limit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100,
|
|
463
|
+
var limit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100, userName = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
|
|
455
464
|
return _async_to_generator(function() {
|
|
456
465
|
var _this_storage, _this_storage1, query, params, runs, countQuery, countParams, countResult, count;
|
|
457
466
|
return _ts_generator(this, function(_state) {
|
|
@@ -461,8 +470,8 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
461
470
|
query += " AND sr.schedule_id = ?";
|
|
462
471
|
params.push(scheduleId);
|
|
463
472
|
}
|
|
464
|
-
query += " AND (? IS NULL OR s.
|
|
465
|
-
params.push(
|
|
473
|
+
query += " AND (? IS NULL OR s.run_as_user_name = ?)";
|
|
474
|
+
params.push(userName, userName);
|
|
466
475
|
query += " ORDER BY sr.ran_at DESC LIMIT ?";
|
|
467
476
|
params.push(limit);
|
|
468
477
|
runs = (_this_storage = this.storage).exec.apply(_this_storage, [
|
|
@@ -485,8 +494,8 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
485
494
|
countQuery += " AND sr.schedule_id = ?";
|
|
486
495
|
countParams.push(scheduleId);
|
|
487
496
|
}
|
|
488
|
-
countQuery += " AND (? IS NULL OR s.
|
|
489
|
-
countParams.push(
|
|
497
|
+
countQuery += " AND (? IS NULL OR s.run_as_user_name = ?)";
|
|
498
|
+
countParams.push(userName, userName);
|
|
490
499
|
countResult = (_this_storage1 = this.storage).exec.apply(_this_storage1, [
|
|
491
500
|
countQuery
|
|
492
501
|
].concat(_to_consumable_array(countParams))).one();
|
|
@@ -507,7 +516,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
507
516
|
value: // Handle the alarm trigger - runs every minute in a perpetual cycle
|
|
508
517
|
function alarm() {
|
|
509
518
|
return _async_to_generator(function() {
|
|
510
|
-
var now, dueSchedules, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, schedule, scheduleId, brainTitle, cronExpression,
|
|
519
|
+
var now, dueSchedules, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, schedule, scheduleId, brainTitle, cronExpression, runAsUserName, options, brainRunId, error, errorMessage, timezone, nextRunAt, err;
|
|
511
520
|
return _ts_generator(this, function(_state) {
|
|
512
521
|
switch(_state.label){
|
|
513
522
|
case 0:
|
|
@@ -522,7 +531,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
522
531
|
// checking every minute ensures we never miss a scheduled run.
|
|
523
532
|
// Get all enabled schedules that are due
|
|
524
533
|
now = Date.now();
|
|
525
|
-
dueSchedules = this.storage.exec("SELECT id, brain_title, cron_expression, timezone,
|
|
534
|
+
dueSchedules = this.storage.exec("SELECT id, brain_title, cron_expression, timezone, run_as_user_name, options\n FROM schedules\n WHERE enabled = 1 AND next_run_at <= ?", now).toArray();
|
|
526
535
|
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
527
536
|
_state.label = 1;
|
|
528
537
|
case 1:
|
|
@@ -543,7 +552,8 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
543
552
|
scheduleId = schedule.id;
|
|
544
553
|
brainTitle = schedule.brain_title;
|
|
545
554
|
cronExpression = schedule.cron_expression;
|
|
546
|
-
|
|
555
|
+
runAsUserName = schedule.run_as_user_name;
|
|
556
|
+
options = schedule.options ? JSON.parse(schedule.options) : undefined;
|
|
547
557
|
_state.label = 3;
|
|
548
558
|
case 3:
|
|
549
559
|
_state.trys.push([
|
|
@@ -554,7 +564,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
554
564
|
]);
|
|
555
565
|
return [
|
|
556
566
|
4,
|
|
557
|
-
this.triggerBrainRun(brainTitle,
|
|
567
|
+
this.triggerBrainRun(brainTitle, runAsUserName, options)
|
|
558
568
|
];
|
|
559
569
|
case 4:
|
|
560
570
|
brainRunId = _state.sent();
|
|
@@ -644,7 +654,7 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
644
654
|
},
|
|
645
655
|
{
|
|
646
656
|
key: "triggerBrainRun",
|
|
647
|
-
value: function triggerBrainRun(brainTitle,
|
|
657
|
+
value: function triggerBrainRun(brainTitle, runAsUserName, options) {
|
|
648
658
|
return _async_to_generator(function() {
|
|
649
659
|
var brainRunId, namespace, doId, stub;
|
|
650
660
|
return _ts_generator(this, function(_state) {
|
|
@@ -654,12 +664,14 @@ export var ScheduleDO = /*#__PURE__*/ function(DurableObject) {
|
|
|
654
664
|
namespace = this.env.BRAIN_RUNNER_DO;
|
|
655
665
|
doId = namespace.idFromName(brainRunId);
|
|
656
666
|
stub = namespace.get(doId);
|
|
657
|
-
console.log("[ScheduleDO] Triggering brain run ".concat(brainTitle, " with id ").concat(brainRunId, " as user ").concat(
|
|
667
|
+
console.log("[ScheduleDO] Triggering brain run ".concat(brainTitle, " with id ").concat(brainRunId, " as user ").concat(runAsUserName));
|
|
658
668
|
return [
|
|
659
669
|
4,
|
|
660
670
|
stub.start(brainTitle, brainRunId, {
|
|
661
|
-
|
|
662
|
-
}
|
|
671
|
+
name: runAsUserName
|
|
672
|
+
}, options ? {
|
|
673
|
+
options: options
|
|
674
|
+
} : undefined)
|
|
663
675
|
];
|
|
664
676
|
case 1:
|
|
665
677
|
_state.sent();
|
|
@@ -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,
|
|
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":"brains.d.ts","sourceRoot":"","sources":["../../../src/api/brains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,MAAM,MAAM,CAAC;AAM1C,OAAO,KAAK,EAAE,QAAQ,EAAiD,MAAM,YAAY,CAAC;AAE1F,QAAA,MAAM,MAAM;cAAwB,QAAQ;yCAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"brains.d.ts","sourceRoot":"","sources":["../../../src/api/brains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,MAAM,MAAM,CAAC;AAM1C,OAAO,KAAK,EAAE,QAAQ,EAAiD,MAAM,YAAY,CAAC;AAE1F,QAAA,MAAM,MAAM;cAAwB,QAAQ;yCAAK,CAAC;AAqoBlD,eAAe,MAAM,CAAC"}
|
|
@@ -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;
|
|
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"}
|
package/dist/types/auth-do.d.ts
CHANGED
|
@@ -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
|
-
|
|
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(
|
|
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(
|
|
29
|
-
addKey(
|
|
30
|
-
listKeys(
|
|
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(
|
|
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;
|
|
1
|
+
{"version":3,"file":"auth-do.d.ts","sourceRoot":"","sources":["../../src/auth-do.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,WAAW,OAAO;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,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;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
|
-
|
|
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 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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/{
|
|
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
|
|
17
|
-
* Pass null for
|
|
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,
|
|
19
|
+
getRun(brainRunId: string, userName?: string | null): any;
|
|
20
20
|
/**
|
|
21
21
|
* Get run history for a brain.
|
|
22
|
-
* Pass null for
|
|
22
|
+
* Pass null for userName to skip ownership filter (root access).
|
|
23
23
|
*/
|
|
24
|
-
history(brainTitle: string, limit?: number,
|
|
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
|
|
27
|
+
* Pass null for userName to skip ownership filter (root access).
|
|
28
28
|
*/
|
|
29
|
-
activeRuns(brainTitle: string,
|
|
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,
|
|
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,EA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}
|
|
19
20
|
interface ScheduledRun {
|
|
20
21
|
id: number;
|
|
@@ -28,21 +29,21 @@ interface ScheduledRun {
|
|
|
28
29
|
export declare class ScheduleDO extends DurableObject<Env> {
|
|
29
30
|
private readonly storage;
|
|
30
31
|
constructor(state: DurableObjectState, env: Env);
|
|
31
|
-
createSchedule(brainTitle: string, cronExpression: string, timezone: string | undefined,
|
|
32
|
+
createSchedule(brainTitle: string, cronExpression: string, timezone: string | undefined, runAsUserName: string, options?: Record<string, string>): Promise<Schedule>;
|
|
32
33
|
getSchedule(scheduleId: string): Promise<Schedule | null>;
|
|
33
34
|
deleteSchedule(scheduleId: string): Promise<boolean>;
|
|
34
35
|
/**
|
|
35
|
-
* List all schedules. Pass null for
|
|
36
|
+
* List all schedules. Pass null for userName to skip ownership filter (root access).
|
|
36
37
|
*/
|
|
37
|
-
listSchedules(
|
|
38
|
+
listSchedules(userName?: string | null): Promise<{
|
|
38
39
|
schedules: Schedule[];
|
|
39
40
|
count: number;
|
|
40
41
|
}>;
|
|
41
42
|
/**
|
|
42
|
-
* Get all scheduled runs. Pass null for
|
|
43
|
-
* When
|
|
43
|
+
* Get all scheduled runs. Pass null for userName to skip ownership filter (root access).
|
|
44
|
+
* When userName is set, only returns runs for schedules owned by that user.
|
|
44
45
|
*/
|
|
45
|
-
getAllRuns(scheduleId?: string, limit?: number,
|
|
46
|
+
getAllRuns(scheduleId?: string, limit?: number, userName?: string | null): Promise<{
|
|
46
47
|
runs: ScheduledRun[];
|
|
47
48
|
count: number;
|
|
48
49
|
}>;
|
|
@@ -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;AAE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qB;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.
|
|
3
|
+
"version": "0.0.75",
|
|
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.
|
|
35
|
-
"@positronic/spec": "^0.0.
|
|
36
|
-
"@positronic/template-new-project": "^0.0.
|
|
34
|
+
"@positronic/core": "^0.0.75",
|
|
35
|
+
"@positronic/spec": "^0.0.75",
|
|
36
|
+
"@positronic/template-new-project": "^0.0.75",
|
|
37
37
|
"aws4fetch": "^1.0.18",
|
|
38
38
|
"caz": "^2.0.0",
|
|
39
39
|
"croner": "^10.0.1",
|