@minca/core 0.2.0 → 0.4.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/README.md +2 -2
- package/dist/{session → hosting}/hosting.d.ts +2 -8
- package/dist/hosting/hosting.d.ts.map +1 -0
- package/dist/{session → hosting}/hosting.js +3 -3
- package/dist/hosting/hosting.js.map +1 -0
- package/dist/identity/abilities.d.ts +0 -2
- package/dist/identity/abilities.d.ts.map +1 -1
- package/dist/identity/abilities.js +2 -2
- package/dist/identity/abilities.js.map +1 -1
- package/dist/identity/account-vault.d.ts +0 -2
- package/dist/identity/account-vault.d.ts.map +1 -1
- package/dist/identity/account-vault.js +1 -1
- package/dist/identity/account-vault.js.map +1 -1
- package/dist/identity/crypto-p256.d.ts +1 -1
- package/dist/identity/crypto-p256.d.ts.map +1 -1
- package/dist/identity/ucan.d.ts +2 -1
- package/dist/identity/ucan.d.ts.map +1 -1
- package/dist/identity/ucan.js +1 -1
- package/dist/identity/ucan.js.map +1 -1
- package/dist/inbox/inbox.d.ts +0 -21
- package/dist/inbox/inbox.d.ts.map +1 -1
- package/dist/inbox/inbox.js +4 -4
- package/dist/inbox/inbox.js.map +1 -1
- package/dist/inbox/index.d.ts +4 -5
- package/dist/inbox/index.d.ts.map +1 -1
- package/dist/inbox/index.js +2 -3
- package/dist/inbox/index.js.map +1 -1
- package/dist/inbox/names.d.ts +0 -4
- package/dist/inbox/names.d.ts.map +1 -1
- package/dist/inbox/names.js +2 -2
- package/dist/inbox/names.js.map +1 -1
- package/dist/index.d.ts +50 -84
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -60
- package/dist/index.js.map +1 -1
- package/dist/network/mesh.d.ts.map +1 -1
- package/dist/network/mesh.js +23 -3
- package/dist/network/mesh.js.map +1 -1
- package/dist/network/network-manager.d.ts +5 -0
- package/dist/network/network-manager.d.ts.map +1 -1
- package/dist/network/network-manager.js +3 -0
- package/dist/network/network-manager.js.map +1 -1
- package/dist/network/peer-auth.d.ts +17 -5
- package/dist/network/peer-auth.d.ts.map +1 -1
- package/dist/network/peer-auth.js +19 -9
- package/dist/network/peer-auth.js.map +1 -1
- package/dist/network/rendezvous.d.ts +2 -0
- package/dist/network/rendezvous.d.ts.map +1 -1
- package/dist/network/rendezvous.js +5 -0
- package/dist/network/rendezvous.js.map +1 -1
- package/dist/network/rtc-transport.d.ts.map +1 -1
- package/dist/network/rtc-transport.js +9 -3
- package/dist/network/rtc-transport.js.map +1 -1
- package/dist/network/transport.d.ts +12 -0
- package/dist/network/transport.d.ts.map +1 -1
- package/dist/network/ws-transport.d.ts +1 -1
- package/dist/network/ws-transport.d.ts.map +1 -1
- package/dist/network/ws-transport.js +14 -4
- package/dist/network/ws-transport.js.map +1 -1
- package/dist/node/carrier.d.ts +1 -33
- package/dist/node/carrier.d.ts.map +1 -1
- package/dist/node/carrier.js +38 -68
- package/dist/node/carrier.js.map +1 -1
- package/dist/node/index.d.ts +5 -16
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +2 -9
- package/dist/node/index.js.map +1 -1
- package/dist/node/node-carriers.d.ts.map +1 -1
- package/dist/node/node-carriers.js +21 -52
- package/dist/node/node-carriers.js.map +1 -1
- package/dist/node/node-context.d.ts +0 -2
- package/dist/node/node-context.d.ts.map +1 -1
- package/dist/node/node-context.js.map +1 -1
- package/dist/node/node-hosting.d.ts.map +1 -1
- package/dist/node/node-hosting.js +14 -5
- package/dist/node/node-hosting.js.map +1 -1
- package/dist/node/node-records.js +2 -2
- package/dist/node/node-records.js.map +1 -1
- package/dist/node/node.d.ts.map +1 -1
- package/dist/node/node.js +152 -36
- package/dist/node/node.js.map +1 -1
- package/dist/node/space-checks.d.ts +3 -1
- package/dist/node/space-checks.d.ts.map +1 -1
- package/dist/node/space-checks.js +7 -3
- package/dist/node/space-checks.js.map +1 -1
- package/dist/node/space-holding.d.ts +5 -0
- package/dist/node/space-holding.d.ts.map +1 -1
- package/dist/node/space-holding.js +90 -5
- package/dist/node/space-holding.js.map +1 -1
- package/dist/node/space-lines.d.ts +3 -0
- package/dist/node/space-lines.d.ts.map +1 -1
- package/dist/node/space-lines.js +13 -1
- package/dist/node/space-lines.js.map +1 -1
- package/dist/node/space-membership.js +4 -4
- package/dist/node/space-membership.js.map +1 -1
- package/dist/node/space-mirrors.d.ts +1 -1
- package/dist/node/space-mirrors.d.ts.map +1 -1
- package/dist/node/space-mirrors.js +17 -5
- package/dist/node/space-mirrors.js.map +1 -1
- package/dist/node/space-peers.d.ts +7 -2
- package/dist/node/space-peers.d.ts.map +1 -1
- package/dist/node/space-peers.js +44 -10
- package/dist/node/space-peers.js.map +1 -1
- package/dist/node/space-runtime.d.ts +7 -3
- package/dist/node/space-runtime.d.ts.map +1 -1
- package/dist/node/space-runtime.js +32 -10
- package/dist/node/space-runtime.js.map +1 -1
- package/dist/node/space-standing.d.ts +1 -1
- package/dist/node/space-standing.d.ts.map +1 -1
- package/dist/node/space-standing.js +23 -42
- package/dist/node/space-standing.js.map +1 -1
- package/dist/node/space-warrants.js +1 -1
- package/dist/node/space-warrants.js.map +1 -1
- package/dist/node/space-writing.d.ts.map +1 -1
- package/dist/node/space-writing.js +21 -32
- package/dist/node/space-writing.js.map +1 -1
- package/dist/node/stores.d.ts +9 -57
- package/dist/node/stores.d.ts.map +1 -1
- package/dist/node/stores.js +1 -72
- package/dist/node/stores.js.map +1 -1
- package/dist/node/types.d.ts +19 -8
- package/dist/node/types.d.ts.map +1 -1
- package/dist/node/writer-keys.d.ts +15 -14
- package/dist/node/writer-keys.d.ts.map +1 -1
- package/dist/node/writer-keys.js +3 -115
- package/dist/node/writer-keys.js.map +1 -1
- package/dist/privacy/direct.d.ts +0 -7
- package/dist/privacy/direct.d.ts.map +1 -1
- package/dist/privacy/direct.js +2 -2
- package/dist/privacy/direct.js.map +1 -1
- package/dist/query/filter.d.ts +0 -2
- package/dist/query/filter.d.ts.map +1 -1
- package/dist/query/filter.js +1 -1
- package/dist/query/filter.js.map +1 -1
- package/dist/query/types.d.ts +2 -6
- package/dist/query/types.d.ts.map +1 -1
- package/dist/query/types.js.map +1 -1
- package/dist/records/key.d.ts +18 -19
- package/dist/records/key.d.ts.map +1 -1
- package/dist/records/key.js +55 -43
- package/dist/records/key.js.map +1 -1
- package/dist/records/links.js +1 -1
- package/dist/records/rules.d.ts +1 -1
- package/dist/records/rules.d.ts.map +1 -1
- package/dist/records/rules.js +6 -4
- package/dist/records/rules.js.map +1 -1
- package/dist/schemas/direct.d.ts +70 -0
- package/dist/schemas/direct.d.ts.map +1 -0
- package/dist/schemas/direct.js +39 -0
- package/dist/schemas/direct.js.map +1 -0
- package/dist/schemas/index.d.ts +10 -73
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +8 -66
- package/dist/schemas/index.js.map +1 -1
- package/dist/space/account-registry.d.ts +0 -3
- package/dist/space/account-registry.d.ts.map +1 -1
- package/dist/space/account-registry.js.map +1 -1
- package/dist/space/own-automations.d.ts +51 -95
- package/dist/space/own-automations.d.ts.map +1 -1
- package/dist/space/own-automations.js +100 -295
- package/dist/space/own-automations.js.map +1 -1
- package/dist/space/pass.d.ts +8 -3
- package/dist/space/pass.d.ts.map +1 -1
- package/dist/space/pass.js +4 -3
- package/dist/space/pass.js.map +1 -1
- package/dist/space/space-manager.d.ts +1 -3
- package/dist/space/space-manager.d.ts.map +1 -1
- package/dist/space/space-manager.js +5 -7
- package/dist/space/space-manager.js.map +1 -1
- package/dist/storage/body-cache.d.ts +29 -0
- package/dist/storage/body-cache.d.ts.map +1 -0
- package/dist/storage/body-cache.js +64 -0
- package/dist/storage/body-cache.js.map +1 -0
- package/dist/storage/encrypted-adapter.d.ts +0 -5
- package/dist/storage/encrypted-adapter.d.ts.map +1 -1
- package/dist/storage/encrypted-adapter.js +1 -1
- package/dist/storage/encrypted-adapter.js.map +1 -1
- package/dist/storage/mirror.d.ts.map +1 -1
- package/dist/storage/mirror.js +35 -16
- package/dist/storage/mirror.js.map +1 -1
- package/dist/storage/segment.d.ts +6 -2
- package/dist/storage/segment.d.ts.map +1 -1
- package/dist/storage/segment.js +8 -4
- package/dist/storage/segment.js.map +1 -1
- package/dist/storage/shared-store.d.ts +32 -0
- package/dist/storage/shared-store.d.ts.map +1 -0
- package/dist/storage/{folder-reconcile.js → shared-store.js} +15 -15
- package/dist/storage/shared-store.js.map +1 -0
- package/dist/storage/storage-provider.d.ts +19 -9
- package/dist/storage/storage-provider.d.ts.map +1 -1
- package/dist/storage/storage-provider.js +155 -62
- package/dist/storage/storage-provider.js.map +1 -1
- package/dist/sync/sync-engine.d.ts +17 -4
- package/dist/sync/sync-engine.d.ts.map +1 -1
- package/dist/sync/sync-engine.js +298 -84
- package/dist/sync/sync-engine.js.map +1 -1
- package/dist/sync/sync-messages.d.ts +5 -1
- package/dist/sync/sync-messages.d.ts.map +1 -1
- package/dist/sync/sync-messages.js +1 -1
- package/dist/sync/sync-messages.js.map +1 -1
- package/dist/types.d.ts +19 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +4 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/step.d.ts +8 -0
- package/dist/utils/step.d.ts.map +1 -0
- package/dist/utils/step.js +15 -0
- package/dist/utils/step.js.map +1 -0
- package/docs/README.md +4 -3
- package/docs/actions.md +41 -2
- package/docs/agents.md +13 -10
- package/docs/automations.md +16 -48
- package/docs/blueprints-and-guides.md +2 -2
- package/docs/bots.md +3 -3
- package/docs/building-an-app.md +2 -2
- package/docs/collections.md +2 -4
- package/docs/computed.md +1 -2
- package/docs/node.md +108 -40
- package/docs/proposing-collections.md +3 -3
- package/docs/query-format.md +6 -5
- package/docs/records-and-queries.md +12 -13
- package/docs/sign-in.md +16 -16
- package/docs/spaces.md +0 -5
- package/docs/standard-library.md +6 -8
- package/docs/storage.md +114 -22
- package/docs/usernames.md +1 -1
- package/package.json +15 -25
- package/dist/identity/account-store.d.ts +0 -83
- package/dist/identity/account-store.d.ts.map +0 -1
- package/dist/identity/account-store.js +0 -234
- package/dist/identity/account-store.js.map +0 -1
- package/dist/identity/device-key.d.ts +0 -26
- package/dist/identity/device-key.d.ts.map +0 -1
- package/dist/identity/device-key.js +0 -48
- package/dist/identity/device-key.js.map +0 -1
- package/dist/identity/idb.d.ts +0 -19
- package/dist/identity/idb.d.ts.map +0 -1
- package/dist/identity/idb.js +0 -56
- package/dist/identity/idb.js.map +0 -1
- package/dist/node/actions.d.ts +0 -85
- package/dist/node/actions.d.ts.map +0 -1
- package/dist/node/actions.js +0 -921
- package/dist/node/actions.js.map +0 -1
- package/dist/node/host.d.ts +0 -187
- package/dist/node/host.d.ts.map +0 -1
- package/dist/node/host.js +0 -818
- package/dist/node/host.js.map +0 -1
- package/dist/node/usage.d.ts +0 -32
- package/dist/node/usage.d.ts.map +0 -1
- package/dist/node/usage.js +0 -217
- package/dist/node/usage.js.map +0 -1
- package/dist/node/watch-notifications.d.ts +0 -25
- package/dist/node/watch-notifications.d.ts.map +0 -1
- package/dist/node/watch-notifications.js +0 -166
- package/dist/node/watch-notifications.js.map +0 -1
- package/dist/node/worker.d.ts +0 -83
- package/dist/node/worker.d.ts.map +0 -1
- package/dist/node/worker.js +0 -305
- package/dist/node/worker.js.map +0 -1
- package/dist/node-worker.d.ts +0 -2
- package/dist/node-worker.d.ts.map +0 -1
- package/dist/node-worker.js +0 -16
- package/dist/node-worker.js.map +0 -1
- package/dist/schemas/automations.d.ts +0 -390
- package/dist/schemas/automations.d.ts.map +0 -1
- package/dist/schemas/automations.js +0 -619
- package/dist/schemas/automations.js.map +0 -1
- package/dist/schemas/blueprints.d.ts +0 -122
- package/dist/schemas/blueprints.d.ts.map +0 -1
- package/dist/schemas/blueprints.js +0 -337
- package/dist/schemas/blueprints.js.map +0 -1
- package/dist/schemas/choosing.d.ts +0 -19
- package/dist/schemas/choosing.d.ts.map +0 -1
- package/dist/schemas/choosing.js +0 -69
- package/dist/schemas/choosing.js.map +0 -1
- package/dist/schemas/connectors.d.ts +0 -202
- package/dist/schemas/connectors.d.ts.map +0 -1
- package/dist/schemas/connectors.js +0 -140
- package/dist/schemas/connectors.js.map +0 -1
- package/dist/schemas/cron.d.ts +0 -14
- package/dist/schemas/cron.d.ts.map +0 -1
- package/dist/schemas/cron.js +0 -75
- package/dist/schemas/cron.js.map +0 -1
- package/dist/schemas/geo.d.ts +0 -63
- package/dist/schemas/geo.d.ts.map +0 -1
- package/dist/schemas/geo.js +0 -131
- package/dist/schemas/geo.js.map +0 -1
- package/dist/schemas/guides.d.ts +0 -26
- package/dist/schemas/guides.d.ts.map +0 -1
- package/dist/schemas/guides.js +0 -33
- package/dist/schemas/guides.js.map +0 -1
- package/dist/schemas/library/annotations.d.ts +0 -616
- package/dist/schemas/library/annotations.d.ts.map +0 -1
- package/dist/schemas/library/annotations.js +0 -156
- package/dist/schemas/library/annotations.js.map +0 -1
- package/dist/schemas/library/collections.d.ts +0 -211
- package/dist/schemas/library/collections.d.ts.map +0 -1
- package/dist/schemas/library/collections.js +0 -57
- package/dist/schemas/library/collections.js.map +0 -1
- package/dist/schemas/library/community.d.ts +0 -1136
- package/dist/schemas/library/community.d.ts.map +0 -1
- package/dist/schemas/library/community.js +0 -315
- package/dist/schemas/library/community.js.map +0 -1
- package/dist/schemas/library/life.d.ts +0 -1440
- package/dist/schemas/library/life.d.ts.map +0 -1
- package/dist/schemas/library/life.js +0 -202
- package/dist/schemas/library/life.js.map +0 -1
- package/dist/schemas/library/media.d.ts +0 -1002
- package/dist/schemas/library/media.d.ts.map +0 -1
- package/dist/schemas/library/media.js +0 -110
- package/dist/schemas/library/media.js.map +0 -1
- package/dist/schemas/library/money.d.ts +0 -1221
- package/dist/schemas/library/money.d.ts.map +0 -1
- package/dist/schemas/library/money.js +0 -168
- package/dist/schemas/library/money.js.map +0 -1
- package/dist/schemas/library/planning.d.ts +0 -1107
- package/dist/schemas/library/planning.d.ts.map +0 -1
- package/dist/schemas/library/planning.js +0 -214
- package/dist/schemas/library/planning.js.map +0 -1
- package/dist/schemas/library/publishing.d.ts +0 -1499
- package/dist/schemas/library/publishing.d.ts.map +0 -1
- package/dist/schemas/library/publishing.js +0 -285
- package/dist/schemas/library/publishing.js.map +0 -1
- package/dist/schemas/library/social.d.ts +0 -1257
- package/dist/schemas/library/social.d.ts.map +0 -1
- package/dist/schemas/library/social.js +0 -147
- package/dist/schemas/library/social.js.map +0 -1
- package/dist/schemas/standard.d.ts +0 -21
- package/dist/schemas/standard.d.ts.map +0 -1
- package/dist/schemas/standard.js +0 -39
- package/dist/schemas/standard.js.map +0 -1
- package/dist/session/account-hint.d.ts +0 -13
- package/dist/session/account-hint.d.ts.map +0 -1
- package/dist/session/account-hint.js +0 -54
- package/dist/session/account-hint.js.map +0 -1
- package/dist/session/auth.d.ts +0 -411
- package/dist/session/auth.d.ts.map +0 -1
- package/dist/session/auth.js +0 -1529
- package/dist/session/auth.js.map +0 -1
- package/dist/session/channel-room.d.ts +0 -26
- package/dist/session/channel-room.d.ts.map +0 -1
- package/dist/session/channel-room.js +0 -56
- package/dist/session/channel-room.js.map +0 -1
- package/dist/session/connect-code.d.ts +0 -127
- package/dist/session/connect-code.d.ts.map +0 -1
- package/dist/session/connect-code.js +0 -408
- package/dist/session/connect-code.js.map +0 -1
- package/dist/session/connect.d.ts +0 -386
- package/dist/session/connect.d.ts.map +0 -1
- package/dist/session/connect.js +0 -583
- package/dist/session/connect.js.map +0 -1
- package/dist/session/connection.d.ts +0 -135
- package/dist/session/connection.d.ts.map +0 -1
- package/dist/session/connection.js +0 -215
- package/dist/session/connection.js.map +0 -1
- package/dist/session/credentials.d.ts +0 -30
- package/dist/session/credentials.d.ts.map +0 -1
- package/dist/session/credentials.js +0 -63
- package/dist/session/credentials.js.map +0 -1
- package/dist/session/hosting.d.ts.map +0 -1
- package/dist/session/hosting.js.map +0 -1
- package/dist/session/index.d.ts +0 -29
- package/dist/session/index.d.ts.map +0 -1
- package/dist/session/index.js +0 -21
- package/dist/session/index.js.map +0 -1
- package/dist/session/pairing.d.ts +0 -97
- package/dist/session/pairing.d.ts.map +0 -1
- package/dist/session/pairing.js +0 -251
- package/dist/session/pairing.js.map +0 -1
- package/dist/session/password-strength.d.ts +0 -22
- package/dist/session/password-strength.d.ts.map +0 -1
- package/dist/session/password-strength.js +0 -130
- package/dist/session/password-strength.js.map +0 -1
- package/dist/session/places.d.ts +0 -71
- package/dist/session/places.d.ts.map +0 -1
- package/dist/session/places.js +0 -130
- package/dist/session/places.js.map +0 -1
- package/dist/session/popup.d.ts +0 -13
- package/dist/session/popup.d.ts.map +0 -1
- package/dist/session/popup.js +0 -23
- package/dist/session/popup.js.map +0 -1
- package/dist/session/stay-signed-in.d.ts +0 -49
- package/dist/session/stay-signed-in.d.ts.map +0 -1
- package/dist/session/stay-signed-in.js +0 -141
- package/dist/session/stay-signed-in.js.map +0 -1
- package/dist/storage/blob/directory.d.ts +0 -14
- package/dist/storage/blob/directory.d.ts.map +0 -1
- package/dist/storage/blob/directory.js +0 -87
- package/dist/storage/blob/directory.js.map +0 -1
- package/dist/storage/blob/memory.d.ts +0 -6
- package/dist/storage/blob/memory.d.ts.map +0 -1
- package/dist/storage/blob/memory.js +0 -20
- package/dist/storage/blob/memory.js.map +0 -1
- package/dist/storage/blob/s3.d.ts +0 -16
- package/dist/storage/blob/s3.d.ts.map +0 -1
- package/dist/storage/blob/s3.js +0 -91
- package/dist/storage/blob/s3.js.map +0 -1
- package/dist/storage/directory-access.d.ts +0 -36
- package/dist/storage/directory-access.d.ts.map +0 -1
- package/dist/storage/directory-access.js +0 -89
- package/dist/storage/directory-access.js.map +0 -1
- package/dist/storage/folder-adapter.d.ts +0 -94
- package/dist/storage/folder-adapter.d.ts.map +0 -1
- package/dist/storage/folder-adapter.js +0 -215
- package/dist/storage/folder-adapter.js.map +0 -1
- package/dist/storage/folder-reconcile.d.ts +0 -33
- package/dist/storage/folder-reconcile.d.ts.map +0 -1
- package/dist/storage/folder-reconcile.js.map +0 -1
- package/dist/storage/index.d.ts +0 -6
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/index.js +0 -5
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/indexeddb-adapter.d.ts +0 -8
- package/dist/storage/indexeddb-adapter.d.ts.map +0 -1
- package/dist/storage/indexeddb-adapter.js +0 -103
- package/dist/storage/indexeddb-adapter.js.map +0 -1
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Automations: "when a channel has more than 10 messages, post in it". Not the
|
|
3
|
-
* rules a definition carries, which every peer checks (spec 02 §7) and which
|
|
4
|
-
* can only refuse; these act, as whoever runs them.
|
|
5
|
-
*
|
|
6
|
-
* An automation is an ordinary record (`std.automation`), so everyone in the space can see
|
|
7
|
-
* what runs and who made it. What sets it off is a query, in the format
|
|
8
|
-
* `records.query` takes, and a condition over each result, in the language of
|
|
9
|
-
* checks, that may read what the query's `include` found; or the times it
|
|
10
|
-
* names (`every`). It does one thing: notify, add a record, change the record,
|
|
11
|
-
* or ask an agent. Its maker's own devices and agent run it, or, with `by`, a
|
|
12
|
-
* bot the maker may instruct. Whatever it writes is written as its runner, so
|
|
13
|
-
* an automation can do nothing its runner couldn't do by hand.
|
|
14
|
-
*
|
|
15
|
-
* Each time it acts on a record it leaves a run (`std.automation-run`), one per
|
|
16
|
-
* rule per record by construction (`onePer`): that is how it acts once for
|
|
17
|
-
* each record, whichever device or agent looks, and the automation's history for
|
|
18
|
-
* anyone. A run names the record the automation wrote, and nothing an automation wrote sets
|
|
19
|
-
* off an automation: "when a message is added, post a message" would otherwise answer
|
|
20
|
-
* itself forever, and so would two automations that answer each other.
|
|
21
|
-
*
|
|
22
|
-
* Not protocol: a peer that has never heard of automations syncs and judges these
|
|
23
|
-
* records like any other. See `packages/core/docs/automations.md`.
|
|
24
|
-
*/
|
|
25
|
-
import type { NodeRecord, P2PNode, SpaceAccess } from '../node/types.js';
|
|
26
|
-
import { type BodyOf, type Filter, type Query, type QueryRecord } from '../query/types.js';
|
|
27
|
-
/** A link an automation's new record carries: to a record by key, or to `$it`, the record the automation holds for */
|
|
28
|
-
export interface AutomationLink {
|
|
29
|
-
readonly rel: string;
|
|
30
|
-
readonly to: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* What an automation does. In text, `{title}` is what the record is called,
|
|
34
|
-
* `{<include>}` how many an include found. `add` makes a record in any
|
|
35
|
-
* collection one line of text can make one of (`quickAddBody`): a message, a
|
|
36
|
-
* comment, a task, or one someone defined yesterday, with the links it names.
|
|
37
|
-
* `ask` gives its text, in the maker's words, to an agent that runs automations.
|
|
38
|
-
*/
|
|
39
|
-
export type AutomationAction = {
|
|
40
|
-
readonly kind: 'notify';
|
|
41
|
-
readonly text: string;
|
|
42
|
-
} | {
|
|
43
|
-
readonly kind: 'add';
|
|
44
|
-
readonly collection: string;
|
|
45
|
-
readonly text: string;
|
|
46
|
-
readonly links?: ReadonlyArray<AutomationLink>;
|
|
47
|
-
} | {
|
|
48
|
-
readonly kind: 'set';
|
|
49
|
-
readonly field: string;
|
|
50
|
-
readonly value: string | number | boolean;
|
|
51
|
-
} | {
|
|
52
|
-
readonly kind: 'ask';
|
|
53
|
-
readonly text: string;
|
|
54
|
-
};
|
|
55
|
-
/** What sets an automation off: the records a query finds, those a condition holds for */
|
|
56
|
-
export interface AutomationWhen {
|
|
57
|
-
/** `records.query`'s format; `include` is how an automation counts or reads what points at a record */
|
|
58
|
-
readonly query: Query;
|
|
59
|
-
/** A filter over each result, which may also read `include:<name>`, what the query included (`checkFilter`) */
|
|
60
|
-
readonly holds?: Filter;
|
|
61
|
-
/** Only records by someone holding one of these roles: a role name, or `member` for any */
|
|
62
|
-
readonly from?: ReadonlyArray<string>;
|
|
63
|
-
/** Only records someone other than its runner wrote */
|
|
64
|
-
readonly others?: boolean;
|
|
65
|
-
}
|
|
66
|
-
/** The spaces an account's own automation looks at: every space of the account, or these */
|
|
67
|
-
export type AutomationSpaces = 'all' | ReadonlyArray<string>;
|
|
68
|
-
/** The app that proposed an account's own automation, by the origin the browser reported */
|
|
69
|
-
export interface AutomationApp {
|
|
70
|
-
readonly origin: string;
|
|
71
|
-
/** What the app called itself. Shown, never trusted. */
|
|
72
|
-
readonly name?: string;
|
|
73
|
-
}
|
|
74
|
-
/** The body of a `std.automation` record, or of an account's own automation */
|
|
75
|
-
export interface Automation {
|
|
76
|
-
/** What people call it */
|
|
77
|
-
readonly name: string;
|
|
78
|
-
/** What records set it off. An automation has this, `every`, or both. */
|
|
79
|
-
readonly when?: AutomationWhen;
|
|
80
|
-
/** When it runs by itself: five cron fields, minute hour day month weekday, in the runner's local time */
|
|
81
|
-
readonly every?: string;
|
|
82
|
-
/** What it does */
|
|
83
|
-
readonly then: AutomationAction;
|
|
84
|
-
/** The DID of the bot that runs it, when its maker may instruct bots here; else its maker's own devices and agent */
|
|
85
|
-
readonly by?: string;
|
|
86
|
-
/** How an app's builder showed it, so it can be shown and changed again. Never read to run it. */
|
|
87
|
-
readonly picked?: Readonly<Record<string, unknown>>;
|
|
88
|
-
/** Kept, but not run */
|
|
89
|
-
readonly paused?: boolean;
|
|
90
|
-
/** Nothing that came to hold before this sets it off */
|
|
91
|
-
readonly since: string;
|
|
92
|
-
/**
|
|
93
|
-
* The spaces it looks at, for one kept in the account's registry rather
|
|
94
|
-
* than in a space (`space/own-automations.ts`)
|
|
95
|
-
*/
|
|
96
|
-
readonly spaces?: AutomationSpaces;
|
|
97
|
-
/** Where clicking its notification goes: an app's `https://` address. Default: the account home. */
|
|
98
|
-
readonly open?: string;
|
|
99
|
-
/** The app that proposed it. Absent: the person made it themselves. */
|
|
100
|
-
readonly app?: AutomationApp;
|
|
101
|
-
}
|
|
102
|
-
export type AutomationRun = BodyOf<typeof automationRun>;
|
|
103
|
-
export declare const automation: {
|
|
104
|
-
readonly name: "std.automation";
|
|
105
|
-
readonly title: "Automation";
|
|
106
|
-
readonly description: "When records in the space are a certain way, or at set times, do something.";
|
|
107
|
-
readonly schema: {
|
|
108
|
-
readonly type: "object";
|
|
109
|
-
readonly properties: {
|
|
110
|
-
readonly name: {
|
|
111
|
-
type: 'string';
|
|
112
|
-
minLength?: number | undefined;
|
|
113
|
-
maxLength: number;
|
|
114
|
-
};
|
|
115
|
-
readonly when: {
|
|
116
|
-
readonly type: "object";
|
|
117
|
-
};
|
|
118
|
-
readonly every: {
|
|
119
|
-
type: 'string';
|
|
120
|
-
minLength?: number | undefined;
|
|
121
|
-
maxLength: number;
|
|
122
|
-
};
|
|
123
|
-
readonly then: {
|
|
124
|
-
readonly type: "object";
|
|
125
|
-
};
|
|
126
|
-
readonly by: {
|
|
127
|
-
type: 'string';
|
|
128
|
-
minLength?: number | undefined;
|
|
129
|
-
maxLength: number;
|
|
130
|
-
} & {
|
|
131
|
-
readonly 'x-kind': "did";
|
|
132
|
-
};
|
|
133
|
-
readonly picked: {
|
|
134
|
-
readonly type: "object";
|
|
135
|
-
};
|
|
136
|
-
readonly paused: {
|
|
137
|
-
readonly type: "boolean";
|
|
138
|
-
};
|
|
139
|
-
readonly since: {
|
|
140
|
-
type: 'string';
|
|
141
|
-
minLength?: number | undefined;
|
|
142
|
-
maxLength: number;
|
|
143
|
-
} & {
|
|
144
|
-
readonly 'x-kind': "when";
|
|
145
|
-
};
|
|
146
|
-
readonly spaces: {
|
|
147
|
-
readonly description: "Every space of the account (\"all\"), or a list of their ids";
|
|
148
|
-
};
|
|
149
|
-
readonly open: {
|
|
150
|
-
type: 'string';
|
|
151
|
-
minLength?: number | undefined;
|
|
152
|
-
maxLength: number;
|
|
153
|
-
};
|
|
154
|
-
readonly app: {
|
|
155
|
-
readonly type: "object";
|
|
156
|
-
readonly properties: {
|
|
157
|
-
origin: {
|
|
158
|
-
type: 'string';
|
|
159
|
-
minLength?: number | undefined;
|
|
160
|
-
maxLength: number;
|
|
161
|
-
};
|
|
162
|
-
name: {
|
|
163
|
-
type: 'string';
|
|
164
|
-
minLength?: number | undefined;
|
|
165
|
-
maxLength: number;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
readonly required: readonly ["origin"];
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
readonly required: readonly ["name", "then", "since"];
|
|
172
|
-
};
|
|
173
|
-
} & import("../index.js").Typed<Automation>;
|
|
174
|
-
export declare const automationRun: {
|
|
175
|
-
readonly name: "std.automation-run";
|
|
176
|
-
readonly title: "Automation run";
|
|
177
|
-
readonly description: "An automation acted on a record: once each, whichever device did it.";
|
|
178
|
-
readonly schema: {
|
|
179
|
-
readonly type: "object";
|
|
180
|
-
readonly properties: {
|
|
181
|
-
readonly did: {
|
|
182
|
-
type: 'string';
|
|
183
|
-
minLength?: number | undefined;
|
|
184
|
-
maxLength: number;
|
|
185
|
-
};
|
|
186
|
-
readonly ok: {
|
|
187
|
-
readonly type: "boolean";
|
|
188
|
-
};
|
|
189
|
-
readonly at: {
|
|
190
|
-
type: 'string';
|
|
191
|
-
minLength?: number | undefined;
|
|
192
|
-
maxLength: number;
|
|
193
|
-
} & {
|
|
194
|
-
readonly 'x-kind': "when";
|
|
195
|
-
};
|
|
196
|
-
readonly made: {
|
|
197
|
-
type: 'string';
|
|
198
|
-
minLength?: number | undefined;
|
|
199
|
-
maxLength: number;
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
readonly required: readonly ["did", "ok", "at"];
|
|
203
|
-
};
|
|
204
|
-
readonly links: {
|
|
205
|
-
automation: import("../records/links.js").LinkDeclaration;
|
|
206
|
-
about: import("../records/links.js").LinkDeclaration;
|
|
207
|
-
};
|
|
208
|
-
readonly rules: {
|
|
209
|
-
readonly onePer: readonly ["link:automation", "link:about"];
|
|
210
|
-
};
|
|
211
|
-
} & import("../index.js").Typed<{
|
|
212
|
-
readonly did: string;
|
|
213
|
-
readonly ok: boolean;
|
|
214
|
-
readonly at: string;
|
|
215
|
-
readonly made?: string | undefined;
|
|
216
|
-
}>;
|
|
217
|
-
/** Where a bot, an agent or anyone's work on something stands */
|
|
218
|
-
export type ActivityState = 'working' | 'waiting' | 'done' | 'failed';
|
|
219
|
-
export declare const ACTIVITY_STATES: ReadonlyArray<ActivityState>;
|
|
220
|
-
export type Activity = BodyOf<typeof activity>;
|
|
221
|
-
/**
|
|
222
|
-
* Someone at work on a record, for apps to show while it lasts: "My bot is
|
|
223
|
-
* replying…" under a message, a spinner on a task. One per account per
|
|
224
|
-
* record, changed in place as the work goes on. Its writer's word, like a
|
|
225
|
-
* status, and only theirs to change.
|
|
226
|
-
*/
|
|
227
|
-
export declare const activity: {
|
|
228
|
-
readonly name: "std.activity";
|
|
229
|
-
readonly title: "Activity";
|
|
230
|
-
readonly description: "Someone at work on a record: working, waiting, done or failed.";
|
|
231
|
-
readonly schema: {
|
|
232
|
-
readonly type: "object";
|
|
233
|
-
readonly properties: {
|
|
234
|
-
readonly state: {
|
|
235
|
-
readonly type: "string";
|
|
236
|
-
readonly enum: readonly ActivityState[];
|
|
237
|
-
};
|
|
238
|
-
readonly label: {
|
|
239
|
-
type: 'string';
|
|
240
|
-
minLength?: number | undefined;
|
|
241
|
-
maxLength: number;
|
|
242
|
-
};
|
|
243
|
-
readonly at: {
|
|
244
|
-
type: 'string';
|
|
245
|
-
minLength?: number | undefined;
|
|
246
|
-
maxLength: number;
|
|
247
|
-
} & {
|
|
248
|
-
readonly 'x-kind': "when";
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
readonly required: readonly ["state", "at"];
|
|
252
|
-
};
|
|
253
|
-
readonly links: {
|
|
254
|
-
about: import("../records/links.js").LinkDeclaration;
|
|
255
|
-
};
|
|
256
|
-
readonly rules: {
|
|
257
|
-
readonly onePer: readonly ["@author", "link:about"];
|
|
258
|
-
};
|
|
259
|
-
} & import("../index.js").Typed<{
|
|
260
|
-
readonly state: ActivityState;
|
|
261
|
-
readonly label?: string | undefined;
|
|
262
|
-
readonly at: string;
|
|
263
|
-
}>;
|
|
264
|
-
/**
|
|
265
|
-
* How long a `working` or `waiting` activity is believed without a change:
|
|
266
|
-
* one whose writer went away mid-way would otherwise show forever.
|
|
267
|
-
*/
|
|
268
|
-
export declare const ACTIVITY_STALE_SECONDS = 300;
|
|
269
|
-
/** Whether an activity says someone is at work on it now: working or waiting, and not gone stale */
|
|
270
|
-
export declare function activeNow(body: Activity | null | undefined, now?: number): boolean;
|
|
271
|
-
/**
|
|
272
|
-
* Says where this account's work on a record stands: its one `std.activity`
|
|
273
|
-
* about it, made or changed. Without a label, the one it had stays. Null
|
|
274
|
-
* where the space keeps no `std.activity`.
|
|
275
|
-
*/
|
|
276
|
-
export declare function setActivity(node: P2PNode, space: string, on: string, state: ActivityState, label?: string): Promise<NodeRecord | null>;
|
|
277
|
-
/** In an action, the record the automation holds for */
|
|
278
|
-
export declare const IT = "$it";
|
|
279
|
-
/** In an automation's query or condition, whoever runs it: its maker, or the bot named in `by` */
|
|
280
|
-
export declare const ME = "$me";
|
|
281
|
-
/**
|
|
282
|
-
* The command a maker needs a grant of in a space for a bot there to run
|
|
283
|
-
* their rules: a library command, which no peer checks (docs/automations.md)
|
|
284
|
-
*/
|
|
285
|
-
export declare const INSTRUCT: string;
|
|
286
|
-
/** Why this can't be an automation, or null when it can */
|
|
287
|
-
export declare function checkAutomation(value: unknown): string | null;
|
|
288
|
-
/** An automation record's body, when it is one */
|
|
289
|
-
export declare const automationOf: (record: {
|
|
290
|
-
readonly body: unknown;
|
|
291
|
-
}) => Automation | null;
|
|
292
|
-
/** `$me` wherever it is a value, as the account running the automation */
|
|
293
|
-
export declare function asRunner<T>(value: T, me: string): T;
|
|
294
|
-
/** One record an automation holds for now */
|
|
295
|
-
export interface AutomationMatch {
|
|
296
|
-
readonly record: QueryRecord;
|
|
297
|
-
/** What its query's `include` found, as the condition read it: a count as a number */
|
|
298
|
-
readonly included: Readonly<Record<string, unknown>>;
|
|
299
|
-
/** When it came to hold: its last change, or the newest record an include found or its computed fields read */
|
|
300
|
-
readonly moment: number;
|
|
301
|
-
/**
|
|
302
|
-
* What made it hold: the record itself, or the record a computed field read
|
|
303
|
-
* (`causeOf`). `from`, `others` and "not by the runner's own agent" judge its writer.
|
|
304
|
-
* Absent: the record.
|
|
305
|
-
*/
|
|
306
|
-
readonly cause?: NodeRecord;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* The records an automation holds for now, most recently changed first, for `me`,
|
|
310
|
-
* who runs it. Includes that count are run as lists and counted here, so the
|
|
311
|
-
* newest of them can tell when the automation came to hold.
|
|
312
|
-
*/
|
|
313
|
-
export declare function matching(node: P2PNode, space: string, ruleWhen: AutomationWhen, me: string, limit?: number): Promise<ReadonlyArray<AutomationMatch>>;
|
|
314
|
-
/** What a record is called, for `{title}`: its first text among the usual names, or its key */
|
|
315
|
-
declare function titleOf(record: QueryRecord): string;
|
|
316
|
-
/** `{title}`, and `{<include>}` as a count, filled in */
|
|
317
|
-
export declare function fillAutomationText(text: string, match: Pick<AutomationMatch, 'record' | 'included'> | undefined, title?: typeof titleOf): string;
|
|
318
|
-
/** An automation as it runs: where it is kept, who made it, and what it says */
|
|
319
|
-
export interface ActiveAutomation {
|
|
320
|
-
readonly space: string;
|
|
321
|
-
readonly key: string;
|
|
322
|
-
/** The account that made it */
|
|
323
|
-
readonly maker: string;
|
|
324
|
-
readonly body: Automation;
|
|
325
|
-
}
|
|
326
|
-
/** An automation set off: by a record it came to hold for, or by the time */
|
|
327
|
-
export interface AutomationTrigger {
|
|
328
|
-
readonly automation: ActiveAutomation;
|
|
329
|
-
readonly match?: AutomationMatch;
|
|
330
|
-
/** When a time set it off */
|
|
331
|
-
readonly at?: Date;
|
|
332
|
-
}
|
|
333
|
-
/** What a device does for an automation's `notify`: shows it, and says whether it could */
|
|
334
|
-
export type AutomationNotifier = (title: string, text: string, record?: QueryRecord) => boolean;
|
|
335
|
-
export interface RunAutomationsOptions {
|
|
336
|
-
/** A bot, running as an account of its own: nothing it writes sets an automation off */
|
|
337
|
-
readonly bot?: boolean;
|
|
338
|
-
/** Shows a notification. Without it, a `notify` automation's run says nothing could. */
|
|
339
|
-
readonly notify?: AutomationNotifier;
|
|
340
|
-
/** Does what an automation asks an agent. Without it, automations that ask are left to a runner that can. */
|
|
341
|
-
readonly ask?: (trigger: AutomationTrigger) => Promise<Pick<AutomationRun, 'did' | 'ok'>>;
|
|
342
|
-
/** What a record is called, for `{title}` */
|
|
343
|
-
readonly title?: (record: QueryRecord) => string;
|
|
344
|
-
/** Records being acted on now, shared across calls so a second look leaves them alone */
|
|
345
|
-
readonly busy?: Set<string>;
|
|
346
|
-
/**
|
|
347
|
-
* How long to wait after claiming a record before acting, to hear whether a
|
|
348
|
-
* device of the same account claimed it too; the earlier claim acts and the
|
|
349
|
-
* later steps back. 0, the default, doesn't wait.
|
|
350
|
-
*/
|
|
351
|
-
readonly claimMs?: number;
|
|
352
|
-
/** Each time an automation acted */
|
|
353
|
-
readonly onRun?: (trigger: AutomationTrigger, run: AutomationRun) => void;
|
|
354
|
-
}
|
|
355
|
-
/** Does what an automation says, as whoever runs it; says what happened */
|
|
356
|
-
export declare function act(node: P2PNode, trigger: AutomationTrigger, options?: RunAutomationsOptions): Promise<AutomationRun>;
|
|
357
|
-
/**
|
|
358
|
-
* The automations in a space that `account` runs, none paused and none whose
|
|
359
|
-
* current version an agent wrote: those it made without `by`, and those
|
|
360
|
-
* naming it in `by` whose maker may instruct it here (`std.automation/instruct`).
|
|
361
|
-
*/
|
|
362
|
-
export declare function automationsFor(node: P2PNode, space: string, account: string, access?: SpaceAccess): Promise<ReadonlyArray<ActiveAutomation>>;
|
|
363
|
-
/** How many automations in a space an agent wrote for `account`, waiting for the person to save them */
|
|
364
|
-
export declare function suggestedAutomations(node: P2PNode, space: string, account: string): Promise<number>;
|
|
365
|
-
/**
|
|
366
|
-
* Runs, once, every automation `account` runs in a space: acts for each record
|
|
367
|
-
* an automation newly holds for, and leaves a run for it. `startAutomations`
|
|
368
|
-
* calls it when records change; a device can call it itself.
|
|
369
|
-
*/
|
|
370
|
-
export declare function runAutomations(node: P2PNode, space: string, account: string, options?: RunAutomationsOptions): Promise<void>;
|
|
371
|
-
export interface StartAutomationsOptions extends RunAutomationsOptions {
|
|
372
|
-
/** The account running them: a person's, for their app or agent, or a bot's own */
|
|
373
|
-
readonly account: string;
|
|
374
|
-
/** Whether automations run at the times they name; an app open now and then leaves that to an always-on runner. Default true. */
|
|
375
|
-
readonly timed?: boolean;
|
|
376
|
-
/** Called with the automations it runs, whenever they change */
|
|
377
|
-
readonly onRules?: (rules: ReadonlyArray<ActiveAutomation>) => void;
|
|
378
|
-
readonly onError?: (error: unknown) => void;
|
|
379
|
-
/** How often the time is checked against `every`. Default 15 s. */
|
|
380
|
-
readonly tickMs?: number;
|
|
381
|
-
readonly now?: () => Date;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Runs the automations `account` runs, in every space it follows, until stopped:
|
|
385
|
-
* once at the start, after each change in a space, and at the times automations
|
|
386
|
-
* name. The one loop every runner uses, an app, `minca agent` or a bot.
|
|
387
|
-
*/
|
|
388
|
-
export declare function startAutomations(node: P2PNode, options: StartAutomationsOptions): () => void;
|
|
389
|
-
export {};
|
|
390
|
-
//# sourceMappingURL=automations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/schemas/automations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAU3B,sHAAsH;AACtH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,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