@prestack/thread 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +192 -0
- package/dist/attach.d.ts +1 -0
- package/dist/attach.js +1 -0
- package/dist/core/actor.d.ts +12 -0
- package/dist/core/actor.js +8 -0
- package/dist/core/asking.d.ts +180 -0
- package/dist/core/asking.js +1109 -0
- package/dist/core/attach.d.ts +54 -0
- package/dist/core/attach.js +510 -0
- package/dist/core/chain.d.ts +16 -0
- package/dist/core/chain.js +114 -0
- package/dist/core/cli.d.ts +2 -0
- package/dist/core/cli.js +1682 -0
- package/dist/core/condition.d.ts +52 -0
- package/dist/core/condition.js +198 -0
- package/dist/core/descend.d.ts +81 -0
- package/dist/core/descend.js +879 -0
- package/dist/core/finding.d.ts +12 -0
- package/dist/core/finding.js +23 -0
- package/dist/core/generators/meta.d.ts +2 -0
- package/dist/core/generators/meta.js +823 -0
- package/dist/core/init.d.ts +15 -0
- package/dist/core/init.js +134 -0
- package/dist/core/invoked.d.ts +9 -0
- package/dist/core/invoked.js +41 -0
- package/dist/core/round.d.ts +1 -0
- package/dist/core/round.js +57 -0
- package/dist/core/rows.d.ts +26 -0
- package/dist/core/rows.js +354 -0
- package/dist/core/scope.d.ts +6 -0
- package/dist/core/scope.js +12 -0
- package/dist/core/thread.d.ts +26 -0
- package/dist/core/thread.js +5 -0
- package/dist/core/tree.d.ts +12 -0
- package/dist/core/tree.js +56 -0
- package/dist/core/types.d.ts +49 -0
- package/dist/core/types.js +311 -0
- package/dist/derivation/attach.d.ts +2 -0
- package/dist/derivation/attach.js +61 -0
- package/dist/derivation/generators/build.d.ts +16 -0
- package/dist/derivation/generators/build.js +217 -0
- package/dist/derivation/generators/check.d.ts +18 -0
- package/dist/derivation/generators/check.js +78 -0
- package/dist/derivation/generators/derivation.d.ts +3 -0
- package/dist/derivation/generators/derivation.js +273 -0
- package/dist/derivation/generators/determinism.d.ts +20 -0
- package/dist/derivation/generators/determinism.js +110 -0
- package/dist/derivation/generators/release.d.ts +3 -0
- package/dist/derivation/generators/release.js +183 -0
- package/dist/derivation/makers/release.d.ts +1 -0
- package/dist/derivation/makers/release.js +107 -0
- package/dist/derivation/release.d.ts +10 -0
- package/dist/derivation/release.js +12 -0
- package/dist/integrations/attach.d.ts +6 -0
- package/dist/integrations/attach.js +177 -0
- package/dist/integrations/generators/read.d.ts +1 -0
- package/dist/integrations/generators/read.js +92 -0
- package/dist/integrations/generators/sdk.d.ts +1 -0
- package/dist/integrations/generators/sdk.js +148 -0
- package/dist/integrations/generators/secret.d.ts +1 -0
- package/dist/integrations/generators/secret.js +233 -0
- package/dist/integrations/generators/target.d.ts +1 -0
- package/dist/integrations/generators/target.js +765 -0
- package/dist/integrations/generators/vault.d.ts +1 -0
- package/dist/integrations/generators/vault.js +164 -0
- package/dist/integrations/sdk.d.ts +6 -0
- package/dist/integrations/sdk.js +151 -0
- package/dist/integrations/secret.d.ts +16 -0
- package/dist/integrations/secret.js +30 -0
- package/dist/integrations/target.d.ts +49 -0
- package/dist/integrations/target.js +225 -0
- package/dist/integrations/vault.d.ts +12 -0
- package/dist/integrations/vault.js +104 -0
- package/dist/integrity/attach.d.ts +2 -0
- package/dist/integrity/attach.js +213 -0
- package/dist/integrity/check-threads.d.ts +10 -0
- package/dist/integrity/check-threads.js +153 -0
- package/dist/integrity/constraint.d.ts +16 -0
- package/dist/integrity/constraint.js +1105 -0
- package/dist/integrity/generators/compiler.d.ts +1 -0
- package/dist/integrity/generators/compiler.js +130 -0
- package/dist/integrity/generators/gate.d.ts +1 -0
- package/dist/integrity/generators/gate.js +172 -0
- package/dist/integrity/generators/issues.d.ts +1 -0
- package/dist/integrity/generators/issues.js +100 -0
- package/dist/integrity/generators/publish.d.ts +1 -0
- package/dist/integrity/generators/publish.js +186 -0
- package/dist/integrity/generators/rule.d.ts +2 -0
- package/dist/integrity/generators/rule.js +213 -0
- package/dist/integrity/generators/seal.d.ts +4 -0
- package/dist/integrity/generators/seal.js +101 -0
- package/dist/integrity/generators/trial.d.ts +39 -0
- package/dist/integrity/generators/trial.js +254 -0
- package/dist/integrity/lint.d.ts +50 -0
- package/dist/integrity/lint.js +161 -0
- package/dist/integrity/lsp/bin.d.ts +2 -0
- package/dist/integrity/lsp/bin.js +35 -0
- package/dist/integrity/lsp/diagnostics.d.ts +25 -0
- package/dist/integrity/lsp/diagnostics.js +57 -0
- package/dist/integrity/lsp/findings.d.ts +20 -0
- package/dist/integrity/lsp/findings.js +39 -0
- package/dist/integrity/lsp/lint.d.ts +7 -0
- package/dist/integrity/lsp/lint.js +95 -0
- package/dist/integrity/lsp/protocol.d.ts +20 -0
- package/dist/integrity/lsp/protocol.js +57 -0
- package/dist/integrity/lsp/server.d.ts +15 -0
- package/dist/integrity/lsp/server.js +171 -0
- package/dist/integrity/sealed.d.ts +1 -0
- package/dist/integrity/sealed.js +56 -0
- package/dist/integrity/slopnator.d.ts +90 -0
- package/dist/integrity/slopnator.js +267 -0
- package/dist/integrity/slopnators/sl_broken_lineage.d.ts +2 -0
- package/dist/integrity/slopnators/sl_broken_lineage.js +35 -0
- package/dist/integrity/slopnators/sl_declared_elsewhere.d.ts +2 -0
- package/dist/integrity/slopnators/sl_declared_elsewhere.js +33 -0
- package/dist/integrity/slopnators/sl_derived_drift.d.ts +8 -0
- package/dist/integrity/slopnators/sl_derived_drift.js +91 -0
- package/dist/integrity/slopnators/sl_hardcoded_style.d.ts +2 -0
- package/dist/integrity/slopnators/sl_hardcoded_style.js +46 -0
- package/dist/integrity/slopnators/sl_inert_island.d.ts +2 -0
- package/dist/integrity/slopnators/sl_inert_island.js +85 -0
- package/dist/integrity/slopnators/sl_inert_slopnator.d.ts +2 -0
- package/dist/integrity/slopnators/sl_inert_slopnator.js +76 -0
- package/dist/integrity/slopnators/sl_missing_row.d.ts +2 -0
- package/dist/integrity/slopnators/sl_missing_row.js +180 -0
- package/dist/integrity/slopnators/sl_no_barrel.d.ts +2 -0
- package/dist/integrity/slopnators/sl_no_barrel.js +41 -0
- package/dist/integrity/slopnators/sl_no_child_process.d.ts +2 -0
- package/dist/integrity/slopnators/sl_no_child_process.js +61 -0
- package/dist/integrity/slopnators/sl_no_comment.d.ts +2 -0
- package/dist/integrity/slopnators/sl_no_comment.js +41 -0
- package/dist/integrity/slopnators/sl_no_dispatch_bypass.d.ts +2 -0
- package/dist/integrity/slopnators/sl_no_dispatch_bypass.js +301 -0
- package/dist/integrity/slopnators/sl_no_import_cycle.d.ts +2 -0
- package/dist/integrity/slopnators/sl_no_import_cycle.js +42 -0
- package/dist/integrity/slopnators/sl_no_such_command.d.ts +2 -0
- package/dist/integrity/slopnators/sl_no_such_command.js +55 -0
- package/dist/integrity/slopnators/sl_only_takes_a_literal.d.ts +2 -0
- package/dist/integrity/slopnators/sl_only_takes_a_literal.js +59 -0
- package/dist/integrity/slopnators/sl_secret_literal.d.ts +2 -0
- package/dist/integrity/slopnators/sl_secret_literal.js +89 -0
- package/dist/integrity/slopnators/sl_stale_path.d.ts +2 -0
- package/dist/integrity/slopnators/sl_stale_path.js +92 -0
- package/dist/integrity/slopnators/sl_twice_meant.d.ts +2 -0
- package/dist/integrity/slopnators/sl_twice_meant.js +30 -0
- package/dist/integrity/slopnators/sl_twice_parented.d.ts +2 -0
- package/dist/integrity/slopnators/sl_twice_parented.js +34 -0
- package/dist/integrity/slopnators/sl_undeclared_crossing.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undeclared_crossing.js +78 -0
- package/dist/integrity/slopnators/sl_undeclared_destination.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undeclared_destination.js +56 -0
- package/dist/integrity/slopnators/sl_undeclared_element.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undeclared_element.js +34 -0
- package/dist/integrity/slopnators/sl_undeclared_node.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undeclared_node.js +59 -0
- package/dist/integrity/slopnators/sl_undeclared_operation.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undeclared_operation.js +120 -0
- package/dist/integrity/slopnators/sl_undeclared_variant.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undeclared_variant.js +117 -0
- package/dist/integrity/slopnators/sl_undescribed.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undescribed.js +54 -0
- package/dist/integrity/slopnators/sl_ungoverned_island.d.ts +2 -0
- package/dist/integrity/slopnators/sl_ungoverned_island.js +58 -0
- package/dist/integrity/slopnators/sl_unkept_rows.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unkept_rows.js +104 -0
- package/dist/integrity/slopnators/sl_unnamed_island.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unnamed_island.js +37 -0
- package/dist/integrity/slopnators/sl_unpaired_member.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unpaired_member.js +114 -0
- package/dist/integrity/slopnators/sl_unpaired_slopnator.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unpaired_slopnator.js +60 -0
- package/dist/integrity/slopnators/sl_unprefixed_member.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unprefixed_member.js +126 -0
- package/dist/integrity/slopnators/sl_unseamed_reach.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unseamed_reach.js +73 -0
- package/dist/integrity/slopnators/sl_unthreaded.d.ts +56 -0
- package/dist/integrity/slopnators/sl_unthreaded.js +352 -0
- package/dist/integrity/slopnators/sl_untranslated_key.d.ts +2 -0
- package/dist/integrity/slopnators/sl_untranslated_key.js +157 -0
- package/dist/integrity/slopnators/sl_unversioned.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unversioned.js +31 -0
- package/dist/integrity/sweep.d.ts +24 -0
- package/dist/integrity/sweep.js +264 -0
- package/dist/knowledge/attach.d.ts +2 -0
- package/dist/knowledge/attach.js +339 -0
- package/dist/knowledge/generators/docsgen.d.ts +1 -0
- package/dist/knowledge/generators/docsgen.js +145 -0
- package/dist/knowledge/generators/glossary.d.ts +1 -0
- package/dist/knowledge/generators/glossary.js +56 -0
- package/dist/knowledge/generators/skills.d.ts +1 -0
- package/dist/knowledge/generators/skills.js +222 -0
- package/dist/knowledge/glossary.d.ts +6 -0
- package/dist/knowledge/glossary.js +1 -0
- package/dist/operations/access.d.ts +27 -0
- package/dist/operations/access.js +61 -0
- package/dist/operations/attach.d.ts +6 -0
- package/dist/operations/attach.js +414 -0
- package/dist/operations/capabilities.d.ts +37 -0
- package/dist/operations/capabilities.js +35 -0
- package/dist/operations/cost.d.ts +14 -0
- package/dist/operations/cost.js +37 -0
- package/dist/operations/dispatch.d.ts +14 -0
- package/dist/operations/dispatch.js +327 -0
- package/dist/operations/error-results.d.ts +4 -0
- package/dist/operations/error-results.js +25 -0
- package/dist/operations/errors/catalog.d.ts +58 -0
- package/dist/operations/errors/catalog.js +91 -0
- package/dist/operations/errors/classes.d.ts +73 -0
- package/dist/operations/errors/classes.js +22 -0
- package/dist/operations/errors/errors.d.ts +52 -0
- package/dist/operations/errors/errors.js +257 -0
- package/dist/operations/generators/capability.d.ts +5 -0
- package/dist/operations/generators/capability.js +603 -0
- package/dist/operations/generators/compile.d.ts +2 -0
- package/dist/operations/generators/compile.js +541 -0
- package/dist/operations/generators/grant.d.ts +1 -0
- package/dist/operations/generators/grant.js +267 -0
- package/dist/operations/generators/operation.d.ts +1 -0
- package/dist/operations/generators/operation.js +811 -0
- package/dist/operations/generators/permits.d.ts +1 -0
- package/dist/operations/generators/permits.js +196 -0
- package/dist/operations/generators/seed.d.ts +20 -0
- package/dist/operations/generators/seed.js +285 -0
- package/dist/operations/generators/trial.d.ts +53 -0
- package/dist/operations/generators/trial.js +376 -0
- package/dist/operations/http.d.ts +30 -0
- package/dist/operations/http.js +121 -0
- package/dist/operations/makers/capability.d.ts +1 -0
- package/dist/operations/makers/capability.js +117 -0
- package/dist/operations/makers/trial.d.ts +1 -0
- package/dist/operations/makers/trial.js +413 -0
- package/dist/operations/memory.d.ts +104 -0
- package/dist/operations/memory.js +365 -0
- package/dist/operations/metering.d.ts +55 -0
- package/dist/operations/metering.js +247 -0
- package/dist/operations/nodes.d.ts +35 -0
- package/dist/operations/nodes.js +15 -0
- package/dist/operations/operations.d.ts +18 -0
- package/dist/operations/operations.js +5 -0
- package/dist/operations/queue-policy.d.ts +3 -0
- package/dist/operations/queue-policy.js +8 -0
- package/dist/operations/result.d.ts +19 -0
- package/dist/operations/result.js +10 -0
- package/dist/operations/seams.d.ts +239 -0
- package/dist/operations/seams.js +45 -0
- package/dist/operations/store.d.ts +14 -0
- package/dist/operations/store.js +1 -0
- package/package.json +16 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# @prestack/thread
|
|
2
|
+
|
|
3
|
+
## 0.0.1
|
|
4
|
+
|
|
5
|
+
Every package carries the same number. The first two parts are set on the packaging sheet and move only when somebody changes them there; the third moves with every publish.
|
|
6
|
+
|
|
7
|
+
First release. It ships 128 row(s).
|
|
8
|
+
|
|
9
|
+
### Gained
|
|
10
|
+
|
|
11
|
+
- `actor`
|
|
12
|
+
- `asking`
|
|
13
|
+
- `attach`
|
|
14
|
+
- `build-writer`
|
|
15
|
+
- `capability-maker`
|
|
16
|
+
- `capability-writer`
|
|
17
|
+
- `chain`
|
|
18
|
+
- `cli`
|
|
19
|
+
- `compile-writer`
|
|
20
|
+
- `compiler-scope`
|
|
21
|
+
- `condition`
|
|
22
|
+
- `constraint-shape`
|
|
23
|
+
- `core-attach`
|
|
24
|
+
- `core-capabilities`
|
|
25
|
+
- `core-dispatch`
|
|
26
|
+
- `core-seams`
|
|
27
|
+
- `cost`
|
|
28
|
+
- `derivation-attach`
|
|
29
|
+
- `derived-check`
|
|
30
|
+
- `descend`
|
|
31
|
+
- `descent-check`
|
|
32
|
+
- `determinism`
|
|
33
|
+
- `docs-writer`
|
|
34
|
+
- `error-catalogue`
|
|
35
|
+
- `error-classes`
|
|
36
|
+
- `error-namespaces`
|
|
37
|
+
- `error-results`
|
|
38
|
+
- `finding`
|
|
39
|
+
- `gate-writer`
|
|
40
|
+
- `generator-writer`
|
|
41
|
+
- `glossary-shape`
|
|
42
|
+
- `glossary-writer`
|
|
43
|
+
- `grant-maker`
|
|
44
|
+
- `grant-shape`
|
|
45
|
+
- `http`
|
|
46
|
+
- `init`
|
|
47
|
+
- `integrations-attach`
|
|
48
|
+
- `integrity-attach`
|
|
49
|
+
- `invoked`
|
|
50
|
+
- `issues-writer`
|
|
51
|
+
- `knowledge-attach`
|
|
52
|
+
- `lint`
|
|
53
|
+
- `lsp-bin`
|
|
54
|
+
- `lsp-diagnostics`
|
|
55
|
+
- `lsp-findings`
|
|
56
|
+
- `lsp-lint`
|
|
57
|
+
- `lsp-protocol`
|
|
58
|
+
- `lsp-server`
|
|
59
|
+
- `memory-seams`
|
|
60
|
+
- `meta-maker`
|
|
61
|
+
- `metering`
|
|
62
|
+
- `operation-maker`
|
|
63
|
+
- `operation-nodes`
|
|
64
|
+
- `operation-shape`
|
|
65
|
+
- `operations-attach`
|
|
66
|
+
- `permits-writer`
|
|
67
|
+
- `publish-writer`
|
|
68
|
+
- `queue-policy`
|
|
69
|
+
- `read-command`
|
|
70
|
+
- `release-maker`
|
|
71
|
+
- `release-shape`
|
|
72
|
+
- `release-writer`
|
|
73
|
+
- `result`
|
|
74
|
+
- `round`
|
|
75
|
+
- `rows`
|
|
76
|
+
- `rule-writer`
|
|
77
|
+
- `scope`
|
|
78
|
+
- `sdk`
|
|
79
|
+
- `sdk-maker`
|
|
80
|
+
- `seal`
|
|
81
|
+
- `seal-writer`
|
|
82
|
+
- `sealed-store`
|
|
83
|
+
- `secret`
|
|
84
|
+
- `secret-maker`
|
|
85
|
+
- `seed-writer`
|
|
86
|
+
- `shape`
|
|
87
|
+
- `skills-writer`
|
|
88
|
+
- `slopnator`
|
|
89
|
+
- `slopnator-shape`
|
|
90
|
+
- `store-shape`
|
|
91
|
+
- `sweep-walk`
|
|
92
|
+
- `target-maker`
|
|
93
|
+
- `target-shape`
|
|
94
|
+
- `tree`
|
|
95
|
+
- `trial-maker`
|
|
96
|
+
- `trial-runner`
|
|
97
|
+
- `trial-writer`
|
|
98
|
+
- `types`
|
|
99
|
+
- `vault-writer`
|
|
100
|
+
|
|
101
|
+
<!-- release 0.0.1 -->
|
|
102
|
+
<!-- holds
|
|
103
|
+
actor 1
|
|
104
|
+
asking 1
|
|
105
|
+
attach 1
|
|
106
|
+
build-writer 1
|
|
107
|
+
capability-maker 1
|
|
108
|
+
capability-writer 1
|
|
109
|
+
chain 1
|
|
110
|
+
cli 1
|
|
111
|
+
compile-writer 1
|
|
112
|
+
compiler-scope 1
|
|
113
|
+
condition 1
|
|
114
|
+
constraint-shape 1
|
|
115
|
+
core-attach 1
|
|
116
|
+
core-capabilities 1
|
|
117
|
+
core-dispatch 1
|
|
118
|
+
core-seams 1
|
|
119
|
+
cost 1
|
|
120
|
+
derivation-attach 2
|
|
121
|
+
derived-check 1
|
|
122
|
+
descend 1
|
|
123
|
+
descent-check 1
|
|
124
|
+
determinism 1
|
|
125
|
+
docs-writer 1
|
|
126
|
+
error-catalogue 1
|
|
127
|
+
error-classes 1
|
|
128
|
+
error-namespaces 1
|
|
129
|
+
error-results 1
|
|
130
|
+
finding 1
|
|
131
|
+
gate-writer 1
|
|
132
|
+
generator-writer 1
|
|
133
|
+
glossary-shape 1
|
|
134
|
+
glossary-writer 1
|
|
135
|
+
grant-maker 1
|
|
136
|
+
grant-shape 1
|
|
137
|
+
http 1
|
|
138
|
+
init 1
|
|
139
|
+
integrations-attach 2
|
|
140
|
+
integrity-attach 2
|
|
141
|
+
invoked 1
|
|
142
|
+
issues-writer 1
|
|
143
|
+
knowledge-attach 2
|
|
144
|
+
lint 1
|
|
145
|
+
lsp-bin 1
|
|
146
|
+
lsp-diagnostics 1
|
|
147
|
+
lsp-findings 1
|
|
148
|
+
lsp-lint 1
|
|
149
|
+
lsp-protocol 1
|
|
150
|
+
lsp-server 1
|
|
151
|
+
memory-seams 1
|
|
152
|
+
meta-maker 1
|
|
153
|
+
metering 1
|
|
154
|
+
operation-maker 1
|
|
155
|
+
operation-nodes 1
|
|
156
|
+
operation-shape 1
|
|
157
|
+
operations-attach 2
|
|
158
|
+
permits-writer 1
|
|
159
|
+
publish-writer 1
|
|
160
|
+
queue-policy 1
|
|
161
|
+
read-command 1
|
|
162
|
+
release-maker 1
|
|
163
|
+
release-shape 1
|
|
164
|
+
release-writer 1
|
|
165
|
+
result 1
|
|
166
|
+
round 1
|
|
167
|
+
rows 1
|
|
168
|
+
rule-writer 1
|
|
169
|
+
scope 1
|
|
170
|
+
sdk 1
|
|
171
|
+
sdk-maker 1
|
|
172
|
+
seal 1
|
|
173
|
+
seal-writer 1
|
|
174
|
+
sealed-store 1
|
|
175
|
+
secret 1
|
|
176
|
+
secret-maker 1
|
|
177
|
+
seed-writer 1
|
|
178
|
+
shape 1
|
|
179
|
+
skills-writer 1
|
|
180
|
+
slopnator 35
|
|
181
|
+
slopnator-shape 1
|
|
182
|
+
store-shape 1
|
|
183
|
+
sweep-walk 1
|
|
184
|
+
target-maker 1
|
|
185
|
+
target-shape 1
|
|
186
|
+
tree 1
|
|
187
|
+
trial-maker 1
|
|
188
|
+
trial-runner 1
|
|
189
|
+
trial-writer 1
|
|
190
|
+
types 1
|
|
191
|
+
vault-writer 1
|
|
192
|
+
-->
|
package/dist/attach.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ATTACH } from './core/attach.js'
|
package/dist/attach.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ATTACH } from './core/attach.js'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type Env = 'sandbox' | 'production';
|
|
2
|
+
export declare const ENVIRONMENT: readonly [readonly ["run", "x-request-id"], readonly ["address", "x-forwarded-for"], readonly ["device", "user-agent"], readonly ["replay", "idempotency-key"]];
|
|
3
|
+
export type Environment = {
|
|
4
|
+
readonly [K in (typeof ENVIRONMENT)[number][0]]?: string;
|
|
5
|
+
};
|
|
6
|
+
export type Actor = Environment & {
|
|
7
|
+
readonly id: string | null;
|
|
8
|
+
readonly roles: readonly string[];
|
|
9
|
+
readonly entitlements: readonly string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const PUBLIC_ROLE = "role_public";
|
|
12
|
+
export declare const ANONYMOUS: Actor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const ENVIRONMENT = [
|
|
2
|
+
['run', 'x-request-id'],
|
|
3
|
+
['address', 'x-forwarded-for'],
|
|
4
|
+
['device', 'user-agent'],
|
|
5
|
+
['replay', 'idempotency-key'],
|
|
6
|
+
];
|
|
7
|
+
export const PUBLIC_ROLE = 'role_public';
|
|
8
|
+
export const ANONYMOUS = { id: null, roles: [PUBLIC_ROLE], entitlements: [] };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { Row } from './descend.ts';
|
|
2
|
+
import { type Field } from './descend.ts';
|
|
3
|
+
import type { Tree } from './tree.ts';
|
|
4
|
+
export declare const RECEIPT = "--receipt";
|
|
5
|
+
export declare const ENDS = ".";
|
|
6
|
+
export declare const FROM = "--from";
|
|
7
|
+
export declare const CHAINED = "--chained";
|
|
8
|
+
export declare const BODY = "body";
|
|
9
|
+
export declare const WRITES = "writes";
|
|
10
|
+
export declare const asFlag: (key: string) => string;
|
|
11
|
+
export declare function refuse(because: string): never;
|
|
12
|
+
export declare function slug(one: string): string;
|
|
13
|
+
export declare function within(root: string, path: string): string;
|
|
14
|
+
export declare function parsed(text: string): readonly {
|
|
15
|
+
readonly at: number;
|
|
16
|
+
readonly key: string;
|
|
17
|
+
readonly value: string;
|
|
18
|
+
}[];
|
|
19
|
+
export declare function scoped(given: readonly {
|
|
20
|
+
readonly at: number;
|
|
21
|
+
readonly key: string;
|
|
22
|
+
readonly value: string;
|
|
23
|
+
}[], opens: string): {
|
|
24
|
+
readonly own: readonly {
|
|
25
|
+
readonly at: number;
|
|
26
|
+
readonly key: string;
|
|
27
|
+
readonly value: string;
|
|
28
|
+
}[];
|
|
29
|
+
readonly each: readonly (readonly {
|
|
30
|
+
readonly at: number;
|
|
31
|
+
readonly key: string;
|
|
32
|
+
readonly value: string;
|
|
33
|
+
}[])[];
|
|
34
|
+
};
|
|
35
|
+
export interface Asked {
|
|
36
|
+
readonly at: string;
|
|
37
|
+
readonly guide: string;
|
|
38
|
+
readonly asks?: string;
|
|
39
|
+
readonly optional?: boolean;
|
|
40
|
+
readonly list?: boolean;
|
|
41
|
+
readonly map?: boolean;
|
|
42
|
+
readonly boolean?: boolean;
|
|
43
|
+
readonly worded?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface Said {
|
|
46
|
+
readonly guide: string;
|
|
47
|
+
readonly asks?: string;
|
|
48
|
+
readonly optional?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare function asksOf(noun: string, shape: string | readonly Field[], said: Readonly<Record<string, Said>>, computed: readonly string[]): readonly Asked[];
|
|
51
|
+
export declare const named: (all: readonly Asked[]) => readonly string[];
|
|
52
|
+
export declare const prompted: (one: Asked) => string;
|
|
53
|
+
export type Given = {
|
|
54
|
+
readonly at: number;
|
|
55
|
+
readonly key: string;
|
|
56
|
+
readonly value: string;
|
|
57
|
+
};
|
|
58
|
+
export interface Child {
|
|
59
|
+
readonly id: string;
|
|
60
|
+
readonly at: string;
|
|
61
|
+
readonly describes: string;
|
|
62
|
+
readonly by?: string;
|
|
63
|
+
readonly runs?: string;
|
|
64
|
+
readonly body?: string;
|
|
65
|
+
readonly writes?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface Stated {
|
|
68
|
+
readonly field: string;
|
|
69
|
+
readonly said: string;
|
|
70
|
+
readonly list: boolean;
|
|
71
|
+
readonly map?: boolean;
|
|
72
|
+
readonly boolean?: boolean;
|
|
73
|
+
readonly worded?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare const mapped: (one: {
|
|
76
|
+
readonly map?: boolean;
|
|
77
|
+
readonly worded?: boolean;
|
|
78
|
+
}, said: string) => boolean;
|
|
79
|
+
export declare const CARRIES: readonly string[];
|
|
80
|
+
export declare function ownAnswers(all: readonly Given[]): readonly Given[];
|
|
81
|
+
export declare function stating(asks: readonly Asked[], all: readonly Given[], piped: boolean, ask: (name: string, asks: string) => Promise<string>, line: () => Promise<string | undefined>, settled: readonly string[]): Promise<{
|
|
82
|
+
readonly stated: readonly Stated[];
|
|
83
|
+
readonly kids: ReadonlyMap<string, readonly Child[]>;
|
|
84
|
+
}>;
|
|
85
|
+
export declare function arrayValue(pad: string, key: string, said: string, found: readonly Child[] | undefined): string;
|
|
86
|
+
export declare const asMap: (said: string) => string;
|
|
87
|
+
export declare function gathered(all: readonly Given[], fields: readonly Field[]): readonly Given[];
|
|
88
|
+
export declare const asBoolean: (said: string) => string;
|
|
89
|
+
export declare function rowLines(pad: string, stated: readonly Stated[], kids: ReadonlyMap<string, readonly Child[]>): readonly string[];
|
|
90
|
+
export declare function withChildren(row: string, lines: readonly string[]): string;
|
|
91
|
+
export declare function childrenIn(all: readonly Given[]): ReadonlyMap<string, readonly Child[]>;
|
|
92
|
+
export declare const BODIED: readonly string[];
|
|
93
|
+
export declare const WRITTEN: readonly string[];
|
|
94
|
+
export declare function seeding(kids: ReadonlyMap<string, readonly Child[]>, root: string): readonly string[];
|
|
95
|
+
export declare function children(list: string, all: readonly Given[], ask: (name: string, asks: string) => Promise<string>, line: () => Promise<string | undefined>): Promise<readonly Child[]>;
|
|
96
|
+
export declare function bodied(what: string, shows: string, piped: boolean, all: readonly Given[], line: () => Promise<string | undefined>): Promise<string | undefined>;
|
|
97
|
+
export declare function guidance(all: readonly Asked[]): readonly string[];
|
|
98
|
+
export declare function only(given: readonly {
|
|
99
|
+
readonly at: number;
|
|
100
|
+
readonly key: string;
|
|
101
|
+
readonly value: string;
|
|
102
|
+
}[], allowed: readonly string[], where: string): void;
|
|
103
|
+
export declare function answer(given: readonly {
|
|
104
|
+
readonly at: number;
|
|
105
|
+
readonly key: string;
|
|
106
|
+
readonly value: string;
|
|
107
|
+
}[], key: string): string | undefined;
|
|
108
|
+
export declare function accepted(given: readonly {
|
|
109
|
+
readonly at: number;
|
|
110
|
+
readonly key: string;
|
|
111
|
+
readonly value: string;
|
|
112
|
+
}[]): string;
|
|
113
|
+
export declare function needed(given: readonly {
|
|
114
|
+
readonly at: number;
|
|
115
|
+
readonly key: string;
|
|
116
|
+
readonly value: string;
|
|
117
|
+
}[], key: string, where: string): string;
|
|
118
|
+
export declare function wrapped(text: string, pad: string): readonly string[];
|
|
119
|
+
export declare function marked(parts: readonly string[]): string;
|
|
120
|
+
export interface Told {
|
|
121
|
+
readonly on: string;
|
|
122
|
+
readonly said: string;
|
|
123
|
+
}
|
|
124
|
+
export interface Declared {
|
|
125
|
+
readonly at: string;
|
|
126
|
+
readonly list: string;
|
|
127
|
+
readonly shape: string | undefined;
|
|
128
|
+
readonly fields: readonly Field[];
|
|
129
|
+
readonly describes: string;
|
|
130
|
+
readonly holds: number;
|
|
131
|
+
readonly cites: readonly Told[];
|
|
132
|
+
readonly top: {
|
|
133
|
+
readonly id: string;
|
|
134
|
+
readonly describes: string;
|
|
135
|
+
} | undefined;
|
|
136
|
+
readonly files?: string;
|
|
137
|
+
}
|
|
138
|
+
export declare function declared(tree: Tree): Promise<ReadonlyMap<string, Declared>>;
|
|
139
|
+
export declare function nouns(all: readonly Row[], verb?: string): ReadonlyMap<string, string>;
|
|
140
|
+
export declare const SKILLS_AT = "thread/knowledge";
|
|
141
|
+
export declare function skillOf(noun: string): string;
|
|
142
|
+
export declare function issue(root: string, listing: string): string;
|
|
143
|
+
export declare function spend(root: string, listing: string, offered: string | undefined, sheet: string): void;
|
|
144
|
+
export declare function asking(held: readonly {
|
|
145
|
+
readonly at: number;
|
|
146
|
+
readonly key: string;
|
|
147
|
+
readonly value: string;
|
|
148
|
+
}[]): {
|
|
149
|
+
readonly piped: boolean;
|
|
150
|
+
readonly ask: (key: string, question: string, from?: readonly {
|
|
151
|
+
readonly at: number;
|
|
152
|
+
readonly key: string;
|
|
153
|
+
readonly value: string;
|
|
154
|
+
}[]) => Promise<string>;
|
|
155
|
+
readonly line: () => Promise<string | undefined>;
|
|
156
|
+
readonly shut: () => void;
|
|
157
|
+
};
|
|
158
|
+
export declare function answered(): boolean;
|
|
159
|
+
export declare function given(): readonly {
|
|
160
|
+
readonly at: number;
|
|
161
|
+
readonly key: string;
|
|
162
|
+
readonly value: string;
|
|
163
|
+
}[];
|
|
164
|
+
export declare const FILED: (key: string) => string;
|
|
165
|
+
export declare function handed(): string | undefined;
|
|
166
|
+
export declare const TYPED = "npx thread";
|
|
167
|
+
export declare const VERBS: readonly string[];
|
|
168
|
+
export declare const grows: (sheetAt: string, noun: string) => readonly string[];
|
|
169
|
+
export declare const VALUED = "THREAD_VALUED";
|
|
170
|
+
export declare function answering(noun: string): readonly string[];
|
|
171
|
+
export declare const CARRIED: readonly {
|
|
172
|
+
readonly verb: string;
|
|
173
|
+
readonly typed: string;
|
|
174
|
+
readonly does: string;
|
|
175
|
+
}[];
|
|
176
|
+
export declare const ELSEWHERE: readonly string[];
|
|
177
|
+
export declare function taught(noun: string, told: ReadonlyMap<string, Declared>, commands: ReadonlySet<string>): readonly string[];
|
|
178
|
+
export declare function reminded(noun: string | undefined): string;
|
|
179
|
+
export declare function wordsIn(offered: readonly string[]): readonly string[];
|
|
180
|
+
export declare function credentialIn(text: string): string | undefined;
|