deltafold 0.2.0 → 0.2.1

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.
Files changed (48) hide show
  1. package/README.md +33 -1
  2. package/dist/changelog.d.ts +10 -10
  3. package/dist/changelog.js +4 -4
  4. package/dist/changelog.js.map +1 -1
  5. package/dist/{document-BZcZo9nr.js → document-HfPyYxEd.js} +20 -20
  6. package/dist/{document-BZcZo9nr.js.map → document-HfPyYxEd.js.map} +1 -1
  7. package/dist/{document-DWHsgywm.d.ts → document-gtXeGFJR.d.ts} +41 -41
  8. package/dist/{document-DWHsgywm.d.ts.map → document-gtXeGFJR.d.ts.map} +1 -1
  9. package/dist/html.d.ts +2 -2
  10. package/dist/html.js +2 -2
  11. package/dist/html.js.map +1 -1
  12. package/dist/index.d.ts +437 -105
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +750 -273
  15. package/dist/index.js.map +1 -1
  16. package/dist/markdown.d.ts +2 -2
  17. package/dist/markdown.js +2 -2
  18. package/dist/markdown.js.map +1 -1
  19. package/dist/{mdast-DiRsYwPU.js → mdast-Oqkh0Gs1.js} +2 -2
  20. package/dist/{mdast-DiRsYwPU.js.map → mdast-Oqkh0Gs1.js.map} +1 -1
  21. package/dist/{package-BfBYnaCz.d.ts → package-CA5R57IC.d.ts} +117 -112
  22. package/dist/{package-BfBYnaCz.d.ts.map → package-CA5R57IC.d.ts.map} +1 -1
  23. package/package.json +3 -3
  24. package/src/features/documents/changelog.ts +8 -8
  25. package/src/features/documents/document.ts +39 -39
  26. package/src/features/documents/index.ts +2 -2
  27. package/src/features/execution/executor.ts +485 -313
  28. package/src/features/execution/handler.ts +30 -30
  29. package/src/features/execution/interaction.ts +11 -11
  30. package/src/features/execution/observation.ts +489 -0
  31. package/src/features/execution/observer.ts +395 -0
  32. package/src/features/package.ts +3 -3
  33. package/src/features/planning/history.ts +10 -10
  34. package/src/features/planning/identifiers.ts +7 -4
  35. package/src/features/planning/resolve-error.ts +13 -13
  36. package/src/features/planning/resolve.ts +11 -4
  37. package/src/features/planning/validate.ts +1 -1
  38. package/src/foundation/action.ts +17 -17
  39. package/src/foundation/change.ts +10 -10
  40. package/src/foundation/instruction.ts +5 -5
  41. package/src/foundation/migration.ts +12 -12
  42. package/src/foundation/plan.ts +23 -18
  43. package/src/foundation/rule.ts +6 -6
  44. package/src/foundation/shortcut.ts +6 -6
  45. package/src/foundation/version.ts +6 -6
  46. package/src/index.ts +14 -12
  47. package/src/renderers/html.ts +1 -1
  48. package/src/renderers/markdown.ts +1 -1
@@ -1,8 +1,8 @@
1
- import { o as Document } from "./document-DWHsgywm.js";
1
+ import { o as Document } from "./document-gtXeGFJR.js";
2
2
  /**
3
3
  * Renders a document as Markdown. Throws `DocumentError` for unsupported structure.
4
4
  *
5
- * @since @next
5
+ * @since 0.0.1
6
6
  */
7
7
  export declare const render: (document: Document) => string;
8
8
  //# sourceMappingURL=markdown.d.ts.map
package/dist/markdown.js CHANGED
@@ -1,10 +1,10 @@
1
- import { t as toMdast } from "./mdast-DiRsYwPU.js";
1
+ import { t as toMdast } from "./mdast-Oqkh0Gs1.js";
2
2
  import { toMarkdown } from "mdast-util-to-markdown";
3
3
  // src/renderers/markdown.ts
4
4
  /**
5
5
  * Renders a document as Markdown. Throws `DocumentError` for unsupported structure.
6
6
  *
7
- * @since @next
7
+ * @since 0.0.1
8
8
  */
9
9
  const render = (document) => toMarkdown(toMdast(document), {
10
10
  bullet: "-",
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.js","names":[],"sources":["../src/renderers/markdown.ts"],"sourcesContent":["import { toMarkdown } from \"mdast-util-to-markdown\";\n\nimport type { Document } from \"../features/documents/document.ts\";\nimport { toMdast } from \"./mdast.ts\";\n\n/**\n * Renders a document as Markdown. Throws `DocumentError` for unsupported structure.\n *\n * @since @next\n */\nexport const render = (document: Document): string =>\n\ttoMarkdown(toMdast(document), { bullet: \"-\", emphasis: \"_\", strong: \"*\" });\n"],"mappings":";;;;;;;;AAUA,MAAa,UAAU,aACtB,WAAW,QAAQ,QAAQ,GAAG;CAAE,QAAQ;CAAK,UAAU;CAAK,QAAQ;AAAI,CAAC"}
1
+ {"version":3,"file":"markdown.js","names":[],"sources":["../src/renderers/markdown.ts"],"sourcesContent":["import { toMarkdown } from \"mdast-util-to-markdown\";\n\nimport type { Document } from \"../features/documents/document.ts\";\nimport { toMdast } from \"./mdast.ts\";\n\n/**\n * Renders a document as Markdown. Throws `DocumentError` for unsupported structure.\n *\n * @since 0.0.1\n */\nexport const render = (document: Document): string =>\n\ttoMarkdown(toMdast(document), { bullet: \"-\", emphasis: \"_\", strong: \"*\" });\n"],"mappings":";;;;;;;;AAUA,MAAa,UAAU,aACtB,WAAW,QAAQ,QAAQ,GAAG;CAAE,QAAQ;CAAK,UAAU;CAAK,QAAQ;AAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- import { i as DocumentError } from "./document-BZcZo9nr.js";
1
+ import { i as DocumentError } from "./document-HfPyYxEd.js";
2
2
  import { normalizeUri, sanitizeUri } from "micromark-util-sanitize-uri";
3
3
  // src/renderers/mdast.ts
4
4
  /** Link schemes kept in rendered output. Relative URLs are always kept. */
@@ -105,4 +105,4 @@ const toMdast = (document) => ({
105
105
  });
106
106
  export { toMdast as t };
107
107
 
108
- //# sourceMappingURL=mdast-DiRsYwPU.js.map
108
+ //# sourceMappingURL=mdast-Oqkh0Gs1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mdast-DiRsYwPU.js","names":[],"sources":["../src/renderers/mdast.ts"],"sourcesContent":["import type * as Mdast from \"mdast\";\nimport { normalizeUri, sanitizeUri } from \"micromark-util-sanitize-uri\";\n\nimport {\n\tDocumentError,\n\ttype Block,\n\ttype Document,\n\ttype Inline,\n} from \"../features/documents/document.ts\";\n\n/** Link schemes kept in rendered output. Relative URLs are always kept. */\nconst safeSchemes = /^(https?|mailto)$/i;\n\n/**\n * Keeps a URL whose scheme is allowed, and replaces any other URL with an empty one.\n * `sanitizeUri` also HTML-escapes its result, which the serializers would escape again,\n * so only its scheme check is used here.\n */\nconst safeUrl = (url: string) => (sanitizeUri(url, safeSchemes) === \"\" ? \"\" : normalizeUri(url));\n\nconst maximumLevel = 6;\n\nconst isDepth = (level: number): level is Mdast.Heading[\"depth\"] =>\n\tNumber.isInteger(level) && level >= 1 && level <= maximumLevel;\n\nconst lowerInline = (value: Inline): Mdast.PhrasingContent => {\n\tswitch (value._tag) {\n\t\tcase \"Text\":\n\t\t\treturn { type: \"text\", value: value.value };\n\t\tcase \"Code\":\n\t\t\treturn { type: \"inlineCode\", value: value.value };\n\t\tcase \"Link\":\n\t\t\treturn {\n\t\t\t\ttype: \"link\",\n\t\t\t\turl: safeUrl(value.url),\n\t\t\t\tchildren: value.children.map(lowerInline),\n\t\t\t};\n\t\tcase \"Strong\":\n\t\t\treturn { type: \"strong\", children: value.children.map(lowerInline) };\n\t}\n\n\treturn { type: \"emphasis\", children: value.children.map(lowerInline) };\n};\n\ntype Scope = { readonly ids: Set<string>; readonly label: string };\n\nconst lowerBlocks = (\n\tblocks: ReadonlyArray<Block>,\n\tdepth: number,\n\tscope: Scope,\n): Array<Mdast.BlockContent> =>\n\tblocks.flatMap((block): Array<Mdast.BlockContent> => {\n\t\tswitch (block._tag) {\n\t\t\tcase \"Paragraph\":\n\t\t\t\treturn [{ type: \"paragraph\", children: block.children.map(lowerInline) }];\n\t\t\tcase \"CodeBlock\":\n\t\t\t\treturn [{ type: \"code\", value: block.value, lang: block.lang ?? null }];\n\t\t\tcase \"List\":\n\t\t\t\treturn [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"list\",\n\t\t\t\t\t\tordered: block.ordered,\n\t\t\t\t\t\tspread: false,\n\t\t\t\t\t\tchildren: block.items.map((item) => ({\n\t\t\t\t\t\t\ttype: \"listItem\",\n\t\t\t\t\t\t\tspread: false,\n\t\t\t\t\t\t\tchildren: lowerBlocks(item, depth, scope),\n\t\t\t\t\t\t})),\n\t\t\t\t\t},\n\t\t\t\t];\n\t\t}\n\n\t\tif (scope.ids.has(block.id)) {\n\t\t\tthrow new DocumentError({\n\t\t\t\treason: \"duplicate-section\",\n\t\t\t\tmessage: `Section \"${block.id}\" appears more than once in ${scope.label}.`,\n\t\t\t});\n\t\t}\n\t\tscope.ids.add(block.id);\n\t\tconst inner =\n\t\t\tblock.release === undefined\n\t\t\t\t? scope\n\t\t\t\t: { ids: new Set<string>(), label: `release \"${block.release.id}\"` };\n\n\t\tif (block.title === undefined) {\n\t\t\treturn [\n\t\t\t\t...lowerBlocks(block.before, depth, inner),\n\t\t\t\t...lowerBlocks(block.after, depth, inner),\n\t\t\t\t...lowerBlocks(block.children, depth, inner),\n\t\t\t];\n\t\t}\n\n\t\tconst level = block.title.level ?? depth;\n\t\tif (!isDepth(level)) {\n\t\t\tthrow new DocumentError({\n\t\t\t\treason: \"heading-level\",\n\t\t\t\tmessage: `Section \"${block.id}\" needs heading level ${level}, but levels range from 1 to ${maximumLevel}.`,\n\t\t\t});\n\t\t}\n\n\t\treturn [\n\t\t\t...lowerBlocks(block.before, level + 1, inner),\n\t\t\t{ type: \"heading\", depth: level, children: block.title.children.map(lowerInline) },\n\t\t\t...lowerBlocks(block.after, level + 1, inner),\n\t\t\t...lowerBlocks(block.children, level + 1, inner),\n\t\t];\n\t});\n\n/**\n * Lowers a document to an mdast root. Untitled sections contribute only their content,\n * and titled sections get the next heading level unless their title sets one. Link URLs\n * with a scheme other than http, https, or mailto become empty.\n *\n * Throws `DocumentError` when a section identifier repeats within the document or within\n * one release, or when a heading level falls outside 1 to 6.\n */\nexport const toMdast = (document: Document): Mdast.Root => ({\n\ttype: \"root\",\n\tchildren: lowerBlocks(document.children, 1, { ids: new Set(), label: \"the document\" }),\n});\n"],"mappings":";;;;AAWA,MAAM,cAAc;;;;;;AAOpB,MAAM,WAAW,QAAiB,YAAY,KAAK,WAAW,MAAM,KAAK,KAAK,aAAa,GAAG;AAE9F,MAAM,eAAe;AAErB,MAAM,WAAW,UAChB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AI,MAAM,UAAU,KAAA,GACnB,OAAO;EACN,GAAG,YAAY,MAAM,QAAQ,OAAO,KAAK;EACzC,GAAG,YAAY,MAAM,OAAO,OAAO,KAAK;EACxC,GAAG,YAAY,MAAM,UAAU,OAAO,KAAK;CAC5C;CAGD,MAAM,QAAQ,MAAM,MAAM,SAAS;CACnC,IAAI,CAAC,QAAQ,KAAK,GACjB,MAAM,IAAI,cAAc;EACvB,QAAQ;EACR,SAAS,YAAY,MAAM,GAAG,wBAAwB,MAAM,+BAA+B,aAAa;CACzG,CAAC;CAGF,OAAO;EACN,GAAG,YAAY,MAAM,QAAQ,QAAQ,GAAG,KAAK;EAC7C;GAAE,MAAM;GAAW,OAAO;GAAO,UAAU,MAAM,MAAM,SAAS,IAAI,WAAW;EAAE;EACjF,GAAG,YAAY,MAAM,OAAO,QAAQ,GAAG,KAAK;EAC5C,GAAG,YAAY,MAAM,UAAU,QAAQ,GAAG,KAAK;CAChD;AACD,CAAC;;;;;;;;;AAUF,MAAa,WAAW,cAAoC;CAC3D,MAAM;CACN,UAAU,YAAY,SAAS,UAAU,GAAG;EAAE,qBAAK,IAAI,IAAI;EAAG,OAAO;CAAe,CAAC;AACtF"}
1
+ {"version":3,"file":"mdast-Oqkh0Gs1.js","names":[],"sources":["../src/renderers/mdast.ts"],"sourcesContent":["import type * as Mdast from \"mdast\";\nimport { normalizeUri, sanitizeUri } from \"micromark-util-sanitize-uri\";\n\nimport {\n\tDocumentError,\n\ttype Block,\n\ttype Document,\n\ttype Inline,\n} from \"../features/documents/document.ts\";\n\n/** Link schemes kept in rendered output. Relative URLs are always kept. */\nconst safeSchemes = /^(https?|mailto)$/i;\n\n/**\n * Keeps a URL whose scheme is allowed, and replaces any other URL with an empty one.\n * `sanitizeUri` also HTML-escapes its result, which the serializers would escape again,\n * so only its scheme check is used here.\n */\nconst safeUrl = (url: string) => (sanitizeUri(url, safeSchemes) === \"\" ? \"\" : normalizeUri(url));\n\nconst maximumLevel = 6;\n\nconst isDepth = (level: number): level is Mdast.Heading[\"depth\"] =>\n\tNumber.isInteger(level) && level >= 1 && level <= maximumLevel;\n\nconst lowerInline = (value: Inline): Mdast.PhrasingContent => {\n\tswitch (value._tag) {\n\t\tcase \"Text\":\n\t\t\treturn { type: \"text\", value: value.value };\n\t\tcase \"Code\":\n\t\t\treturn { type: \"inlineCode\", value: value.value };\n\t\tcase \"Link\":\n\t\t\treturn {\n\t\t\t\ttype: \"link\",\n\t\t\t\turl: safeUrl(value.url),\n\t\t\t\tchildren: value.children.map(lowerInline),\n\t\t\t};\n\t\tcase \"Strong\":\n\t\t\treturn { type: \"strong\", children: value.children.map(lowerInline) };\n\t}\n\n\treturn { type: \"emphasis\", children: value.children.map(lowerInline) };\n};\n\ntype Scope = { readonly ids: Set<string>; readonly label: string };\n\nconst lowerBlocks = (\n\tblocks: ReadonlyArray<Block>,\n\tdepth: number,\n\tscope: Scope,\n): Array<Mdast.BlockContent> =>\n\tblocks.flatMap((block): Array<Mdast.BlockContent> => {\n\t\tswitch (block._tag) {\n\t\t\tcase \"Paragraph\":\n\t\t\t\treturn [{ type: \"paragraph\", children: block.children.map(lowerInline) }];\n\t\t\tcase \"CodeBlock\":\n\t\t\t\treturn [{ type: \"code\", value: block.value, lang: block.lang ?? null }];\n\t\t\tcase \"List\":\n\t\t\t\treturn [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"list\",\n\t\t\t\t\t\tordered: block.ordered,\n\t\t\t\t\t\tspread: false,\n\t\t\t\t\t\tchildren: block.items.map((item) => ({\n\t\t\t\t\t\t\ttype: \"listItem\",\n\t\t\t\t\t\t\tspread: false,\n\t\t\t\t\t\t\tchildren: lowerBlocks(item, depth, scope),\n\t\t\t\t\t\t})),\n\t\t\t\t\t},\n\t\t\t\t];\n\t\t}\n\n\t\tif (scope.ids.has(block.id)) {\n\t\t\tthrow new DocumentError({\n\t\t\t\treason: \"duplicate-section\",\n\t\t\t\tmessage: `Section \"${block.id}\" appears more than once in ${scope.label}.`,\n\t\t\t});\n\t\t}\n\t\tscope.ids.add(block.id);\n\t\tconst inner =\n\t\t\tblock.release === undefined\n\t\t\t\t? scope\n\t\t\t\t: { ids: new Set<string>(), label: `release \"${block.release.id}\"` };\n\n\t\tif (block.title === undefined) {\n\t\t\treturn [\n\t\t\t\t...lowerBlocks(block.before, depth, inner),\n\t\t\t\t...lowerBlocks(block.after, depth, inner),\n\t\t\t\t...lowerBlocks(block.children, depth, inner),\n\t\t\t];\n\t\t}\n\n\t\tconst level = block.title.level ?? depth;\n\t\tif (!isDepth(level)) {\n\t\t\tthrow new DocumentError({\n\t\t\t\treason: \"heading-level\",\n\t\t\t\tmessage: `Section \"${block.id}\" needs heading level ${level}, but levels range from 1 to ${maximumLevel}.`,\n\t\t\t});\n\t\t}\n\n\t\treturn [\n\t\t\t...lowerBlocks(block.before, level + 1, inner),\n\t\t\t{ type: \"heading\", depth: level, children: block.title.children.map(lowerInline) },\n\t\t\t...lowerBlocks(block.after, level + 1, inner),\n\t\t\t...lowerBlocks(block.children, level + 1, inner),\n\t\t];\n\t});\n\n/**\n * Lowers a document to an mdast root. Untitled sections contribute only their content,\n * and titled sections get the next heading level unless their title sets one. Link URLs\n * with a scheme other than http, https, or mailto become empty.\n *\n * Throws `DocumentError` when a section identifier repeats within the document or within\n * one release, or when a heading level falls outside 1 to 6.\n */\nexport const toMdast = (document: Document): Mdast.Root => ({\n\ttype: \"root\",\n\tchildren: lowerBlocks(document.children, 1, { ids: new Set(), label: \"the document\" }),\n});\n"],"mappings":";;;;AAWA,MAAM,cAAc;;;;;;AAOpB,MAAM,WAAW,QAAiB,YAAY,KAAK,WAAW,MAAM,KAAK,KAAK,aAAa,GAAG;AAE9F,MAAM,eAAe;AAErB,MAAM,WAAW,UAChB,OAAO,UAAU,KAAK,KAAK,SAAS,KAAK,SAAS;AAEnD,MAAM,eAAe,UAAyC;CAC7D,QAAQ,MAAM,MAAd;EACC,KAAK,QACJ,OAAO;GAAE,MAAM;GAAQ,OAAO,MAAM;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