@mnmal-ai/substrate 1.0.0-alpha.11 → 1.0.0-alpha.12
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 +4 -2
- package/dist/{boot-store-C5vNZJ3i.js → boot-store-DHv9H1Gr.js} +165 -69
- package/dist/{bridge-COu0Tg_h.d.ts → bridge-DQyQ6Qhn.d.ts} +1 -1
- package/dist/{cli-BrwW4tjO.js → cli-_UNdneXr.js} +11 -9
- package/dist/client.d.ts +3 -3
- package/dist/client.js +3 -3
- package/dist/{errors-BOllGhVx.d.ts → errors-xP9Mo7Q1.d.ts} +25 -4
- package/dist/{index-Cp74OcmS.d.ts → index-baF5A5jU.d.ts} +1 -1
- package/dist/pack.d.ts +2 -2
- package/dist/pack.js +1 -1
- package/dist/{pg-edges-store-BLsbcXkk.js → pg-edges-store-B4FSN9yp.js} +72 -9
- package/dist/{plugin-DIYm2cZE.js → plugin-BLm5IRdX.js} +2 -2
- package/dist/proposals-bootstrap.js +2 -2
- package/dist/proposals.d.ts +2 -2
- package/dist/proposals.js +1 -1
- package/dist/recall-bootstrap.js +2 -2
- package/dist/recall.d.ts +10 -10
- package/dist/recall.js +2 -2
- package/dist/{repl-B8gy0YM7.js → repl-DUJGBwie.js} +25 -25
- package/dist/{row-DwaDU4b-.d.ts → row-Cu_iRhcR.d.ts} +2 -2
- package/dist/{run-B18qtGKc.js → run-BpsTNvdI.js} +520 -141
- package/dist/{schema-CijHRfuk.d.ts → schema-oXfQyo0s.d.ts} +272 -27
- package/dist/sdk.d.ts +93 -29
- package/dist/sdk.js +4 -4
- package/dist/{src-D041j6GS.js → src-Bew_JvTo.js} +32 -16
- package/dist/{src-DpPdw2oL.js → src-Bi3NhEsT.js} +1 -1
- package/dist/{src-DK7VEQT6.js → src-C4t1Gy-m.js} +2477 -830
- package/dist/{src-Br6aDUti.js → src-CHND7-Pm.js} +2 -2
- package/dist/src-CSe2tJDf.js +6940 -0
- package/dist/{src-DptNGNYQ.js → src-CzhKLsOV.js} +175 -91
- package/dist/{src-Dbvuel6w.js → src-DWqzrm3O.js} +18 -1
- package/dist/substrate-admin.js +1 -1
- package/dist/substrate.js +1 -1
- package/dist/testing.d.ts +233 -92
- package/dist/testing.js +6 -23
- package/dist/{ws-DC8OhMaV.d.ts → ws-Dx3A2B4U.d.ts} +2 -2
- package/package.json +19 -20
- package/dist/src-gz4I1F29.js +0 -5097
package/dist/client.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
2
|
import { a as adminClaimCapabilities, c as makeTokenProvider, d as resolveDefaultKidPath, i as DEFAULT_CAPABILITIES, l as resolveAdminCredential, o as isEncryptedKey, r as ADMIN_CAPABILITIES, s as makeAuthorizationProvider, u as resolveDefaultKeyPath } from "./env-utils-CGNazUNt.js";
|
|
3
|
-
import { A as expandFlat, C as not, D as isActiveAdminKeyRow, E as describeGrant, F as parseGrantEntries, I as decodeList, L as encodeList, M as grantEntryError, N as grantIsUniform, O as capabilitiesFor, P as intersectGrants, S as and, T as SYSTEM_NAMESPACE, _ as grantCovers, a as denyAll, b as newlyGrantedPairs, c as requireIdentity, g as checkUpdatable, h as checkRevocable, i as allowVerbs, j as flattenGrant, k as encodeGrant, l as requireNamespace, n as row, o as denyVerbs, r as allowAll, s as requireCapability, t as applyRowFilters, v as grantEntriesConfer, w as or, x as revokedAtIso, y as newlyGranted } from "./src-
|
|
4
|
-
import { f as SchemaDriftError } from "./src-
|
|
5
|
-
import { C as diagnose, S as DIAGNOSE_CHECKS, _ as SKIPPABLE_STEPS, a as SubstrateClient, b as planOnboarding, c as reduceSubscribeRows, d as NetworkError, f as SubscribeError, g as ONBOARD_STEPS, h as CURRENT_MARK, i as tokenAudience, l as watchRows, m as BACKFILL_CHUNK, n as resolveAgentCapabilities, o as collectDiagnostics, p as AdminBackfillError, r as noRedirectFetch, s as createDefaultDiagnosticsSink, t as createClientFromEnv, u as AuthError, v as STEP_MARKS, w as reconcileIdentities, x as requiredOutstanding, y as currentStep } from "./src-
|
|
3
|
+
import { A as expandFlat, C as not, D as isActiveAdminKeyRow, E as describeGrant, F as parseGrantEntries, I as decodeList, L as encodeList, M as grantEntryError, N as grantIsUniform, O as capabilitiesFor, P as intersectGrants, S as and, T as SYSTEM_NAMESPACE, _ as grantCovers, a as denyAll, b as newlyGrantedPairs, c as requireIdentity, g as checkUpdatable, h as checkRevocable, i as allowVerbs, j as flattenGrant, k as encodeGrant, l as requireNamespace, n as row, o as denyVerbs, r as allowAll, s as requireCapability, t as applyRowFilters, v as grantEntriesConfer, w as or, x as revokedAtIso, y as newlyGranted } from "./src-Bi3NhEsT.js";
|
|
4
|
+
import { f as SchemaDriftError } from "./src-DWqzrm3O.js";
|
|
5
|
+
import { C as diagnose, S as DIAGNOSE_CHECKS, _ as SKIPPABLE_STEPS, a as SubstrateClient, b as planOnboarding, c as reduceSubscribeRows, d as NetworkError, f as SubscribeError, g as ONBOARD_STEPS, h as CURRENT_MARK, i as tokenAudience, l as watchRows, m as BACKFILL_CHUNK, n as resolveAgentCapabilities, o as collectDiagnostics, p as AdminBackfillError, r as noRedirectFetch, s as createDefaultDiagnosticsSink, t as createClientFromEnv, u as AuthError, v as STEP_MARKS, w as reconcileIdentities, x as requiredOutstanding, y as currentStep } from "./src-CHND7-Pm.js";
|
|
6
6
|
import { n as runScript, t as DEFAULT_MAX_WRITES } from "./script-C6DSa_Na.js";
|
|
7
7
|
|
|
8
8
|
export { ADMIN_CAPABILITIES, AdminBackfillError, AuthError, BACKFILL_CHUNK, CURRENT_MARK, DEFAULT_CAPABILITIES, DEFAULT_MAX_WRITES, DIAGNOSE_CHECKS, NetworkError, ONBOARD_STEPS, SKIPPABLE_STEPS, STEP_MARKS, SYSTEM_NAMESPACE, SchemaDriftError, SubscribeError, SubstrateClient, adminClaimCapabilities, allowAll, allowVerbs, and, applyRowFilters, capabilitiesFor, checkRevocable, checkUpdatable, collectDiagnostics, createClientFromEnv, createDefaultDiagnosticsSink, currentStep, decodeList, denyAll, denyVerbs, describeGrant, diagnose, encodeGrant, encodeList, expandFlat, flattenGrant, grantCovers, grantEntriesConfer, grantEntryError, grantIsUniform, intersectGrants, isActiveAdminKeyRow, isEncryptedKey, makeAuthorizationProvider, makeTokenProvider, newlyGranted, newlyGrantedPairs, noRedirectFetch, not, or, parseGrantEntries, planOnboarding, reconcileIdentities, reduceSubscribeRows, requireCapability, requireIdentity, requireNamespace, requiredOutstanding, resolveAdminCredential, resolveAgentCapabilities, resolveDefaultKeyPath, resolveDefaultKidPath, revokedAtIso, row, runScript, tokenAudience, watchRows };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { xn as EdgeRef, yn as Edge } from "./schema-oXfQyo0s.js";
|
|
2
2
|
//#region ../../packages/substrate-types/src/errors.d.ts
|
|
3
|
+
/** A by-filter write matched more rows than `SUBSTRATE_FILTER_WRITE_MAX_MATCH`; nothing changed. */
|
|
4
|
+
declare const FILTER_TOO_BROAD = "filter_too_broad";
|
|
3
5
|
/** Refusal codes for the typed-edge-walk grammar. */
|
|
4
6
|
declare const WALKS_NEED_PARTITIONED = "walks_need_partitioned";
|
|
5
7
|
declare const WALKS_IN_SUBSCRIPTION = "walks_in_subscription";
|
|
@@ -7,6 +9,8 @@ declare const WALKS_IN_MUTATION = "walks_in_mutation";
|
|
|
7
9
|
declare const ROW_POLICY_BLOCKS_WALK = "row_policy_blocks_walk";
|
|
8
10
|
declare const WALK_BUDGET_EXCEEDED = "walk_budget_exceeded";
|
|
9
11
|
declare const WALKS_UNSUPPORTED_STORE = "walks_unsupported_store";
|
|
12
|
+
/** A read cancelled by the store's statement timeout; `details: { timeoutMs }`. */
|
|
13
|
+
declare const QUERY_TIMEOUT = "query_timeout";
|
|
10
14
|
/**
|
|
11
15
|
* A walk construct refused where it cannot be answered: inside a struct, over
|
|
12
16
|
* a list or struct-nested crossRef, under a reused field name, on a virtual
|
|
@@ -42,6 +46,8 @@ declare class ResolverFrameError extends Error {
|
|
|
42
46
|
readonly details?: Record<string, unknown>;
|
|
43
47
|
constructor(code: string, message: string, details?: Record<string, unknown>);
|
|
44
48
|
}
|
|
49
|
+
/** `filter_too_broad`: a by-filter write on `<namespace>/<type>` matched more than `maxMatch` rows. */
|
|
50
|
+
declare function filterTooBroad(namespace: string, type: string, maxMatch: number): ResolverFrameError;
|
|
45
51
|
/**
|
|
46
52
|
* Thrown by a write-path resolver when a crossRef declaring `onMissing: 'reject'`
|
|
47
53
|
* references a target that does not exist (or has been tombstoned). Extends
|
|
@@ -91,11 +97,12 @@ declare class NamespaceMismatch extends Error {
|
|
|
91
97
|
}
|
|
92
98
|
/**
|
|
93
99
|
* Thrown by `Dataset.updateField` when the caller targets a reserved
|
|
94
|
-
* field name (e.g. `_deletedAt`)
|
|
100
|
+
* field name (e.g. `_deletedAt`), and by any other write path that refuses
|
|
101
|
+
* one; `how` names that path in the message. Spec §4.5.
|
|
95
102
|
*/
|
|
96
103
|
declare class ReservedField extends Error {
|
|
97
104
|
readonly name = "ReservedField";
|
|
98
|
-
constructor(field: string);
|
|
105
|
+
constructor(field: string, how?: string);
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* The `(auth)` tag `HttpBridgeClient` appends to a 401/403 cause. Single
|
|
@@ -118,6 +125,20 @@ declare class BridgeUnreachableError extends Error {
|
|
|
118
125
|
readonly cause: unknown;
|
|
119
126
|
constructor(bridgeName: string, baseUrl: string, cause: unknown);
|
|
120
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Thrown by a `BatchResolver` to refuse element `index` of its args list. The
|
|
130
|
+
* engine rolls back the whole array and reports `cause` as the per-element
|
|
131
|
+
* resolver would have: a `ResolverFrameError` or `RestrictViolation` keeps
|
|
132
|
+
* its code at `[key]`, and `batched_frame_rolled_back` names the element.
|
|
133
|
+
*/
|
|
134
|
+
declare class BatchElementError extends Error {
|
|
135
|
+
readonly index: number;
|
|
136
|
+
readonly cause: unknown;
|
|
137
|
+
readonly name = "BatchElementError";
|
|
138
|
+
constructor(index: number, cause: unknown);
|
|
139
|
+
}
|
|
140
|
+
/** Recognise a {@link BatchElementError} across module-realm boundaries. */
|
|
141
|
+
declare function isBatchElementError(err: unknown): err is BatchElementError;
|
|
121
142
|
/**
|
|
122
143
|
* Recognise a {@link ResolverFrameError} across module-realm boundaries.
|
|
123
144
|
*
|
|
@@ -140,4 +161,4 @@ declare function isResolverFrameError(err: unknown): err is ResolverFrameError;
|
|
|
140
161
|
*/
|
|
141
162
|
declare function isRestrictViolation(err: unknown): err is RestrictViolation;
|
|
142
163
|
//#endregion
|
|
143
|
-
export { isRestrictViolation as _,
|
|
164
|
+
export { isRestrictViolation as S, WALK_UNSUPPORTED_REF as _, NamespaceMismatch as a, isBatchElementError as b, ReservedField as c, UnsupportedFilterError as d, WALKS_IN_MUTATION as f, WALK_BUDGET_EXCEEDED as g, WALKS_UNSUPPORTED_STORE as h, MissingReferentError as i, ResolverFrameError as l, WALKS_NEED_PARTITIONED as m, BridgeUnreachableError as n, QUERY_TIMEOUT as o, WALKS_IN_SUBSCRIPTION as p, FILTER_TOO_BROAD as r, ROW_POLICY_BLOCKS_WALK as s, BatchElementError as t, RestrictViolation as u, filterTooBroad as v, isResolverFrameError as x, isAuthCause as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as PackEnvelope, i as FieldDef, l as FieldInput, m as Schema } from "./schema-
|
|
1
|
+
import { f as PackEnvelope, i as FieldDef, l as FieldInput, m as Schema } from "./schema-oXfQyo0s.js";
|
|
2
2
|
import { pack as packFrame, unpack as unpackFrame } from "msgpackr";
|
|
3
3
|
//#region ../../packages/substrate-pack/src/decoder.d.ts
|
|
4
4
|
interface DecodeContext {
|
package/dist/pack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as PackEnvelope, i as FieldDef, l as FieldInput, m as Schema } from "./schema-
|
|
2
|
-
import { a as DecodeEnvelopeCtx, c as decodeEnvelope, i as DecodeContext, l as decodePositional, n as packFrame, o as PackDecodeError, r as unpackFrame, s as SchemaDriftError, t as WS_SUBPROTOCOL_SUBSTRATE_PACK, u as decodePositionalFromFieldDef } from "./index-
|
|
1
|
+
import { f as PackEnvelope, i as FieldDef, l as FieldInput, m as Schema } from "./schema-oXfQyo0s.js";
|
|
2
|
+
import { a as DecodeEnvelopeCtx, c as decodeEnvelope, i as DecodeContext, l as decodePositional, n as packFrame, o as PackDecodeError, r as unpackFrame, s as SchemaDriftError, t as WS_SUBPROTOCOL_SUBSTRATE_PACK, u as decodePositionalFromFieldDef } from "./index-baF5A5jU.js";
|
|
3
3
|
//#region ../../packages/substrate-pack/src/content-type.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Content-type negotiation. Spec: §7.0.
|
package/dist/pack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { _ as encodeEnvelope, a as buildDecodePlan, c as isPlainRequestData, d as PackDecodeError, f as SchemaDriftError, g as PackEncodeError, h as decodePositionalFromFieldDef, i as applyDecodePlanInPlace, l as decodeStreamChunk, m as decodePositional, n as packFrame, o as decodeWsEnvelope, p as decodeEnvelope, r as unpackFrame, s as encodeWsFrame, t as WS_SUBPROTOCOL_SUBSTRATE_PACK, u as encodeStreamChunk, v as encodePositional, y as encodePositionalFromFieldDef } from "./src-
|
|
2
|
+
import { _ as encodeEnvelope, a as buildDecodePlan, c as isPlainRequestData, d as PackDecodeError, f as SchemaDriftError, g as PackEncodeError, h as decodePositionalFromFieldDef, i as applyDecodePlanInPlace, l as decodeStreamChunk, m as decodePositional, n as packFrame, o as decodeWsEnvelope, p as decodeEnvelope, r as unpackFrame, s as encodeWsFrame, t as WS_SUBPROTOCOL_SUBSTRATE_PACK, u as encodeStreamChunk, v as encodePositional, y as encodePositionalFromFieldDef } from "./src-DWqzrm3O.js";
|
|
3
3
|
import { n as acceptsPack, t as PACK_MIME } from "./content-type-C7T28xNb.js";
|
|
4
4
|
|
|
5
5
|
export { PACK_MIME, PackDecodeError, PackEncodeError, SchemaDriftError, WS_SUBPROTOCOL_SUBSTRATE_PACK, acceptsPack, applyDecodePlanInPlace, buildDecodePlan, decodeEnvelope, decodePositional, decodePositionalFromFieldDef, decodeStreamChunk, decodeWsEnvelope, encodeEnvelope, encodePositional, encodePositionalFromFieldDef, encodeStreamChunk, encodeWsFrame, isPlainRequestData, packFrame, unpackFrame };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { n as txScopeIdFor } from "./src-
|
|
2
|
+
import { n as txScopeIdFor } from "./src-CSe2tJDf.js";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region ../../packages/substrate-dataset-pg/src/pg-edges-store.ts
|
|
@@ -85,6 +85,54 @@ var PgEdgesStore = class PgEdgesStore {
|
|
|
85
85
|
createdAt
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
+
async writeMany(inputs) {
|
|
89
|
+
if (inputs.length === 0) return [];
|
|
90
|
+
const edges = inputs.map((input) => {
|
|
91
|
+
return {
|
|
92
|
+
id: randomUUID(),
|
|
93
|
+
from: buildRef(input.from.ns, input.from.type, refToId(input.from.id), input.from.bridged === true),
|
|
94
|
+
to: buildRef(input.to.ns, input.to.type, refToId(input.to.id), input.to.bridged === true),
|
|
95
|
+
fieldName: input.fieldName,
|
|
96
|
+
policy: input.policy,
|
|
97
|
+
createdAt: this.#now()
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
await this.#sql`
|
|
101
|
+
INSERT INTO edges (
|
|
102
|
+
id, from_ns, from_type, from_id, from_bridged,
|
|
103
|
+
to_ns, to_type, to_id, to_bridged,
|
|
104
|
+
field_name, policy, created_at, deleted_at, last_swept_at, blocked
|
|
105
|
+
)
|
|
106
|
+
SELECT t.id, t.from_ns, t.from_type, t.from_id, t.from_bridged::boolean,
|
|
107
|
+
t.to_ns, t.to_type, t.to_id, t.to_bridged::boolean,
|
|
108
|
+
t.field_name, t.policy, t.created_at::timestamptz, NULL, NULL, false
|
|
109
|
+
FROM unnest(
|
|
110
|
+
${edges.map((e) => e.id)}::uuid[],
|
|
111
|
+
${edges.map((e) => e.from.ns)}::text[],
|
|
112
|
+
${edges.map((e) => e.from.type)}::text[],
|
|
113
|
+
${edges.map((e) => String(e.from.id))}::text[],
|
|
114
|
+
${edges.map((e) => String(e.from.bridged === true))}::text[],
|
|
115
|
+
${edges.map((e) => e.to.ns)}::text[],
|
|
116
|
+
${edges.map((e) => e.to.type)}::text[],
|
|
117
|
+
${edges.map((e) => String(e.to.id))}::text[],
|
|
118
|
+
${edges.map((e) => String(e.to.bridged === true))}::text[],
|
|
119
|
+
${edges.map((e) => e.fieldName)}::text[],
|
|
120
|
+
${edges.map((e) => e.policy)}::text[],
|
|
121
|
+
${edges.map((e) => e.createdAt.toISOString())}::text[]
|
|
122
|
+
) AS t(id, from_ns, from_type, from_id, from_bridged,
|
|
123
|
+
to_ns, to_type, to_id, to_bridged, field_name, policy, created_at)
|
|
124
|
+
`;
|
|
125
|
+
return edges;
|
|
126
|
+
}
|
|
127
|
+
async tombstoneMany(ids, at) {
|
|
128
|
+
if (ids.length === 0) return;
|
|
129
|
+
await this.#sql`
|
|
130
|
+
UPDATE edges
|
|
131
|
+
SET deleted_at = ${at ?? this.#now()}
|
|
132
|
+
WHERE id = ANY(${ids}::uuid[])
|
|
133
|
+
AND deleted_at IS NULL
|
|
134
|
+
`;
|
|
135
|
+
}
|
|
88
136
|
async tombstone(id, at) {
|
|
89
137
|
const stamp = at ?? this.#now();
|
|
90
138
|
await this.#sql`
|
|
@@ -164,27 +212,42 @@ var PgEdgesStore = class PgEdgesStore {
|
|
|
164
212
|
`).map(rowToEdge);
|
|
165
213
|
}
|
|
166
214
|
async findEdgesToMany(refs) {
|
|
215
|
+
return this.#findMany("to", refs);
|
|
216
|
+
}
|
|
217
|
+
async findEdgesFromMany(refs) {
|
|
218
|
+
return this.#findMany("from", refs);
|
|
219
|
+
}
|
|
220
|
+
async #findMany(side, refs) {
|
|
167
221
|
if (refs.length === 0) return [];
|
|
168
222
|
const sql = this.#sql;
|
|
169
223
|
const seenRef = /* @__PURE__ */ new Set();
|
|
170
|
-
const
|
|
171
|
-
const
|
|
172
|
-
const
|
|
224
|
+
const seekNs = [];
|
|
225
|
+
const seekType = [];
|
|
226
|
+
const seekId = [];
|
|
173
227
|
for (const r of refs) {
|
|
174
228
|
const id = refToId(r.id);
|
|
175
229
|
const k = `${r.ns}\u0000${r.type}\u0000${id}`;
|
|
176
230
|
if (seenRef.has(k)) continue;
|
|
177
231
|
seenRef.add(k);
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
232
|
+
seekNs.push(r.ns);
|
|
233
|
+
seekType.push(r.type);
|
|
234
|
+
seekId.push(id);
|
|
181
235
|
}
|
|
236
|
+
const [colNs, colType, colId] = side === "to" ? [
|
|
237
|
+
sql("to_ns"),
|
|
238
|
+
sql("to_type"),
|
|
239
|
+
sql("to_id")
|
|
240
|
+
] : [
|
|
241
|
+
sql("from_ns"),
|
|
242
|
+
sql("from_type"),
|
|
243
|
+
sql("from_id")
|
|
244
|
+
];
|
|
182
245
|
return (await sql`
|
|
183
246
|
SELECT ${this.#edgeCols}
|
|
184
247
|
FROM edges
|
|
185
|
-
JOIN unnest(${
|
|
248
|
+
JOIN unnest(${seekNs}::text[], ${seekType}::text[], ${seekId}::text[])
|
|
186
249
|
AS seek(seek_ns, seek_type, seek_id)
|
|
187
|
-
ON
|
|
250
|
+
ON ${colNs} = seek.seek_ns AND ${colType} = seek.seek_type AND ${colId} = seek.seek_id
|
|
188
251
|
WHERE deleted_at IS NULL
|
|
189
252
|
`).map(rowToEdge);
|
|
190
253
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
import "./src-
|
|
2
|
+
import { $ as applyObligations, Dt as buildContext, kt as jsonResponse, sn as ResolverFrameError } from "./src-C4t1Gy-m.js";
|
|
3
|
+
import "./src-DWqzrm3O.js";
|
|
4
4
|
import { Worker } from "node:worker_threads";
|
|
5
5
|
|
|
6
6
|
//#region ../../plugins/substrate-recall/src/candidate-selection.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
import { n as createNoopPubSub, t as createProposalsPlugin } from "./src-
|
|
2
|
+
import { En as defineBootstrap } from "./src-C4t1Gy-m.js";
|
|
3
|
+
import { n as createNoopPubSub, t as createProposalsPlugin } from "./src-Bew_JvTo.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region ../../plugins/substrate-proposals/src/bootstrap.ts
|
package/dist/proposals.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Mt as Dataset, wn as OnDelete, x as CoordinatorPlugin } from "./schema-oXfQyo0s.js";
|
|
2
|
+
import { l as ResolverFrameError } from "./errors-xP9Mo7Q1.js";
|
|
3
3
|
//#region ../../plugins/substrate-proposals/src/config.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Multi-instance invalidation transport used by the plugin to broadcast
|
package/dist/proposals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { i as ProposalError, n as createNoopPubSub, r as storageSettled, t as createProposalsPlugin } from "./src-
|
|
2
|
+
import { i as ProposalError, n as createNoopPubSub, r as storageSettled, t as createProposalsPlugin } from "./src-Bew_JvTo.js";
|
|
3
3
|
|
|
4
4
|
export { ProposalError, createNoopPubSub, createProposalsPlugin, storageSettled };
|
package/dist/recall-bootstrap.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
2
|
+
import { En as defineBootstrap } from "./src-C4t1Gy-m.js";
|
|
3
3
|
import { t as FakeEmbedder } from "./fake-DUVtKVSE.js";
|
|
4
|
-
import { t as createRecallPlugin } from "./plugin-
|
|
4
|
+
import { t as createRecallPlugin } from "./plugin-BLm5IRdX.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region ../../packages/substrate-embedder/src/types.ts
|
package/dist/recall.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as EmbedSourceContext, Cn as EdgesStore, Ct as ResolverArgs, D as FilterOperatorDef, I as McpToolRegistration, Mn as Row, Mt as Dataset, P as KernelPlugin, U as PostWriteHook, bt as PolicyProbeContext, gt as Identity, i as FieldDef, j as KernelMigration, tt as HttpHandler, xt as RequestContext, yt as PolicyDecision } from "./schema-oXfQyo0s.js";
|
|
2
2
|
import { t as Embedder } from "./types-8c0gtnd2.js";
|
|
3
3
|
import postgres, { Sql } from "postgres";
|
|
4
4
|
//#region ../../plugins/substrate-recall/src/candidate-selection.d.ts
|
|
@@ -1516,7 +1516,7 @@ export declare class InMemoryEmbeddingsStore implements EmbeddingsStore {
|
|
|
1516
1516
|
//#endregion
|
|
1517
1517
|
//#region ../../plugins/substrate-recall/src/in-memory-lexical-store.d.ts
|
|
1518
1518
|
/**
|
|
1519
|
-
* Resolves a row body, mirroring pg's join against
|
|
1519
|
+
* Resolves a row body, mirroring pg's join against the type's table.
|
|
1520
1520
|
*
|
|
1521
1521
|
* Signature matches `InMemoryEmbeddingsStoreOptions.datasetFor` deliberately:
|
|
1522
1522
|
* a host wires both from the same registry lookup.
|
|
@@ -1706,20 +1706,20 @@ export declare class PgEmbeddingsStore implements EmbeddingsStore {
|
|
|
1706
1706
|
id: string;
|
|
1707
1707
|
}>, model: string): Promise<ReadonlyArray<EmbeddingsStoreFetchResult>>;
|
|
1708
1708
|
selectCandidates(selector: CandidateSelector, model: string): Promise<Candidate[]>;
|
|
1709
|
+
staleRowIds(input: {
|
|
1710
|
+
namespace: string;
|
|
1711
|
+
type: string;
|
|
1712
|
+
afterId: string;
|
|
1713
|
+
limit: number;
|
|
1714
|
+
}): Promise<string[]>;
|
|
1709
1715
|
/**
|
|
1710
1716
|
* Deletes every embedding whose backing row is missing or soft-deleted.
|
|
1711
|
-
* Needed because `embeddings` has no FK to
|
|
1717
|
+
* Needed because `embeddings` has no FK to the type tables and no
|
|
1712
1718
|
* dataset delete path touches it; tombstones are terminal, so soft-deleted
|
|
1713
1719
|
* rows are safe to collect immediately. Run as a sweep stage by the binary.
|
|
1714
1720
|
*
|
|
1715
1721
|
* @returns number of orphaned embeddings deleted.
|
|
1716
1722
|
*/
|
|
1717
|
-
staleRowIds(input: {
|
|
1718
|
-
namespace: string;
|
|
1719
|
-
type: string;
|
|
1720
|
-
afterId: string;
|
|
1721
|
-
limit: number;
|
|
1722
|
-
}): Promise<string[]>;
|
|
1723
1723
|
purgeOrphans(): Promise<number>;
|
|
1724
1724
|
}
|
|
1725
1725
|
//#endregion
|
|
@@ -1740,7 +1740,7 @@ export declare class PgLexicalStore implements LexicalStore {
|
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Deletes every lexical row whose backing row is missing or soft-deleted,
|
|
1742
1742
|
* as `PgEmbeddingsStore.purgeOrphans` does for vectors: `lexical` has no FK
|
|
1743
|
-
* to
|
|
1743
|
+
* to the type tables, so a drop, purge or tombstone would otherwise leave the text.
|
|
1744
1744
|
*
|
|
1745
1745
|
* @returns number of orphaned lexical rows deleted.
|
|
1746
1746
|
*/
|
package/dist/recall.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { a as InMemoryLexicalStore, i as PgClusterStore, n as PgLexicalStore, o as InMemoryEmbeddingsStore, r as PgEmbeddingsStore, s as InMemoryClusterStore, t as RECALL_VERSION } from "./src-
|
|
3
|
-
import { $ as CLUSTERER_BACKEND_VERSION, A as CLUSTER_MEMBER_FIELDS, C as EmbedSourceRegistry, D as makeReembed, E as makeEmbedPostWrite, F as unknownParams, G as DEFAULT_CRYSTALLISE_CONFIG, H as CRYSTALLISE_IN_FLIGHT_CODE, I as handleRecallRequest, J as runClusterer, K as handleCrystallise, L as RRF_K, M as recallRouteHandler, N as checkParams, O as crystalliseRouteHandler, P as unknownParamMessage, Q as CLUSTERER_BACKEND, R as armRanks, S as createEmbedStats, T as embedRowReporting, U as createCrystalliseGuard, X as l2normalize, _ as EMBEDDINGS_FETCH_MAX_REFS, a as REINDEX_MAX_LIMIT, b as handleLexicalCoverage, c as SALIENCE_BOOST_MAX_TARGETS, d as embeddingsMigration, et as memberKey, f as recallMcpTool, g as embeddingsFetchRouteHandler, h as embeddingSimilarOperator, i as REINDEX_DEFAULT_LIMIT, j as buildClusterSurface, k as CLUSTER_FIELDS, l as lexicalMigration, m as makeLexicalPostWrite, n as salienceBoostRouteHandler, nt as validateSelector, o as handleReindex, p as makeLexicalClassify, q as validateCrystalliseInput, r as reindexRouteHandler, s as validateReindexInput, t as createRecallPlugin, tt as SELECT_CANDIDATES_MAX_LIMIT, u as recallClustersMigration, v as embedStatsRouteHandler, w as embedAndStore, x as validateLexicalCoverageInput, y as handleEmbedStatsRequest, z as fuseByRank } from "./plugin-
|
|
2
|
+
import { a as InMemoryLexicalStore, i as PgClusterStore, n as PgLexicalStore, o as InMemoryEmbeddingsStore, r as PgEmbeddingsStore, s as InMemoryClusterStore, t as RECALL_VERSION } from "./src-CzhKLsOV.js";
|
|
3
|
+
import { $ as CLUSTERER_BACKEND_VERSION, A as CLUSTER_MEMBER_FIELDS, C as EmbedSourceRegistry, D as makeReembed, E as makeEmbedPostWrite, F as unknownParams, G as DEFAULT_CRYSTALLISE_CONFIG, H as CRYSTALLISE_IN_FLIGHT_CODE, I as handleRecallRequest, J as runClusterer, K as handleCrystallise, L as RRF_K, M as recallRouteHandler, N as checkParams, O as crystalliseRouteHandler, P as unknownParamMessage, Q as CLUSTERER_BACKEND, R as armRanks, S as createEmbedStats, T as embedRowReporting, U as createCrystalliseGuard, X as l2normalize, _ as EMBEDDINGS_FETCH_MAX_REFS, a as REINDEX_MAX_LIMIT, b as handleLexicalCoverage, c as SALIENCE_BOOST_MAX_TARGETS, d as embeddingsMigration, et as memberKey, f as recallMcpTool, g as embeddingsFetchRouteHandler, h as embeddingSimilarOperator, i as REINDEX_DEFAULT_LIMIT, j as buildClusterSurface, k as CLUSTER_FIELDS, l as lexicalMigration, m as makeLexicalPostWrite, n as salienceBoostRouteHandler, nt as validateSelector, o as handleReindex, p as makeLexicalClassify, q as validateCrystalliseInput, r as reindexRouteHandler, s as validateReindexInput, t as createRecallPlugin, tt as SELECT_CANDIDATES_MAX_LIMIT, u as recallClustersMigration, v as embedStatsRouteHandler, w as embedAndStore, x as validateLexicalCoverageInput, y as handleEmbedStatsRequest, z as fuseByRank } from "./plugin-BLm5IRdX.js";
|
|
4
4
|
|
|
5
5
|
export { CLUSTERER_BACKEND, CLUSTERER_BACKEND_VERSION, CLUSTER_FIELDS, CLUSTER_MEMBER_FIELDS, CRYSTALLISE_IN_FLIGHT_CODE, DEFAULT_CRYSTALLISE_CONFIG, EMBEDDINGS_FETCH_MAX_REFS, EmbedSourceRegistry, InMemoryClusterStore, InMemoryEmbeddingsStore, InMemoryLexicalStore, PgClusterStore, PgEmbeddingsStore, PgLexicalStore, RECALL_VERSION, REINDEX_DEFAULT_LIMIT, REINDEX_MAX_LIMIT, RRF_K, SALIENCE_BOOST_MAX_TARGETS, SELECT_CANDIDATES_MAX_LIMIT, armRanks, buildClusterSurface, checkParams, createCrystalliseGuard, createEmbedStats, createRecallPlugin, crystalliseRouteHandler, embedAndStore, embedRowReporting, embedStatsRouteHandler, embeddingSimilarOperator, embeddingsFetchRouteHandler, embeddingsMigration, fuseByRank, handleCrystallise, handleEmbedStatsRequest, handleLexicalCoverage, handleRecallRequest, handleReindex, l2normalize, lexicalMigration, makeEmbedPostWrite, makeLexicalClassify, makeLexicalPostWrite, makeReembed, memberKey, recallClustersMigration, recallMcpTool, recallRouteHandler, reindexRouteHandler, runClusterer, salienceBoostRouteHandler, unknownParamMessage, unknownParams, validateCrystalliseInput, validateLexicalCoverageInput, validateReindexInput, validateSelector };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { a as parsePositive, i as DEFAULT_SIZING, n as defaultPluginsForPersona, r as parsePort, t as KNOWN_PLUGINS } from "./cli-
|
|
2
|
+
import { a as parsePositive, i as DEFAULT_SIZING, n as defaultPluginsForPersona, r as parsePort, t as KNOWN_PLUGINS } from "./cli-_UNdneXr.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
39
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/key.js
|
|
40
40
|
const keybindingLookup = /* @__PURE__ */ new Set(["emacs", "vim"]);
|
|
41
41
|
function isKeybinding(value) {
|
|
42
42
|
return keybindingLookup.has(value);
|
|
@@ -55,7 +55,7 @@ const isNumberKey = (key) => "1234567890".includes(key.name);
|
|
|
55
55
|
const isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
56
56
|
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
58
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/errors.js
|
|
59
59
|
var AbortPromptError = class extends Error {
|
|
60
60
|
name = "AbortPromptError";
|
|
61
61
|
message = "Prompt was aborted";
|
|
@@ -79,7 +79,7 @@ var ValidationError = class extends Error {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
82
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
82
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/hook-engine.js
|
|
83
83
|
const hookStorage = new AsyncLocalStorage();
|
|
84
84
|
function createStore(rl) {
|
|
85
85
|
return {
|
|
@@ -174,7 +174,7 @@ const effectScheduler = {
|
|
|
174
174
|
};
|
|
175
175
|
|
|
176
176
|
//#endregion
|
|
177
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
177
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/use-state.js
|
|
178
178
|
function isFactory(value) {
|
|
179
179
|
return typeof value === "function";
|
|
180
180
|
}
|
|
@@ -199,7 +199,7 @@ function useState(defaultValue) {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
//#endregion
|
|
202
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
202
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/use-effect.js
|
|
203
203
|
function useEffect(cb, depArray) {
|
|
204
204
|
withPointer((pointer) => {
|
|
205
205
|
const oldDeps = pointer.get();
|
|
@@ -209,7 +209,7 @@ function useEffect(cb, depArray) {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
//#endregion
|
|
212
|
-
//#region ../../node_modules/.pnpm/@inquirer+figures@2.0.
|
|
212
|
+
//#region ../../node_modules/.pnpm/@inquirer+figures@2.0.10/node_modules/@inquirer/figures/dist/index.js
|
|
213
213
|
function isUnicodeSupported() {
|
|
214
214
|
if (!process$1.platform.startsWith("win")) return process$1.env["TERM"] !== "linux";
|
|
215
215
|
return Boolean(process$1.env["CI"]) || Boolean(process$1.env["WT_SESSION"]) || Boolean(process$1.env["TERMINUS_SUBLIME"]) || process$1.env["ConEmuTask"] === "{cmd::Cmder}" || process$1.env["TERM_PROGRAM"] === "Terminus-Sublime" || process$1.env["TERM_PROGRAM"] === "vscode" || process$1.env["TERM"] === "xterm-256color" || process$1.env["TERM"] === "alacritty" || process$1.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
|
@@ -495,7 +495,7 @@ const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
495
495
|
const replacements = Object.entries(specialMainSymbols);
|
|
496
496
|
|
|
497
497
|
//#endregion
|
|
498
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
498
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/theme.js
|
|
499
499
|
const defaultTheme = {
|
|
500
500
|
prefix: {
|
|
501
501
|
idle: styleText("blue", "?"),
|
|
@@ -535,7 +535,7 @@ function getDefaultTheme() {
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
//#endregion
|
|
538
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
538
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/make-theme.js
|
|
539
539
|
function isPlainObject(value) {
|
|
540
540
|
if (typeof value !== "object" || value === null) return false;
|
|
541
541
|
let proto = value;
|
|
@@ -555,7 +555,7 @@ function makeTheme(...themes) {
|
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
//#endregion
|
|
558
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
558
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/use-prefix.js
|
|
559
559
|
function usePrefix({ status = "idle", theme }) {
|
|
560
560
|
const [showLoader, setShowLoader] = useState(false);
|
|
561
561
|
const [tick, setTick] = useState(0);
|
|
@@ -582,7 +582,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
//#endregion
|
|
585
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
585
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/use-memo.js
|
|
586
586
|
function useMemo(fn, dependencies) {
|
|
587
587
|
return withPointer((pointer) => {
|
|
588
588
|
const prev = pointer.get();
|
|
@@ -599,13 +599,13 @@ function useMemo(fn, dependencies) {
|
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
//#endregion
|
|
602
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
602
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/use-ref.js
|
|
603
603
|
function useRef(val) {
|
|
604
604
|
return useState({ current: val })[0];
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
//#endregion
|
|
608
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
608
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/use-keypress.js
|
|
609
609
|
function useKeypress(userHandler) {
|
|
610
610
|
const signal = useRef(userHandler);
|
|
611
611
|
signal.current = userHandler;
|
|
@@ -939,7 +939,7 @@ function wrapAnsi(string, columns, options) {
|
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
//#endregion
|
|
942
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
942
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/utils.js
|
|
943
943
|
var import_cli_width = /* @__PURE__ */ __toESM(require_cli_width(), 1);
|
|
944
944
|
/**
|
|
945
945
|
* Force line returns at specific width. This function is ANSI code friendly and it'll
|
|
@@ -966,7 +966,7 @@ function readlineWidth() {
|
|
|
966
966
|
}
|
|
967
967
|
|
|
968
968
|
//#endregion
|
|
969
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
969
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js
|
|
970
970
|
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
971
971
|
const state = useRef({
|
|
972
972
|
lastPointer: active,
|
|
@@ -1052,7 +1052,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
1054
|
//#endregion
|
|
1055
|
-
//#region ../../node_modules/.pnpm/@inquirer+type@4.2.
|
|
1055
|
+
//#region ../../node_modules/.pnpm/@inquirer+type@4.2.1_@types+node@26.6.6/node_modules/@inquirer/type/dist/utils.js
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Create a promise and get access to its `resolve` and `reject` functions.
|
|
1058
1058
|
*
|
|
@@ -1373,7 +1373,7 @@ const process$2 = globalThis.process;
|
|
|
1373
1373
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1374
1374
|
|
|
1375
1375
|
//#endregion
|
|
1376
|
-
//#region ../../node_modules/.pnpm/@inquirer+ansi@2.0.
|
|
1376
|
+
//#region ../../node_modules/.pnpm/@inquirer+ansi@2.0.10/node_modules/@inquirer/ansi/dist/index.js
|
|
1377
1377
|
const ESC = "\x1B[";
|
|
1378
1378
|
/** Hide the cursor */
|
|
1379
1379
|
const cursorHide = "\x1B[?25l";
|
|
@@ -1393,7 +1393,7 @@ const eraseLine = "\x1B[2K";
|
|
|
1393
1393
|
const eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + "\x1B[2K\x1B[G" : "";
|
|
1394
1394
|
|
|
1395
1395
|
//#endregion
|
|
1396
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
1396
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
1397
1397
|
const height = (content) => content.split("\n").length;
|
|
1398
1398
|
const lastLine = (content) => content.split("\n").pop() ?? "";
|
|
1399
1399
|
var ScreenManager = class {
|
|
@@ -1451,7 +1451,7 @@ var ScreenManager = class {
|
|
|
1451
1451
|
};
|
|
1452
1452
|
|
|
1453
1453
|
//#endregion
|
|
1454
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
1454
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
1455
1455
|
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
1456
1456
|
const nativeSetImmediate = globalThis.setImmediate;
|
|
1457
1457
|
const nativeClearImmediate = globalThis.clearImmediate;
|
|
@@ -1557,7 +1557,7 @@ function createPrompt(view) {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
});
|
|
1559
1559
|
};
|
|
1560
|
-
if ("readableFlowing" in input) {
|
|
1560
|
+
if ("readableFlowing" in input && input.isTTY) {
|
|
1561
1561
|
const immediate = nativeSetImmediate(startCycle);
|
|
1562
1562
|
cleanups.add(() => nativeClearImmediate(immediate));
|
|
1563
1563
|
} else startCycle();
|
|
@@ -1568,7 +1568,7 @@ function createPrompt(view) {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
|
|
1570
1570
|
//#endregion
|
|
1571
|
-
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.
|
|
1571
|
+
//#region ../../node_modules/.pnpm/@inquirer+core@12.0.6_@types+node@26.6.6/node_modules/@inquirer/core/dist/lib/Separator.js
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Separator object
|
|
1574
1574
|
* Used to space/separate choices group
|
|
@@ -1585,7 +1585,7 @@ var Separator = class {
|
|
|
1585
1585
|
};
|
|
1586
1586
|
|
|
1587
1587
|
//#endregion
|
|
1588
|
-
//#region ../../node_modules/.pnpm/@inquirer+checkbox@5.2.
|
|
1588
|
+
//#region ../../node_modules/.pnpm/@inquirer+checkbox@5.2.8_@types+node@26.6.6/node_modules/@inquirer/checkbox/dist/index.js
|
|
1589
1589
|
const checkboxTheme = {
|
|
1590
1590
|
icon: {
|
|
1591
1591
|
checked: styleText("green", figures.circleFilled),
|
|
@@ -1773,7 +1773,7 @@ var dist_default$3 = createPrompt((config, done) => {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
|
|
1775
1775
|
//#endregion
|
|
1776
|
-
//#region ../../node_modules/.pnpm/@inquirer+confirm@6.3.
|
|
1776
|
+
//#region ../../node_modules/.pnpm/@inquirer+confirm@6.3.5_@types+node@26.6.6/node_modules/@inquirer/confirm/dist/index.js
|
|
1777
1777
|
const confirmTheme = {
|
|
1778
1778
|
keywords: {
|
|
1779
1779
|
yes: "Yes",
|
|
@@ -1847,7 +1847,7 @@ var dist_default$2 = createPrompt((config, done) => {
|
|
|
1847
1847
|
});
|
|
1848
1848
|
|
|
1849
1849
|
//#endregion
|
|
1850
|
-
//#region ../../node_modules/.pnpm/@inquirer+input@5.1.
|
|
1850
|
+
//#region ../../node_modules/.pnpm/@inquirer+input@5.1.9_@types+node@26.6.6/node_modules/@inquirer/input/dist/index.js
|
|
1851
1851
|
const inputTheme = { validationFailureMode: "keep" };
|
|
1852
1852
|
var dist_default$1 = createPrompt((config, done) => {
|
|
1853
1853
|
const { prefill = "tab" } = config;
|
|
@@ -1917,7 +1917,7 @@ var dist_default$1 = createPrompt((config, done) => {
|
|
|
1917
1917
|
});
|
|
1918
1918
|
|
|
1919
1919
|
//#endregion
|
|
1920
|
-
//#region ../../node_modules/.pnpm/@inquirer+select@5.2.
|
|
1920
|
+
//#region ../../node_modules/.pnpm/@inquirer+select@5.2.8_@types+node@26.6.6/node_modules/@inquirer/select/dist/index.js
|
|
1921
1921
|
const selectTheme = {
|
|
1922
1922
|
icon: { cursor: figures.pointer },
|
|
1923
1923
|
style: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as BridgeCredential } from "./bridge-
|
|
1
|
+
import { Ft as DeriveSpec, Mn as Row, ht as AutoCrudVerb, l as FieldInput, n as Dropped, p as PlanClause, sn as WhereClause, vt as Policy, xt as RequestContext, yt as PolicyDecision } from "./schema-oXfQyo0s.js";
|
|
2
|
+
import { n as BridgeCredential } from "./bridge-DQyQ6Qhn.js";
|
|
3
3
|
//#region ../../packages/substrate-types/src/nl.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The engine-dispatchable frame a successful NL translation produces. Keys
|