onionskin-cli 0.0.0-stage → 0.0.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 (117) hide show
  1. package/CHANGELOG.md +136 -0
  2. package/INSTALL.md +17 -0
  3. package/LICENSE +21 -0
  4. package/NOTICE +46 -0
  5. package/README.md +88 -2
  6. package/docs/contracts/batch.schema.json +839 -0
  7. package/docs/contracts/history.schema.json +126 -0
  8. package/docs/contracts/ops.schema.json +541 -0
  9. package/package.json +54 -4
  10. package/scripts/checker/check.py +411 -0
  11. package/scripts/checker/requirements.txt +5 -0
  12. package/scripts/install-check.mjs +9 -0
  13. package/scripts/requirements.txt +5 -0
  14. package/scripts/rewriter/apple/main.swift +135 -0
  15. package/scripts/rewriter/apple/onionskin-fm +0 -0
  16. package/scripts/rewriter/apple/onionskin-fm.json +6 -0
  17. package/skills/onionskin/SKILL.md +117 -0
  18. package/skills/onionskin/reference/batch.md +94 -0
  19. package/skills/onionskin/reference/formats.md +15 -0
  20. package/skills/onionskin/reference/ops.md +253 -0
  21. package/skills/onionskin/reference/troubleshooting.md +73 -0
  22. package/skills/onionskin/reference/voice-guide.md +86 -0
  23. package/skills/onionskin/voice.example.md +51 -0
  24. package/src/agent-detect.js +149 -0
  25. package/src/agent-events.js +159 -0
  26. package/src/agent-prompt.js +27 -0
  27. package/src/agent-runner.js +593 -0
  28. package/src/analyze.js +17 -0
  29. package/src/anchors.js +190 -0
  30. package/src/apply.js +387 -0
  31. package/src/auth.js +130 -0
  32. package/src/batch.js +322 -0
  33. package/src/check-worker.js +8 -0
  34. package/src/checker.js +293 -0
  35. package/src/cli.js +516 -0
  36. package/src/constants.js +20 -0
  37. package/src/diff.js +267 -0
  38. package/src/doctor.js +247 -0
  39. package/src/docx.js +438 -0
  40. package/src/fmt.js +30 -0
  41. package/src/fsutil.js +348 -0
  42. package/src/history-worker.js +16 -0
  43. package/src/history.js +576 -0
  44. package/src/lease.js +79 -0
  45. package/src/local.js +242 -0
  46. package/src/merge-pptx.js +198 -0
  47. package/src/merge-xlsx.js +453 -0
  48. package/src/merge.js +410 -0
  49. package/src/offload.js +34 -0
  50. package/src/ops/common.js +48 -0
  51. package/src/ops/docx-table.js +323 -0
  52. package/src/ops/docx.js +503 -0
  53. package/src/ops/engine.js +41 -0
  54. package/src/ops/pptx.js +336 -0
  55. package/src/ops/run.js +115 -0
  56. package/src/ops/runs.js +127 -0
  57. package/src/ops/schema.js +109 -0
  58. package/src/ops/xlsx.js +277 -0
  59. package/src/package.js +189 -0
  60. package/src/paths.js +64 -0
  61. package/src/person.js +66 -0
  62. package/src/pptx.js +194 -0
  63. package/src/question.js +47 -0
  64. package/src/quick-plan.js +107 -0
  65. package/src/quick.js +164 -0
  66. package/src/redline-check.js +251 -0
  67. package/src/redline-worker.js +29 -0
  68. package/src/redline.js +438 -0
  69. package/src/reply.js +410 -0
  70. package/src/review.js +274 -0
  71. package/src/rewrite-check.js +1014 -0
  72. package/src/rewriter-cleanup.js +105 -0
  73. package/src/rewriter-setup.js +104 -0
  74. package/src/rewriter.js +396 -0
  75. package/src/sanitize.js +42 -0
  76. package/src/sentence-span.js +25 -0
  77. package/src/server-entry.js +13 -0
  78. package/src/server.js +576 -0
  79. package/src/session.js +1910 -0
  80. package/src/settings.js +161 -0
  81. package/src/setup.js +160 -0
  82. package/src/stamp-words.js +10 -0
  83. package/src/stamps.js +59 -0
  84. package/src/style.js +110 -0
  85. package/src/suggest-reply.js +84 -0
  86. package/src/suggest.js +261 -0
  87. package/src/text.js +31 -0
  88. package/src/tracked-words.js +43 -0
  89. package/src/voice-guide.js +182 -0
  90. package/src/voice-learn.js +314 -0
  91. package/src/voice-sample-worker.js +95 -0
  92. package/src/voice-samples.js +329 -0
  93. package/src/voice-store.js +305 -0
  94. package/src/voice-worker.js +28 -0
  95. package/src/voice.js +297 -0
  96. package/src/xlsx.js +454 -0
  97. package/src/xml-tree.js +118 -0
  98. package/src/xml.js +127 -0
  99. package/src/zip-write.js +74 -0
  100. package/src/zip.js +88 -0
  101. package/vendor/engine/DocViewer-BZLXUcxJ.js +15137 -0
  102. package/vendor/engine/THIRD_PARTY_LICENSES.txt +79 -0
  103. package/vendor/engine/collab-BVynXMqc.js +2591 -0
  104. package/vendor/engine/collab.js +2 -0
  105. package/vendor/engine/core.js +4 -0
  106. package/vendor/engine/default-worker-DogNT09A.js +35625 -0
  107. package/vendor/engine/embed.js +107 -0
  108. package/vendor/engine/index.js +5 -0
  109. package/vendor/engine/office-engine.embed.js +184 -0
  110. package/vendor/engine/office-engine.worker.js +36030 -0
  111. package/vendor/engine/xlsx-ops-SYAv6V0f.js +939 -0
  112. package/vendor/engine-node/LICENSE +21 -0
  113. package/vendor/engine-node/engine-node.mjs +46618 -0
  114. package/vendor/engine.lock.json +26 -0
  115. package/web/dist/assets/index-CFISATkn.js +197 -0
  116. package/web/dist/assets/index-spXE4oTz.css +1 -0
  117. package/web/dist/index.html +14 -0
@@ -0,0 +1,107 @@
1
+
2
+ import "./default-worker-DogNT09A.js";
3
+ import { t as e } from "./DocViewer-BZLXUcxJ.js";
4
+ import { createElement as t } from "react";
5
+ import { createRoot as n } from "react-dom/client";
6
+ // src/embed.ts
7
+ var r = [
8
+ "light",
9
+ "dark",
10
+ "auto"
11
+ ];
12
+ function i(r, i) {
13
+ let a = n(r), o = i, s = r.getRootNode() instanceof ShadowRoot ? r.getRootNode() : void 0, c = () => a?.render(t(e, {
14
+ ...o,
15
+ styleTarget: s
16
+ }));
17
+ return c(), {
18
+ update(e) {
19
+ o = {
20
+ ...o,
21
+ ...e
22
+ }, c();
23
+ },
24
+ destroy() {
25
+ a?.unmount(), a = null;
26
+ }
27
+ };
28
+ }
29
+ var a = class extends HTMLElement {
30
+ static observedAttributes = [
31
+ "src",
32
+ "name",
33
+ "toolbar",
34
+ "thumbnails",
35
+ "editable",
36
+ "save",
37
+ "download",
38
+ "file-menu",
39
+ "open",
40
+ "capture-select-all",
41
+ "theme",
42
+ "collab",
43
+ "room",
44
+ "user",
45
+ "base",
46
+ "comments"
47
+ ];
48
+ viewer;
49
+ _file;
50
+ get file() {
51
+ return this._file;
52
+ }
53
+ set file(e) {
54
+ this._file = e, this.sync();
55
+ }
56
+ connectedCallback() {
57
+ if (this.viewer) return;
58
+ let e = this.shadowRoot ?? this.attachShadow({ mode: "open" }), t = document.createElement("div");
59
+ t.style.cssText = "width:100%;height:100%", e.innerHTML = "<style>:host{display:block;height:480px;position:relative}</style>", e.appendChild(t), this.viewer = i(t, this.props());
60
+ }
61
+ disconnectedCallback() {
62
+ this.viewer?.destroy(), this.viewer = void 0, this.shadowRoot && (this.shadowRoot.innerHTML = "");
63
+ }
64
+ attributeChangedCallback() {
65
+ this.sync();
66
+ }
67
+ props() {
68
+ return {
69
+ src: this._file ?? this.getAttribute("src"),
70
+ name: this.getAttribute("name") ?? void 0,
71
+ toolbar: this.getAttribute("toolbar") !== "false",
72
+ thumbnails: this.getAttribute("thumbnails") !== "false",
73
+ editable: this.hasAttribute("editable") && this.getAttribute("editable") !== "false",
74
+ allowSave: this.getAttribute("save") !== "false",
75
+ allowDownload: this.getAttribute("download") !== "false",
76
+ fileMenu: this.getAttribute("file-menu") !== "false",
77
+ allowOpen: this.getAttribute("open") !== "false",
78
+ captureSelectAll: this.getAttribute("capture-select-all") !== "false",
79
+ theme: r.find((e) => e === this.getAttribute("theme")),
80
+ collab: this.getAttribute("collab") && this.getAttribute("room") ? {
81
+ transport: this.getAttribute("collab"),
82
+ room: this.getAttribute("room"),
83
+ base: Number(this.getAttribute("base")) || 0,
84
+ user: { name: this.getAttribute("user") || "Guest" }
85
+ } : void 0,
86
+ comments: this.getAttribute("comments") !== "false" && {
87
+ user: this.getAttribute("user") ? { name: this.getAttribute("user") } : void 0,
88
+ onEvent: (e) => this.dispatchEvent(new CustomEvent("comment", { detail: e }))
89
+ },
90
+ onLoad: (e) => this.dispatchEvent(new CustomEvent("load", { detail: {
91
+ kind: e.kind,
92
+ name: e.name
93
+ } })),
94
+ onError: (e) => this.dispatchEvent(new CustomEvent("error", { detail: e }))
95
+ };
96
+ }
97
+ sync() {
98
+ this.viewer?.update(this.props());
99
+ }
100
+ };
101
+ function o(e = "office-viewer") {
102
+ typeof customElements < "u" && !customElements.get(e) && customElements.define(e, a);
103
+ }
104
+ o();
105
+ export { e as DocViewer, a as OfficeViewerElement, o as defineElement, i as mount };
106
+
107
+ //# sourceMappingURL=embed.js.map
@@ -0,0 +1,5 @@
1
+
2
+ import { V as e, n as t, t as n } from "./default-worker-DogNT09A.js";
3
+ import { a as r, c as i, d as a, f as o, i as s, l as c, n as l, o as u, r as d, s as f, t as p, u as m } from "./DocViewer-BZLXUcxJ.js";
4
+ import { a as h, o as g, s as _, t as v, u as y } from "./collab-BVynXMqc.js";
5
+ export { l as CollabBar, h as CollabHub, y as CollabSession, p as DocViewer, n as DocumentClient, a as DocxView, g as MemoryTransport, d as PeerOverlay, f as PptxView, i as SlideView, _ as WebSocketTransport, r as XlsxView, o as hashText, c as injectStyles, t as setDefaultWorker, v as startCollab, m as stylesText, e as threadsOf, s as useCollab, u as useDocument };