@xyne/workflow-sdk 3.2.61 → 3.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/agent-step.d.ts +1 -1
- package/dist/agents/agent-step.d.ts.map +1 -1
- package/dist/agents/agent-step.js +6 -5
- package/dist/agents/agent-step.js.map +1 -1
- package/dist/agents/base-runtime.d.ts +1 -1
- package/dist/agents/base-runtime.d.ts.map +1 -1
- package/dist/agents/builtin/run-code-tool.d.ts +1 -1
- package/dist/agents/builtin/run-code-tool.d.ts.map +1 -1
- package/dist/agents/builtin/run-code-tool.js +1 -1
- package/dist/agents/builtin/run-code-tool.js.map +1 -1
- package/dist/agents/compaction.d.ts +62 -0
- package/dist/agents/compaction.d.ts.map +1 -0
- package/dist/agents/compaction.js +153 -0
- package/dist/agents/compaction.js.map +1 -0
- package/dist/agents/contract.d.ts +1 -1
- package/dist/agents/contract.d.ts.map +1 -1
- package/dist/agents/contract.js +1 -1
- package/dist/agents/contract.js.map +1 -1
- package/dist/agents/host-agent-step.d.ts +3 -3
- package/dist/agents/host-agent-step.d.ts.map +1 -1
- package/dist/agents/host-agent-step.js +1 -1
- package/dist/agents/host-agent-step.js.map +1 -1
- package/dist/agents/llm-call-policy.d.ts +48 -0
- package/dist/agents/llm-call-policy.d.ts.map +1 -0
- package/dist/agents/llm-call-policy.js +140 -0
- package/dist/agents/llm-call-policy.js.map +1 -0
- package/dist/agents/pi-mono-runtime.d.ts +1 -1
- package/dist/agents/pi-mono-runtime.d.ts.map +1 -1
- package/dist/agents/pi-mono-runtime.js +1 -1
- package/dist/agents/pi-mono-runtime.js.map +1 -1
- package/dist/agents/pi-session-runtime.d.ts +1 -1
- package/dist/agents/pi-session-runtime.d.ts.map +1 -1
- package/dist/agents/pi-session-runtime.js +1 -1
- package/dist/agents/pi-session-runtime.js.map +1 -1
- package/dist/agents/provider.d.ts +1 -1
- package/dist/agents/provider.d.ts.map +1 -1
- package/dist/agents/tool-types.d.ts +1 -1
- package/dist/agents/tool-types.d.ts.map +1 -1
- package/dist/builder/index.d.ts +1 -1
- package/dist/builder/index.d.ts.map +1 -1
- package/dist/builder/index.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/types.d.ts +10 -2
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow-client.d.ts.map +1 -1
- package/dist/client/workflow-client.js +8 -0
- package/dist/client/workflow-client.js.map +1 -1
- package/dist/common/attachment.d.ts +15 -1
- package/dist/common/attachment.d.ts.map +1 -1
- package/dist/common/attachment.js +23 -1
- package/dist/common/attachment.js.map +1 -1
- package/dist/common/citation-ref.d.ts +1 -1
- package/dist/common/citation-ref.d.ts.map +1 -1
- package/dist/common/citation-ref.js +1 -1
- package/dist/common/citation-ref.js.map +1 -1
- package/dist/common/credentials.d.ts +1 -1
- package/dist/common/credentials.d.ts.map +1 -1
- package/dist/common/credentials.js +1 -1
- package/dist/common/credentials.js.map +1 -1
- package/dist/connectors/builtin/steps/classifier-agent.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/classifier-agent.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/classifier-agent.step.js +1 -1
- package/dist/connectors/builtin/steps/classifier-agent.step.js.map +1 -1
- package/dist/connectors/builtin/steps/code.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/code.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/code.step.js +9 -6
- package/dist/connectors/builtin/steps/code.step.js.map +1 -1
- package/dist/connectors/builtin/steps/conditional.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/conditional.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/conditional.step.js +1 -1
- package/dist/connectors/builtin/steps/conditional.step.js.map +1 -1
- package/dist/connectors/builtin/steps/cycle.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/cycle.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/cycle.step.js +1 -1
- package/dist/connectors/builtin/steps/cycle.step.js.map +1 -1
- package/dist/connectors/builtin/steps/dedup.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/dedup.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/dedup.step.js +1 -1
- package/dist/connectors/builtin/steps/dedup.step.js.map +1 -1
- package/dist/connectors/builtin/steps/delay.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/delay.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/delay.step.js +1 -1
- package/dist/connectors/builtin/steps/delay.step.js.map +1 -1
- package/dist/connectors/builtin/steps/http-request.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/http-request.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/http-request.step.js +1 -1
- package/dist/connectors/builtin/steps/http-request.step.js.map +1 -1
- package/dist/connectors/builtin/steps/jump.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/jump.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/jump.step.js +1 -1
- package/dist/connectors/builtin/steps/jump.step.js.map +1 -1
- package/dist/connectors/builtin/steps/loop.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/loop.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/loop.step.js +1 -1
- package/dist/connectors/builtin/steps/loop.step.js.map +1 -1
- package/dist/connectors/builtin/steps/map.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/map.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/map.step.js +1 -1
- package/dist/connectors/builtin/steps/map.step.js.map +1 -1
- package/dist/connectors/builtin/steps/parallel.step.d.ts +5 -5
- package/dist/connectors/builtin/steps/parallel.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/parallel.step.js +1 -1
- package/dist/connectors/builtin/steps/parallel.step.js.map +1 -1
- package/dist/connectors/builtin/steps/switch.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/switch.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/switch.step.js +1 -1
- package/dist/connectors/builtin/steps/switch.step.js.map +1 -1
- package/dist/connectors/builtin/steps/wait-for-human.step.d.ts +8 -1
- package/dist/connectors/builtin/steps/wait-for-human.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/wait-for-human.step.js +16 -1
- package/dist/connectors/builtin/steps/wait-for-human.step.js.map +1 -1
- package/dist/connectors/builtin/steps/wait-for-webhook.step.d.ts +1 -1
- package/dist/connectors/builtin/steps/wait-for-webhook.step.d.ts.map +1 -1
- package/dist/connectors/builtin/steps/wait-for-webhook.step.js +1 -1
- package/dist/connectors/builtin/steps/wait-for-webhook.step.js.map +1 -1
- package/dist/connectors/builtin/triggers/default-cron-trigger.d.ts +1 -1
- package/dist/connectors/builtin/triggers/default-cron-trigger.d.ts.map +1 -1
- package/dist/connectors/builtin/triggers/default-cron-trigger.js +1 -1
- package/dist/connectors/builtin/triggers/default-cron-trigger.js.map +1 -1
- package/dist/connectors/builtin/triggers/default-event-trigger.d.ts +1 -1
- package/dist/connectors/builtin/triggers/default-event-trigger.d.ts.map +1 -1
- package/dist/connectors/builtin/triggers/default-event-trigger.js +1 -1
- package/dist/connectors/builtin/triggers/default-event-trigger.js.map +1 -1
- package/dist/connectors/builtin/triggers/default-manual-trigger.d.ts +1 -1
- package/dist/connectors/builtin/triggers/default-manual-trigger.d.ts.map +1 -1
- package/dist/connectors/builtin/triggers/default-manual-trigger.js +1 -1
- package/dist/connectors/builtin/triggers/default-manual-trigger.js.map +1 -1
- package/dist/connectors/builtin/triggers/default-webhook-v2-trigger.d.ts +4 -4
- package/dist/connectors/builtin/triggers/default-webhook-v2-trigger.d.ts.map +1 -1
- package/dist/connectors/core/base-connector.d.ts +1 -1
- package/dist/connectors/core/base-connector.d.ts.map +1 -1
- package/dist/engine/coerce-resolved-scalars.d.ts +1 -1
- package/dist/engine/coerce-resolved-scalars.d.ts.map +1 -1
- package/dist/engine/coerce-resolved-scalars.js +1 -1
- package/dist/engine/coerce-resolved-scalars.js.map +1 -1
- package/dist/engine/config-validator.js +1 -1
- package/dist/engine/config-validator.js.map +1 -1
- package/dist/engine/variable-resolver.d.ts +1 -1
- package/dist/engine/variable-resolver.d.ts.map +1 -1
- package/dist/engine/variable-resolver.js +1 -1
- package/dist/engine/variable-resolver.js.map +1 -1
- package/dist/engine/workflow-executor.d.ts.map +1 -1
- package/dist/engine/workflow-executor.js +13 -4
- package/dist/engine/workflow-executor.js.map +1 -1
- package/dist/expression/recalc.d.ts +26 -0
- package/dist/expression/recalc.d.ts.map +1 -0
- package/dist/expression/recalc.js +62 -0
- package/dist/expression/recalc.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/ingest/start-policy.d.ts +1 -1
- package/dist/ingest/start-policy.d.ts.map +1 -1
- package/dist/ingest/start-policy.js +1 -1
- package/dist/ingest/start-policy.js.map +1 -1
- package/dist/persistence/in-memory-adapter.d.ts +7 -0
- package/dist/persistence/in-memory-adapter.d.ts.map +1 -1
- package/dist/persistence/in-memory-adapter.js +35 -2
- package/dist/persistence/in-memory-adapter.js.map +1 -1
- package/dist/persistence/types.d.ts +32 -1
- package/dist/persistence/types.d.ts.map +1 -1
- package/dist/router/approval-context.d.ts.map +1 -1
- package/dist/router/approval-context.js +1 -4
- package/dist/router/approval-context.js.map +1 -1
- package/dist/router/workflow-router.d.ts.map +1 -1
- package/dist/router/workflow-router.js +33 -5
- package/dist/router/workflow-router.js.map +1 -1
- package/dist/runtime/workflow-runtime.d.ts +89 -4
- package/dist/runtime/workflow-runtime.d.ts.map +1 -1
- package/dist/runtime/workflow-runtime.js +176 -13
- package/dist/runtime/workflow-runtime.js.map +1 -1
- package/dist/steps/base-step.d.ts +1 -1
- package/dist/steps/base-step.d.ts.map +1 -1
- package/dist/steps/step-descriptor.d.ts +1 -1
- package/dist/steps/step-descriptor.d.ts.map +1 -1
- package/dist/triggers/api-trigger.d.ts +1 -1
- package/dist/triggers/api-trigger.d.ts.map +1 -1
- package/dist/triggers/base-trigger.d.ts +1 -1
- package/dist/triggers/base-trigger.d.ts.map +1 -1
- package/dist/triggers/cron-trigger.d.ts +1 -1
- package/dist/triggers/cron-trigger.d.ts.map +1 -1
- package/dist/triggers/event-trigger.d.ts +1 -1
- package/dist/triggers/event-trigger.d.ts.map +1 -1
- package/dist/triggers/manual-trigger.d.ts +1 -1
- package/dist/triggers/manual-trigger.d.ts.map +1 -1
- package/dist/triggers/trigger-descriptor.d.ts +1 -1
- package/dist/triggers/trigger-descriptor.d.ts.map +1 -1
- package/dist/triggers/webhook-trigger.d.ts +1 -1
- package/dist/triggers/webhook-trigger.d.ts.map +1 -1
- package/dist/types/audit-log.d.ts +55 -0
- package/dist/types/audit-log.d.ts.map +1 -0
- package/dist/types/audit-log.js +2 -0
- package/dist/types/audit-log.js.map +1 -0
- package/dist/types/categories.d.ts +1 -1
- package/dist/types/categories.d.ts.map +1 -1
- package/dist/types/categories.js +1 -1
- package/dist/types/categories.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/known-types.d.ts +1 -1
- package/dist/types/known-types.d.ts.map +1 -1
- package/dist/types/known-types.js +1 -1
- package/dist/types/known-types.js.map +1 -1
- package/dist/types/operators.d.ts +1 -1
- package/dist/types/operators.d.ts.map +1 -1
- package/dist/types/operators.js +1 -1
- package/dist/types/operators.js.map +1 -1
- package/dist/types/status.d.ts +1 -1
- package/dist/types/status.d.ts.map +1 -1
- package/dist/types/status.js +1 -1
- package/dist/types/status.js.map +1 -1
- package/dist/types/validation.d.ts +1 -1
- package/dist/types/validation.d.ts.map +1 -1
- package/dist/types/validation.js +1 -1
- package/dist/types/validation.js.map +1 -1
- package/dist/types/workflow-config.d.ts +57 -1
- package/dist/types/workflow-config.d.ts.map +1 -1
- package/dist/types/workflow-config.js +17 -1
- package/dist/types/workflow-config.js.map +1 -1
- package/dist/types/workflow-variable.d.ts +1 -1
- package/dist/types/workflow-variable.d.ts.map +1 -1
- package/dist/types/workflow-variable.js +1 -1
- package/dist/types/workflow-variable.js.map +1 -1
- package/dist/util/gate-assignees.d.ts +2 -0
- package/dist/util/gate-assignees.d.ts.map +1 -0
- package/dist/util/gate-assignees.js +14 -0
- package/dist/util/gate-assignees.js.map +1 -0
- package/dist/util/schema-convert.d.ts +1 -1
- package/dist/util/schema-convert.d.ts.map +1 -1
- package/dist/util/schema-marks.d.ts +1 -1
- package/dist/util/schema-marks.d.ts.map +1 -1
- package/dist/util/variable-ref.d.ts +3 -1
- package/dist/util/variable-ref.d.ts.map +1 -1
- package/dist/util/variable-ref.js +1 -1
- package/dist/util/variable-ref.js.map +1 -1
- package/dist/util/wait-audit.d.ts +9 -0
- package/dist/util/wait-audit.d.ts.map +1 -0
- package/dist/util/wait-audit.js +75 -0
- package/dist/util/wait-audit.js.map +1 -0
- package/package.json +4 -4
- package/dist/connectors/builtin/steps/compute.step.d.ts +0 -56
- package/dist/connectors/builtin/steps/compute.step.d.ts.map +0 -1
- package/dist/connectors/builtin/steps/compute.step.js +0 -48
- package/dist/connectors/builtin/steps/compute.step.js.map +0 -1
- package/dist/connectors/builtin/steps/wait-for-api-call.step.d.ts +0 -80
- package/dist/connectors/builtin/steps/wait-for-api-call.step.d.ts.map +0 -1
- package/dist/connectors/builtin/steps/wait-for-api-call.step.js +0 -104
- package/dist/connectors/builtin/steps/wait-for-api-call.step.js.map +0 -1
- package/dist/connectors/builtin/steps/wait.step.d.ts +0 -1087
- package/dist/connectors/builtin/steps/wait.step.d.ts.map +0 -1
- package/dist/connectors/builtin/steps/wait.step.js +0 -252
- package/dist/connectors/builtin/steps/wait.step.js.map +0 -1
- package/dist/conversational-flow/edit/followups.d.ts +0 -28
- package/dist/conversational-flow/edit/followups.d.ts.map +0 -1
- package/dist/conversational-flow/edit/followups.js +0 -103
- package/dist/conversational-flow/edit/followups.js.map +0 -1
- package/dist/util/computed-value.d.ts +0 -103
- package/dist/util/computed-value.d.ts.map +0 -1
- package/dist/util/computed-value.js +0 -453
- package/dist/util/computed-value.js.map +0 -1
- package/dist/util/expression-format.d.ts +0 -41
- package/dist/util/expression-format.d.ts.map +0 -1
- package/dist/util/expression-format.js +0 -84
- package/dist/util/expression-format.js.map +0 -1
- package/dist/util/expression-functions.d.ts +0 -35
- package/dist/util/expression-functions.d.ts.map +0 -1
- package/dist/util/expression-functions.js +0 -82
- package/dist/util/expression-functions.js.map +0 -1
- package/dist/util/expression.d.ts +0 -98
- package/dist/util/expression.d.ts.map +0 -1
- package/dist/util/expression.js +0 -395
- package/dist/util/expression.js.map +0 -1
- package/dist/util/jsonata-signatures.d.ts +0 -45
- package/dist/util/jsonata-signatures.d.ts.map +0 -1
- package/dist/util/jsonata-signatures.js +0 -113
- package/dist/util/jsonata-signatures.js.map +0 -1
- package/dist/util/signature.d.ts +0 -41
- package/dist/util/signature.d.ts.map +0 -1
- package/dist/util/signature.js +0 -124
- package/dist/util/signature.js.map +0 -1
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Every JSONata builtin, with the signature JSONata itself declares for it.
|
|
3
|
-
*
|
|
4
|
-
* **Generated, not written.** The names come from `staticFrame.bind('…')` in the
|
|
5
|
-
* installed `jsonata`, and each signature from evaluating `$name` — a builtin
|
|
6
|
-
* resolves to an object carrying `signature.definition`. `jsonata-signatures.test.ts`
|
|
7
|
-
* re-derives this table from the installed package and fails if it has drifted,
|
|
8
|
-
* so an upgrade cannot silently leave it stale.
|
|
9
|
-
*
|
|
10
|
-
* ## Why this is here at all
|
|
11
|
-
*
|
|
12
|
-
* The alternative was writing the types out by hand, and that was tried first:
|
|
13
|
-
* it put `object` on `$keys`, `array` on `$distinct` and `array` on `$append`,
|
|
14
|
-
* all three of which really take anything — so correct expressions were refused.
|
|
15
|
-
* A type checker that is wrong is worse than none, and the only defence is to
|
|
16
|
-
* take the types from the language rather than restate them.
|
|
17
|
-
*
|
|
18
|
-
* It also buys reach: every one of these is typed, not the twenty-odd a curated
|
|
19
|
-
* list would cover, and a name absent from this table is a name JSONata does not
|
|
20
|
-
* have — which is how a typo gets caught.
|
|
21
|
-
*
|
|
22
|
-
* ## Why generated rather than read at run time
|
|
23
|
-
*
|
|
24
|
-
* JSONata does expose these through its public API — `jsonata('$sum')
|
|
25
|
-
* .evaluate({})` resolves to the builtin object and carries
|
|
26
|
-
* `signature.definition`, no internals involved. The reason not to is that
|
|
27
|
-
* `evaluate` is **async**, and the catalogue it would feed is consulted
|
|
28
|
-
* synchronously while a menu renders. Reading them live would make building the
|
|
29
|
-
* catalogue async, or need a top-level await, to learn facts that are fixed for
|
|
30
|
-
* a given version of the dependency.
|
|
31
|
-
*
|
|
32
|
-
* So the table is a build-time snapshot of a run-time truth, and the drift test
|
|
33
|
-
* is what makes that safe: it takes the same public route on every run and
|
|
34
|
-
* fails if the two have parted. The one thing it reaches into the package for
|
|
35
|
-
* is the *list of names* — there is no public enumeration — and that stays in
|
|
36
|
-
* the test, never in what ships.
|
|
37
|
-
*
|
|
38
|
-
* Signatures are JSONata's own notation; `signature.ts` reads it.
|
|
39
|
-
*/
|
|
40
|
-
export declare const BUILTIN_SIGNATURES: Readonly<Record<string, string>>;
|
|
41
|
-
/** True when JSONata has a builtin by this name (with or without the `$`). */
|
|
42
|
-
export declare function isBuiltin(name: string): boolean;
|
|
43
|
-
/** JSONata's declared signature for a builtin, or undefined when it has none. */
|
|
44
|
-
export declare function builtinSignature(name: string): string | undefined;
|
|
45
|
-
//# sourceMappingURL=jsonata-signatures.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonata-signatures.d.ts","sourceRoot":"","sources":["../../src/util/jsonata-signatures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgE/D,CAAC;AAEF,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK/C;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEjE"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Every JSONata builtin, with the signature JSONata itself declares for it.
|
|
3
|
-
*
|
|
4
|
-
* **Generated, not written.** The names come from `staticFrame.bind('…')` in the
|
|
5
|
-
* installed `jsonata`, and each signature from evaluating `$name` — a builtin
|
|
6
|
-
* resolves to an object carrying `signature.definition`. `jsonata-signatures.test.ts`
|
|
7
|
-
* re-derives this table from the installed package and fails if it has drifted,
|
|
8
|
-
* so an upgrade cannot silently leave it stale.
|
|
9
|
-
*
|
|
10
|
-
* ## Why this is here at all
|
|
11
|
-
*
|
|
12
|
-
* The alternative was writing the types out by hand, and that was tried first:
|
|
13
|
-
* it put `object` on `$keys`, `array` on `$distinct` and `array` on `$append`,
|
|
14
|
-
* all three of which really take anything — so correct expressions were refused.
|
|
15
|
-
* A type checker that is wrong is worse than none, and the only defence is to
|
|
16
|
-
* take the types from the language rather than restate them.
|
|
17
|
-
*
|
|
18
|
-
* It also buys reach: every one of these is typed, not the twenty-odd a curated
|
|
19
|
-
* list would cover, and a name absent from this table is a name JSONata does not
|
|
20
|
-
* have — which is how a typo gets caught.
|
|
21
|
-
*
|
|
22
|
-
* ## Why generated rather than read at run time
|
|
23
|
-
*
|
|
24
|
-
* JSONata does expose these through its public API — `jsonata('$sum')
|
|
25
|
-
* .evaluate({})` resolves to the builtin object and carries
|
|
26
|
-
* `signature.definition`, no internals involved. The reason not to is that
|
|
27
|
-
* `evaluate` is **async**, and the catalogue it would feed is consulted
|
|
28
|
-
* synchronously while a menu renders. Reading them live would make building the
|
|
29
|
-
* catalogue async, or need a top-level await, to learn facts that are fixed for
|
|
30
|
-
* a given version of the dependency.
|
|
31
|
-
*
|
|
32
|
-
* So the table is a build-time snapshot of a run-time truth, and the drift test
|
|
33
|
-
* is what makes that safe: it takes the same public route on every run and
|
|
34
|
-
* fails if the two have parted. The one thing it reaches into the package for
|
|
35
|
-
* is the *list of names* — there is no public enumeration — and that stays in
|
|
36
|
-
* the test, never in what ships.
|
|
37
|
-
*
|
|
38
|
-
* Signatures are JSONata's own notation; `signature.ts` reads it.
|
|
39
|
-
*/
|
|
40
|
-
export const BUILTIN_SIGNATURES = {
|
|
41
|
-
abs: '<n-:n>',
|
|
42
|
-
append: '<xx:a>',
|
|
43
|
-
assert: '<bs?:x>',
|
|
44
|
-
average: '<a<n>:n>',
|
|
45
|
-
base64decode: '<s-:s>',
|
|
46
|
-
base64encode: '<s-:s>',
|
|
47
|
-
boolean: '<x-:b>',
|
|
48
|
-
ceil: '<n-:n>',
|
|
49
|
-
clone: '<(oa)-:o>',
|
|
50
|
-
contains: '<s-(sf):b>',
|
|
51
|
-
count: '<a:n>',
|
|
52
|
-
decodeUrl: '<s-:s>',
|
|
53
|
-
decodeUrlComponent: '<s-:s>',
|
|
54
|
-
distinct: '<x:x>',
|
|
55
|
-
each: '<o-f:a>',
|
|
56
|
-
encodeUrl: '<s-:s>',
|
|
57
|
-
encodeUrlComponent: '<s-:s>',
|
|
58
|
-
error: '<s?:x>',
|
|
59
|
-
eval: '<sx?:x>',
|
|
60
|
-
exists: '<x:b>',
|
|
61
|
-
filter: '<af>',
|
|
62
|
-
floor: '<n-:n>',
|
|
63
|
-
formatBase: '<n-n?:s>',
|
|
64
|
-
formatInteger: '<n-s:s>',
|
|
65
|
-
formatNumber: '<n-so?:s>',
|
|
66
|
-
fromMillis: '<n-s?s?:s>',
|
|
67
|
-
join: '<a<s>s?:s>',
|
|
68
|
-
keys: '<x-:a<s>>',
|
|
69
|
-
length: '<s-:n>',
|
|
70
|
-
lookup: '<x-s:x>',
|
|
71
|
-
lowercase: '<s-:s>',
|
|
72
|
-
map: '<af>',
|
|
73
|
-
match: '<s-f<s:o>n?:a<o>>',
|
|
74
|
-
max: '<a<n>:n>',
|
|
75
|
-
merge: '<a<o>:o>',
|
|
76
|
-
min: '<a<n>:n>',
|
|
77
|
-
not: '<x-:b>',
|
|
78
|
-
number: '<(nsb)-:n>',
|
|
79
|
-
pad: '<s-ns?:s>',
|
|
80
|
-
parseInteger: '<s-s:n>',
|
|
81
|
-
power: '<n-n:n>',
|
|
82
|
-
random: '<:n>',
|
|
83
|
-
reduce: '<afj?:j>',
|
|
84
|
-
replace: '<s-(sf)(sf)n?:s>',
|
|
85
|
-
reverse: '<a:a>',
|
|
86
|
-
round: '<n-n?:n>',
|
|
87
|
-
shuffle: '<a:a>',
|
|
88
|
-
sift: '<o-f?:o>',
|
|
89
|
-
single: '<af?>',
|
|
90
|
-
sort: '<af?:a>',
|
|
91
|
-
split: '<s-(sf)n?:a<s>>',
|
|
92
|
-
spread: '<x-:a<o>>',
|
|
93
|
-
sqrt: '<n-:n>',
|
|
94
|
-
string: '<x-b?:s>',
|
|
95
|
-
substring: '<s-nn?:s>',
|
|
96
|
-
substringAfter: '<s-s:s>',
|
|
97
|
-
substringBefore: '<s-s:s>',
|
|
98
|
-
sum: '<a<n>:n>',
|
|
99
|
-
toMillis: '<s-s?:n>',
|
|
100
|
-
trim: '<s-:s>',
|
|
101
|
-
type: '<x:s>',
|
|
102
|
-
uppercase: '<s-:s>',
|
|
103
|
-
zip: '<a+>',
|
|
104
|
-
};
|
|
105
|
-
/** True when JSONata has a builtin by this name (with or without the `$`). */
|
|
106
|
-
export function isBuiltin(name) {
|
|
107
|
-
return Object.prototype.hasOwnProperty.call(BUILTIN_SIGNATURES, name.startsWith('$') ? name.slice(1) : name);
|
|
108
|
-
}
|
|
109
|
-
/** JSONata's declared signature for a builtin, or undefined when it has none. */
|
|
110
|
-
export function builtinSignature(name) {
|
|
111
|
-
return BUILTIN_SIGNATURES[name.startsWith('$') ? name.slice(1) : name];
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=jsonata-signatures.js.map
|
|
@@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giving
|
|
3
|
-
* a number".
|
|
4
|
-
*
|
|
5
|
-
* Written here because JSONata's own parser is bundled with no import path to
|
|
6
|
-
* it, and no standalone package exists; the Go port wrote its own and the Rust
|
|
7
|
-
* one dropped signatures entirely. What *is* reachable, `signature.validate`,
|
|
8
|
-
* checks values, and author-time checking has types and no values.
|
|
9
|
-
*
|
|
10
|
-
* s n b l o a f string, number, boolean, null, object, array, function
|
|
11
|
-
* u j x some scalar, any JSON, anything
|
|
12
|
-
* a<T> a list of T — the distinction the checker rests on
|
|
13
|
-
* (sf) either; read as `unknown`
|
|
14
|
-
* - ? + from context, optional, variadic
|
|
15
|
-
*/
|
|
16
|
-
import type { ExprType } from './type-compat.js';
|
|
17
|
-
export interface SignatureParam {
|
|
18
|
-
type: ExprType;
|
|
19
|
-
/** Declared `?` — absent is fine. */
|
|
20
|
-
optional: boolean;
|
|
21
|
-
/** Declared `+` — this type, one or more times, to the end of the call. */
|
|
22
|
-
variadic: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Declared `-` — JSONata may supply this argument from the context when it is left out.
|
|
25
|
-
*/
|
|
26
|
-
fromContext: boolean;
|
|
27
|
-
/** Declared `f` — this argument is a function. */
|
|
28
|
-
isFunction: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface Signature {
|
|
31
|
-
params: SignatureParam[];
|
|
32
|
-
/** `unknown` when the signature declares no return, as `<af>` does. */
|
|
33
|
-
returns: ExprType;
|
|
34
|
-
}
|
|
35
|
-
/** Read a signature, or null when it cannot be read. */
|
|
36
|
-
export declare function parseSignature(definition: string): Signature | null;
|
|
37
|
-
/**
|
|
38
|
-
* The parameter governing argument `index`, or undefined when the call has more arguments than the signature describes.
|
|
39
|
-
*/
|
|
40
|
-
export declare function paramAt(signature: Signature, index: number): SignatureParam | undefined;
|
|
41
|
-
//# sourceMappingURL=signature.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../src/util/signature.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,qCAAqC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,2EAA2E;IAC3E,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,uEAAuE;IACvE,OAAO,EAAE,QAAQ,CAAC;CACnB;AAwED,wDAAwD;AACxD,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAmCnE;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAKvF"}
|
package/dist/util/signature.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/** One type, from `at`, and where reading it finished. */
|
|
2
|
-
function readType(definition, at) {
|
|
3
|
-
const char = definition[at];
|
|
4
|
-
if (char === undefined)
|
|
5
|
-
return null;
|
|
6
|
-
let i = at + 1;
|
|
7
|
-
// Either of several things — not describable, so not checked.
|
|
8
|
-
if (char === '(') {
|
|
9
|
-
for (let depth = 1; i < definition.length && depth > 0; i++) {
|
|
10
|
-
if (definition[i] === '(')
|
|
11
|
-
depth++;
|
|
12
|
-
else if (definition[i] === ')')
|
|
13
|
-
depth--;
|
|
14
|
-
}
|
|
15
|
-
return { type: 'unknown', next: i };
|
|
16
|
-
}
|
|
17
|
-
if (char === 'a') {
|
|
18
|
-
if (definition[i] !== '<')
|
|
19
|
-
return { type: 'array', next: i };
|
|
20
|
-
const inner = readType(definition, i + 1);
|
|
21
|
-
if (inner === null || definition[inner.next] !== '>')
|
|
22
|
-
return null;
|
|
23
|
-
return { type: { array: inner.type }, next: inner.next + 1 };
|
|
24
|
-
}
|
|
25
|
-
if (char === 'f') {
|
|
26
|
-
// A function, possibly with a signature of its own. Nothing in this
|
|
27
|
-
if (definition[i] === '<') {
|
|
28
|
-
for (let depth = 1; i < definition.length && depth > 0;) {
|
|
29
|
-
i++;
|
|
30
|
-
if (definition[i] === '<')
|
|
31
|
-
depth++;
|
|
32
|
-
else if (definition[i] === '>')
|
|
33
|
-
depth--;
|
|
34
|
-
}
|
|
35
|
-
i++;
|
|
36
|
-
}
|
|
37
|
-
return { type: 'unknown', next: i, isFunction: true };
|
|
38
|
-
}
|
|
39
|
-
switch (char) {
|
|
40
|
-
case 's':
|
|
41
|
-
return { type: 'string', next: i };
|
|
42
|
-
case 'n':
|
|
43
|
-
return { type: 'number', next: i };
|
|
44
|
-
case 'b':
|
|
45
|
-
return { type: 'boolean', next: i };
|
|
46
|
-
case 'o':
|
|
47
|
-
return { type: 'object', next: i };
|
|
48
|
-
// `l` is null, `u`/`j`/`x` are "some scalar" / "any JSON" / "anything".
|
|
49
|
-
case 'l':
|
|
50
|
-
case 'u':
|
|
51
|
-
case 'j':
|
|
52
|
-
case 'x':
|
|
53
|
-
return { type: 'unknown', next: i };
|
|
54
|
-
default:
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/** Where the parameters end and the return type begins, or -1 for neither. */
|
|
59
|
-
function returnSeparator(body) {
|
|
60
|
-
let depth = 0;
|
|
61
|
-
for (let i = 0; i < body.length; i++) {
|
|
62
|
-
const char = body[i];
|
|
63
|
-
if (char === '<' || char === '(')
|
|
64
|
-
depth++;
|
|
65
|
-
else if (char === '>' || char === ')')
|
|
66
|
-
depth--;
|
|
67
|
-
else if (char === ':' && depth === 0)
|
|
68
|
-
return i;
|
|
69
|
-
}
|
|
70
|
-
return -1;
|
|
71
|
-
}
|
|
72
|
-
/** Read a signature, or null when it cannot be read. */
|
|
73
|
-
export function parseSignature(definition) {
|
|
74
|
-
if (!definition.startsWith('<') || !definition.endsWith('>'))
|
|
75
|
-
return null;
|
|
76
|
-
const body = definition.slice(1, -1);
|
|
77
|
-
const separator = returnSeparator(body);
|
|
78
|
-
const paramText = separator === -1 ? body : body.slice(0, separator);
|
|
79
|
-
const returnText = separator === -1 ? '' : body.slice(separator + 1);
|
|
80
|
-
const params = [];
|
|
81
|
-
let at = 0;
|
|
82
|
-
while (at < paramText.length) {
|
|
83
|
-
const read = readType(paramText, at);
|
|
84
|
-
if (read === null)
|
|
85
|
-
return null;
|
|
86
|
-
at = read.next;
|
|
87
|
-
const param = {
|
|
88
|
-
type: read.type,
|
|
89
|
-
optional: false,
|
|
90
|
-
variadic: false,
|
|
91
|
-
fromContext: false,
|
|
92
|
-
isFunction: read.isFunction ?? false,
|
|
93
|
-
};
|
|
94
|
-
// Modifiers follow the type, in any order and any number.
|
|
95
|
-
for (; at < paramText.length; at++) {
|
|
96
|
-
if (paramText[at] === '?')
|
|
97
|
-
param.optional = true;
|
|
98
|
-
else if (paramText[at] === '+')
|
|
99
|
-
param.variadic = true;
|
|
100
|
-
else if (paramText[at] === '-')
|
|
101
|
-
param.fromContext = true;
|
|
102
|
-
else
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
params.push(param);
|
|
106
|
-
}
|
|
107
|
-
if (returnText === '')
|
|
108
|
-
return { params, returns: 'unknown' };
|
|
109
|
-
const returned = readType(returnText, 0);
|
|
110
|
-
if (returned === null || returned.next !== returnText.length)
|
|
111
|
-
return null;
|
|
112
|
-
return { params, returns: returned.type };
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* The parameter governing argument `index`, or undefined when the call has more arguments than the signature describes.
|
|
116
|
-
*/
|
|
117
|
-
export function paramAt(signature, index) {
|
|
118
|
-
const exact = signature.params[index];
|
|
119
|
-
if (exact)
|
|
120
|
-
return exact;
|
|
121
|
-
const last = signature.params[signature.params.length - 1];
|
|
122
|
-
return last?.variadic ? last : undefined;
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=signature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../src/util/signature.ts"],"names":[],"mappings":"AAqCA,0DAA0D;AAC1D,SAAS,QAAQ,CACf,UAAkB,EAClB,EAAU;IAEV,MAAM,IAAI,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;IAC5B,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACpC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAEf,8DAA8D;IAC9D,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACjB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5D,IAAI,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG;gBAAE,KAAK,EAAE,CAAC;iBAC9B,IAAI,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG;gBAAE,KAAK,EAAE,CAAC;QAC1C,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IACtC,CAAC;IAED,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACjB,IAAI,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG;YAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAC7D,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1C,IAAI,KAAK,KAAK,IAAI,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG;YAAE,OAAO,IAAI,CAAC;QAClE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,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