@agentshouse/mdmodel 0.1.0-c0bdbbc92d020 → 0.1.0-c3d58cb8652e6
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 +38 -43
- package/dist/document.d.ts +4 -8
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +25 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/API.md
CHANGED
|
@@ -139,58 +139,53 @@ no newline or separator is inserted, and the resulting source is parsed again.
|
|
|
139
139
|
An invalid frontmatter result receives the existing parse refusal. Independent
|
|
140
140
|
field, section, and preamble edits keep their own prior values valid.
|
|
141
141
|
|
|
142
|
-
For a moved link, use `links` and the `link` change below to obtain the rewritten
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
separate call against the resulting Library.
|
|
142
|
+
For a moved link, use `links` and the `link` change below to obtain the rewritten Document, then
|
|
143
|
+
compare its public `preamble` and `sections` to the original. Submit the changed values with their
|
|
144
|
+
original priors. Consumers need no source span calculation or private Model import. Collection
|
|
145
|
+
validation remains a separate call against the resulting Library.
|
|
147
146
|
|
|
148
|
-
`links(document, file)` is the inventory of that Document's ordinary link and
|
|
149
|
-
|
|
150
|
-
`
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
including typed references, are not link destinations and are never enumerated.
|
|
147
|
+
`links(document, file)` is the inventory of that Document's ordinary link and image destinations
|
|
148
|
+
that resolve to a collection Path, each with the destination `href` exactly as written and the
|
|
149
|
+
`target` Path it resolves to relative to `file`. A `?query` or `#fragment` the destination carries
|
|
150
|
+
is part of `href` and not part of `target`. Entries are ordered by the position of the destination
|
|
151
|
+
text a rewrite would change, and one destination written the same way appears once however many
|
|
152
|
+
times it occurs. A destination that the syntax profile does not read as a link, one that is empty,
|
|
153
|
+
a bare fragment, or carries a URL scheme, and one that leaves the collection are not in the
|
|
154
|
+
inventory. Frontmatter field values, including typed references, are not link destinations and
|
|
155
|
+
are never enumerated.
|
|
158
156
|
|
|
159
|
-
`target(file, href)` is the collection Path one written destination resolves to
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
the `?query` or `#fragment` it carried, which is the destination the `link`
|
|
167
|
-
change below writes.
|
|
157
|
+
`target(file, href)` is the collection Path one written destination resolves to relative to
|
|
158
|
+
`file`, by the rule `links` and `validate` read: surrounding spaces and the `?query` or `#fragment`
|
|
159
|
+
it carries are not part of that Path. A destination that is empty, a bare fragment, carries a URL
|
|
160
|
+
scheme, starts at `/`, or leaves the collection resolves to `null`. It reads a destination written
|
|
161
|
+
anywhere, such as a typed reference field value, which `links` never enumerates.
|
|
162
|
+
`retarget(href, to)` is that destination rewritten to `to`, keeping the `?query` or `#fragment` it
|
|
163
|
+
carried, which is the destination the `link` change below writes.
|
|
168
164
|
|
|
169
|
-
`references(document, definition)` lists each frontmatter `reference` string at
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
165
|
+
`references(document, definition)` lists each frontmatter `reference` string at any depth as
|
|
166
|
+
`pointer`, `value` and `to`; `apply(document, { kind: 'reference', pointer, value, prior })`
|
|
167
|
+
rewrites one in place, keeping its quotes, or is `stale`. `relativize(document, file, handle,
|
|
168
|
+
definition?)` rewrites each link destination and reference written `/rooms/<handle>/<path>` to
|
|
169
|
+
`relative(file, path)`, keeping its `?query` or `#fragment`. A text without frontmatter, such as
|
|
170
|
+
a captured body, is read from its first character: `relativizeBody(body, file, handle)` converts
|
|
171
|
+
it so, refusing a destination left under `/rooms/` as `unresolved-link`; `bodyLinks(body, file)`
|
|
172
|
+
is its `links`; `relinkBody(body, file, moves)` writes, in one pass, each destination whose Path
|
|
173
|
+
is a key of `moves` as relative to its value, in the form the `link` change below writes.
|
|
177
174
|
|
|
178
175
|
```ts
|
|
179
176
|
target('items/six.md', ' ../projects/atlas.md#overview '); // 'projects/atlas.md'
|
|
180
177
|
retarget(' ../projects/atlas.md#overview ', '../archive/atlas.md'); // '../archive/atlas.md#overview'
|
|
181
178
|
```
|
|
182
179
|
|
|
183
|
-
`apply(document, { kind: 'link', href, to })` rewrites every body occurrence of
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
inside angle brackets, which the original form is kept in when it still fits. A
|
|
193
|
-
destination that neither form can carry is refused as `unwritable-link`.
|
|
180
|
+
`apply(document, { kind: 'link', href, to })` rewrites every body occurrence of that written
|
|
181
|
+
destination and changes nothing else, so a caller that moves a Path rewrites its referring
|
|
182
|
+
Documents without a second Markdown parser. `to` is the Path the destination must resolve to
|
|
183
|
+
instead; the `?query` or `#fragment` the written destination carried is not part of that Path and
|
|
184
|
+
is kept. A Document that does not carry the destination is `stale`. A reference definition is
|
|
185
|
+
rewritten once however many uses name it. The destination is written in the form the syntax
|
|
186
|
+
profile reads back: bare when it carries no whitespace, does not open with `<`, and balances its
|
|
187
|
+
parentheses, otherwise inside angle brackets, which the original form is kept in when it still
|
|
188
|
+
fits. A destination that neither form can carry is refused as `unwritable-link`.
|
|
194
189
|
|
|
195
190
|
`project(document, file, context?)` is the Embedding projection input of one
|
|
196
191
|
Document: the prose a consumer embeds, with every internal Markdown-document
|
package/dist/document.d.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { type Definition } from './definition.js';
|
|
2
|
-
import type { ApplyResult, Change, Document, Link, ParseResult
|
|
2
|
+
import type { ApplyResult, BodyResult, Change, Document, Link, ParseResult } from './types.js';
|
|
3
3
|
import { type YamlMap } from './yaml.js';
|
|
4
4
|
export declare function parse(content: string, file?: string): ParseResult;
|
|
5
5
|
export declare function relativize(document: Document, file: string, handle: string, definition?: Definition): ApplyResult;
|
|
6
|
-
export declare function relativizeBody(body: string, file: string, handle: string):
|
|
7
|
-
|
|
8
|
-
readonly body: string;
|
|
9
|
-
} | {
|
|
10
|
-
readonly outcome: 'refuse';
|
|
11
|
-
readonly refusal: Refusal;
|
|
12
|
-
};
|
|
6
|
+
export declare function relativizeBody(body: string, file: string, handle: string): BodyResult;
|
|
7
|
+
export declare function relinkBody(body: string, file: string, moves: ReadonlyMap<string, string>): BodyResult;
|
|
13
8
|
export declare function links(document: Document, file: string): readonly Link[];
|
|
9
|
+
export declare function bodyLinks(body: string, file: string): readonly Link[];
|
|
14
10
|
export declare function apply(document: Document, change: Change): ApplyResult;
|
|
15
11
|
export declare function serialize(document: Document): string;
|
|
16
12
|
export declare function frontmatter(document: Document): YamlMap | null;
|
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,EAAgC,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMhF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../src/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMhF,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,WAAW,EAEZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAYL,KAAK,OAAO,EAEb,MAAM,WAAW,CAAC;AAwCnB,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,SAAK,GAAG,WAAW,CAkD7D;AA2KD,wBAAgB,UAAU,CACxB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,UAAU,GACtB,WAAW,CAYb;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,CAOrF;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACjC,UAAU,CAeZ;AAeD,wBAAgB,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,IAAI,EAAE,CAEvE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,IAAI,EAAE,CAErE;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,CAerE;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEpD;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,IAAI,CAE9D"}
|
package/dist/document.js
CHANGED
|
@@ -253,10 +253,27 @@ export function relativizeBody(body, file, handle) {
|
|
|
253
253
|
return { outcome: 'refuse', refusal: refuse(file, 'unresolved-link', elsewhere.href) };
|
|
254
254
|
return { outcome: 'applied', body: relinkedBody };
|
|
255
255
|
}
|
|
256
|
-
export function
|
|
256
|
+
export function relinkBody(body, file, moves) {
|
|
257
|
+
let rewritten = '';
|
|
258
|
+
let cursor = 0;
|
|
259
|
+
for (const match of hrefOccurrences(body)) {
|
|
260
|
+
const from = target(file, match.href);
|
|
261
|
+
const to = from === null ? undefined : moves.get(from);
|
|
262
|
+
if (to === undefined)
|
|
263
|
+
continue;
|
|
264
|
+
const written = retarget(match.href, relative(file, to));
|
|
265
|
+
const text = destinationText(written, match.bracketed);
|
|
266
|
+
if (text === null)
|
|
267
|
+
return { outcome: 'refuse', refusal: refuse(file, 'unwritable-link', written) };
|
|
268
|
+
rewritten += body.slice(cursor, match.start) + text;
|
|
269
|
+
cursor = match.end;
|
|
270
|
+
}
|
|
271
|
+
return { outcome: 'applied', body: rewritten + body.slice(cursor) };
|
|
272
|
+
}
|
|
273
|
+
function linksIn(text, file) {
|
|
257
274
|
const found = [];
|
|
258
275
|
const seen = new Set();
|
|
259
|
-
for (const occurrence of hrefOccurrences(
|
|
276
|
+
for (const occurrence of hrefOccurrences(text)) {
|
|
260
277
|
if (seen.has(occurrence.href))
|
|
261
278
|
continue;
|
|
262
279
|
const resolved = target(file, occurrence.href);
|
|
@@ -267,6 +284,12 @@ export function links(document, file) {
|
|
|
267
284
|
}
|
|
268
285
|
return found;
|
|
269
286
|
}
|
|
287
|
+
export function links(document, file) {
|
|
288
|
+
return linksIn(document.content.slice(bodyStartOf(document.content)), file);
|
|
289
|
+
}
|
|
290
|
+
export function bodyLinks(body, file) {
|
|
291
|
+
return linksIn(body, file);
|
|
292
|
+
}
|
|
270
293
|
export function apply(document, change) {
|
|
271
294
|
if (change.kind === 'link')
|
|
272
295
|
return applyLink(document, change.href, change.to);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { dated, factKind, facts, fires, holds, instant, itemFires, pointed, WRITE_DOORS, } from './condition.js';
|
|
2
2
|
export type { Actor, Condition, ConditionScope, ConditionTest, ConditionValue, CronCondition, DateCondition, DocumentCondition, DocumentEvent, DocumentFacts, Fact, FactKind, ItemCondition, ItemFacts, Resolved, WriteDoor, } from './condition.js';
|
|
3
3
|
export { divide } from './divide.js';
|
|
4
|
-
export { apply, links, parse, relativize, relativizeBody, serialize } from './document.js';
|
|
4
|
+
export { apply, bodyLinks, links, parse, relativize, relativizeBody, relinkBody, serialize, } from './document.js';
|
|
5
5
|
export { MEMBER_FIELD, RECEIVED_FIELD, SITE_FIELD } from './fields.js';
|
|
6
6
|
export { relative, retarget, target } from './paths.js';
|
|
7
7
|
export { MARKDOWN_SYNTAX_PROFILE } from './profile.js';
|
|
@@ -9,7 +9,7 @@ export { project } from './project.js';
|
|
|
9
9
|
export { references } from './references.js';
|
|
10
10
|
export { ARRAY_INDEX, ATTACHMENT, escapePointer, itemFacts, memberFacts, pointerSegments, } from './definition.js';
|
|
11
11
|
export type { Definition, JsonType, PatternFacts, SectionSpec, Shape, ValueFacts, } from './definition.js';
|
|
12
|
-
export type { ApplyResult, Change, Division, DivisionContext, Document, Library, ModelVerification, Link, ParseResult, Projection, ProjectionContext, Reference, Refusal, Span, Validation, ValidationContext, VerifiedModel, } from './types.js';
|
|
12
|
+
export type { ApplyResult, BodyResult, Change, Division, DivisionContext, Document, Library, ModelVerification, Link, ParseResult, Projection, ProjectionContext, Reference, Refusal, Span, Validation, ValidationContext, VerifiedModel, } from './types.js';
|
|
13
13
|
export { validate, verify } from './validate.js';
|
|
14
14
|
export { VERSION } from './version.js';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,EACT,OAAO,EACP,WAAW,GACZ,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,QAAQ,EACR,SAAS,GACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,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AM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { dated, factKind, facts, fires, holds, instant, itemFires, pointed, WRITE_DOORS, } from './condition.js';
|
|
2
2
|
export { divide } from './divide.js';
|
|
3
|
-
export { apply, links, parse, relativize, relativizeBody, serialize } from './document.js';
|
|
3
|
+
export { apply, bodyLinks, links, parse, relativize, relativizeBody, relinkBody, serialize, } from './document.js';
|
|
4
4
|
export { MEMBER_FIELD, RECEIVED_FIELD, SITE_FIELD } from './fields.js';
|
|
5
5
|
export { relative, retarget, target } from './paths.js';
|
|
6
6
|
export { MARKDOWN_SYNTAX_PROFILE } from './profile.js';
|
package/dist/types.d.ts
CHANGED
|
@@ -110,4 +110,11 @@ export type ApplyResult = {
|
|
|
110
110
|
readonly outcome: 'refuse';
|
|
111
111
|
readonly refusal: Refusal;
|
|
112
112
|
};
|
|
113
|
+
export type BodyResult = {
|
|
114
|
+
readonly outcome: 'applied';
|
|
115
|
+
readonly body: string;
|
|
116
|
+
} | {
|
|
117
|
+
readonly outcome: 'refuse';
|
|
118
|
+
readonly refusal: Refusal;
|
|
119
|
+
};
|
|
113
120
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,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E,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEN,MAAM,MAAM,WAAW,GACnB;IAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,GAC5D;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,GAC1D;IAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/mdmodel",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-c3d58cb8652e6",
|
|
4
4
|
"description": "MD Type language, parser, validator, structured change application, Markdown syntax profile, and conformance fixtures",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|