@runeya/runeya 2.0.156 → 2.0.157

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.
@@ -19,7 +19,7 @@ function samePath(a, b, platform = process.platform) {
19
19
  }
20
20
  }
21
21
  async function createGlobalInstaller(current, runningVersion) {
22
- const { resolveNpm, probeVersion, installRuneyaGlobally, installedRuneya, compareSemver, installPrefix, userPrefix } = await import("./src-YFOQ4ZCE.js");
22
+ const { resolveNpm, probeVersion, installRuneyaGlobally, installedRuneya, compareSemver, installPrefix, userPrefix } = await import("./src-YR5RF76Z.js");
23
23
  const npm = resolveNpm();
24
24
  async function prefixes() {
25
25
  const global = await probeVersion(npm, ["prefix", "-g"]);
@@ -57,4 +57,4 @@ export {
57
57
  hasDesktop,
58
58
  mustOpenInstaller
59
59
  };
60
- //# sourceMappingURL=install-gate-L27RKPNM.js.map
60
+ //# sourceMappingURL=install-gate-3ZDX3AUO.js.map
@@ -1801,6 +1801,7 @@ function readPageAnswer(result, input) {
1801
1801
  }
1802
1802
  };
1803
1803
  }
1804
+ var KNOWLEDGE_MARKDOWN_NOTE = "Markdown tables are kept. Pages hold no images or HTML, and links only to web, mailto: or kb:<pageId> addresses: when the Markdown you sent lost something, the answer says what in conversion.";
1804
1805
  var KNOWLEDGE_LOCK_NOTE = "A page locked by a person cannot be changed by you: the call is refused, tell the user what you would change instead.";
1805
1806
  var KNOWLEDGE_CAPABILITIES = [
1806
1807
  {
@@ -1979,7 +1980,7 @@ var KNOWLEDGE_CAPABILITIES = [
1979
1980
  },
1980
1981
  {
1981
1982
  name: "knowledge_create_page",
1982
- description: `Create a knowledge page. Search first: update an existing page rather than creating a duplicate. The answer lists pages with an almost identical title (similar): if one is the same subject, mark the new page obsolete and complete the existing one. Give a precise title, a one or two sentence summary (it is what searches show), aliases (other names people use), themes and links. Sections default to those of the type; give your own as [{"heading","markdown"}]. Cite other pages in Markdown as [title](kb:<pageId>). Types: ${KNOWLEDGE_TYPES_DOC}`,
1983
+ description: `Create a knowledge page. Search first: update an existing page rather than creating a duplicate. The answer lists pages with an almost identical title (similar): if one is the same subject, mark the new page obsolete and complete the existing one. Give a precise title, a one or two sentence summary (it is what searches show), aliases (other names people use), themes and links. Sections default to those of the type; give your own as [{"heading","markdown"}]. Cite other pages in Markdown as [title](kb:<pageId>). ${KNOWLEDGE_MARKDOWN_NOTE} Types: ${KNOWLEDGE_TYPES_DOC}`,
1983
1984
  route: "knowledge.createPage",
1984
1985
  method: "POST",
1985
1986
  params: [
@@ -2038,7 +2039,7 @@ var KNOWLEDGE_CAPABILITIES = [
2038
2039
  },
2039
2040
  {
2040
2041
  name: "knowledge_update_section",
2041
- description: `Write one section of a page body, named by its heading (case and accents ignored): replace its content, append to it, or remove it. A heading that does not exist is an error listing the sections (often a typo); set create to true to add it at the end. An empty heading is the text before the first section. Inside the markdown, use ### or deeper for subheadings: a # or ## line is refused. Other sections are left untouched, including what a person is typing in them. ${KNOWLEDGE_LOCK_NOTE}`,
2042
+ description: `Write one section of a page body, named by its heading (case and accents ignored): replace its content, append to it, or remove it. A heading that does not exist is an error listing the sections (often a typo); set create to true to add it at the end. An empty heading is the text before the first section. Inside the markdown, use ### or deeper for subheadings: a # or ## line is refused. Other sections are left untouched, including what a person is typing in them. ${KNOWLEDGE_MARKDOWN_NOTE} ${KNOWLEDGE_LOCK_NOTE}`,
2042
2043
  route: "knowledge.editSection",
2043
2044
  method: "POST",
2044
2045
  params: [
@@ -2072,7 +2073,7 @@ var KNOWLEDGE_CAPABILITIES = [
2072
2073
  },
2073
2074
  {
2074
2075
  name: "knowledge_edit_text",
2075
- description: `Replace an exact passage of a page body, like a text editor: send only the old text and the new one, not the whole section. The passage is matched against the Markdown returned by knowledge_get_page (so bold is **\u2026**, a page link is [title](kb:id)) and must appear exactly once, in the given section or in the whole body; otherwise nothing is written and the error says whether it is missing or ambiguous. The answer gives the page id, title, status, lock and last update and, for each edited section, only the paragraphs that are new or changed, their previous version and how many were deleted without replacement (editedSections); the other sections are listed by heading, and the rest of the sheet (themes, fields, links) is left out: read it with knowledge_get_page. Prefer it to knowledge_update_section for a change inside a long section. To insert text, anchor on the words around the insertion point: to complete "We chose Mongo." send find "We chose Mongo." and replace "We chose Mongo for its flexibility.". ${KNOWLEDGE_LOCK_NOTE}`,
2076
+ description: `Replace an exact passage of a page body, like a text editor: send only the old text and the new one, not the whole section. The passage is matched against the Markdown returned by knowledge_get_page (so bold is **\u2026**, a page link is [title](kb:id)) and must appear exactly once, in the given section or in the whole body; otherwise nothing is written and the error says whether it is missing or ambiguous. The answer gives the page id, title, status, lock and last update and, for each edited section, only the paragraphs that are new or changed, their previous version and how many were deleted without replacement (editedSections); the other sections are listed by heading, and the rest of the sheet (themes, fields, links) is left out: read it with knowledge_get_page. Prefer it to knowledge_update_section for a change inside a long section. To insert text, anchor on the words around the insertion point: to complete "We chose Mongo." send find "We chose Mongo." and replace "We chose Mongo for its flexibility.". ${KNOWLEDGE_MARKDOWN_NOTE} ${KNOWLEDGE_LOCK_NOTE}`,
2076
2077
  route: "knowledge.editText",
2077
2078
  method: "POST",
2078
2079
  params: [