isorite 0.3.1 → 0.6.0

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 (60) hide show
  1. package/README.md +3 -3
  2. package/dist/core.js +4 -2
  3. package/dist/main.js +4290 -3960
  4. package/docs/setup-for-agents.md +7 -2
  5. package/docs/setup.md +23 -5
  6. package/docs/terminal.md +9 -1
  7. package/package.json +1 -1
  8. package/plugin/tui.tsx +3 -77
  9. package/web/_app/immutable/assets/{0.IOi79DXH.css → 0.LEIHnkPh.css} +1 -1
  10. package/web/_app/immutable/chunks/{8IM6BNk6.js → 2DHY0Dzh.js} +21 -21
  11. package/web/_app/immutable/chunks/BQRMn_tl.js +1 -0
  12. package/web/_app/immutable/chunks/C-352d8F.js +1 -0
  13. package/web/_app/immutable/chunks/{B_AYGp9o.js → CHxNLteG.js} +1 -1
  14. package/web/_app/immutable/chunks/Cf6h5DpS.js +20 -0
  15. package/web/_app/immutable/chunks/{CMp5T_-1.js → D4A7-5k0.js} +1 -1
  16. package/web/_app/immutable/chunks/Dijhflxl.js +1 -0
  17. package/web/_app/immutable/chunks/Ps0IPbdL.js +1 -0
  18. package/web/_app/immutable/chunks/{BHPhFydX.js → ZRnI3PpK.js} +1 -1
  19. package/web/_app/immutable/chunks/nhmVyQdD.js +3 -0
  20. package/web/_app/immutable/chunks/rTqzqD6j.js +1 -0
  21. package/web/_app/immutable/chunks/y24aTX4O.js +1 -0
  22. package/web/_app/immutable/entry/app.BQ0r6jSu.js +2 -0
  23. package/web/_app/immutable/entry/start.CIQiYrSU.js +1 -0
  24. package/web/_app/immutable/nodes/0.zPrOkn79.js +26 -0
  25. package/web/_app/immutable/nodes/1.DfBkOAo2.js +1 -0
  26. package/web/_app/immutable/nodes/2.fp8Y5joG.js +1 -0
  27. package/web/_app/immutable/nodes/3.Do9cwxjS.js +1 -0
  28. package/web/_app/immutable/nodes/4.CGd6gzGJ.js +2 -0
  29. package/web/_app/immutable/nodes/5.Dtac-HK8.js +5 -0
  30. package/web/_app/immutable/nodes/6._-kZkWYe.js +1 -0
  31. package/web/_app/immutable/nodes/7.BdTE6U4H.js +1 -0
  32. package/web/_app/version.json +1 -1
  33. package/web/index.html +17 -20
  34. package/dist/tutorial/barnes_hut.py +0 -46
  35. package/dist/tutorial/sim.py +0 -29
  36. package/plugin/tour.ts +0 -74
  37. package/web/_app/immutable/assets/8.CFA9_nYZ.css +0 -1
  38. package/web/_app/immutable/assets/Tutorial.DOfsM49T.css +0 -1
  39. package/web/_app/immutable/chunks/Bze-M_kr.js +0 -3
  40. package/web/_app/immutable/chunks/CFA70_0c.js +0 -20
  41. package/web/_app/immutable/chunks/CGgq5NWd.js +0 -1
  42. package/web/_app/immutable/chunks/CHlFgDNB.js +0 -1
  43. package/web/_app/immutable/chunks/CRzLMJPS.js +0 -1
  44. package/web/_app/immutable/chunks/D89YN-Dr.js +0 -1
  45. package/web/_app/immutable/chunks/DF3lgcLW.js +0 -1
  46. package/web/_app/immutable/chunks/DGVcYHaJ.js +0 -43
  47. package/web/_app/immutable/chunks/DHMLhlug.js +0 -1
  48. package/web/_app/immutable/chunks/DmgpLvxp.js +0 -1
  49. package/web/_app/immutable/chunks/DrsVvzvg.js +0 -1
  50. package/web/_app/immutable/entry/app.hlk6OrE8.js +0 -2
  51. package/web/_app/immutable/entry/start.BE1F0HZV.js +0 -1
  52. package/web/_app/immutable/nodes/0.DMGdYhkH.js +0 -15
  53. package/web/_app/immutable/nodes/1.Dn_0fgt7.js +0 -1
  54. package/web/_app/immutable/nodes/2.Y1Dd5PBI.js +0 -1
  55. package/web/_app/immutable/nodes/3.BlxuRbLf.js +0 -1
  56. package/web/_app/immutable/nodes/4.Bt_H0MbN.js +0 -2
  57. package/web/_app/immutable/nodes/5.BJ-EVWbz.js +0 -5
  58. package/web/_app/immutable/nodes/6.DDIiJnwi.js +0 -1
  59. package/web/_app/immutable/nodes/7.DmPPLDvb.js +0 -1
  60. package/web/_app/immutable/nodes/8.CwMTBog4.js +0 -486
package/README.md CHANGED
@@ -6,13 +6,13 @@ Needs Node 24 or later. For the terminal, OpenCode 2: `npm i -g @opencode/cli`.
6
6
 
7
7
  ```sh
8
8
  npm install -g isorite
9
- isorite --tutorial # the tutorial: the terminal's tour, and the browser's beside it, on an example base
9
+ isorite guide # the guide: a knowledge base about isorite, with things to do, in ~/isorite-guide
10
10
  ```
11
11
 
12
12
  On your own notes, a folder of Markdown files (`isorite new <notes>` starts one):
13
13
 
14
14
  ```sh
15
- isorite serve <notes> # the browser, at http://localhost:4767/; set Iso's provider key behind the logo
15
+ isorite serve <notes> # the browser, at http://localhost:4767/; set up Iso's provider in Iso's settings
16
16
  cd <your code> && isorite term <notes> # OpenCode here, with the notes beside it
17
17
  isorite model # optional: search by meaning (fetches a 53 MB model, once)
18
18
  ```
@@ -21,6 +21,6 @@ Setting it up, at work too (a company's gateway, a client certificate, a proxy):
21
21
  When something fails, `isorite doctor` says what to change; `isorite doctor --report` gives it as one block, its
22
22
  secrets hidden, to paste to someone helping. For an AI helping you: `isorite help setup`.
23
23
 
24
- The tutorial in a browser alone: https://lachlanjs.github.io/isorite/
24
+ The guide in a browser alone: https://lachlanjs.github.io/isorite/
25
25
 
26
26
  Source, and what is on disk: https://github.com/lachlanjs/isorite
package/dist/core.js CHANGED
@@ -511,6 +511,8 @@ function outwardLinks(body) {
511
511
  }
512
512
  //#endregion
513
513
  //#region packages/core/src/bundle.ts
514
+ /** The base's own instructions, for Iso and any other agent, at the top of the notes (M15). Not a note. */
515
+ const AGENTS_FILE = "AGENTS.md";
514
516
  const OKF_VERSION = "0.2";
515
517
  const ARTIFACT = /\.html?$/i;
516
518
  const IMAGE = /\.(png|jpe?g|gif|svg|webp|avif)$/i;
@@ -668,7 +670,7 @@ var Bundle = class Bundle {
668
670
  this.ensureDir(rel);
669
671
  continue;
670
672
  }
671
- if (!rel.endsWith(".md")) {
673
+ if (!rel.endsWith(".md") || rel === "AGENTS.md") {
672
674
  this.files.add(rel);
673
675
  continue;
674
676
  }
@@ -2214,4 +2216,4 @@ function ago(at, now = Date.now()) {
2214
2216
  /** A moment is named by its last entry: the one the note is shown at. */
2215
2217
  const momentKey = (m) => m.ids.at(-1);
2216
2218
  //#endregion
2217
- export { ABOUT, Bundle, CONFIG_FILE, Concept, DEVICE_RE, DONE, DiffError, Directory, FrontmatterError, GITATTRIBUTES, ID_RE, KINDS, LearnerError, MAX_EVENT_BYTES, OKF_VERSION, OWN_DIR, OWN_FORMAT, RATINGS, SESSION_GAP_MS, SETTINGS_FILE, SNAPSHOT_EVERY, STRENGTH, STUDY_DIR, STUDY_FORMAT, SearchIndex, StudyError, agentName, ago, anchorOf, applyHunks, authors, blocks, change, citeKind, cleanEvent, cmp, cmpTuple, codeTarget, contentHash, describe, diffLines, doneOf, dumpFrontmatter, editFrontmatter, embedFor, embedRefs, findAnchor, findPassage, floatRepr, frontmatterText, hashText, headings, idsOf, impliedLinks, insertAt, iso, journalLine, journalPath, kindOf, legacyId, linkRefs, linkTexts, locate, mapModel, mergeRecords, momentKey, moments, newId, noteIds, outwardLinks, pagerank, parseSettings, parseStudyConfig, parseYaml, passageOf, pending, pyRepr, rating, reach, readJournal, readRecord, reconcile, recordPath, replay, round3, section, sessionMoments, settingsText, sha256, slugify, snippet, spliceText, splitFrontmatter, splitSource, stamp, strengthEdges, strip, stronglyConnected, text, textAt, toTime, tokenize, touched, wordAuthors, written };
2219
+ export { ABOUT, AGENTS_FILE, Bundle, CONFIG_FILE, Concept, DEVICE_RE, DONE, DiffError, Directory, FrontmatterError, GITATTRIBUTES, ID_RE, KINDS, LearnerError, MAX_EVENT_BYTES, OKF_VERSION, OWN_DIR, OWN_FORMAT, RATINGS, SESSION_GAP_MS, SETTINGS_FILE, SNAPSHOT_EVERY, STRENGTH, STUDY_DIR, STUDY_FORMAT, SearchIndex, StudyError, agentName, ago, anchorOf, applyHunks, authors, blocks, change, citeKind, cleanEvent, cmp, cmpTuple, codeTarget, contentHash, describe, diffLines, doneOf, dumpFrontmatter, editFrontmatter, embedFor, embedRefs, findAnchor, findPassage, floatRepr, frontmatterText, hashText, headings, idsOf, impliedLinks, insertAt, iso, journalLine, journalPath, kindOf, legacyId, linkRefs, linkTexts, locate, mapModel, mergeRecords, momentKey, moments, newId, noteIds, outwardLinks, pagerank, parseSettings, parseStudyConfig, parseYaml, passageOf, pending, pyRepr, rating, reach, readJournal, readRecord, reconcile, recordPath, replay, round3, section, sessionMoments, settingsText, sha256, slugify, snippet, spliceText, splitFrontmatter, splitSource, stamp, strengthEdges, strip, stronglyConnected, text, textAt, toTime, tokenize, touched, wordAuthors, written };