@prestack/thread 0.1.3 → 0.1.5
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 +563 -0
- package/dist/core/actor.d.ts +1 -1
- package/dist/core/actor.js +5 -4
- package/dist/core/actor.ts +5 -4
- package/dist/core/attach.d.ts +0 -7
- package/dist/core/attach.js +38 -67
- package/dist/core/attach.ts +34 -80
- package/dist/core/chain.js +13 -17
- package/dist/core/chain.ts +11 -15
- package/dist/core/condition.d.ts +4 -4
- package/dist/core/condition.js +2 -2
- package/dist/core/descend.d.ts +4 -2
- package/dist/core/descend.js +91 -23
- package/dist/core/descend.ts +90 -21
- package/dist/core/errors/catalogue.d.ts +52 -0
- package/dist/{operations/errors/errors.js → core/errors/catalogue.js} +1 -1
- package/dist/{operations/errors/errors.ts → core/errors/catalogue.ts} +1 -1
- package/dist/{operations/errors/catalog.d.ts → core/errors/error.d.ts} +2 -3
- package/dist/{operations/errors/catalog.js → core/errors/error.js} +1 -16
- package/dist/{operations/errors/catalog.ts → core/errors/error.ts} +3 -19
- package/dist/core/errors/namespaces.d.ts +3 -0
- package/dist/core/errors/namespaces.js +15 -0
- package/dist/core/errors/namespaces.ts +19 -0
- package/dist/core/finding.js +2 -2
- package/dist/core/finding.ts +1 -2
- package/dist/core/init.d.ts +1 -1
- package/dist/core/init.js +51 -5
- package/dist/core/init.ts +58 -5
- package/dist/core/invoked.d.ts +1 -1
- package/dist/core/invoked.js +3 -1
- package/dist/core/invoked.ts +5 -2
- package/dist/core/round.js +36 -22
- package/dist/core/round.ts +26 -9
- package/dist/core/rows.d.ts +4 -0
- package/dist/core/rows.js +31 -2
- package/dist/core/rows.ts +33 -1
- package/dist/core/scope.d.ts +1 -0
- package/dist/core/scope.js +1 -0
- package/dist/core/scope.ts +2 -0
- package/dist/core/thread.d.ts +3 -3
- package/dist/core/tree.d.ts +4 -1
- package/dist/core/tree.js +26 -6
- package/dist/core/tree.ts +29 -6
- package/dist/core/types.d.ts +3 -3
- package/dist/core/types.js +3 -1
- package/dist/core/types.ts +2 -1
- package/dist/derivation/attach.js +3 -2
- package/dist/derivation/attach.ts +2 -1
- package/dist/derivation/generators/build.js +6 -6
- package/dist/derivation/generators/build.ts +1 -1
- package/dist/derivation/generators/check.js +1 -1
- package/dist/derivation/generators/determinism.js +1 -1
- package/dist/derivation/generators/release.js +60 -47
- package/dist/derivation/generators/release.ts +66 -43
- package/dist/derivation/release.d.ts +7 -3
- package/dist/derivation/release.js +14 -1
- package/dist/derivation/release.ts +22 -2
- package/dist/integrations/attach.d.ts +4 -0
- package/dist/integrations/attach.js +37 -56
- package/dist/integrations/attach.ts +54 -60
- package/dist/integrations/cli.d.ts +37 -0
- package/dist/integrations/cli.js +440 -0
- package/dist/integrations/cli.ts +543 -0
- package/dist/{core/files.d.ts → integrations/disk.d.ts} +16 -24
- package/dist/integrations/disk.js +435 -0
- package/dist/integrations/disk.ts +465 -0
- package/dist/integrations/generators/read.js +6 -6
- package/dist/integrations/generators/read.ts +4 -4
- package/dist/integrations/generators/vault.js +10 -11
- package/dist/integrations/generators/vault.ts +4 -5
- package/dist/{operations/http.d.ts → integrations/https.d.ts} +10 -6
- package/dist/integrations/https.js +170 -0
- package/dist/integrations/https.ts +216 -0
- package/dist/integrations/pglite.d.ts +26 -0
- package/dist/integrations/pglite.js +143 -0
- package/dist/integrations/pglite.ts +206 -0
- package/dist/integrations/secret.d.ts +8 -2
- package/dist/integrations/secret.js +3 -5
- package/dist/integrations/secret.ts +10 -6
- package/dist/integrations/target.d.ts +155 -14
- package/dist/integrations/target.js +171 -50
- package/dist/integrations/target.ts +377 -61
- package/dist/integrations/vault.d.ts +1 -0
- package/dist/integrations/vault.js +20 -5
- package/dist/integrations/vault.ts +17 -5
- package/dist/integrity/attach.js +8 -77
- package/dist/integrity/attach.ts +7 -76
- package/dist/integrity/check-threads.js +5 -5
- package/dist/integrity/check-threads.ts +2 -2
- package/dist/integrity/constraint.d.ts +0 -1
- package/dist/integrity/constraint.js +267 -366
- package/dist/integrity/constraint.ts +267 -375
- package/dist/integrity/generators/compiler.js +14 -17
- package/dist/integrity/generators/compiler.ts +10 -15
- package/dist/integrity/generators/gate.js +15 -15
- package/dist/integrity/generators/gate.ts +10 -10
- package/dist/integrity/generators/issues.js +7 -7
- package/dist/integrity/generators/publish.js +39 -57
- package/dist/integrity/generators/publish.ts +44 -55
- package/dist/integrity/generators/trial.d.ts +3 -3
- package/dist/integrity/generators/trial.js +133 -165
- package/dist/integrity/generators/trial.ts +145 -169
- package/dist/integrity/lint.js +9 -13
- package/dist/integrity/lint.ts +7 -10
- package/dist/integrity/lsp/bin.js +5 -4
- package/dist/integrity/lsp/bin.ts +3 -1
- package/dist/integrity/lsp/diagnostics.js +3 -3
- package/dist/integrity/lsp/diagnostics.ts +1 -1
- package/dist/integrity/lsp/lint.js +19 -30
- package/dist/integrity/lsp/lint.ts +16 -32
- package/dist/integrity/lsp/server.js +3 -3
- package/dist/integrity/slopnator.d.ts +3 -13
- package/dist/integrity/slopnator.js +59 -38
- package/dist/integrity/slopnator.ts +54 -38
- package/dist/integrity/slopnators/sl_broken_lineage.js +2 -2
- package/dist/integrity/slopnators/sl_declared_elsewhere.js +1 -1
- package/dist/integrity/slopnators/sl_derived_drift.js +4 -4
- package/dist/integrity/slopnators/sl_derived_drift.ts +1 -1
- package/dist/integrity/slopnators/sl_door_in_a_node.js +220 -0
- package/dist/integrity/slopnators/sl_door_in_a_node.ts +250 -0
- package/dist/integrity/slopnators/sl_inert_island.js +10 -8
- package/dist/integrity/slopnators/sl_inert_island.ts +8 -6
- package/dist/integrity/slopnators/sl_missing_row.js +6 -51
- package/dist/integrity/slopnators/sl_missing_row.ts +4 -50
- package/dist/integrity/slopnators/sl_no_barrel.js +1 -1
- package/dist/integrity/slopnators/sl_no_child_process.js +36 -18
- package/dist/integrity/slopnators/sl_no_child_process.ts +44 -18
- package/dist/integrity/slopnators/sl_no_dispatch_bypass.js +80 -149
- package/dist/integrity/slopnators/sl_no_dispatch_bypass.ts +95 -147
- package/dist/integrity/slopnators/sl_no_import_cycle.js +15 -4
- package/dist/integrity/slopnators/sl_no_import_cycle.ts +20 -4
- package/dist/integrity/slopnators/sl_no_such_command.js +2 -2
- package/dist/integrity/slopnators/sl_no_such_command.ts +1 -1
- package/dist/integrity/slopnators/sl_outside_an_operation.js +20 -0
- package/dist/integrity/slopnators/sl_outside_an_operation.ts +25 -0
- package/dist/integrity/slopnators/sl_screen_holds_only_declared.d.ts +2 -0
- package/dist/integrity/slopnators/sl_screen_holds_only_declared.js +61 -0
- package/dist/integrity/slopnators/sl_screen_holds_only_declared.ts +70 -0
- package/dist/integrity/slopnators/sl_secret_literal.js +1 -33
- package/dist/integrity/slopnators/sl_secret_literal.ts +1 -33
- package/dist/integrity/slopnators/sl_stale_path.js +5 -22
- package/dist/integrity/slopnators/sl_stale_path.ts +4 -20
- package/dist/integrity/slopnators/sl_twice_meant.js +1 -1
- package/dist/integrity/slopnators/sl_twice_parented.js +29 -5
- package/dist/integrity/slopnators/sl_twice_parented.ts +28 -4
- package/dist/integrity/slopnators/sl_undeclared_crossing.d.ts +4 -1
- package/dist/integrity/slopnators/sl_undeclared_crossing.js +426 -62
- package/dist/integrity/slopnators/sl_undeclared_crossing.ts +454 -70
- package/dist/integrity/slopnators/sl_undeclared_destination.js +59 -25
- package/dist/integrity/slopnators/sl_undeclared_destination.ts +69 -21
- package/dist/integrity/slopnators/sl_undeclared_list.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undeclared_list.js +363 -0
- package/dist/integrity/slopnators/sl_undeclared_list.ts +358 -0
- package/dist/integrity/slopnators/sl_undeclared_node.js +1 -11
- package/dist/integrity/slopnators/sl_undeclared_node.ts +0 -10
- package/dist/integrity/slopnators/sl_undeclared_operation.js +111 -29
- package/dist/integrity/slopnators/sl_undeclared_operation.ts +134 -26
- package/dist/integrity/slopnators/sl_undeclared_variant.js +2 -2
- package/dist/integrity/slopnators/sl_undeclared_webhook.d.ts +2 -0
- package/dist/integrity/slopnators/sl_undeclared_webhook.js +90 -0
- package/dist/integrity/slopnators/sl_undeclared_webhook.ts +108 -0
- package/dist/integrity/slopnators/sl_underived_route.d.ts +2 -0
- package/dist/integrity/slopnators/sl_underived_route.js +61 -0
- package/dist/integrity/slopnators/sl_underived_route.ts +72 -0
- package/dist/integrity/slopnators/sl_ungoverned_island.js +3 -3
- package/dist/integrity/slopnators/sl_ungoverned_island.ts +1 -1
- package/dist/integrity/slopnators/sl_unlisted_program.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unlisted_program.js +39 -0
- package/dist/integrity/slopnators/sl_unlisted_program.ts +40 -0
- package/dist/integrity/slopnators/sl_unnamed_island.js +1 -1
- package/dist/integrity/slopnators/sl_unpaired_member.js +3 -3
- package/dist/integrity/slopnators/sl_unpaired_member.ts +1 -1
- package/dist/integrity/slopnators/sl_unpaired_slopnator.js +4 -4
- package/dist/integrity/slopnators/sl_unpaired_slopnator.ts +1 -1
- package/dist/integrity/slopnators/sl_unprefixed_member.js +5 -31
- package/dist/integrity/slopnators/sl_unprefixed_member.ts +2 -28
- package/dist/integrity/slopnators/sl_unthreaded.js +11 -7
- package/dist/integrity/slopnators/sl_unthreaded.ts +6 -7
- package/dist/integrity/slopnators/sl_untranslated_key.js +2 -25
- package/dist/integrity/slopnators/sl_untranslated_key.ts +1 -25
- package/dist/integrity/slopnators/sl_unvaulted_secret.d.ts +2 -0
- package/dist/integrity/slopnators/sl_unvaulted_secret.js +107 -0
- package/dist/integrity/slopnators/sl_unvaulted_secret.ts +132 -0
- package/dist/integrity/slopnators/sl_unversioned.js +6 -4
- package/dist/integrity/slopnators/sl_unversioned.ts +5 -3
- package/dist/integrity/sweep.d.ts +1 -0
- package/dist/integrity/sweep.js +105 -42
- package/dist/integrity/sweep.ts +115 -42
- package/dist/knowledge/attach.js +4 -3
- package/dist/knowledge/attach.ts +3 -2
- package/dist/knowledge/generators/docsgen.js +8 -6
- package/dist/knowledge/generators/docsgen.ts +4 -2
- package/dist/knowledge/generators/glossary.js +4 -4
- package/dist/knowledge/generators/glossary.ts +1 -1
- package/dist/operations/access.d.ts +23 -0
- package/dist/operations/access.js +28 -1
- package/dist/operations/access.ts +43 -0
- package/dist/operations/attach.js +33 -113
- package/dist/operations/attach.ts +51 -117
- package/dist/operations/capabilities.d.ts +14 -5
- package/dist/operations/capabilities.js +13 -4
- package/dist/operations/capabilities.ts +27 -8
- package/dist/operations/dispatch.d.ts +8 -2
- package/dist/operations/dispatch.js +128 -185
- package/dist/operations/dispatch.ts +138 -191
- package/dist/operations/error-results.d.ts +1 -1
- package/dist/operations/error-results.js +2 -2
- package/dist/operations/error-results.ts +2 -2
- package/dist/operations/generators/capability.d.ts +11 -1
- package/dist/operations/generators/capability.js +481 -224
- package/dist/operations/generators/capability.ts +562 -233
- package/dist/operations/generators/compile.js +66 -39
- package/dist/operations/generators/compile.ts +78 -39
- package/dist/operations/generators/permits.js +11 -12
- package/dist/operations/generators/permits.ts +3 -4
- package/dist/operations/generators/seed.d.ts +1 -0
- package/dist/operations/generators/seed.js +19 -17
- package/dist/operations/generators/seed.ts +22 -14
- package/dist/operations/generators/trial.d.ts +6 -8
- package/dist/operations/generators/trial.js +200 -70
- package/dist/operations/generators/trial.ts +230 -93
- package/dist/operations/nodes.d.ts +15 -16
- package/dist/operations/nodes.ts +16 -17
- package/dist/operations/operations.d.ts +40 -4
- package/dist/operations/operations.js +1 -0
- package/dist/operations/operations.ts +61 -4
- package/dist/operations/result.d.ts +2 -2
- package/dist/operations/result.ts +2 -2
- package/package.json +1 -4
- package/dist/core/answers.d.ts +0 -171
- package/dist/core/answers.js +0 -789
- package/dist/core/answers.ts +0 -999
- package/dist/core/client.d.ts +0 -63
- package/dist/core/client.js +0 -249
- package/dist/core/client.ts +0 -289
- package/dist/core/files.js +0 -171
- package/dist/core/files.ts +0 -222
- package/dist/integrations/module.d.ts +0 -6
- package/dist/integrations/module.js +0 -153
- package/dist/integrations/module.ts +0 -191
- package/dist/integrity/slopnators/sl_unkept_rows.js +0 -104
- package/dist/integrity/slopnators/sl_unkept_rows.ts +0 -111
- package/dist/integrity/slopnators/sl_unseamed_reach.js +0 -73
- package/dist/integrity/slopnators/sl_unseamed_reach.ts +0 -79
- package/dist/operations/cost.d.ts +0 -14
- package/dist/operations/cost.js +0 -37
- package/dist/operations/cost.ts +0 -58
- package/dist/operations/errors/errors.d.ts +0 -52
- package/dist/operations/http.js +0 -124
- package/dist/operations/http.ts +0 -169
- package/dist/operations/memory.d.ts +0 -104
- package/dist/operations/memory.js +0 -365
- package/dist/operations/memory.ts +0 -470
- package/dist/operations/metering.d.ts +0 -55
- package/dist/operations/metering.js +0 -247
- package/dist/operations/metering.ts +0 -328
- package/dist/operations/queue-policy.d.ts +0 -3
- package/dist/operations/queue-policy.js +0 -8
- package/dist/operations/queue-policy.ts +0 -10
- package/dist/operations/seams.d.ts +0 -239
- package/dist/operations/seams.js +0 -45
- package/dist/operations/seams.ts +0 -364
- package/dist/operations/store.d.ts +0 -14
- package/dist/operations/store.js +0 -1
- package/dist/operations/store.ts +0 -29
- /package/dist/{operations → core}/errors/classes.d.ts +0 -0
- /package/dist/{operations → core}/errors/classes.js +0 -0
- /package/dist/{operations → core}/errors/classes.ts +0 -0
- /package/dist/integrity/slopnators/{sl_unkept_rows.d.ts → sl_door_in_a_node.d.ts} +0 -0
- /package/dist/integrity/slopnators/{sl_unseamed_reach.d.ts → sl_outside_an_operation.d.ts} +0 -0
|
@@ -2,4 +2,5 @@ export const OPERATIONS_FILE = 'operations.ts';
|
|
|
2
2
|
export const TRIALS_AT = 'operations/_trials.json';
|
|
3
3
|
export const NODES_FILE = 'nodes.ts';
|
|
4
4
|
export const MEMBERS_LIST = 'MEMBERS';
|
|
5
|
+
export const WINDOWS = ['second', 'minute', 'hour', 'day', 'week', 'month'];
|
|
5
6
|
export const OPERATIONS = [];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import type { Actor } from '../core/actor.ts'
|
|
3
4
|
import type { Member } from '../core/thread.ts'
|
|
5
|
+
import { REACH, type Answering, type Calling, type HttpResponse, type Row, type Running, type Store } from '../integrations/target.ts'
|
|
4
6
|
|
|
5
|
-
import type {
|
|
7
|
+
import type { Surface } from './capabilities.ts'
|
|
6
8
|
|
|
7
9
|
export const OPERATIONS_FILE = 'operations.ts'
|
|
8
10
|
|
|
@@ -12,19 +14,74 @@ export const NODES_FILE = 'nodes.ts'
|
|
|
12
14
|
|
|
13
15
|
export const MEMBERS_LIST = 'MEMBERS'
|
|
14
16
|
|
|
15
|
-
export interface
|
|
17
|
+
export interface Reaching {}
|
|
18
|
+
|
|
19
|
+
type CallsOf<K extends string> = K extends keyof Reaching ? (Reaching[K] extends string ? Reaching[K] : string) : string
|
|
20
|
+
|
|
21
|
+
export type Opened<R extends string = never> = { readonly actor: Actor; readonly tell: (said: unknown) => void } & {
|
|
22
|
+
readonly [K in R]: K extends `${typeof REACH.disk}${string}`
|
|
23
|
+
? Answering
|
|
24
|
+
: K extends `${typeof REACH.cli}${string}`
|
|
25
|
+
? Running<CallsOf<K>>
|
|
26
|
+
: K extends `${typeof REACH.postgres}${string}` | `${typeof REACH.pglite}${string}` | `${typeof REACH.browser}${string}`
|
|
27
|
+
? Store
|
|
28
|
+
: K extends `${typeof REACH.sdk}${string}`
|
|
29
|
+
? Calling<CallsOf<K>>
|
|
30
|
+
: Readonly<
|
|
31
|
+
Record<
|
|
32
|
+
CallsOf<K>,
|
|
33
|
+
(given?: {
|
|
34
|
+
readonly fills?: Readonly<Record<string, string | number>>
|
|
35
|
+
readonly json?: unknown
|
|
36
|
+
readonly body?: Uint8Array
|
|
37
|
+
readonly contentType?: string
|
|
38
|
+
readonly told?: (said: unknown) => void
|
|
39
|
+
}) => Promise<HttpResponse>
|
|
40
|
+
>
|
|
41
|
+
>
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Reads<H> = { readonly [K in keyof H]: H[K] extends Store ? Pick<Store, 'get' | 'list'> : H[K] }
|
|
45
|
+
|
|
46
|
+
export const WINDOWS = ['second', 'minute', 'hour', 'day', 'week', 'month'] as const
|
|
47
|
+
|
|
48
|
+
export type Window = (typeof WINDOWS)[number]
|
|
49
|
+
|
|
50
|
+
export interface Allowance {
|
|
51
|
+
readonly runs: number
|
|
52
|
+
|
|
53
|
+
readonly per: Window
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface Counting {
|
|
57
|
+
readonly seen: (key: string, per: Window) => Promise<number>
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface Operation<I = unknown, R extends string = never> {
|
|
16
61
|
readonly id: string
|
|
17
62
|
|
|
18
63
|
readonly input: z.ZodType<I>
|
|
19
64
|
|
|
20
65
|
readonly requires: readonly string[]
|
|
21
66
|
|
|
67
|
+
readonly webhooks?: readonly string[]
|
|
68
|
+
|
|
69
|
+
readonly off?: readonly Surface[]
|
|
70
|
+
|
|
71
|
+
readonly signed?: boolean
|
|
72
|
+
|
|
73
|
+
readonly entitled?: string
|
|
74
|
+
|
|
75
|
+
readonly rate?: Allowance
|
|
76
|
+
|
|
77
|
+
readonly quota?: Allowance
|
|
78
|
+
|
|
22
79
|
readonly run: (
|
|
23
|
-
|
|
80
|
+
opened: Opened<R>,
|
|
24
81
|
held: { readonly input: I } & Readonly<Record<string, unknown>>,
|
|
25
82
|
) => Promise<unknown>
|
|
26
83
|
|
|
27
|
-
readonly
|
|
84
|
+
readonly timeout: number
|
|
28
85
|
|
|
29
86
|
readonly resource: (input: I) => Row | null
|
|
30
87
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ErrorCode, ErrorDef } from '
|
|
2
|
-
import type { ErrorClass } from '
|
|
1
|
+
import type { ErrorCode, ErrorDef } from '../core/errors/error.ts';
|
|
2
|
+
import type { ErrorClass } from '../core/errors/classes.ts';
|
|
3
3
|
export type ResultCode = 'denied' | 'invalid' | 'rate_limited' | 'feature_denied' | 'quota_exceeded' | 'error';
|
|
4
4
|
export type FailureIdentity = Pick<ErrorDef, 'code' | 'class'>;
|
|
5
5
|
export type Result<O> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ErrorCode, ErrorDef } from '
|
|
2
|
-
import type { ErrorClass } from '
|
|
1
|
+
import type { ErrorCode, ErrorDef } from '../core/errors/error.ts'
|
|
2
|
+
import type { ErrorClass } from '../core/errors/classes.ts'
|
|
3
3
|
|
|
4
4
|
export type ResultCode = 'denied' | 'invalid' | 'rate_limited' | 'feature_denied' | 'quota_exceeded' | 'error'
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prestack/thread",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,9 +10,6 @@
|
|
|
10
10
|
"./package.json": "./package.json",
|
|
11
11
|
"./*": "./dist/*.js"
|
|
12
12
|
},
|
|
13
|
-
"bin": {
|
|
14
|
-
"thread": "dist/core/client.js"
|
|
15
|
-
},
|
|
16
13
|
"dependencies": {
|
|
17
14
|
"esbuild": "^0.28.2",
|
|
18
15
|
"eslint": "^10.9.1",
|
package/dist/core/answers.d.ts
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
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 const named: (all: readonly Asked[]) => readonly string[];
|
|
51
|
-
export declare const prompted: (one: Asked) => string;
|
|
52
|
-
export type Given = {
|
|
53
|
-
readonly at: number;
|
|
54
|
-
readonly key: string;
|
|
55
|
-
readonly value: string;
|
|
56
|
-
};
|
|
57
|
-
export interface Child {
|
|
58
|
-
readonly id: string;
|
|
59
|
-
readonly at: string;
|
|
60
|
-
readonly describes: string;
|
|
61
|
-
readonly by?: string;
|
|
62
|
-
readonly runs?: string;
|
|
63
|
-
readonly body?: string;
|
|
64
|
-
readonly writes?: string;
|
|
65
|
-
}
|
|
66
|
-
export interface Stated {
|
|
67
|
-
readonly field: string;
|
|
68
|
-
readonly said: string;
|
|
69
|
-
readonly list: boolean;
|
|
70
|
-
readonly map?: boolean;
|
|
71
|
-
readonly boolean?: boolean;
|
|
72
|
-
readonly worded?: boolean;
|
|
73
|
-
}
|
|
74
|
-
export declare const mapped: (one: {
|
|
75
|
-
readonly map?: boolean;
|
|
76
|
-
readonly worded?: boolean;
|
|
77
|
-
}, said: string) => boolean;
|
|
78
|
-
export declare const CARRIES: readonly string[];
|
|
79
|
-
export declare function ownAnswers(all: readonly Given[]): readonly Given[];
|
|
80
|
-
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<{
|
|
81
|
-
readonly stated: readonly Stated[];
|
|
82
|
-
readonly kids: ReadonlyMap<string, readonly Child[]>;
|
|
83
|
-
}>;
|
|
84
|
-
export declare function arrayValue(pad: string, key: string, said: string, found: readonly Child[] | undefined): string;
|
|
85
|
-
export declare const asMap: (said: string) => string;
|
|
86
|
-
export declare function gathered(all: readonly Given[], fields: readonly Field[]): readonly Given[];
|
|
87
|
-
export declare const asBoolean: (said: string) => string;
|
|
88
|
-
export declare function rowLines(pad: string, stated: readonly Stated[], kids: ReadonlyMap<string, readonly Child[]>): readonly string[];
|
|
89
|
-
export declare function withChildren(row: string, lines: readonly string[]): string;
|
|
90
|
-
export declare function childrenIn(all: readonly Given[]): ReadonlyMap<string, readonly Child[]>;
|
|
91
|
-
export declare const BODIED: readonly string[];
|
|
92
|
-
export declare const WRITTEN: readonly string[];
|
|
93
|
-
export declare function seeding(kids: ReadonlyMap<string, readonly Child[]>, root: string): readonly string[];
|
|
94
|
-
export declare function children(list: string, all: readonly Given[], ask: (name: string, asks: string) => Promise<string>, line: () => Promise<string | undefined>): Promise<readonly Child[]>;
|
|
95
|
-
export declare function bodied(what: string, shows: string, piped: boolean, all: readonly Given[], line: () => Promise<string | undefined>): Promise<string | undefined>;
|
|
96
|
-
export declare function only(given: readonly {
|
|
97
|
-
readonly at: number;
|
|
98
|
-
readonly key: string;
|
|
99
|
-
readonly value: string;
|
|
100
|
-
}[], allowed: readonly string[], where: string): void;
|
|
101
|
-
export declare function unasked(given: readonly {
|
|
102
|
-
readonly at: number;
|
|
103
|
-
readonly key: string;
|
|
104
|
-
readonly value: string;
|
|
105
|
-
}[], allowed: readonly string[], where: string): void;
|
|
106
|
-
export declare function answer(given: readonly {
|
|
107
|
-
readonly at: number;
|
|
108
|
-
readonly key: string;
|
|
109
|
-
readonly value: string;
|
|
110
|
-
}[], key: string): string | undefined;
|
|
111
|
-
export declare function accepted(given: readonly {
|
|
112
|
-
readonly at: number;
|
|
113
|
-
readonly key: string;
|
|
114
|
-
readonly value: string;
|
|
115
|
-
}[]): string;
|
|
116
|
-
export declare function needed(given: readonly {
|
|
117
|
-
readonly at: number;
|
|
118
|
-
readonly key: string;
|
|
119
|
-
readonly value: string;
|
|
120
|
-
}[], key: string, where: string): string;
|
|
121
|
-
export declare function wrapped(text: string, pad: string): readonly string[];
|
|
122
|
-
export declare function marked(parts: readonly string[]): string;
|
|
123
|
-
export interface Told {
|
|
124
|
-
readonly on: string;
|
|
125
|
-
readonly said: string;
|
|
126
|
-
}
|
|
127
|
-
export interface Declared {
|
|
128
|
-
readonly at: string;
|
|
129
|
-
readonly list: string;
|
|
130
|
-
readonly shape: string | undefined;
|
|
131
|
-
readonly fields: readonly Field[];
|
|
132
|
-
readonly describes: string;
|
|
133
|
-
readonly holds: number;
|
|
134
|
-
readonly cites: readonly Told[];
|
|
135
|
-
readonly top: {
|
|
136
|
-
readonly id: string;
|
|
137
|
-
readonly describes: string;
|
|
138
|
-
} | undefined;
|
|
139
|
-
readonly files?: string;
|
|
140
|
-
}
|
|
141
|
-
export declare function declared(tree: Tree): Promise<ReadonlyMap<string, Declared>>;
|
|
142
|
-
export declare function nouns(all: readonly Row[], verb?: string): ReadonlyMap<string, string>;
|
|
143
|
-
export declare function asking(held: readonly {
|
|
144
|
-
readonly at: number;
|
|
145
|
-
readonly key: string;
|
|
146
|
-
readonly value: string;
|
|
147
|
-
}[]): {
|
|
148
|
-
readonly piped: boolean;
|
|
149
|
-
readonly ask: (key: string, question: string, from?: readonly {
|
|
150
|
-
readonly at: number;
|
|
151
|
-
readonly key: string;
|
|
152
|
-
readonly value: string;
|
|
153
|
-
}[]) => Promise<string>;
|
|
154
|
-
readonly line: () => Promise<string | undefined>;
|
|
155
|
-
readonly shut: () => void;
|
|
156
|
-
};
|
|
157
|
-
export declare function answered(): boolean;
|
|
158
|
-
export declare function given(): readonly {
|
|
159
|
-
readonly at: number;
|
|
160
|
-
readonly key: string;
|
|
161
|
-
readonly value: string;
|
|
162
|
-
}[];
|
|
163
|
-
export declare function handed(): string | undefined;
|
|
164
|
-
export declare const TYPED = "thread";
|
|
165
|
-
export declare const CARRIED: readonly {
|
|
166
|
-
readonly verb: string;
|
|
167
|
-
readonly typed: string;
|
|
168
|
-
readonly does: string;
|
|
169
|
-
}[];
|
|
170
|
-
export declare function wordsIn(offered: readonly string[]): readonly string[];
|
|
171
|
-
export declare function credentialIn(text: string): string | undefined;
|