oneie 3.4.2 → 3.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 (143) hide show
  1. package/.claude/agents/agent-director.md +902 -22
  2. package/.claude/agents/agent-onboard-example-output.md +600 -0
  3. package/.claude/agents/agent-onboard.md +576 -0
  4. package/.claude/commands/ONBOARDING_ENHANCEMENT_SUMMARY.md +266 -0
  5. package/.claude/commands/one.md +411 -10
  6. package/.claude/commands/release.md +64 -3
  7. package/CLAUDE.md +55 -69
  8. package/dist/commands/init.d.ts +5 -6
  9. package/dist/commands/init.d.ts.map +1 -1
  10. package/dist/commands/init.js +101 -101
  11. package/dist/commands/init.js.map +1 -1
  12. package/dist/index.js +6 -5
  13. package/dist/index.js.map +1 -1
  14. package/dist/utils/installation-setup.d.ts +24 -1
  15. package/dist/utils/installation-setup.d.ts.map +1 -1
  16. package/dist/utils/installation-setup.js +85 -1
  17. package/dist/utils/installation-setup.js.map +1 -1
  18. package/dist/utils/launch-claude.d.ts +6 -0
  19. package/dist/utils/launch-claude.d.ts.map +1 -0
  20. package/dist/utils/launch-claude.js +51 -0
  21. package/dist/utils/launch-claude.js.map +1 -0
  22. package/dist/utils/validation.d.ts +48 -0
  23. package/dist/utils/validation.d.ts.map +1 -0
  24. package/dist/utils/validation.js +73 -0
  25. package/dist/utils/validation.js.map +1 -0
  26. package/folders.yaml +1 -1
  27. package/one/.obsidian/app.json +8 -0
  28. package/one/.obsidian/appearance.json +1 -0
  29. package/one/.obsidian/community-plugins.json +3 -0
  30. package/one/.obsidian/core-plugins.json +33 -0
  31. package/one/.obsidian/plugins/easy-bake/main.js +361 -0
  32. package/one/.obsidian/plugins/easy-bake/manifest.json +11 -0
  33. package/one/.obsidian/plugins/easy-bake/styles.css +10 -0
  34. package/one/.obsidian/workspace.json +240 -0
  35. package/one/connections/workflow-onboarding.md +683 -0
  36. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +354 -0
  37. package/one/events/CRITICAL-FIXES-COMPLETE.md +504 -0
  38. package/one/events/DEPLOYMENT.md +178 -0
  39. package/one/events/ECOMMERCE-DEMO-PLAN.md +225 -0
  40. package/one/events/ECOMMERCE-LIVE-DEMO.md +363 -0
  41. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +735 -0
  42. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +923 -0
  43. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +223 -0
  44. package/one/events/HANDOFF.md +313 -0
  45. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +503 -0
  46. package/one/events/IMPLEMENTATION_SUMMARY.md +529 -0
  47. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +666 -0
  48. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +642 -0
  49. package/one/events/LANDING-PAGE-QUICKSTART.md +407 -0
  50. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1627 -0
  51. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +573 -0
  52. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +398 -0
  53. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +525 -0
  54. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +455 -0
  55. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +486 -0
  56. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +203 -0
  57. package/one/events/SECURITY-AUDIT-FIXES.md +376 -0
  58. package/one/events/SECURITY-SCAN-COMPLETE.md +281 -0
  59. package/one/events/SHOP-BUILD-STATUS.md +114 -0
  60. package/one/events/SHOP-PREMIUM-UPDATE.md +149 -0
  61. package/one/events/SITE-WIDE-GRADIENT-FIX.md +299 -0
  62. package/one/events/STORE-PRODUCTION-READY-STATUS.md +359 -0
  63. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +429 -0
  64. package/one/events/agent-director-enhancement-summary.md +386 -0
  65. package/one/events/agent-onboard-implementation-summary.md +457 -0
  66. package/one/events/clean-agent-ontology-cleanup-report.md +353 -0
  67. package/one/events/landing-page-generator.md +458 -0
  68. package/one/events/onboarding-implementation-complete.md +505 -0
  69. package/one/events/release.md +254 -0
  70. package/one/events/separate-implementation-status.md +537 -0
  71. package/one/groups/nine-padle-contents.baked.md +1252 -0
  72. package/one/groups/nine-padle-contents.md +6 -0
  73. package/one/knowledge/100-inference-quick-reference.md +431 -0
  74. package/one/knowledge/agent-onboard-usage.md +612 -0
  75. package/one/knowledge/cli-claude-handoff.md +718 -0
  76. package/one/knowledge/installation-folders.md +45 -1
  77. package/one/knowledge/ontology-blog.yaml +31 -0
  78. package/one/knowledge/ontology-cheatsheet.md +591 -0
  79. package/one/knowledge/ontology-community.yaml +42 -0
  80. package/one/knowledge/ontology-core-universal.md +722 -0
  81. package/one/knowledge/ontology-core.yaml +50 -0
  82. package/one/knowledge/ontology-courses.yaml +53 -0
  83. package/one/knowledge/ontology-creator.md +376 -0
  84. package/one/knowledge/ontology-developer-guide.md +789 -0
  85. package/one/knowledge/ontology-education.md +920 -0
  86. package/one/knowledge/ontology-index.md +354 -0
  87. package/one/knowledge/ontology-migration-guide.md +811 -0
  88. package/one/knowledge/ontology-minimal.yaml +1 -1
  89. package/one/knowledge/ontology-portfolio.yaml +31 -0
  90. package/one/knowledge/ontology-quickstart.md +576 -0
  91. package/one/knowledge/ontology-shop.yaml +121 -0
  92. package/one/knowledge/ontology-tokens.yaml +32 -0
  93. package/one/knowledge/ontology-tutorial.md +434 -0
  94. package/one/knowledge/ontology-video-script.md +890 -0
  95. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +467 -0
  96. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +408 -0
  97. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +369 -0
  98. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +396 -0
  99. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +468 -0
  100. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +582 -0
  101. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +449 -0
  102. package/one/things/docs/ecommerce/QUICK-START.md +368 -0
  103. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +498 -0
  104. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +237 -0
  105. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +171 -0
  106. package/one/things/docs/ecommerce/demo.astro +309 -0
  107. package/one/things/plans/agent-director-100-inference-plans.md +410 -0
  108. package/one/things/plans/dual-website-strategy.md +612 -0
  109. package/one/things/plans/feature-based-sites.md +821 -0
  110. package/one/things/plans/multi-ontology-architecture.md +836 -0
  111. package/one/things/plans/onboarding.md +32 -0
  112. package/one/things/plans/separate.md +15 -17
  113. package/one/things/plans/start-new.md +738 -0
  114. package/one/things/templates.md +254 -0
  115. package/one/things/todo.md +23 -5
  116. package/package.json +2 -2
  117. package/one/things/claude/hooks/agent-hook-manager.js +0 -525
  118. package/one/things/claude/hooks/agent-load-balancer.js +0 -271
  119. package/one/things/claude/hooks/agent-request-interceptor.js +0 -70
  120. package/one/things/claude/hooks/cascade-feedback.js +0 -297
  121. package/one/things/claude/hooks/cascade-integration-hooks.js +0 -648
  122. package/one/things/claude/hooks/continuous-improvement-monitor.js +0 -510
  123. package/one/things/claude/hooks/file-organization-engine.js +0 -427
  124. package/one/things/claude/hooks/file-organization-monitor.js +0 -269
  125. package/one/things/claude/hooks/hook-config-manager.js +0 -202
  126. package/one/things/claude/hooks/hook-orchestrator.js +0 -662
  127. package/one/things/claude/hooks/hook-performance-report.js +0 -120
  128. package/one/things/claude/hooks/mcp-cascade-integration.js +0 -816
  129. package/one/things/claude/hooks/memory-optimizer.js +0 -510
  130. package/one/things/claude/hooks/ontology-compliance.js +0 -394
  131. package/one/things/claude/hooks/ontology-hook-manager.js +0 -316
  132. package/one/things/claude/hooks/ontology-validation-engine.js +0 -317
  133. package/one/things/claude/hooks/performance-monitoring-hook.js +0 -422
  134. package/one/things/claude/hooks/quality-scoring-engine.js +0 -834
  135. package/one/things/claude/hooks/simple-load-balancer.js +0 -238
  136. package/one/things/claude/hooks/startup-optimizer.js +0 -625
  137. package/one/things/claude/hooks/story-scoring-system.js +0 -445
  138. package/one/things/claude/hooks/story-validation-engine.js +0 -473
  139. package/one/things/claude/hooks/structure-synchronizer.js +0 -194
  140. package/one/things/claude/hooks/sub-agent-output-validator.js +0 -647
  141. package/one/things/claude/hooks/sub-agent-validation-hook.js +0 -343
  142. package/one/things/claude/hooks/trinity-validation-system.js +0 -392
  143. package/one/things/plans/organizations-to-groups.md +0 -705
@@ -0,0 +1,361 @@
1
+ /*
2
+ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
3
+ if you want to view the source, please visit the github repository of this plugin
4
+ */
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+
24
+ // src/main.ts
25
+ var main_exports = {};
26
+ __export(main_exports, {
27
+ default: () => EasyBake
28
+ });
29
+ module.exports = __toCommonJS(main_exports);
30
+ var import_obsidian4 = require("obsidian");
31
+
32
+ // src/BakeModal.ts
33
+ var import_obsidian2 = require("obsidian");
34
+
35
+ // src/bake.ts
36
+ var import_obsidian = require("obsidian");
37
+
38
+ // src/util.ts
39
+ var wordCountRE = /\P{Z}*[\p{L}\p{N}]\P{Z}*/gu;
40
+ var commentRE = /(?:<!--[\s\S]*?-->|%%[\s\S]*?(?!%%)[\s\S]+?%%)/g;
41
+ function stripComments(text) {
42
+ return text.replace(commentRE, "");
43
+ }
44
+ function getWordCount(text) {
45
+ return (stripComments(text).match(wordCountRE) || []).length;
46
+ }
47
+ function dedent(text) {
48
+ const firstIndent = text.match(/^([ \t]*)/);
49
+ if (firstIndent) {
50
+ return text.replace(
51
+ // Escape tab chars
52
+ new RegExp(`^${firstIndent[0].replace(/\\/g, "\\$&")}`, "gm"),
53
+ ""
54
+ );
55
+ }
56
+ return text;
57
+ }
58
+ function applyIndent(text, indent) {
59
+ if (!indent)
60
+ return text;
61
+ return text.trim().replace(/(\r?\n)/g, `$1${indent}`);
62
+ }
63
+ function stripFirstBullet(text) {
64
+ if (!text)
65
+ return text;
66
+ return text.replace(/^[ \t]*(?:[-*+]|[0-9]+[.)]) +/, "");
67
+ }
68
+ function stripBlockId(text) {
69
+ if (!text)
70
+ return text;
71
+ return text.replace(/ +\^[^ \n\r]+$/gm, "");
72
+ }
73
+ function stripFrontmatter(text) {
74
+ if (!text)
75
+ return text;
76
+ return text.replace(/^---[\s\S]+?\r?\n---(?:\r?\n\s*|$)/, "");
77
+ }
78
+ function sanitizeBakedContent(text) {
79
+ return stripBlockId(stripFrontmatter(text));
80
+ }
81
+ function extractSubpath(content, subpathResult, cache) {
82
+ let text = content;
83
+ if (subpathResult.type === "block" && subpathResult.list && cache.listItems) {
84
+ const targetItem = subpathResult.list;
85
+ const ancestors = /* @__PURE__ */ new Set([targetItem.position.start.line]);
86
+ const start = targetItem.position.start.offset - targetItem.position.start.col;
87
+ let end = targetItem.position.end.offset;
88
+ let found = false;
89
+ for (const item of cache.listItems) {
90
+ if (targetItem === item) {
91
+ found = true;
92
+ continue;
93
+ } else if (!found) {
94
+ continue;
95
+ }
96
+ if (!ancestors.has(item.parent))
97
+ break;
98
+ ancestors.add(item.position.start.line);
99
+ end = item.position.end.offset;
100
+ }
101
+ text = stripBlockId(dedent(content.substring(start, end)));
102
+ } else {
103
+ const start = subpathResult.start.offset;
104
+ const end = subpathResult.end ? subpathResult.end.offset : content.length;
105
+ text = stripBlockId(content.substring(start, end));
106
+ }
107
+ return text;
108
+ }
109
+
110
+ // src/bake.ts
111
+ var lineStartRE = /(?:^|\n) *$/;
112
+ var listLineStartRE = /(?:^|\n)([ \t]*)(?:[-*+]|[0-9]+[.)]) +$/;
113
+ var lineEndRE = /^ *(?:\r?\n|$)/;
114
+ async function bake(app, file, subpath, ancestors, settings) {
115
+ const { vault, metadataCache } = app;
116
+ let text = await vault.cachedRead(file);
117
+ const cache = metadataCache.getFileCache(file);
118
+ if (!cache)
119
+ return text;
120
+ const resolvedSubpath = subpath ? (0, import_obsidian.resolveSubpath)(cache, subpath) : null;
121
+ if (resolvedSubpath) {
122
+ text = extractSubpath(text, resolvedSubpath, cache);
123
+ }
124
+ const links = settings.bakeLinks ? cache.links || [] : [];
125
+ const embeds = settings.bakeEmbeds ? cache.embeds || [] : [];
126
+ const targets = [...links, ...embeds];
127
+ if (targets.length === 0)
128
+ return text;
129
+ targets.sort((a, b) => a.position.start.offset - b.position.start.offset);
130
+ const newAncestors = new Set(ancestors);
131
+ newAncestors.add(file);
132
+ let posOffset = 0;
133
+ for (const target of targets) {
134
+ const { path, subpath: subpath2 } = (0, import_obsidian.parseLinktext)(target.link);
135
+ const linkedFile = metadataCache.getFirstLinkpathDest(path, file.path);
136
+ if (!linkedFile)
137
+ continue;
138
+ const start = target.position.start.offset + posOffset;
139
+ const end = target.position.end.offset + posOffset;
140
+ const prevLen = end - start;
141
+ const before = text.substring(0, start);
142
+ const after = text.substring(end);
143
+ const listMatch = settings.bakeInList ? before.match(listLineStartRE) : null;
144
+ const isInline = !(listMatch || lineStartRE.test(before)) || !lineEndRE.test(after);
145
+ const isMarkdownFile = linkedFile.extension === "md";
146
+ const replaceTarget = (replacement) => {
147
+ text = before + replacement + after;
148
+ posOffset += replacement.length - prevLen;
149
+ };
150
+ if (!isMarkdownFile) {
151
+ if (!settings.convertFileLinks)
152
+ continue;
153
+ const adapter = app.vault.adapter;
154
+ if (!adapter.getFullPath)
155
+ continue;
156
+ const fullPath = adapter.getFullPath(linkedFile.path);
157
+ const protocol = import_obsidian.Platform.isWin ? "file:///" : "file://";
158
+ replaceTarget(`![](${protocol}${encodeURI(fullPath)})`);
159
+ continue;
160
+ }
161
+ if (newAncestors.has(linkedFile) || isInline) {
162
+ replaceTarget(target.displayText || path);
163
+ continue;
164
+ }
165
+ const baked = sanitizeBakedContent(
166
+ await bake(app, linkedFile, subpath2, newAncestors, settings)
167
+ );
168
+ replaceTarget(
169
+ listMatch ? applyIndent(stripFirstBullet(baked), listMatch[1]) : baked
170
+ );
171
+ }
172
+ return text;
173
+ }
174
+
175
+ // src/BakeModal.ts
176
+ function disableBtn(btn) {
177
+ btn.removeClass("mod-cta");
178
+ btn.addClass("mod-muted");
179
+ btn.setAttrs({
180
+ disabled: "true",
181
+ "aria-disabled": "true"
182
+ });
183
+ }
184
+ function enableBtn(btn) {
185
+ btn.removeClass("mod-muted");
186
+ btn.addClass("mod-cta");
187
+ btn.setAttrs({
188
+ disabled: "false",
189
+ "aria-disabled": "false"
190
+ });
191
+ }
192
+ var BakeModal = class extends import_obsidian2.Modal {
193
+ constructor(plugin, file) {
194
+ super(plugin.app);
195
+ const { contentEl } = this;
196
+ const { settings } = plugin;
197
+ this.titleEl.setText("Bake file");
198
+ this.modalEl.addClass("mod-narrow", "easy-bake-modal");
199
+ this.contentEl.createEl("p", { text: "Input file: " }).createEl("strong", { text: file.path });
200
+ new import_obsidian2.Setting(contentEl).setName("Bake embedded markdown").setDesc(
201
+ "Include the content of ![[embedded markdown files]] when the link is on its own line."
202
+ ).addToggle(
203
+ (toggle) => toggle.setValue(settings.bakeEmbeds).onChange((value) => {
204
+ settings.bakeEmbeds = value;
205
+ plugin.saveSettings();
206
+ })
207
+ );
208
+ new import_obsidian2.Setting(contentEl).setName("Bake links").setDesc(
209
+ "Include the content of [[any link]] when it is on its own line."
210
+ ).addToggle(
211
+ (toggle) => toggle.setValue(settings.bakeLinks).onChange((value) => {
212
+ settings.bakeLinks = value;
213
+ plugin.saveSettings();
214
+ })
215
+ );
216
+ new import_obsidian2.Setting(contentEl).setName("Bake links and embeds in lists").setDesc(
217
+ "Include the content of [[any link]] or ![[embedded markdown file]] when it takes up an entire list bullet."
218
+ ).addToggle(
219
+ (toggle) => toggle.setValue(settings.bakeInList).onChange((value) => {
220
+ settings.bakeInList = value;
221
+ plugin.saveSettings();
222
+ })
223
+ );
224
+ new import_obsidian2.Setting(contentEl).setName("Bake file links").setDesc(
225
+ "Convert links to ![[non-markdown files.png]] to ![](file:///full/path/to/non-markdown%20files.png)"
226
+ ).addToggle(
227
+ (toggle) => toggle.setValue(settings.convertFileLinks).onChange((value) => {
228
+ settings.convertFileLinks = value;
229
+ plugin.saveSettings();
230
+ })
231
+ );
232
+ new import_obsidian2.Setting(contentEl).setName("Output file name").then((setting) => {
233
+ new import_obsidian2.Setting(contentEl).then((setting2) => {
234
+ setting2.addButton(
235
+ (btn) => btn.setButtonText("Calculate word count").onClick(async () => {
236
+ const baked = await bake(this.app, file, null, /* @__PURE__ */ new Set(), settings);
237
+ setting2.descEl.setText(getWordCount(baked).toString());
238
+ })
239
+ );
240
+ });
241
+ this.modalEl.createDiv("modal-button-container", (el) => {
242
+ var _a;
243
+ let outputName = file.basename + ".baked";
244
+ let outputFolder = ((_a = file.parent) == null ? void 0 : _a.path) || "";
245
+ if (outputFolder)
246
+ outputFolder += "/";
247
+ const btn = el.createEl("button", {
248
+ cls: "mod-cta",
249
+ text: "Bake"
250
+ });
251
+ activeWindow.setTimeout(() => {
252
+ btn.focus();
253
+ });
254
+ btn.addEventListener("click", async () => {
255
+ disableBtn(btn);
256
+ if (outputName) {
257
+ const { vault } = this.app;
258
+ const baked = await bake(this.app, file, null, /* @__PURE__ */ new Set(), settings);
259
+ const nextPath = outputFolder + outputName + ".md";
260
+ let existing = vault.getAbstractFileByPath(nextPath);
261
+ if (existing instanceof import_obsidian2.TFile) {
262
+ await vault.modify(existing, baked);
263
+ } else {
264
+ existing = await vault.create(nextPath, baked);
265
+ }
266
+ if (existing instanceof import_obsidian2.TFile) {
267
+ this.app.workspace.getLeaf("tab").openFile(existing);
268
+ }
269
+ }
270
+ this.close();
271
+ });
272
+ setting.addText(
273
+ (text) => text.setValue(outputName).onChange((value) => {
274
+ outputName = value;
275
+ if (!value) {
276
+ disableBtn(btn);
277
+ } else if (btn.disabled) {
278
+ enableBtn(btn);
279
+ }
280
+ })
281
+ );
282
+ });
283
+ });
284
+ }
285
+ };
286
+
287
+ // src/api.ts
288
+ var import_obsidian3 = require("obsidian");
289
+ var EasyBakeApi = class {
290
+ constructor(plugin) {
291
+ this.plugin = plugin;
292
+ }
293
+ async bakeToString(inputPath, settings) {
294
+ const app = this.plugin.app;
295
+ const file = app.vault.getAbstractFileByPath(inputPath);
296
+ if (!(file instanceof import_obsidian3.TFile)) {
297
+ console.error("Input file does not exist");
298
+ return;
299
+ }
300
+ return await bake(app, file, null, /* @__PURE__ */ new Set(), settings);
301
+ }
302
+ async bakeToFile(inputPath, outputPath, settings) {
303
+ const baked = await this.bakeToString(inputPath, settings);
304
+ if (!baked)
305
+ return;
306
+ const app = this.plugin.app;
307
+ let existing = app.vault.getAbstractFileByPath(outputPath);
308
+ if (existing instanceof import_obsidian3.TFile) {
309
+ await app.vault.modify(existing, baked);
310
+ } else {
311
+ existing = await app.vault.create(outputPath, baked);
312
+ }
313
+ }
314
+ async bakeAndOpen(inputPath, outputPath, settings) {
315
+ await this.bakeToFile(inputPath, outputPath, settings);
316
+ const app = this.plugin.app;
317
+ const existing = app.vault.getAbstractFileByPath(outputPath);
318
+ if (existing instanceof import_obsidian3.TFile) {
319
+ await app.workspace.getLeaf("tab").openFile(existing);
320
+ }
321
+ }
322
+ };
323
+
324
+ // src/main.ts
325
+ var DEFAULT_SETTINGS = {
326
+ bakeLinks: true,
327
+ bakeEmbeds: true,
328
+ bakeInList: true,
329
+ convertFileLinks: true
330
+ };
331
+ var EasyBake = class extends import_obsidian4.Plugin {
332
+ constructor() {
333
+ super(...arguments);
334
+ this.api = new EasyBakeApi(this);
335
+ }
336
+ async loadSettings() {
337
+ this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
338
+ }
339
+ async saveSettings() {
340
+ await this.saveData(this.settings);
341
+ }
342
+ get activeMarkdownFile() {
343
+ var _a;
344
+ return (_a = this.app.workspace.activeEditor) == null ? void 0 : _a.file;
345
+ }
346
+ async onload() {
347
+ await this.loadSettings();
348
+ this.addCommand({
349
+ id: "bake-file",
350
+ name: "Bake current file",
351
+ checkCallback: (checking) => {
352
+ const file = this.activeMarkdownFile;
353
+ if (checking || !file)
354
+ return !!file;
355
+ new BakeModal(this, file).open();
356
+ }
357
+ });
358
+ }
359
+ };
360
+
361
+ /* nosourcemap */
@@ -0,0 +1,11 @@
1
+ {
2
+ "id": "easy-bake",
3
+ "name": "Easy Bake",
4
+ "version": "1.1.0",
5
+ "minAppVersion": "0.15.0",
6
+ "description": "Easily compile many Obsidian notes down to a single file.",
7
+ "author": "mgmeyers",
8
+ "authorUrl": "https://github.com/mgmeyers",
9
+ "fundingUrl": "https://www.buymeacoffee.com/mgme",
10
+ "isDesktopOnly": false
11
+ }
@@ -0,0 +1,10 @@
1
+ body:not(.is-mobile) .easy-bake-modal .modal {
2
+ overflow: hidden;
3
+ }
4
+
5
+ body:not(.is-mobile) .easy-bake-modal .modal-content {
6
+ overflow: auto;
7
+ height: 100%;
8
+ flex-grow: 0;
9
+ flex-shrink: 1;
10
+ }
@@ -0,0 +1,240 @@
1
+ {
2
+ "main": {
3
+ "id": "9e40bb9f452b0c15",
4
+ "type": "split",
5
+ "children": [
6
+ {
7
+ "id": "aa4f5b159ebfbe8c",
8
+ "type": "tabs",
9
+ "children": [
10
+ {
11
+ "id": "613025f84d05f0e8",
12
+ "type": "leaf",
13
+ "state": {
14
+ "type": "markdown",
15
+ "state": {
16
+ "file": "groups/groups.md",
17
+ "mode": "source",
18
+ "source": false
19
+ },
20
+ "icon": "lucide-file",
21
+ "title": "groups"
22
+ }
23
+ },
24
+ {
25
+ "id": "9fe06062be0bda38",
26
+ "type": "leaf",
27
+ "state": {
28
+ "type": "markdown",
29
+ "state": {
30
+ "file": "groups/nine-padle-contents.md",
31
+ "mode": "source",
32
+ "source": false
33
+ },
34
+ "icon": "lucide-file",
35
+ "title": "nine-padle-contents"
36
+ }
37
+ },
38
+ {
39
+ "id": "6e5b8f1ea32bc953",
40
+ "type": "leaf",
41
+ "state": {
42
+ "type": "markdown",
43
+ "state": {
44
+ "file": "things/todo.md",
45
+ "mode": "source",
46
+ "source": false
47
+ },
48
+ "icon": "lucide-file",
49
+ "title": "todo"
50
+ }
51
+ }
52
+ ],
53
+ "currentTab": 2
54
+ }
55
+ ],
56
+ "direction": "vertical"
57
+ },
58
+ "left": {
59
+ "id": "650b69cdd6056308",
60
+ "type": "split",
61
+ "children": [
62
+ {
63
+ "id": "2e834a03bf405f3f",
64
+ "type": "tabs",
65
+ "children": [
66
+ {
67
+ "id": "13ef81dce096a3a3",
68
+ "type": "leaf",
69
+ "state": {
70
+ "type": "file-explorer",
71
+ "state": {
72
+ "sortOrder": "alphabetical",
73
+ "autoReveal": false
74
+ },
75
+ "icon": "lucide-folder-closed",
76
+ "title": "Files"
77
+ }
78
+ },
79
+ {
80
+ "id": "f7abe3afc4223bd2",
81
+ "type": "leaf",
82
+ "state": {
83
+ "type": "search",
84
+ "state": {
85
+ "query": "groups",
86
+ "matchingCase": false,
87
+ "explainSearch": false,
88
+ "collapseAll": false,
89
+ "extraContext": false,
90
+ "sortOrder": "alphabetical"
91
+ },
92
+ "icon": "lucide-search",
93
+ "title": "Search"
94
+ }
95
+ },
96
+ {
97
+ "id": "8303dc93d282dbbd",
98
+ "type": "leaf",
99
+ "state": {
100
+ "type": "bookmarks",
101
+ "state": {},
102
+ "icon": "lucide-bookmark",
103
+ "title": "Bookmarks"
104
+ }
105
+ }
106
+ ]
107
+ }
108
+ ],
109
+ "direction": "horizontal",
110
+ "width": 346.5
111
+ },
112
+ "right": {
113
+ "id": "0a970b1e4a99862b",
114
+ "type": "split",
115
+ "children": [
116
+ {
117
+ "id": "3cb2c210eb98f8d1",
118
+ "type": "tabs",
119
+ "children": [
120
+ {
121
+ "id": "ed448164d049d25e",
122
+ "type": "leaf",
123
+ "state": {
124
+ "type": "backlink",
125
+ "state": {
126
+ "file": "things/features/use-one-backend.md",
127
+ "collapseAll": false,
128
+ "extraContext": false,
129
+ "sortOrder": "alphabetical",
130
+ "showSearch": false,
131
+ "searchQuery": "",
132
+ "backlinkCollapsed": false,
133
+ "unlinkedCollapsed": true
134
+ },
135
+ "icon": "links-coming-in",
136
+ "title": "Backlinks for use-one-backend"
137
+ }
138
+ },
139
+ {
140
+ "id": "1e44700f917014ec",
141
+ "type": "leaf",
142
+ "state": {
143
+ "type": "outgoing-link",
144
+ "state": {
145
+ "file": "things/features/use-one-backend.md",
146
+ "linksCollapsed": false,
147
+ "unlinkedCollapsed": true
148
+ },
149
+ "icon": "links-going-out",
150
+ "title": "Outgoing links from use-one-backend"
151
+ }
152
+ },
153
+ {
154
+ "id": "ed693aa64c92b53a",
155
+ "type": "leaf",
156
+ "state": {
157
+ "type": "tag",
158
+ "state": {
159
+ "sortOrder": "frequency",
160
+ "useHierarchy": true,
161
+ "showSearch": false,
162
+ "searchQuery": ""
163
+ },
164
+ "icon": "lucide-tags",
165
+ "title": "Tags"
166
+ }
167
+ },
168
+ {
169
+ "id": "3fbcfcbac276570a",
170
+ "type": "leaf",
171
+ "state": {
172
+ "type": "outline",
173
+ "state": {
174
+ "file": "things/features/use-one-backend.md",
175
+ "followCursor": false,
176
+ "showSearch": false,
177
+ "searchQuery": ""
178
+ },
179
+ "icon": "lucide-list",
180
+ "title": "Outline of use-one-backend"
181
+ }
182
+ }
183
+ ]
184
+ }
185
+ ],
186
+ "direction": "horizontal",
187
+ "width": 300,
188
+ "collapsed": true
189
+ },
190
+ "left-ribbon": {
191
+ "hiddenItems": {
192
+ "switcher:Open quick switcher": false,
193
+ "graph:Open graph view": false,
194
+ "canvas:Create new canvas": false,
195
+ "daily-notes:Open today's daily note": false,
196
+ "templates:Insert template": false,
197
+ "command-palette:Open command palette": false,
198
+ "bases:Create new base": false
199
+ }
200
+ },
201
+ "active": "6e5b8f1ea32bc953",
202
+ "lastOpenFiles": [
203
+ "events/separate-implementation-status.md",
204
+ "events/onboarding-implementation-complete.md",
205
+ "knowledge/agent-onboard-usage.md",
206
+ "knowledge/100-inference-quick-reference.md",
207
+ "events/agent-onboard-implementation-summary.md",
208
+ "things/plans/agent-director-100-inference-plans.md",
209
+ "events/landing-page-generator.md",
210
+ "events/landing-page-generator.md.tmp.75041.1760900865381",
211
+ "events/agent-director-enhancement-summary.md",
212
+ "things/plans/onboarding.md",
213
+ "knowledge/cli-claude-handoff.md",
214
+ "connections/workflow-onboarding.md",
215
+ "knowledge/ontology-creator.md",
216
+ "knowledge/ontology-education.md",
217
+ "knowledge/ontology-core-universal.md",
218
+ "things/plans/multi-ontology-architecture.md",
219
+ "things/plans/feature-based-sites.md",
220
+ "things/plans/template-based-sites.md",
221
+ "things/plans/dual-website-strategy.md",
222
+ "groups/nine-padle-contents.baked.md",
223
+ "things/templates.md",
224
+ "groups/nine-padel-ontology-specification.md",
225
+ "groups/nine-padel-ontology.md",
226
+ "groups/nine-padel-data-structure.md",
227
+ "groups/nine-padle-contents.md",
228
+ "groups/nine-padel.md",
229
+ "groups/nine-padel-customers.md",
230
+ "things/cli/cli.md.tmp.53252.1760725950286",
231
+ "things/plans/3-groups.md.tmp.15780.1760719404384",
232
+ "things/features/2-cli.md.tmp.15780.1760717896305",
233
+ "knowledge/installation-folders.md.tmp.37200.1760601921359",
234
+ "things/legal",
235
+ "things/plans/5-build-frontend",
236
+ "things/vision",
237
+ "things/tests",
238
+ "things/features/dataprovider-interface"
239
+ ]
240
+ }