@almadar/std 16.216.0 → 16.218.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/behaviors/lolo/infra/atoms/std-data-import.lolo +272 -0
- package/behaviors/lolo/infra/atoms/std-global-search.lolo +248 -0
- package/behaviors/lolo/infra/atoms/std-notification-preferences.lolo +526 -0
- package/behaviors/lolo/infra/atoms/std-permission-matrix.lolo +522 -0
- package/behaviors/lolo/infra/atoms/std-reminder-scheduler.lolo +11 -3
- package/behaviors/registry/infra/atoms/std-data-import.orb +1164 -0
- package/behaviors/registry/infra/atoms/std-global-search.orb +1417 -0
- package/behaviors/registry/infra/atoms/std-notification-preferences.orb +2404 -0
- package/behaviors/registry/infra/atoms/std-permission-matrix.orb +2229 -0
- package/behaviors/registry/infra/atoms/std-reminder-scheduler.orb +144 -43
- package/dist/behaviors/exports-reader.js +12813 -5636
- package/dist/behaviors/functions/index.d.ts +756 -8
- package/dist/behaviors/functions/index.js +12772 -5637
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +12814 -5637
- package/dist/behaviors/query.js +12813 -5636
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +19 -3
- package/dist/behaviors-registry.json +3534 -683
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12814 -5637
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "std-reminder-scheduler — deadline reminders for a target entity. A periodic tick scans the target for records whose `dateField` deadline (a ms-epoch number or an ISO datetime string) is within `offsetHours` of now and that have not been reminded yet, and emits `ReminderDue` for each — every matching record, via a self-driving scan loop. Marks each record `remindedAt` so it isn't reminded twice. Compose alongside std-notify-on-event to deliver the reminder.",
|
|
2
|
+
"description": "std-reminder-scheduler — deadline reminders for a target entity. A periodic tick scans the target for records whose `dateField` deadline (a ms-epoch number or an ISO datetime string) is within `offsetHours` of now and that have not been reminded yet, and emits `ReminderDue` for each — every matching record, via a self-driving scan loop. `direction` picks which side of now the scan matches: 'future' (default) fires for deadlines up to `offsetHours` ahead; 'past' fires once a record's date is at least `offsetHours` behind now. Marks each record `remindedAt` so it isn't reminded twice — and only when the record actually matched the scan, so records outside the window stay eligible for later passes. Compose alongside std-notify-on-event to deliver the reminder.",
|
|
3
3
|
"ledger": {
|
|
4
4
|
"entries": {
|
|
5
5
|
"ent_01KXG04FGHSY7V4DMG7TF0PMW0": {
|
|
@@ -174,6 +174,18 @@
|
|
|
174
174
|
"tier": "internal",
|
|
175
175
|
"type": "string"
|
|
176
176
|
},
|
|
177
|
+
"direction": {
|
|
178
|
+
"default": "future",
|
|
179
|
+
"description": "'future' (default) matches records whose dateField is still ahead, up to offsetHours out — upcoming-deadline reminders. 'past' matches records whose dateField is at least offsetHours behind now — act-after-the-fact policies. The emitted event and the dedup marker are identical either way.",
|
|
180
|
+
"label": "Scan which side of now?",
|
|
181
|
+
"synonyms": "direction, past due, overdue, after the deadline, look back, backward scan, past-window",
|
|
182
|
+
"tier": "infra",
|
|
183
|
+
"type": "string",
|
|
184
|
+
"values": [
|
|
185
|
+
"future",
|
|
186
|
+
"past"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
177
189
|
"enabled": {
|
|
178
190
|
"default": false,
|
|
179
191
|
"description": "Automatically remind about upcoming deadlines. Off by default.",
|
|
@@ -470,6 +482,17 @@
|
|
|
470
482
|
],
|
|
471
483
|
"to": "idle"
|
|
472
484
|
},
|
|
485
|
+
{
|
|
486
|
+
"event": "ScanRecordsLoaded",
|
|
487
|
+
"eventId": "evt_01KXG04FGHRVC231C15KD26CM7",
|
|
488
|
+
"from": "idle",
|
|
489
|
+
"guard": [
|
|
490
|
+
"=",
|
|
491
|
+
"@config.enabled",
|
|
492
|
+
false
|
|
493
|
+
],
|
|
494
|
+
"to": "idle"
|
|
495
|
+
},
|
|
473
496
|
{
|
|
474
497
|
"effects": [
|
|
475
498
|
[
|
|
@@ -514,35 +537,74 @@
|
|
|
514
537
|
0.0
|
|
515
538
|
],
|
|
516
539
|
[
|
|
517
|
-
"
|
|
540
|
+
"or",
|
|
518
541
|
[
|
|
519
|
-
"
|
|
542
|
+
"and",
|
|
543
|
+
[
|
|
544
|
+
"=",
|
|
545
|
+
"@config.direction",
|
|
546
|
+
"future"
|
|
547
|
+
],
|
|
548
|
+
[
|
|
549
|
+
">",
|
|
550
|
+
[
|
|
551
|
+
"time/parse",
|
|
552
|
+
[
|
|
553
|
+
"object/get",
|
|
554
|
+
"@entity",
|
|
555
|
+
"@config.dateField"
|
|
556
|
+
]
|
|
557
|
+
],
|
|
558
|
+
"@now"
|
|
559
|
+
],
|
|
520
560
|
[
|
|
521
|
-
"
|
|
522
|
-
|
|
523
|
-
|
|
561
|
+
"<",
|
|
562
|
+
[
|
|
563
|
+
"-",
|
|
564
|
+
[
|
|
565
|
+
"time/parse",
|
|
566
|
+
[
|
|
567
|
+
"object/get",
|
|
568
|
+
"@entity",
|
|
569
|
+
"@config.dateField"
|
|
570
|
+
]
|
|
571
|
+
],
|
|
572
|
+
"@now"
|
|
573
|
+
],
|
|
574
|
+
[
|
|
575
|
+
"*",
|
|
576
|
+
"@config.offsetHours",
|
|
577
|
+
3600000.0
|
|
578
|
+
]
|
|
524
579
|
]
|
|
525
580
|
],
|
|
526
|
-
"@now"
|
|
527
|
-
],
|
|
528
|
-
[
|
|
529
|
-
"<",
|
|
530
581
|
[
|
|
531
|
-
"
|
|
582
|
+
"and",
|
|
532
583
|
[
|
|
533
|
-
"
|
|
584
|
+
"=",
|
|
585
|
+
"@config.direction",
|
|
586
|
+
"past"
|
|
587
|
+
],
|
|
588
|
+
[
|
|
589
|
+
">",
|
|
534
590
|
[
|
|
535
|
-
"
|
|
536
|
-
"@
|
|
537
|
-
|
|
591
|
+
"-",
|
|
592
|
+
"@now",
|
|
593
|
+
[
|
|
594
|
+
"time/parse",
|
|
595
|
+
[
|
|
596
|
+
"object/get",
|
|
597
|
+
"@entity",
|
|
598
|
+
"@config.dateField"
|
|
599
|
+
]
|
|
600
|
+
]
|
|
601
|
+
],
|
|
602
|
+
[
|
|
603
|
+
"*",
|
|
604
|
+
"@config.offsetHours",
|
|
605
|
+
3600000.0
|
|
538
606
|
]
|
|
539
|
-
]
|
|
540
|
-
"@now"
|
|
541
|
-
],
|
|
542
|
-
[
|
|
543
|
-
"*",
|
|
544
|
-
"@config.offsetHours",
|
|
545
|
-
3600000.0
|
|
607
|
+
]
|
|
546
608
|
]
|
|
547
609
|
]
|
|
548
610
|
]
|
|
@@ -667,35 +729,74 @@
|
|
|
667
729
|
0.0
|
|
668
730
|
],
|
|
669
731
|
[
|
|
670
|
-
"
|
|
732
|
+
"or",
|
|
671
733
|
[
|
|
672
|
-
"
|
|
734
|
+
"and",
|
|
673
735
|
[
|
|
674
|
-
"
|
|
675
|
-
"@
|
|
676
|
-
"
|
|
736
|
+
"=",
|
|
737
|
+
"@config.direction",
|
|
738
|
+
"future"
|
|
739
|
+
],
|
|
740
|
+
[
|
|
741
|
+
">",
|
|
742
|
+
[
|
|
743
|
+
"time/parse",
|
|
744
|
+
[
|
|
745
|
+
"object/get",
|
|
746
|
+
"@entity",
|
|
747
|
+
"@config.dateField"
|
|
748
|
+
]
|
|
749
|
+
],
|
|
750
|
+
"@now"
|
|
751
|
+
],
|
|
752
|
+
[
|
|
753
|
+
"<",
|
|
754
|
+
[
|
|
755
|
+
"-",
|
|
756
|
+
[
|
|
757
|
+
"time/parse",
|
|
758
|
+
[
|
|
759
|
+
"object/get",
|
|
760
|
+
"@entity",
|
|
761
|
+
"@config.dateField"
|
|
762
|
+
]
|
|
763
|
+
],
|
|
764
|
+
"@now"
|
|
765
|
+
],
|
|
766
|
+
[
|
|
767
|
+
"*",
|
|
768
|
+
"@config.offsetHours",
|
|
769
|
+
3600000.0
|
|
770
|
+
]
|
|
677
771
|
]
|
|
678
772
|
],
|
|
679
|
-
"@now"
|
|
680
|
-
],
|
|
681
|
-
[
|
|
682
|
-
"<",
|
|
683
773
|
[
|
|
684
|
-
"
|
|
774
|
+
"and",
|
|
775
|
+
[
|
|
776
|
+
"=",
|
|
777
|
+
"@config.direction",
|
|
778
|
+
"past"
|
|
779
|
+
],
|
|
685
780
|
[
|
|
686
|
-
"
|
|
781
|
+
">",
|
|
687
782
|
[
|
|
688
|
-
"
|
|
689
|
-
"@
|
|
690
|
-
|
|
783
|
+
"-",
|
|
784
|
+
"@now",
|
|
785
|
+
[
|
|
786
|
+
"time/parse",
|
|
787
|
+
[
|
|
788
|
+
"object/get",
|
|
789
|
+
"@entity",
|
|
790
|
+
"@config.dateField"
|
|
791
|
+
]
|
|
792
|
+
]
|
|
793
|
+
],
|
|
794
|
+
[
|
|
795
|
+
"*",
|
|
796
|
+
"@config.offsetHours",
|
|
797
|
+
3600000.0
|
|
691
798
|
]
|
|
692
|
-
]
|
|
693
|
-
"@now"
|
|
694
|
-
],
|
|
695
|
-
[
|
|
696
|
-
"*",
|
|
697
|
-
"@config.offsetHours",
|
|
698
|
-
3600000.0
|
|
799
|
+
]
|
|
699
800
|
]
|
|
700
801
|
]
|
|
701
802
|
]
|