@agentshouse/mdmodel 0.1.0-c001b4068d4dc → 0.1.0-c047361b218db
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/API.md +16 -87
- package/README.md +0 -1
- package/dist/document.d.ts +1 -0
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +21 -12
- package/dist/house-model.d.ts +66 -2
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +43 -2
- package/dist/index.d.ts +6 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -6
- package/dist/markdown.d.ts +0 -4
- package/dist/markdown.d.ts.map +1 -1
- package/dist/markdown.js +1 -34
- package/dist/paths.d.ts +1 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +20 -4
- package/dist/query/sql.d.ts +5 -1
- package/dist/query/sql.d.ts.map +1 -1
- package/dist/query/sql.js +3 -3
- package/dist/query/walk.d.ts +6 -0
- package/dist/query/walk.d.ts.map +1 -1
- package/dist/query/walk.js +84 -4
- package/dist/reserved.d.ts +1 -0
- package/dist/reserved.d.ts.map +1 -1
- package/dist/reserved.js +15 -4
- package/dist/room-types.d.ts +1 -1
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +1 -0
- package/dist/types.d.ts +0 -21
- package/dist/types.d.ts.map +1 -1
- package/dist/yaml.d.ts +3 -1
- package/dist/yaml.d.ts.map +1 -1
- package/dist/yaml.js +153 -32
- package/fixtures/README.md +32 -52
- package/fixtures/cases/block-scalar-frontmatter/context.json +1 -0
- package/fixtures/cases/block-scalar-frontmatter/expected.json +1 -0
- package/fixtures/cases/block-scalar-frontmatter/library/notes/literal.md +17 -0
- package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
- package/fixtures/cases/frontmatter-construct/context.json +1 -0
- package/fixtures/cases/frontmatter-construct/expected.json +7 -0
- package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
- package/fixtures/cases/reference-to-any-file-name/context.json +1 -0
- package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/schema.yaml +10 -0
- package/fixtures/cases/referenced-missing-non-latin-file/context.json +1 -0
- package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
- package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
- package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
- package/fixtures/cases/referenced-missing-non-latin-file/schema.yaml +10 -0
- package/fixtures/forms.json +24 -0
- package/package.json +1 -1
- package/dist/divide.d.ts +0 -3
- package/dist/divide.d.ts.map +0 -1
- package/dist/divide.js +0 -321
- package/dist/project.d.ts +0 -22
- package/dist/project.d.ts.map +0 -1
- package/dist/project.js +0 -101
- package/fixtures/division.json +0 -454
- package/fixtures/projection.json +0 -358
package/API.md
CHANGED
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
```ts
|
|
4
4
|
import {
|
|
5
5
|
apply,
|
|
6
|
-
divide,
|
|
7
6
|
links,
|
|
8
7
|
parse,
|
|
9
|
-
project,
|
|
10
8
|
retarget,
|
|
11
9
|
serialize,
|
|
12
10
|
target,
|
|
@@ -97,7 +95,7 @@ a path neither holds is not refused: it dangles. One written `/rooms/<handle>/<p
|
|
|
97
95
|
another Room, which the caller checks; any other absolute path, or one that leaves the collection, is
|
|
98
96
|
`unresolved-link`. A binary target supplies no Document or MD Type. `model` types the Library. A typed
|
|
99
97
|
Document, `any` included, at an `isDocumentPath` (no `isReservedName` of `RESERVED_NAMES` first) linking
|
|
100
|
-
into a reserved name is `unresolved-link`; a typed `ROOM_DESCRIPTION` is `room-md-type`. `CAPTURE_HOME`, one of `RESERVED_NAMES`, names the Capture home at a Room's root. The context's `typedPaths` bind each `path`, a name's one `*` standing for any nonempty part, to a `type` of `model`: a Document there naming another, or naming any unless `named`, is `unknown-type` at `/type`, one not `named` is checked as it and stays `any`, and one whose free text holds nothing but whitespace is `required-body` if `body`.
|
|
98
|
+
into a reserved name is `unresolved-link`; a typed `ROOM_DESCRIPTION` is `room-md-type`. `CAPTURE_HOME`, one of `RESERVED_NAMES`, names the Capture home at a Room's root. `isReservedName` compares a name with `RESERVED_NAMES` after `foldedName(name)`, the name in Unicode NFC under Unicode default case folding, which is how two names of one folder compare. The context's `typedPaths` bind each `path`, a name's one `*` standing for any nonempty part, to a `type` of `model`: a Document there naming another, or naming any unless `named`, is `unknown-type` at `/type`, one not `named` is checked as it and stays `any`, and one whose free text holds nothing but whitespace is `required-body` if `body`.
|
|
101
99
|
|
|
102
100
|
`HOUSE_ROOM_TYPES` is the `provided` model of every Room, verified: the Inbox's `CHAT_TYPE` card, whose `channel` is one of `INBOX_CHANNEL_KINDS`, and its `CHAT_MESSAGE_TYPE` messages, the two `INBOX_TYPES` and its `nameable` ones, a Wayfinding map and its tickets, and every type of `HOUSE_MODEL`, the House model `HOUSE_MODEL_DECLARATION` declares, from which the `HouseModelType` names and the `HouseDocumentFields<type>` of each type's Document follow. `HOUSE_TYPED_PATHS` binds House's paths to their types: `settings/panel.md`, an App's preferences under `APP_PREFERENCES_HOME` and an Agent function document under `rooms/<handle>/agent-functions/`. Its `room`, `app` and `space` definitions are `ROOM_REFERENCE_PATTERN`, `APP_REFERENCE_PATTERN` and `SPACE_REFERENCE_PATTERN`: a prefix, `ROOM_REFERENCE_PREFIX`, `APP_REFERENCE_PREFIX` or `SPACE_REFERENCE_PREFIX`, then an ordinal, a dot and a check character; `REVISION_REFERENCE_PATTERN` reads a revision, `REVISION_REFERENCE_PREFIX`, its document's ordinal, a dot, the revision's and a check character, each character one `CROCKFORD_CHARACTER` of the lowercase Crockford alphabet `CROCKFORD_ALPHABET`, and `CROCKFORD_LEADING_CHARACTER` any of it but `0`.
|
|
103
101
|
|
|
@@ -139,7 +137,9 @@ refused as `pattern`; `openPatternBudget()` opens one such bound over the assess
|
|
|
139
137
|
function it returns is called, and an inner one shares the outer.
|
|
140
138
|
|
|
141
139
|
Validation returns acceptance or one refusal naming the file, the field, its line and the violated
|
|
142
|
-
rule.
|
|
140
|
+
rule. A frontmatter outside the YAML subset the fixtures README states is refused as
|
|
141
|
+
`frontmatter-fence`, its `location` naming the construct the subset does not take and its `line`
|
|
142
|
+
where that construct is written. `parse`, `apply`, and `serialize` operate on a single text Document; they do not validate
|
|
143
143
|
collection membership or consume binary bytes. `parse(content, file?, definition?)` and
|
|
144
144
|
`apply(document, changes, definition?, nameOf?)` take the Document's MD Type definition: `parse` takes the
|
|
145
145
|
`Definition` itself or a `DefinitionOf`, a function from the type the frontmatter declares to its
|
|
@@ -157,10 +157,10 @@ With a definition a field change rewrites that value's lines alone and writes a
|
|
|
157
157
|
schema position, after the nearest field before it the Document holds; a value whose form changes
|
|
158
158
|
moves, and `undefined` removes it. A reference is written as a link whose text is `nameOf(value)`,
|
|
159
159
|
else the file name, and never changed after; a value no form carries is `malformed-value`, and a
|
|
160
|
-
section change naming a field's label `
|
|
160
|
+
section change naming a field's label `field-section`, at that field's key. Without one a field is written in the
|
|
161
161
|
frontmatter. A `{ kind: 'section', name, value, prior: undefined }` change opens a
|
|
162
162
|
section after the Document's last line, in the order the changes give, and is stale where the
|
|
163
|
-
Document holds that section. The Document a typed write of values returns carries the values it wrote, and reads its body only when a caller asks for what only the text holds; a write that carries text from outside, a Markdown value, a text value that does not fit its line, free text, a section or the preamble, or rewrites a link, reads the text it made. All apply or none: one refused refuses
|
|
163
|
+
Document holds that section; one with a prior text is stale where the Document lacks the section, a name no `## ` heading reads back as itself being `unwritable-section`, and a section's or the preamble's prior is compared as `partText(part)` reads it, its text without the blank lines around it, which a writer sends back. The Document a typed write of values returns carries the values it wrote, and reads its body only when a caller asks for what only the text holds; a write that carries text from outside, a Markdown value, a text value that does not fit its line, free text, a section or the preamble, or rewrites a link, reads the text it made. All apply or none: one refused refuses
|
|
164
164
|
all, and `{ outcome: 'stale', document, stale }` keeps the Document and lists the positions of each
|
|
165
165
|
change it does not hold and of each later change of a part an earlier one changes, such as a link
|
|
166
166
|
inside a replaced section. A section, preamble or free text replacement that would hide a section the
|
|
@@ -212,7 +212,9 @@ Frontmatter values and the links that write reference values are never in it.
|
|
|
212
212
|
by the rule `links` and `validate` read: surrounding spaces and the `?query` or `#fragment` it
|
|
213
213
|
carries are not part of that Path. It reads backslash escapes and character references, strips as a
|
|
214
214
|
URL does, then percent-encodings, so `plan\.md`, `plan.md` and `pl%61n.md` all name `plan.md`;
|
|
215
|
-
an escaped or referenced `?` or `#` starts the suffix.
|
|
215
|
+
an escaped or referenced `?` or `#` starts the suffix. The Path is in Unicode NFC, so a destination
|
|
216
|
+
written decomposed names the composed Path, and every target `links`, `validate` and `documentFacts`
|
|
217
|
+
read is NFC. A destination that is empty, a bare fragment,
|
|
216
218
|
carries a URL scheme, starts at `/` once read, encodes no UTF-8 text, or leaves the collection
|
|
217
219
|
resolves to `null`. It reads a destination written anywhere, such as a typed reference field value,
|
|
218
220
|
which `links` never enumerates. `roomTarget(href)` reads `/rooms/<handle>/<path>` as its `handle`
|
|
@@ -221,7 +223,10 @@ any reference written so. `linkedPath(from, href)` reads a link so, with the `ha
|
|
|
221
223
|
`/rooms/<handle>` one names, `''` for the Room's root and the heading its `#fragment` names, `from`
|
|
222
224
|
if it names no Path. `retarget(href, to)` is that destination rewritten to `to`, keeping the
|
|
223
225
|
`?query` or `#fragment` it carried, which is the destination the `link` change below writes. It
|
|
224
|
-
percent-encodes in `to` what `target` would decode,
|
|
226
|
+
percent-encodes in `to` what `target` would decode or strip, a space at either end among them, so it
|
|
227
|
+
resolves to `to` again. `urlDestination(url)` is the destination that reads as `url`, the address a
|
|
228
|
+
Markdown renderer gives a link with its escapes and character references already read, so
|
|
229
|
+
`linkedPath(from, urlDestination(url))` reads them once.
|
|
225
230
|
|
|
226
231
|
`untitled(definition)` is a definition without its `title`s at any depth, a property named `title` kept, so two types that differ only in their labels compare equal.
|
|
227
232
|
|
|
@@ -241,7 +246,7 @@ rewrites, in one `apply`, each link destination and reference written `/rooms/<h
|
|
|
241
246
|
not in `kept` to `relative(file, path)`, keeping its `?query` or `#fragment`. A text without
|
|
242
247
|
frontmatter, such as a captured body, is read from its first character: `relativizeBody(body, file, handle)` converts it
|
|
243
248
|
so, refusing a `/rooms/` one naming no Room's file as `unresolved-link`; `bodyLinks(body, file)`
|
|
244
|
-
is its `links` and `bodyRoomLinks(body)` its other Rooms'. A keyed link, `/rooms/<handle>/<path>?key=<key>` as a body link or a reference value, stays as written, which no relativizing or relinking rewrites, out of `roomReferences` and `bodyRoomLinks` and naming no target validation checks; `keyedLink(href)` reads one as its `handle`, `path` and `key`, or `null` for any other href, `bodyKeyedLinks(body)` lists each in a body, and `keyedDestination(path, key)` writes one. `relinkBody(body, file, moves)` writes,
|
|
249
|
+
is its `links` and `bodyRoomLinks(body)` its other Rooms'. A keyed link, `/rooms/<handle>/<path>?key=<key>` as a body link or a reference value, stays as written, which no relativizing or relinking rewrites, out of `roomReferences` and `bodyRoomLinks` and naming no target validation checks; `keyedLink(href)` reads one as its `handle`, `path` and `key`, or `null` for any other href, `bodyKeyedLinks(body)` lists each in a body, and `keyedDestination(path, key)` writes one, each name percent-encoding every ASCII character but letters, digits, `.`, `_`, `~` and `-` and keeping every other character as written, which `keyedLink` decodes and takes in NFC. `relinkBody(body, file, moves)` writes,
|
|
245
250
|
in the `link` change's form, each destination whose Path keys `moves` as that value relative to
|
|
246
251
|
`file`, or as that value when it is a `/rooms/` path, and one whose `roomPath` does as that value.
|
|
247
252
|
`unlinkBody(body, hrefs)` cuts every link and reference definition whose written destination is
|
|
@@ -262,82 +267,6 @@ profile reads back: bare when it carries no whitespace, does not open with `<`,
|
|
|
262
267
|
parentheses, otherwise inside angle brackets, which the original form is kept in when it still
|
|
263
268
|
fits. A destination that neither form can carry is refused as `unwritable-link`.
|
|
264
269
|
|
|
265
|
-
`project(document, file, context?)` is the Embedding projection input of one Document: the prose a
|
|
266
|
-
consumer embeds, with every internal Markdown-document link reduced to the label a reader sees. A
|
|
267
|
-
Document that declares no MD type contributes its body after the frontmatter fence. A typed one
|
|
268
|
-
contributes its prose values, each bare without its label, first the ones written on a line, in a
|
|
269
|
-
cell or in a `json` block, each followed by a blank line, then its Markdown long values and its free
|
|
270
|
-
text, its preamble, each section whose heading names no field and what follows a thematic break,
|
|
271
|
-
in Document order. A prose value is a string at any depth whose schema is prose. The Path, every
|
|
272
|
-
label and every other value stay outside, so changing them alone leaves the projection unchanged.
|
|
273
|
-
|
|
274
|
-
```ts
|
|
275
|
-
const parsed = parse(content);
|
|
276
|
-
if (parsed.ok) {
|
|
277
|
-
const projected = project(parsed.document, 'tasks/two.md', {
|
|
278
|
-
documentTargets: ['plans/q3.md', 'people/ana.md'],
|
|
279
|
-
definition: model.types.task,
|
|
280
|
-
});
|
|
281
|
-
if (projected.ok) embed(projected.text);
|
|
282
|
-
}
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
`ProjectionContext` carries `documentTargets`, the collection-relative Paths the caller holds as
|
|
286
|
-
Markdown documents, and `definition`, the verified MD Type the Document's `type` names, taken from
|
|
287
|
-
the model `verify` returned. A Document that declares a type the caller supplies no definition for
|
|
288
|
-
is refused as `unknown-type`. `documentTargets` is what makes a destination internal: a destination
|
|
289
|
-
resolving to a supplied Path is internal, as is one into another Room, and every other stays text, a
|
|
290
|
-
binary target and a Path nobody supplied alike. The caller supplies that membership, as it does for
|
|
291
|
-
`validate`; the model reads no bytes, resolves no authority, and classifies nothing unsupplied.
|
|
292
|
-
|
|
293
|
-
An internal link contributes its visible label and no destination, fragment, or title, in the inline
|
|
294
|
-
`[label](path)`, full `[label][id]`, collapsed `[label][]`, and shortcut `[label]` forms, and the
|
|
295
|
-
link reference definition an enumerated use resolves through leaves the projection with it. An image
|
|
296
|
-
at a supplied document target contributes its alt text the same way, because a move rewrites that
|
|
297
|
-
destination too. External URLs, binary targets, unsupplied destinations, bare fragments, code spans,
|
|
298
|
-
fenced code, and escaped syntax stay exactly as authored, read through the same syntax profile
|
|
299
|
-
`links` and `validate` read. `project` returns text and never rewrites the Document.
|
|
300
|
-
|
|
301
|
-
A `link` change leaves the projection of every Document it rewrites byte-identical, while a changed visible label changes it.
|
|
302
|
-
|
|
303
|
-
`divide(document, file, context)` divides that same Embedding projection input into ordered Spans
|
|
304
|
-
under the bound the caller supplies. Each Span carries the `text` to embed and the `start` and `end`
|
|
305
|
-
of the extent it addresses in the Document's own source, as UTF-8 byte offsets and never string
|
|
306
|
-
positions, so a caller stores the extent and hydrates the text it shows from the Document itself.
|
|
307
|
-
|
|
308
|
-
`DivisionContext` is a `ProjectionContext` and one `bound`, the greatest number of characters a
|
|
309
|
-
Span's embedded text may carry, counted the way JavaScript counts a string's length and not in the
|
|
310
|
-
bytes the extent is measured in. No Span's text is ever longer than the bound. A bound cut never
|
|
311
|
-
divides a character: where the bound ends between the two halves of a surrogate pair, the cut falls
|
|
312
|
-
before the pair. A cut never falls inside link syntax either: it falls before an internal link, and
|
|
313
|
-
a label longer than a whole piece's room is divided at the bound like any other text. The smallest
|
|
314
|
-
bound is `2`, the length of one astral character; a bound that is not a whole number of at least
|
|
315
|
-
`2` is refused with `division-bound` before any division. The bound is the caller's number alone:
|
|
316
|
-
the model holds no tokenizer, counts nothing else, and refuses no input for being too long. A
|
|
317
|
-
Document the caller supplies no definition for carries the `unknown-type` refusal of `project`.
|
|
318
|
-
|
|
319
|
-
The division descends one level at a time, and only into the piece that does not fit: the whole
|
|
320
|
-
input, a heading node, adjacent sibling nodes packed under one parent, adjacent blocks inside a
|
|
321
|
-
node, sentences inside a block, and a bound cut inside a single sentence. A Span covers whole
|
|
322
|
-
heading nodes or one contiguous piece inside a single node, never a partial node beside another. A
|
|
323
|
-
Span that continues a node repeats that node's own heading line, projected like any other text and
|
|
324
|
-
so carrying an internal link's label rather than its destination, and never an ancestor's heading,
|
|
325
|
-
so renaming a heading costs what editing that heading's own body costs. A heading the bound cannot
|
|
326
|
-
hold beside any text is not repeated, a continuation piece that begins with an astral character the
|
|
327
|
-
room beside its heading cannot hold is carried without the heading, and a heading with no body of
|
|
328
|
-
its own leads its first child node rather than standing as a Span of nothing but itself. Overlap
|
|
329
|
-
exists at the sentence level alone, where each Span after the first repeats its predecessor's last
|
|
330
|
-
sentence whenever the bound holds both; when it cannot hold both, the Span carries its own sentence
|
|
331
|
-
alone. An untyped input arrives without a definition and descends the same ladder.
|
|
332
|
-
|
|
333
|
-
Division is total: every authored character of the input belongs to at least one Span, and an input
|
|
334
|
-
carrying no authored text divides into no Span at all. A Span's extent is the smallest range of the
|
|
335
|
-
source that contains everything the Span covers, so it spans what the input excludes between two
|
|
336
|
-
eligible pieces, and the extent addresses the authored source where the embedded text carries a
|
|
337
|
-
repeated heading, an internal link's visible label, or a value the author escaped. A Span divided
|
|
338
|
-
out of one value written on a line addresses that whole value, and a Span carrying part of one
|
|
339
|
-
internal link's label addresses that whole link, because a cut never falls inside link syntax.
|
|
340
|
-
|
|
341
270
|
`notReadyWaitMs(asked)` is how long a client told a Room's chunk list is not ready waits before it
|
|
342
271
|
asks again: 1, 2, 3, 5, 8, 11 and 15 seconds by `asked`, counted from zero, then 15 seconds.
|
|
343
272
|
|
|
@@ -371,7 +300,7 @@ then lists item by item. `indexKey(facts, value)` is the key whose bytes order a
|
|
|
371
300
|
a date-time by its instant, text by code point, and a missing value with `null` first. `pageOrder(plan)` is the one order a page of
|
|
372
301
|
House's query walks, by Path or a field its types index, both by code point, and `walkOf(plan, model)` what drives that walk: an indexed
|
|
373
302
|
order as runs of keys, its continuation's, a missing value's and a range on that field, else the keys of the first top-level equality
|
|
374
|
-
or list on a field every named type indexes, else Path. Each refuses what no walk serves; `walkedValue` names a walked value as a continuation does.
|
|
303
|
+
or list on a field every named type indexes, else Path. Each refuses what no walk serves; `walkedValue` names a walked value as a continuation does. `countShape(plan)` says whether a plan asks a total or groups and refuses what no count serves, and `countOf(plan, model, where)` names a count's walk, in no order and from no continuation: those keys, else the range of the first top-level range on such a field, else Path, with every field it tests or groups by.
|
|
375
304
|
|
|
376
305
|
Two evaluators answer a plan's tests on one Document alike, a test on a missing value false and
|
|
377
306
|
its negation (`$ne`, `$nin`, `$exists: false`) true. `matches(plan, candidate)` answers in
|
|
@@ -379,7 +308,7 @@ memory over one `Candidate`: its `path`, `type`, `fileId`, `fields`, `definition
|
|
|
379
308
|
`text` held, and refuses a plan that orders by `size`, `created`, `updated` or `greatest`, or
|
|
380
309
|
selects a group's totals, which one Document cannot answer. The `sql` namespace compiles them to SQL over a collection: `indexed(path, fields,
|
|
381
310
|
definition)` derives a Document's values and field links, its date-times with their instants,
|
|
382
|
-
`sql.VALUE_TABLE` holds those values and `sql.insertedValues` writes
|
|
311
|
+
`sql.VALUE_TABLE` holds those values and `sql.insertedValues` writes those of many documents, and `sql.tests(alias,
|
|
383
312
|
plan)` tests a document row of `id`, `path`, `folder`, `type`, `file_id` and `content`, its
|
|
384
313
|
phrase through the function a connection registers as `sql.HOLDS_PHRASE` with `sql.holdsPhrase`.
|
|
385
314
|
`sql.scoped`, `sql.placed`, `sql.sorted`, `sql.beyond`, `sql.following` and `sql.sortValue`
|
package/README.md
CHANGED
|
@@ -43,7 +43,6 @@ if (checked.verdict === 'accept') {
|
|
|
43
43
|
| `apply` | Apply field, section, preamble, link and reference changes at once |
|
|
44
44
|
| `links`, `target`, `retarget` | Inventory and rewrite link destinations |
|
|
45
45
|
| `escapePointer` | Write one key as a JSON Pointer token |
|
|
46
|
-
| `project`, `divide` | Embedding projection input and its division into Spans |
|
|
47
46
|
| `facts`, `candidateOf` | A Document as one change saw it, matched as one query candidate |
|
|
48
47
|
| `planOf`, `matches`, `sql` | Check a query, answer it over one Document or compile it to SQL |
|
|
49
48
|
| `VERSION` | The MD model version |
|
package/dist/document.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare function unlinkBody(body: string, hrefs: ReadonlySet<string>): Un
|
|
|
15
15
|
export declare function links(document: Document, file: string): readonly Link[];
|
|
16
16
|
export declare function bodyLinks(body: string, file: string): readonly Link[];
|
|
17
17
|
export declare function bodyWith(document: Document, definition: Definition | undefined): Body | null | Refusal;
|
|
18
|
+
export declare function partText(part: string): string;
|
|
18
19
|
export declare function apply(document: Document, changes: readonly Change[], definition?: Definition, nameOf?: Naming): ApplyResult;
|
|
19
20
|
export declare function relabel(document: Document, before: Definition, after: Definition): string;
|
|
20
21
|
export declare function relabels(before: Definition, after: Definition): boolean;
|
package/dist/document.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../src/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,IAAI,EACT,KAAK,MAAM,EAGZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAKL,KAAK,UAAU,EAEhB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,OAAO,EAEb,MAAM,eAAe,CAAC;AAevB,OAAO,KAAK,EACV,WAAW,EACX,UA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G,MAAM,CAYzF;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAEvE;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEpD"}
|
package/dist/document.js
CHANGED
|
@@ -140,7 +140,7 @@ function opened(content, file) {
|
|
|
140
140
|
if (error instanceof YamlError)
|
|
141
141
|
return {
|
|
142
142
|
ok: false,
|
|
143
|
-
refusal: refuse(file, 'frontmatter-fence',
|
|
143
|
+
refusal: refuse(file, 'frontmatter-fence', error.construct, lineOf(content, error.offset)),
|
|
144
144
|
};
|
|
145
145
|
throw error;
|
|
146
146
|
}
|
|
@@ -361,7 +361,7 @@ function inBody(change, body) {
|
|
|
361
361
|
return (body !== null &&
|
|
362
362
|
((change.kind === 'field' && !HOUSE_FIELDS.includes(change.name)) || change.kind === 'text'));
|
|
363
363
|
}
|
|
364
|
-
function planner(document, internal, body) {
|
|
364
|
+
function planner(document, internal, body, definition) {
|
|
365
365
|
const content = document.content;
|
|
366
366
|
const keyed = new Map();
|
|
367
367
|
let spans;
|
|
@@ -416,7 +416,7 @@ function planner(document, internal, body) {
|
|
|
416
416
|
}
|
|
417
417
|
const span = spans.get(name);
|
|
418
418
|
if (span === undefined)
|
|
419
|
-
return
|
|
419
|
+
return unopenable(name, definition) ?? 'stale';
|
|
420
420
|
const held = content.slice(span.bodyStart, span.bodyEnd);
|
|
421
421
|
if (!samePart(held, prior))
|
|
422
422
|
return 'stale';
|
|
@@ -514,8 +514,11 @@ function framed(part) {
|
|
|
514
514
|
end -= 1;
|
|
515
515
|
return { lead, text: part.slice(lead.length, end), tail: part.slice(end) };
|
|
516
516
|
}
|
|
517
|
+
export function partText(part) {
|
|
518
|
+
return framed(part).text;
|
|
519
|
+
}
|
|
517
520
|
function samePart(held, prior) {
|
|
518
|
-
return prior !== undefined &&
|
|
521
|
+
return prior !== undefined && partText(held) === partText(prior);
|
|
519
522
|
}
|
|
520
523
|
function lineEnds(text) {
|
|
521
524
|
return text.split('\n').length - 1;
|
|
@@ -850,11 +853,16 @@ function checkedReading(source, replaced) {
|
|
|
850
853
|
function opening(change) {
|
|
851
854
|
return change.kind === 'section' && change.prior === undefined;
|
|
852
855
|
}
|
|
853
|
-
function
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
856
|
+
function unopenable(name, definition) {
|
|
857
|
+
const root = definition?.root;
|
|
858
|
+
const field = root === undefined
|
|
859
|
+
? undefined
|
|
860
|
+
: bodyOrder(root).find((key) => labelOf(key, root.properties?.[key]) === name.trim());
|
|
861
|
+
if (field !== undefined)
|
|
862
|
+
return refuse('', 'field-section', field);
|
|
863
|
+
if (read(`## ${name}`, 0).headings[0]?.name !== name)
|
|
864
|
+
return refuse('', 'unwritable-section', name);
|
|
865
|
+
return undefined;
|
|
858
866
|
}
|
|
859
867
|
function withSections(document, changes, definition, nameOf) {
|
|
860
868
|
const opened = [];
|
|
@@ -862,8 +870,9 @@ function withSections(document, changes, definition, nameOf) {
|
|
|
862
870
|
for (const [at, change] of changes.entries()) {
|
|
863
871
|
if (!opening(change))
|
|
864
872
|
continue;
|
|
865
|
-
|
|
866
|
-
|
|
873
|
+
const refusal = unopenable(change.name, definition);
|
|
874
|
+
if (refusal !== undefined)
|
|
875
|
+
return { outcome: 'refuse', refusal };
|
|
867
876
|
if (Object.hasOwn(document.sections, change.name) || opened.includes(change.name))
|
|
868
877
|
held.push(at);
|
|
869
878
|
else
|
|
@@ -959,7 +968,7 @@ export function apply(document, changes, definition, nameOf) {
|
|
|
959
968
|
const body = bodyWith(document, definition);
|
|
960
969
|
if (body !== null && !('top' in body))
|
|
961
970
|
return { outcome: 'refuse', refusal: body };
|
|
962
|
-
const plan = planner(document, internal, body);
|
|
971
|
+
const plan = planner(document, internal, body, definition);
|
|
963
972
|
const edits = [];
|
|
964
973
|
const stale = new Set();
|
|
965
974
|
const named = new Set();
|
package/dist/house-model.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
43
43
|
readonly kind: {
|
|
44
44
|
readonly title: 'Kind';
|
|
45
45
|
readonly type: 'string';
|
|
46
|
-
readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', 'room-ownership-offer', 'managed-environment-retention-opened', 'storage-full', 'sandbox-budget-spent', 'trigger-failed', 'room-telegram-chat-paused', 'break-glass-owner-disclosure', 'export-ready', 'export-failed', 'custom', 'agent-function-request-finished', 'storage-past-included'];
|
|
46
|
+
readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', 'room-ownership-offer', 'managed-environment-retention-opened', 'storage-full', 'sandbox-budget-spent', 'trigger-failed', 'app-origins-added', 'room-telegram-chat-paused', 'viber-number-unlinked', 'break-glass-owner-disclosure', 'export-ready', 'export-failed', 'custom', 'agent-function-request-finished', 'storage-past-included'];
|
|
47
47
|
};
|
|
48
48
|
readonly created: {
|
|
49
49
|
readonly title: 'Created';
|
|
@@ -212,9 +212,57 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
212
212
|
readonly title: 'App';
|
|
213
213
|
readonly $ref: '#/$defs/app';
|
|
214
214
|
};
|
|
215
|
+
readonly name: {
|
|
216
|
+
readonly title: 'Name';
|
|
217
|
+
readonly type: 'string';
|
|
218
|
+
};
|
|
215
219
|
};
|
|
216
220
|
readonly required: readonly ['app'];
|
|
217
221
|
};
|
|
222
|
+
readonly origins: {
|
|
223
|
+
readonly title: 'Origins';
|
|
224
|
+
readonly type: 'array';
|
|
225
|
+
readonly items: {
|
|
226
|
+
readonly type: 'string';
|
|
227
|
+
readonly minLength: 1;
|
|
228
|
+
readonly maxLength: 512;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly triggers: {
|
|
232
|
+
readonly title: 'Triggers';
|
|
233
|
+
readonly type: 'array';
|
|
234
|
+
readonly items: {
|
|
235
|
+
readonly type: 'object';
|
|
236
|
+
readonly additionalProperties: false;
|
|
237
|
+
readonly properties: {
|
|
238
|
+
readonly trigger: {
|
|
239
|
+
readonly title: 'Trigger';
|
|
240
|
+
readonly $ref: '#/$defs/id';
|
|
241
|
+
};
|
|
242
|
+
readonly description: {
|
|
243
|
+
readonly title: 'Description';
|
|
244
|
+
readonly type: 'string';
|
|
245
|
+
};
|
|
246
|
+
readonly room: {
|
|
247
|
+
readonly title: 'Room';
|
|
248
|
+
readonly type: 'object';
|
|
249
|
+
readonly additionalProperties: false;
|
|
250
|
+
readonly properties: {
|
|
251
|
+
readonly room: {
|
|
252
|
+
readonly title: 'Room';
|
|
253
|
+
readonly $ref: '#/$defs/room';
|
|
254
|
+
};
|
|
255
|
+
readonly name: {
|
|
256
|
+
readonly title: 'Name';
|
|
257
|
+
readonly type: 'string';
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly required: readonly ['room', 'name'];
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly required: readonly ['trigger', 'description', 'room'];
|
|
264
|
+
};
|
|
265
|
+
};
|
|
218
266
|
readonly space: {
|
|
219
267
|
readonly title: 'Space';
|
|
220
268
|
readonly type: 'object';
|
|
@@ -312,6 +360,10 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
312
360
|
readonly enum: readonly ['private', 'topics', 'ban_users', 'invite_users', 'manage_topics', 'post_messages', 'edit_messages', 'inbox_manage_topics', 'inbox_delete_messages'];
|
|
313
361
|
};
|
|
314
362
|
};
|
|
363
|
+
readonly number: {
|
|
364
|
+
readonly title: 'Number';
|
|
365
|
+
readonly type: 'string';
|
|
366
|
+
};
|
|
315
367
|
readonly budget: {
|
|
316
368
|
readonly title: 'Budget';
|
|
317
369
|
readonly type: 'string';
|
|
@@ -571,7 +623,7 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
571
623
|
readonly required: readonly ['description', 'input', 'agent'];
|
|
572
624
|
};
|
|
573
625
|
readonly 'house-trigger': {
|
|
574
|
-
readonly description: "One Trigger of this Room as its acts wrote it, which House alone writes: its `description`, the `condition` it fires on, its `actions` in order, whether each action and the Trigger are `enabled`, `paused_by` `types` while a change of the Room's types paused it, its `creator` by `user` and the `name` they had then, and when it was `created`. A `notify` action reaches the `users` its `to` names, the members its `fields` name in the matched document and the holders of its `roles`, or, `in_group`, posts once in this Room's Telegram group in their place, mentioning each; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `done` action marks Done every active conversation an Agent function request of this Room started for the Event's document; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release and the owner's functions.";
|
|
626
|
+
readonly description: "One Trigger of this Room as its acts wrote it, which House alone writes: its `description`, the `condition` it fires on, its `actions` in order, whether each action and the Trigger are `enabled`, `paused_by` `types` while a change of the Room's types paused it, its `creator` by `user` and the `name` they had then, and when it was `created`. A `notify` action reaches the `users` its `to` names, the members its `fields` name in the matched document and the holders of its `roles`, or, `in_group`, posts once in this Room's Telegram group in their place, mentioning each; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `done` action marks Done every active conversation an Agent function request of this Room started for the Event's document; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, while the `user` it was `attached_by` owns this Room, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release, who owns this Room and the owner's functions.";
|
|
575
627
|
readonly properties: {
|
|
576
628
|
readonly reflected: {
|
|
577
629
|
readonly title: 'Reflected';
|
|
@@ -739,6 +791,18 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
739
791
|
readonly title: 'Function';
|
|
740
792
|
readonly type: 'string';
|
|
741
793
|
};
|
|
794
|
+
readonly attached_by: {
|
|
795
|
+
readonly title: 'Attached by';
|
|
796
|
+
readonly type: 'object';
|
|
797
|
+
readonly additionalProperties: false;
|
|
798
|
+
readonly properties: {
|
|
799
|
+
readonly user: {
|
|
800
|
+
readonly title: 'User';
|
|
801
|
+
readonly $ref: '#/$defs/id';
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
readonly required: readonly ['user'];
|
|
805
|
+
};
|
|
742
806
|
};
|
|
743
807
|
readonly required: readonly ['kind', 'enabled', 'function'];
|
|
744
808
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"house-model.d.ts","sourceRoot":"","sources":["../src/house-model.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AAEpD,eAAO,MAAM,uBAAuB;aAClC,KAAK;iBACH,IAAI;qBACF,WAAW,EAAE,sDAAsD;qBACnE,IAAI,EAAE,QAAQ;qBACd,OAAO;;iBAET,GAAG;qBACD,WAAW,EAAE,oDAAoD;qBACjE,IAAI,EAAE,QAAQ;qBACd,OAAO;;iBAET,KAAK;qBACH,WAAW,EAAE,yDAAyD;qBACtE,IAAI,EAAE,QAAQ;qBACd,OAAO;;iBAET,EAAE;qBACA,WAAW,EACT,2JAA2J;qBAC7J,IAAI,EAAE,QAAQ;qBACd,MAAM,EAAE,MAAM;;;aAGlB,uBAAuB;iBACrB,WAAW,EAAE,0DAA0D;iBACvE,UAAU;qBAAI,GAAG;yBAAI,KAAK,EAAE,KAAK;yBAAE,IAAI,EAAE,aAAa;;;iBACtD,QAAQ,YAAG,KAAK;;aAElB,oBAAoB;iBAClB,WAAW,EACT,0yBAA0yB;iBAC5yB,UAAU;qBACR,YAAY;yBAAI,KAAK,EAAE,cAAc;yBAAE,IAAI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AAC,CAAC,CAAC,CAAC,GACrB,KAAK,GACP,CAAC,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;CAAE,GAClC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GACX,CAAC,SAAS;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACvC,UAAU,CAAC,CAAC,CAAC,GACb,OAAO,CAAC;AAEtB,KAAK,QAAQ,CAAC,IAAI,SAAS,cAAc,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;CAAE,GAC7F,CAAC,GACD,EAAE,CAAC;AAEP,MAAM,MAAM,mBAAmB,CAAC,IAAI,SAAS,cAAc,IAAI,UAAU,CAAC;IACxE,QAAQ,CAAC,UAAU,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE;YAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAA;SAAE,CAAA;KAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClF,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;CAC9D,CAAC,CAAC"}
|
package/dist/house-model.js
CHANGED
|
@@ -44,7 +44,9 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
44
44
|
'storage-full',
|
|
45
45
|
'sandbox-budget-spent',
|
|
46
46
|
'trigger-failed',
|
|
47
|
+
'app-origins-added',
|
|
47
48
|
'room-telegram-chat-paused',
|
|
49
|
+
'viber-number-unlinked',
|
|
48
50
|
'break-glass-owner-disclosure',
|
|
49
51
|
'export-ready',
|
|
50
52
|
'export-failed',
|
|
@@ -142,9 +144,40 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
142
144
|
title: 'App',
|
|
143
145
|
type: 'object',
|
|
144
146
|
additionalProperties: false,
|
|
145
|
-
properties: {
|
|
147
|
+
properties: {
|
|
148
|
+
app: { title: 'App', $ref: '#/$defs/app' },
|
|
149
|
+
name: { title: 'Name', type: 'string' },
|
|
150
|
+
},
|
|
146
151
|
required: ['app'],
|
|
147
152
|
},
|
|
153
|
+
origins: {
|
|
154
|
+
title: 'Origins',
|
|
155
|
+
type: 'array',
|
|
156
|
+
items: { type: 'string', minLength: 1, maxLength: 512 },
|
|
157
|
+
},
|
|
158
|
+
triggers: {
|
|
159
|
+
title: 'Triggers',
|
|
160
|
+
type: 'array',
|
|
161
|
+
items: {
|
|
162
|
+
type: 'object',
|
|
163
|
+
additionalProperties: false,
|
|
164
|
+
properties: {
|
|
165
|
+
trigger: { title: 'Trigger', $ref: '#/$defs/id' },
|
|
166
|
+
description: { title: 'Description', type: 'string' },
|
|
167
|
+
room: {
|
|
168
|
+
title: 'Room',
|
|
169
|
+
type: 'object',
|
|
170
|
+
additionalProperties: false,
|
|
171
|
+
properties: {
|
|
172
|
+
room: { title: 'Room', $ref: '#/$defs/room' },
|
|
173
|
+
name: { title: 'Name', type: 'string' },
|
|
174
|
+
},
|
|
175
|
+
required: ['room', 'name'],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
required: ['trigger', 'description', 'room'],
|
|
179
|
+
},
|
|
180
|
+
},
|
|
148
181
|
space: {
|
|
149
182
|
title: 'Space',
|
|
150
183
|
type: 'object',
|
|
@@ -206,6 +239,7 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
206
239
|
],
|
|
207
240
|
},
|
|
208
241
|
},
|
|
242
|
+
number: { title: 'Number', type: 'string' },
|
|
209
243
|
budget: { title: 'Budget', type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
|
|
210
244
|
resets_at: { title: 'Resets at', type: 'string', format: 'date-time' },
|
|
211
245
|
grant: { title: 'Grant', $ref: '#/$defs/id' },
|
|
@@ -317,7 +351,7 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
317
351
|
required: ['description', 'input', 'agent'],
|
|
318
352
|
},
|
|
319
353
|
'house-trigger': {
|
|
320
|
-
description: "One Trigger of this Room as its acts wrote it, which House alone writes: its `description`, the `condition` it fires on, its `actions` in order, whether each action and the Trigger are `enabled`, `paused_by` `types` while a change of the Room's types paused it, its `creator` by `user` and the `name` they had then, and when it was `created`. A `notify` action reaches the `users` its `to` names, the members its `fields` name in the matched document and the holders of its `roles`, or, `in_group`, posts once in this Room's Telegram group in their place, mentioning each; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `done` action marks Done every active conversation an Agent function request of this Room started for the Event's document; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release and the owner's functions.",
|
|
354
|
+
description: "One Trigger of this Room as its acts wrote it, which House alone writes: its `description`, the `condition` it fires on, its `actions` in order, whether each action and the Trigger are `enabled`, `paused_by` `types` while a change of the Room's types paused it, its `creator` by `user` and the `name` they had then, and when it was `created`. A `notify` action reaches the `users` its `to` names, the members its `fields` name in the matched document and the holders of its `roles`, or, `in_group`, posts once in this Room's Telegram group in their place, mentioning each; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `done` action marks Done every active conversation an Agent function request of this Room started for the Event's document; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, while the `user` it was `attached_by` owns this Room, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release, who owns this Room and the owner's functions.",
|
|
321
355
|
properties: {
|
|
322
356
|
reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
|
|
323
357
|
trigger: { title: 'Trigger', $ref: '#/$defs/id' },
|
|
@@ -404,6 +438,13 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
404
438
|
enabled: { title: 'Enabled', type: 'boolean' },
|
|
405
439
|
app: { title: 'App', $ref: '#/$defs/app' },
|
|
406
440
|
function: { title: 'Function', type: 'string' },
|
|
441
|
+
attached_by: {
|
|
442
|
+
title: 'Attached by',
|
|
443
|
+
type: 'object',
|
|
444
|
+
additionalProperties: false,
|
|
445
|
+
properties: { user: { title: 'User', $ref: '#/$defs/id' } },
|
|
446
|
+
required: ['user'],
|
|
447
|
+
},
|
|
407
448
|
},
|
|
408
449
|
required: ['kind', 'enabled', 'function'],
|
|
409
450
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export { byCodePoint, compared, dated, fitsKind, indexKey, instant, instantKey,
|
|
|
4
4
|
export type { Kind, Ordering } from './kinds.js';
|
|
5
5
|
export { bodied, cursorOf, decodedCursor, identityOf, invalid, known, placeText, planOf, QueryError, queryKey, } from './query/language.js';
|
|
6
6
|
export type { Clause, Continuation, Direction, DocumentQuery, DocumentShape, Filter, GroupKey, GroupOrder, GroupQuery, GroupSelect, GroupShape, HeldRooms, Key, KeyPlan, LocalQuery, OrderOptions, Place, Predicate, QueryErrorCode, QueryPlan, Related, RoomFacts, Scope, Select, Test, Value, Where, } from './query/language.js';
|
|
7
|
-
export { pageOrder, walkedValue, walkOf } from './query/walk.js';
|
|
8
|
-
export type { KeyBound, KeyRange, PageOrder, Walk, WalkRun } from './query/walk.js';
|
|
7
|
+
export { countOf, countShape, pageOrder, walkedValue, walkOf } from './query/walk.js';
|
|
8
|
+
export type { Count, KeyBound, KeyRange, PageOrder, Walk, WalkRun } from './query/walk.js';
|
|
9
9
|
export { verifyIndexBounds } from './indexed.js';
|
|
10
10
|
export type { IndexBounds } from './indexed.js';
|
|
11
11
|
export { heldAt, matches } from './query/match.js';
|
|
@@ -20,8 +20,7 @@ export { shownDay, shownMoment } from './moment.js';
|
|
|
20
20
|
export type { MomentReader } from './moment.js';
|
|
21
21
|
export { labelAt, NAME_FIELD } from './body.js';
|
|
22
22
|
export type { Naming } from './body.js';
|
|
23
|
-
export {
|
|
24
|
-
export { apply, bodyLinks, create, links, parse, relabel, relabels, relativize, relativizeBody, relinkBody, serialize, textSpans, unlinkBody, } from './document.js';
|
|
23
|
+
export { apply, bodyLinks, create, links, parse, partText, relabel, relabels, relativize, relativizeBody, relinkBody, serialize, textSpans, unlinkBody, } from './document.js';
|
|
25
24
|
export { documentFacts, referenceTarget, referenceTargets } from './facts.js';
|
|
26
25
|
export { notReadyWaitMs } from './not-ready.js';
|
|
27
26
|
export type { ReferenceTarget, SavedFacts } from './facts.js';
|
|
@@ -33,15 +32,14 @@ export { APP_REFERENCE_PATTERN, APP_REFERENCE_PREFIX, ROOM_REFERENCE_PATTERN, RE
|
|
|
33
32
|
export type { HouseDocumentFields, HouseModelType } from './house-model.js';
|
|
34
33
|
export { CHAT_MESSAGE_TYPE, CHAT_TYPE, INBOX_CHANNEL_KINDS, INBOX_TYPES } from './room-types.js';
|
|
35
34
|
export type { InboxChannelKind } from './room-types.js';
|
|
36
|
-
export { keyedDestination, keyedLink, linkedPath, relative, retarget, roomPath, roomTarget, target, } from './paths.js';
|
|
35
|
+
export { keyedDestination, keyedLink, linkedPath, relative, retarget, roomPath, roomTarget, target, urlDestination, } from './paths.js';
|
|
37
36
|
export { openPatternBudget } from './pattern.js';
|
|
38
37
|
export type { LinkedPath, RoomTarget } from './paths.js';
|
|
39
|
-
export { project } from './project.js';
|
|
40
38
|
export { references } from './references.js';
|
|
41
|
-
export { CAPTURE_HOME, isDocumentPath, isReservedName, RESERVED_NAMES, ROOM_DESCRIPTION, } from './reserved.js';
|
|
39
|
+
export { CAPTURE_HOME, foldedName, isDocumentPath, isReservedName, RESERVED_NAMES, ROOM_DESCRIPTION, } from './reserved.js';
|
|
42
40
|
export { ARRAY_INDEX, ATTACHMENT, crossedFacts, escapePointer, itemFacts, JSON_POINTER, memberFacts, pointerFacts, pointerSegments, untitled, } from './definition.js';
|
|
43
41
|
export type { Definition, FieldRules, JsonType, PatternFacts, PointerFacts, RuleValue, Shape, Transition, ValueFacts, } from './definition.js';
|
|
44
|
-
export type { ApplyResult, BodyResult, Change, DefinitionOf,
|
|
42
|
+
export type { ApplyResult, BodyResult, Change, DefinitionOf, Document, DocumentCheck, Extent, Library, ModelVerification, Link, ParseResult, Reached, Reference, Refusal, RoomReference, Span, TypedPath, UnlinkedBody, Validation, ValidationContext, ValidationStep, VerifiedModel, } from './types.js';
|
|
45
43
|
export { assess, assessReferences, bodyKeyedLinks, bodyRoomLinks, checkDocument, definitionAt, readTypes, resolves, roomReferences, validate, validateParsed, validating, verdicts, verify, } from './validate.js';
|
|
46
44
|
export type { Assessment, Verdicts } from './validate.js';
|
|
47
45
|
export { VERSION } from './version.js';
|