@younndai/lyt 0.9.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 (96) hide show
  1. package/LICENSE +200 -0
  2. package/NOTICE +23 -0
  3. package/README.md +117 -0
  4. package/dist/automator-bodies/arc-builder.d.ts +13 -0
  5. package/dist/automator-bodies/arc-builder.d.ts.map +1 -0
  6. package/dist/automator-bodies/arc-builder.js +34 -0
  7. package/dist/automator-bodies/arc-builder.js.map +1 -0
  8. package/dist/automator-bodies/index.d.ts +20 -0
  9. package/dist/automator-bodies/index.d.ts.map +1 -0
  10. package/dist/automator-bodies/index.js +32 -0
  11. package/dist/automator-bodies/index.js.map +1 -0
  12. package/dist/automator-bodies/lane-builder.d.ts +12 -0
  13. package/dist/automator-bodies/lane-builder.d.ts.map +1 -0
  14. package/dist/automator-bodies/lane-builder.js +34 -0
  15. package/dist/automator-bodies/lane-builder.js.map +1 -0
  16. package/dist/automator-bodies/metadata-filler.d.ts +34 -0
  17. package/dist/automator-bodies/metadata-filler.d.ts.map +1 -0
  18. package/dist/automator-bodies/metadata-filler.js +211 -0
  19. package/dist/automator-bodies/metadata-filler.js.map +1 -0
  20. package/dist/automator-run.d.ts +27 -0
  21. package/dist/automator-run.d.ts.map +1 -0
  22. package/dist/automator-run.js +137 -0
  23. package/dist/automator-run.js.map +1 -0
  24. package/dist/bench/graded-corpus.d.ts +5 -0
  25. package/dist/bench/graded-corpus.d.ts.map +1 -0
  26. package/dist/bench/graded-corpus.js +121 -0
  27. package/dist/bench/graded-corpus.js.map +1 -0
  28. package/dist/bench/invariant-corpus.d.ts +18 -0
  29. package/dist/bench/invariant-corpus.d.ts.map +1 -0
  30. package/dist/bench/invariant-corpus.js +181 -0
  31. package/dist/bench/invariant-corpus.js.map +1 -0
  32. package/dist/bench/ir-metrics.d.ts +33 -0
  33. package/dist/bench/ir-metrics.d.ts.map +1 -0
  34. package/dist/bench/ir-metrics.js +79 -0
  35. package/dist/bench/ir-metrics.js.map +1 -0
  36. package/dist/bench/latency-bench.d.ts +15 -0
  37. package/dist/bench/latency-bench.d.ts.map +1 -0
  38. package/dist/bench/latency-bench.js +68 -0
  39. package/dist/bench/latency-bench.js.map +1 -0
  40. package/dist/bench/latency-corpus.d.ts +4 -0
  41. package/dist/bench/latency-corpus.d.ts.map +1 -0
  42. package/dist/bench/latency-corpus.js +109 -0
  43. package/dist/bench/latency-corpus.js.map +1 -0
  44. package/dist/bench/pod-harness.d.ts +16 -0
  45. package/dist/bench/pod-harness.d.ts.map +1 -0
  46. package/dist/bench/pod-harness.js +127 -0
  47. package/dist/bench/pod-harness.js.map +1 -0
  48. package/dist/bench/run-bench.d.ts +20 -0
  49. package/dist/bench/run-bench.d.ts.map +1 -0
  50. package/dist/bench/run-bench.js +86 -0
  51. package/dist/bench/run-bench.js.map +1 -0
  52. package/dist/cli-automator-run.d.ts +7 -0
  53. package/dist/cli-automator-run.d.ts.map +1 -0
  54. package/dist/cli-automator-run.js +80 -0
  55. package/dist/cli-automator-run.js.map +1 -0
  56. package/dist/cli.d.ts +3 -0
  57. package/dist/cli.d.ts.map +1 -0
  58. package/dist/cli.js +161 -0
  59. package/dist/cli.js.map +1 -0
  60. package/dist/commands/bench.d.ts +3 -0
  61. package/dist/commands/bench.d.ts.map +1 -0
  62. package/dist/commands/bench.js +92 -0
  63. package/dist/commands/bench.js.map +1 -0
  64. package/dist/commands/capture.d.ts +4 -0
  65. package/dist/commands/capture.d.ts.map +1 -0
  66. package/dist/commands/capture.js +251 -0
  67. package/dist/commands/capture.js.map +1 -0
  68. package/dist/commands/init.d.ts +12 -0
  69. package/dist/commands/init.d.ts.map +1 -0
  70. package/dist/commands/init.js +741 -0
  71. package/dist/commands/init.js.map +1 -0
  72. package/dist/commands/primer.d.ts +3 -0
  73. package/dist/commands/primer.d.ts.map +1 -0
  74. package/dist/commands/primer.js +199 -0
  75. package/dist/commands/primer.js.map +1 -0
  76. package/dist/commands/reindex.d.ts +3 -0
  77. package/dist/commands/reindex.d.ts.map +1 -0
  78. package/dist/commands/reindex.js +105 -0
  79. package/dist/commands/reindex.js.map +1 -0
  80. package/dist/commands/search.d.ts +3 -0
  81. package/dist/commands/search.d.ts.map +1 -0
  82. package/dist/commands/search.js +224 -0
  83. package/dist/commands/search.js.map +1 -0
  84. package/dist/flows/heal.d.ts +29 -0
  85. package/dist/flows/heal.d.ts.map +1 -0
  86. package/dist/flows/heal.js +146 -0
  87. package/dist/flows/heal.js.map +1 -0
  88. package/dist/flows/init-bootstrap.d.ts +93 -0
  89. package/dist/flows/init-bootstrap.d.ts.map +1 -0
  90. package/dist/flows/init-bootstrap.js +561 -0
  91. package/dist/flows/init-bootstrap.js.map +1 -0
  92. package/dist/index.d.ts +11 -0
  93. package/dist/index.d.ts.map +1 -0
  94. package/dist/index.js +27 -0
  95. package/dist/index.js.map +1 -0
  96. package/package.json +81 -0
package/LICENSE ADDED
@@ -0,0 +1,200 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may accept and charge a
167
+ fee for, or grant additional liability obligations and/or rights
168
+ consistent with this License. However, in accepting such obligations,
169
+ You may act only on Your own behalf and on Your sole responsibility,
170
+ not on behalf of any other Contributor, and only if You agree to
171
+ indemnify, defend, and hold each Contributor harmless for any
172
+ liability incurred by, or claims asserted against, such Contributor
173
+ by reason of your accepting any such warranty or additional liability.
174
+
175
+ END OF TERMS AND CONDITIONS
176
+
177
+ APPENDIX: How to apply the Apache License to your work.
178
+
179
+ To apply the Apache License to your work, attach the following
180
+ boilerplate notice, with the fields enclosed by brackets "[]"
181
+ replaced with your own identifying information. (Don't include
182
+ the brackets!) The text should be enclosed in the appropriate
183
+ comment syntax for the file format. We also recommend that a
184
+ file or class name and description of purpose be included on the
185
+ same "printed page" as the copyright notice for easier
186
+ identification within third-party archives.
187
+
188
+ Copyright 2026 MARLINK TRADING SRL (YounndAI)
189
+
190
+ Licensed under the Apache License, Version 2.0 (the "License");
191
+ you may not use this file except in compliance with the License.
192
+ You may obtain a copy of the License at
193
+
194
+ http://www.apache.org/licenses/LICENSE-2.0
195
+
196
+ Unless required by applicable law or agreed to in writing, software
197
+ distributed under the License is distributed on an "AS IS" BASIS,
198
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
+ See the License for the specific language governing permissions and
200
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,23 @@
1
+ @younndai/lyt
2
+ Copyright 2026 MARLINK TRADING SRL (YounndAI)
3
+
4
+ This product includes software developed by MARLINK TRADING SRL (YounndAI)
5
+ (https://younndai.com).
6
+
7
+ Created by: Alexandru Mareș (https://allemaar.com)
8
+
9
+ Licensed under the Apache License, Version 2.0. See LICENSE.
10
+
11
+ ----------------------------------------------------------------------
12
+ Trademark notice
13
+ ----------------------------------------------------------------------
14
+
15
+ YounndAI™ and LYT™ are trademarks of MARLINK TRADING SRL.
16
+
17
+ The Apache License, Version 2.0 does not grant permission to use the
18
+ trade names, trademarks, service marks, or product names of
19
+ MARLINK TRADING SRL, except as required for describing the origin of
20
+ this work and reproducing the content of this NOTICE file.
21
+
22
+ See TRADEMARK.md for the trademark usage policy.
23
+ For trademark usage permissions, contact: office@younndai.com
package/README.md ADDED
@@ -0,0 +1,117 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/YounndAI/lyt/main/assets/lyt-icon-ondark.png" />
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/YounndAI/lyt/main/assets/lyt-icon-onlight.png" />
5
+ <img alt="Lyt" src="https://raw.githubusercontent.com/YounndAI/lyt/main/assets/lyt-icon-onlight.png" width="80" />
6
+ </picture>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <strong>@younndai/lyt</strong><br />
11
+ The unified Lyt CLI — federated markdown vaults, the storage architecture for AI-native knowledge work.<br />
12
+ <em>Part of the Lyt™ toolchain — federated markdown vaults you own, made legible to AI.</em>
13
+ </p>
14
+
15
+ <p align="center">
16
+ <a href="https://linkyourthink.com">Website</a> · <a href="https://github.com/YounndAI/lyt">Repository</a> · <a href="./LICENSE">Apache 2.0</a> · <a href="https://github.com/YounndAI/lyt/blob/main/TRADEMARK.md">Trademark Policy</a> · <a href="https://github.com/YounndAI/lyt/blob/main/CONTRIBUTING.md">Contributing</a>
17
+ </p>
18
+
19
+ [![npm](https://img.shields.io/npm/v/@younndai/lyt/alpha)](https://www.npmjs.com/package/@younndai/lyt)
20
+ [![license](https://img.shields.io/npm/l/@younndai/lyt)](./LICENSE)
21
+ [![status](https://img.shields.io/badge/status-public%20alpha-orange)](https://github.com/YounndAI/lyt#status)
22
+
23
+ > ⚠️ **Public alpha — under active testing.** Lyt works and we use it daily, but surfaces change between releases and docs are still growing. Install only via the `alpha` dist-tag. Your vaults are plain markdown in plain git repos — your data is never locked in, and Lyt never phones home.
24
+
25
+ ## What is this?
26
+
27
+ `@younndai/lyt` is the **meta package and unified CLI** for [Lyt™](https://github.com/YounndAI/lyt) — *Link Your Think*: federated markdown vaults, the storage architecture for AI-native knowledge work. Lyt turns a folder of markdown notes into a Git-native vault that can join a **mesh** of other vaults across people and organizations — **mint vaults you own, weave meshes you share, forge Your Pod.**
28
+
29
+ Lyt is **AI-first by design**: an AI agent is a first-class operator of your knowledge, not a bolted-on feature. Every vault and mesh speaks [YON](https://yon.younndai.com) — structured records any agent reads directly — and the same operation set is exposed to humans via the CLI and to agents via harness skills and an MCP server. Lyt is the reference implementation of the AI-first standard we're defining.
30
+
31
+ You keep the markdown. Lyt is the thin federation layer over it: each vault is one Git repo, the mesh is the graph of declared edges between vaults, and a small libSQL index sits beside the markdown for fast reads. It never asks you to move your notes into a database or a proprietary format, works with any markdown editor (Obsidian, VS Code, your terminal), and never phones home.
32
+
33
+ Installing this one package pulls in the whole core toolchain and ships the single `lyt` binary.
34
+
35
+ ## Install
36
+
37
+ ```bash
38
+ npm install -g @younndai/lyt@alpha
39
+ lyt init # interactive setup wizard
40
+ ```
41
+
42
+ There is no `latest` release yet — the `alpha` tag is required.
43
+
44
+ ## Quick start
45
+
46
+ ```bash
47
+ lyt init # create or adopt your first vault
48
+ lyt capture "an idea worth keeping"
49
+ lyt search "idea" # full-text across your pod
50
+ lyt mesh status # the federation graph
51
+ lyt doctor # confirm your environment is healthy
52
+ ```
53
+
54
+ AI agents drive the same surface through the harness skills in [`@younndai/lyt-skills`](https://github.com/YounndAI/lyt/tree/main/packages/lyt-skills) and the MCP server in [`@younndai/lyt-mcp`](https://github.com/YounndAI/lyt/tree/main/packages/lyt-mcp).
55
+
56
+ ## What you get
57
+
58
+ The `lyt` binary dispatches every verb group under one entry point — you never have to remember which package owns which verb:
59
+
60
+ ```bash
61
+ lyt vault init alex/main # vault primitive (@younndai/lyt-vault)
62
+ lyt mesh status # federation layer (@younndai/lyt-mesh)
63
+ lyt pattern list # patterns + skills (@younndai/lyt-vault)
64
+ lyt mcp serve # MCP server (@younndai/lyt-mcp)
65
+ lyt doctor --json # diagnostics (@younndai/lyt-vault)
66
+ ```
67
+
68
+ ## The Lyt toolchain
69
+
70
+ Lyt is an open toolchain — `@younndai/lyt` composes these packages, and you can also depend on any of them directly:
71
+
72
+ | Package | Role |
73
+ | --- | --- |
74
+ | [`@younndai/lyt`](https://github.com/YounndAI/lyt/tree/main/packages/lyt) | **This package** — the unified `lyt` CLI that aggregates every verb group |
75
+ | [`@younndai/lyt-vault`](https://github.com/YounndAI/lyt/tree/main/packages/lyt-vault) | The vault primitive — init, adopt, capture, search, the libSQL index, patterns |
76
+ | [`@younndai/lyt-mesh`](https://github.com/YounndAI/lyt/tree/main/packages/lyt-mesh) | The federation layer — meshes, edges, subscriptions, clone-all, sync |
77
+ | [`@younndai/lyt-skills`](https://github.com/YounndAI/lyt/tree/main/packages/lyt-skills) | Agent-harness skills — Claude Code, Codex, and generic agent runtimes |
78
+ | [`@younndai/lyt-mcp`](https://github.com/YounndAI/lyt/tree/main/packages/lyt-mcp) | The MCP server — exposes Lyt to any Model Context Protocol client |
79
+ | [`@younndai/lyt-runner`](https://github.com/YounndAI/lyt/tree/main/packages/lyt-runner) | The YON automation runner — patterns, automators, directive expansion |
80
+ | [`@younndai/lyt-llm`](https://github.com/YounndAI/lyt/tree/main/packages/lyt-llm) | The LLM gateway — multi-source routing for AI-assisted vault operations |
81
+
82
+ ## Documentation
83
+
84
+ - **Getting started** — `lyt help getting-started` after install
85
+ - **Full README & guides** — [github.com/YounndAI/lyt](https://github.com/YounndAI/lyt#readme)
86
+ - **Changelog** — [CHANGELOG.md](https://github.com/YounndAI/lyt/blob/main/CHANGELOG.md)
87
+
88
+ ---
89
+
90
+ ## About YounndAI
91
+
92
+ **YounndAI™ — You and AI, unified.** (pronounced *"yoon-dye"*)
93
+
94
+ A philosophy of intelligence: building with intention, so humans and machines
95
+ think together without losing what makes either whole.
96
+
97
+ ## License & Attribution
98
+
99
+ Apache-2.0. © 2026 MARLINK TRADING SRL (YounndAI). See [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE).
100
+
101
+ "LYT", "Lyt", and "YounndAI" are trademarks of MARLINK TRADING SRL — see [`TRADEMARK.md`](https://github.com/YounndAI/lyt/blob/main/TRADEMARK.md).
102
+
103
+ Created by [Alexandru Mareș](https://allemaar.com).
104
+
105
+ Website: [linkyourthink.com](https://linkyourthink.com)
106
+
107
+ <p align="center"><em>Structure before scale. Harmony above all.</em></p>
108
+
109
+ ---
110
+
111
+ | | |
112
+ | ------------- | ------------------------------------------------------- |
113
+ | **Project** | [Lyt — Link Your Think](https://linkyourthink.com) |
114
+ | **Author** | [Alexandru Mareș](https://allemaar.com) |
115
+ | **Company** | [MARLINK TRADING SRL](https://younndai.com) · YounndAI™ |
116
+ | **License** | [Apache 2.0](./LICENSE) — © 2026 MARLINK TRADING SRL |
117
+ | **Trademark** | [YounndAI™ Trademark Guidelines](https://github.com/YounndAI/lyt/blob/main/TRADEMARK.md) |
@@ -0,0 +1,13 @@
1
+ import type { LytRunContext } from "@younndai/lyt-runner";
2
+ import type { AutomatorBodyArgs } from "./index.js";
3
+ export interface ArcBuilderOutcome {
4
+ vaultPath: string;
5
+ arcsWritten: number;
6
+ membersWritten: number;
7
+ cacheArcsUpserted: number | null;
8
+ cacheMembersUpserted: number | null;
9
+ warnings: readonly string[];
10
+ durationMs: number;
11
+ }
12
+ export declare function runArcBuilderBody(_ctx: LytRunContext, args: AutomatorBodyArgs): Promise<ArcBuilderOutcome>;
13
+ //# sourceMappingURL=arc-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arc-builder.d.ts","sourceRoot":"","sources":["../../src/automator-bodies/arc-builder.ts"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,iBAAiB,CAAC,CAgB5B"}
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright 2026 MARLINK TRADING SRL (YounndAI)
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { rebuildArcsFlow } from "@younndai/lyt-vault";
17
+ export async function runArcBuilderBody(_ctx, args) {
18
+ const result = await rebuildArcsFlow({
19
+ vaultPathOverride: args.vaultPath,
20
+ // No registry roundtrip needed — lyt-runner already resolved the
21
+ // vault for the run-plan. No threshold parameter on arcs (unlike
22
+ // lanes); arcs are always explicit declarations.
23
+ });
24
+ return {
25
+ vaultPath: result.vaultPath,
26
+ arcsWritten: result.arcsWritten,
27
+ membersWritten: result.membersWritten,
28
+ cacheArcsUpserted: result.cacheArcsUpserted,
29
+ cacheMembersUpserted: result.cacheMembersUpserted,
30
+ warnings: result.warnings,
31
+ durationMs: result.durationMs,
32
+ };
33
+ }
34
+ //# sourceMappingURL=arc-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arc-builder.js","sourceRoot":"","sources":["../../src/automator-bodies/arc-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAsCH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AActD,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,IAAmB,EACnB,IAAuB;IAEvB,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC;QACnC,iBAAiB,EAAE,IAAI,CAAC,SAAS;QACjC,iEAAiE;QACjE,iEAAiE;QACjE,iDAAiD;KAClD,CAAC,CAAC;IACH,OAAO;QACL,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,cAAc,EAAE,MAAM,CAAC,cAAc;QACrC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;QAC3C,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;QACjD,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,UAAU,EAAE,MAAM,CAAC,UAAU;KAC9B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { Client } from "@libsql/client";
2
+ import type { LytRunContext } from "@younndai/lyt-runner";
3
+ import { runArcBuilderBody, type ArcBuilderOutcome } from "./arc-builder.js";
4
+ import { runLaneBuilderBody, type LaneBuilderOutcome } from "./lane-builder.js";
5
+ import { runMetadataFillerBody, type MetadataFillerOutcome } from "./metadata-filler.js";
6
+ export interface AutomatorBodyArgs {
7
+ vaultPath: string;
8
+ vaultDb: Client;
9
+ automatorName: string;
10
+ automatorVersion: string;
11
+ ledgerClients?: {
12
+ auditDb: Client;
13
+ provenanceDb: Client;
14
+ };
15
+ }
16
+ export type AutomatorBodyFn = (ctx: LytRunContext, args: AutomatorBodyArgs) => Promise<unknown>;
17
+ export declare function resolveAutomatorBody(name: string): AutomatorBodyFn | null;
18
+ export { runMetadataFillerBody, runLaneBuilderBody, runArcBuilderBody };
19
+ export type { MetadataFillerOutcome, LaneBuilderOutcome, ArcBuilderOutcome };
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/automator-bodies/index.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAEzF,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IAMzB,aAAa,CAAC,EAAE;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAUhG,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAIzE;AAED,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;AACxE,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright 2026 MARLINK TRADING SRL (YounndAI)
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { runArcBuilderBody } from "./arc-builder.js";
17
+ import { runLaneBuilderBody } from "./lane-builder.js";
18
+ import { runMetadataFillerBody } from "./metadata-filler.js";
19
+ // Registered v1 archetype bodies. Add new entries here when shipping new
20
+ // archetype implementations; the CLI dispatch reads from this map.
21
+ const REGISTRY = {
22
+ "metadata-filler": runMetadataFillerBody,
23
+ "lane-builder": runLaneBuilderBody,
24
+ "arc-builder": runArcBuilderBody,
25
+ };
26
+ export function resolveAutomatorBody(name) {
27
+ // Strip the optional `automator:` prefix in case callers pass the full rid.
28
+ const stripped = name.startsWith("automator:") ? name.slice("automator:".length) : name;
29
+ return REGISTRY[stripped] ?? null;
30
+ }
31
+ export { runMetadataFillerBody, runLaneBuilderBody, runArcBuilderBody };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/automator-bodies/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,OAAO,EAAE,iBAAiB,EAA0B,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAA2B,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAA8B,MAAM,sBAAsB,CAAC;AAoBzF,yEAAyE;AACzE,mEAAmE;AACnE,MAAM,QAAQ,GAAoC;IAChD,iBAAiB,EAAE,qBAAqB;IACxC,cAAc,EAAE,kBAAkB;IAClC,aAAa,EAAE,iBAAiB;CACjC,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,4EAA4E;IAC5E,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACxF,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC;AACpC,CAAC;AAED,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { LytRunContext } from "@younndai/lyt-runner";
2
+ import type { AutomatorBodyArgs } from "./index.js";
3
+ export interface LaneBuilderOutcome {
4
+ vaultPath: string;
5
+ lanesWritten: number;
6
+ membersWritten: number;
7
+ cacheLanesUpserted: number | null;
8
+ cacheMembersUpserted: number | null;
9
+ durationMs: number;
10
+ }
11
+ export declare function runLaneBuilderBody(_ctx: LytRunContext, args: AutomatorBodyArgs): Promise<LaneBuilderOutcome>;
12
+ //# sourceMappingURL=lane-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lane-builder.d.ts","sourceRoot":"","sources":["../../src/automator-bodies/lane-builder.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,kBAAkB,CAAC,CAgB7B"}
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright 2026 MARLINK TRADING SRL (YounndAI)
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { rebuildLanesFlow } from "@younndai/lyt-vault";
17
+ export async function runLaneBuilderBody(_ctx, args) {
18
+ const result = await rebuildLanesFlow({
19
+ vaultPathOverride: args.vaultPath,
20
+ // Use the default threshold (DEFAULT_LANE_THRESHOLD = 2) — the
21
+ // bundled lane-builder.yon does not surface a configurable
22
+ // threshold yet; that ships as an @META field on the automator
23
+ // declaration in v1.D.2+ alongside arc-builder.
24
+ });
25
+ return {
26
+ vaultPath: result.vaultPath,
27
+ lanesWritten: result.lanesWritten,
28
+ membersWritten: result.membersWritten,
29
+ cacheLanesUpserted: result.cacheLanesUpserted,
30
+ cacheMembersUpserted: result.cacheMembersUpserted,
31
+ durationMs: result.durationMs,
32
+ };
33
+ }
34
+ //# sourceMappingURL=lane-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lane-builder.js","sourceRoot":"","sources":["../../src/automator-bodies/lane-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8BH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAavD,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,IAAmB,EACnB,IAAuB;IAEvB,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC;QACpC,iBAAiB,EAAE,IAAI,CAAC,SAAS;QACjC,+DAA+D;QAC/D,2DAA2D;QAC3D,+DAA+D;QAC/D,gDAAgD;KACjD,CAAC,CAAC;IACH,OAAO;QACL,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,cAAc,EAAE,MAAM,CAAC,cAAc;QACrC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;QAC7C,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;QACjD,UAAU,EAAE,MAAM,CAAC,UAAU;KAC9B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { Client } from "@libsql/client";
2
+ import { type LytRunContext } from "@younndai/lyt-runner";
3
+ declare const MANDATORY_FIELDS: readonly ["title", "created", "modified", "tags", "purpose", "topic", "mesh-visibility", "weight"];
4
+ type MandatoryField = (typeof MANDATORY_FIELDS)[number];
5
+ export interface MetadataFillerArgs {
6
+ vaultPath: string;
7
+ vaultDb: Client;
8
+ automatorName: string;
9
+ automatorVersion: string;
10
+ ledgerClients?: {
11
+ auditDb: Client;
12
+ provenanceDb: Client;
13
+ };
14
+ }
15
+ export interface MetadataFillerOutcome {
16
+ filesScanned: number;
17
+ filesMutated: number;
18
+ fieldsFilledTotal: number;
19
+ filesWritten: string[];
20
+ }
21
+ export declare function runMetadataFillerBody(ctx: LytRunContext, args: MetadataFillerArgs): Promise<MetadataFillerOutcome>;
22
+ interface FillResult {
23
+ content: string;
24
+ fieldsFilled: MandatoryField[];
25
+ }
26
+ interface FillDefaults {
27
+ filenameSlug: string;
28
+ now: string;
29
+ }
30
+ export declare function fillMissingMandatoryFields(raw: string, defaults: FillDefaults): FillResult;
31
+ declare function walkMarkdownFiles(root: string): string[];
32
+ export { MANDATORY_FIELDS };
33
+ export { walkMarkdownFiles as _walkMarkdownFilesForTests };
34
+ //# sourceMappingURL=metadata-filler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata-filler.d.ts","sourceRoot":"","sources":["../../src/automator-bodies/metadata-filler.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAElF,QAAA,MAAM,gBAAgB,oGASZ,CAAC;AAEX,KAAK,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,aAAa,CAAC,EAAE;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,aAAa,EAClB,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,qBAAqB,CAAC,CAqChC;AASD,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,UAAU,YAAY;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,GAAG,UAAU,CA6D1F;AAgCD,iBAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAuBjD;AAaD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,OAAO,EAAE,iBAAiB,IAAI,0BAA0B,EAAE,CAAC"}