@omg-dev/app 0.6.54 → 0.6.56

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 (24) hide show
  1. package/dist-lib/{ChangelogPage-ZCG63VYl.js → ChangelogPage-DOeIV4dV.js} +25 -1
  2. package/dist-lib/{File-6EjmZMI_.js → File-Cai5L4FH.js} +9 -9
  3. package/dist-lib/{FileEditor-Cd_j2Pn3.js → FileEditor-CBvFYi01.js} +1 -1
  4. package/dist-lib/{FileViewer-rlK_MPcS.js → FileViewer-Bw4MhWTo.js} +1 -1
  5. package/dist-lib/{SessionFilesPanel-C96LFRaK.js → SessionFilesPanel-CljApZ_J.js} +90 -97
  6. package/dist-lib/{TermView-DPak1fmH.js → TermView-rrih9NtI.js} +1057 -1047
  7. package/dist-lib/base-D0bhR7dg.js +134 -0
  8. package/dist-lib/{board-page-CjMNQP53.js → board-page-BwukgQSe.js} +4 -4
  9. package/dist-lib/{chat-engine-9n8lwBiU.js → chat-engine-DABQ686L.js} +1 -1
  10. package/dist-lib/{coding-agents-page-BjNVGDUO.js → coding-agents-page-BnrON9w7.js} +1 -1
  11. package/dist-lib/{computer-page-CpnPqiR3.js → computer-page-Dh90OIFY.js} +1437 -1358
  12. package/dist-lib/create-BOwd_pad.js +175 -0
  13. package/dist-lib/{embedded-Be_WfQ0h.js → embedded-D1ndCfZJ.js} +17211 -15895
  14. package/dist-lib/{index-bi2f1zSC.js → index-DzATxXrP.js} +7 -7
  15. package/dist-lib/index.js +1 -1
  16. package/dist-lib/keyboard-BDO5X89t.js +35 -0
  17. package/dist-lib/{resume-session-sheet-Cdd6ggcF.js → resume-session-sheet-KVNxdDSa.js} +1 -1
  18. package/dist-lib/{session-token-usage-CFcnTEub.js → session-token-usage-CnQ2HFfV.js} +1 -1
  19. package/dist-lib/{shipped-page-YCpkukPP.js → shipped-page-DT5xVVf3.js} +21 -21
  20. package/dist-lib/{streamdown-response-Sv-hLrr_.js → streamdown-response-zhsvDlE5.js} +1 -1
  21. package/dist-lib/styles.css +1 -1
  22. package/package.json +3 -2
  23. package/dist-lib/create-CBk9uwJH.js +0 -306
  24. package/dist-lib/keyboard-CcMBZA9k.js +0 -21
@@ -0,0 +1,175 @@
1
+ import { D } from "./base-D0bhR7dg.js";
2
+ class E extends D {
3
+ constructor() {
4
+ super(...arguments), this.tokenize = j;
5
+ }
6
+ equals(n, i, l) {
7
+ return l.ignoreWhitespace ? ((!l.newlineIsToken || !n.includes(`
8
+ `)) && (n = n.trim()), (!l.newlineIsToken || !i.includes(`
9
+ `)) && (i = i.trim())) : l.ignoreNewlineAtEof && !l.newlineIsToken && (n.endsWith(`
10
+ `) && (n = n.slice(0, -1)), i.endsWith(`
11
+ `) && (i = i.slice(0, -1))), super.equals(n, i, l);
12
+ }
13
+ }
14
+ const H = new E();
15
+ function y(e, n, i) {
16
+ return H.diff(e, n, i);
17
+ }
18
+ function j(e, n) {
19
+ n.stripTrailingCr && (e = e.replace(/\r\n/g, `
20
+ `));
21
+ const i = [], l = e.split(/(\n|\r\n)/);
22
+ l[l.length - 1] || l.pop();
23
+ for (let s = 0; s < l.length; s++) {
24
+ const a = l[s];
25
+ s % 2 && !n.newlineIsToken ? i[i.length - 1] += a : i.push(a);
26
+ }
27
+ return i;
28
+ }
29
+ function M(e) {
30
+ for (let n = 0; n < e.length; n++)
31
+ if (e[n] < " " || e[n] > "~" || e[n] === '"' || e[n] === "\\")
32
+ return !0;
33
+ return !1;
34
+ }
35
+ function b(e) {
36
+ if (!M(e))
37
+ return e;
38
+ let n = '"';
39
+ const i = new TextEncoder().encode(e);
40
+ let l = 0;
41
+ for (; l < i.length; ) {
42
+ const s = i[l];
43
+ s === 7 ? n += "\\a" : s === 8 ? n += "\\b" : s === 9 ? n += "\\t" : s === 10 ? n += "\\n" : s === 11 ? n += "\\v" : s === 12 ? n += "\\f" : s === 13 ? n += "\\r" : s === 34 ? n += '\\"' : s === 92 ? n += "\\\\" : s >= 32 && s <= 126 ? n += String.fromCharCode(s) : n += "\\" + s.toString(8).padStart(3, "0"), l++;
44
+ }
45
+ return n += '"', n;
46
+ }
47
+ const T = {
48
+ includeIndex: !0,
49
+ includeUnderline: !0,
50
+ includeFileHeaders: !0
51
+ };
52
+ function I(e, n, i, l, s, a, r) {
53
+ let o;
54
+ r ? typeof r == "function" ? o = { callback: r } : o = r : o = {}, typeof o.context > "u" && (o.context = 4);
55
+ const t = o.context;
56
+ if (o.newlineIsToken)
57
+ throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");
58
+ if (o.callback) {
59
+ const { callback: u } = o;
60
+ y(i, l, Object.assign(Object.assign({}, o), { callback: (f) => {
61
+ const N = x(f);
62
+ u(N);
63
+ } }));
64
+ } else
65
+ return x(y(i, l, o));
66
+ function x(u) {
67
+ if (!u)
68
+ return;
69
+ u.push({ value: "", lines: [] });
70
+ function f(c) {
71
+ return c.map(function(d) {
72
+ return " " + d;
73
+ });
74
+ }
75
+ const N = [];
76
+ let g = 0, k = 0, h = [], F = 1, v = 1;
77
+ for (let c = 0; c < u.length; c++) {
78
+ const d = u[c], w = d.lines || R(d.value);
79
+ if (d.lines = w, d.added || d.removed) {
80
+ if (!g) {
81
+ const m = u[c - 1];
82
+ g = F, k = v, m && (h = t > 0 ? f(m.lines.slice(-t)) : [], g -= h.length, k -= h.length);
83
+ }
84
+ for (const m of w)
85
+ h.push((d.added ? "+" : "-") + m);
86
+ d.added ? v += w.length : F += w.length;
87
+ } else {
88
+ if (g)
89
+ if (w.length <= t * 2 && c < u.length - 2)
90
+ for (const m of f(w))
91
+ h.push(m);
92
+ else {
93
+ const m = Math.min(w.length, t);
94
+ for (const C of f(w.slice(0, m)))
95
+ h.push(C);
96
+ const S = {
97
+ oldStart: g,
98
+ oldLines: F - g + m,
99
+ newStart: k,
100
+ newLines: v - k + m,
101
+ lines: h
102
+ };
103
+ N.push(S), g = 0, k = 0, h = [];
104
+ }
105
+ F += w.length, v += w.length;
106
+ }
107
+ }
108
+ for (const c of N)
109
+ for (let d = 0; d < c.lines.length; d++)
110
+ c.lines[d].endsWith(`
111
+ `) ? c.lines[d] = c.lines[d].slice(0, -1) : (c.lines.splice(d + 1, 0, "\"), d++);
112
+ return {
113
+ oldFileName: e,
114
+ newFileName: n,
115
+ oldHeader: s,
116
+ newHeader: a,
117
+ hunks: N
118
+ };
119
+ }
120
+ }
121
+ function L(e, n) {
122
+ var i, l, s, a, r, o;
123
+ if (n || (n = T), Array.isArray(e)) {
124
+ if (e.length > 1 && !n.includeFileHeaders && !e.every((u) => u.isGit))
125
+ throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");
126
+ return e.map((u) => L(u, n)).join(`
127
+ `);
128
+ }
129
+ const t = [];
130
+ if (e.isGit) {
131
+ if (n = T, !e.oldFileName)
132
+ throw new Error("oldFileName must be specified for Git patches");
133
+ if (!e.newFileName)
134
+ throw new Error("newFileName must be specified for Git patches");
135
+ let u = e.oldFileName, f = e.newFileName;
136
+ e.isCreate && u === "/dev/null" ? u = f.replace(/^b\//, "a/") : e.isDelete && f === "/dev/null" && (f = u.replace(/^a\//, "b/")), t.push("diff --git " + b(u) + " " + b(f)), e.isDelete && t.push("deleted file mode " + ((i = e.oldMode) !== null && i !== void 0 ? i : "100644")), e.isCreate && t.push("new file mode " + ((l = e.newMode) !== null && l !== void 0 ? l : "100644")), e.oldMode && e.newMode && !e.isDelete && !e.isCreate && (t.push("old mode " + e.oldMode), t.push("new mode " + e.newMode)), e.isRename && (t.push("rename from " + b(((s = e.oldFileName) !== null && s !== void 0 ? s : "").replace(/^a\//, ""))), t.push("rename to " + b(((a = e.newFileName) !== null && a !== void 0 ? a : "").replace(/^b\//, "")))), e.isCopy && (t.push("copy from " + b(((r = e.oldFileName) !== null && r !== void 0 ? r : "").replace(/^a\//, ""))), t.push("copy to " + b(((o = e.newFileName) !== null && o !== void 0 ? o : "").replace(/^b\//, ""))));
137
+ } else
138
+ n.includeIndex && e.oldFileName == e.newFileName && e.oldFileName !== void 0 && t.push("Index: " + e.oldFileName), n.includeUnderline && t.push("===================================================================");
139
+ const x = e.hunks.length > 0;
140
+ n.includeFileHeaders && e.oldFileName !== void 0 && e.newFileName !== void 0 && (!e.isGit || x) && (t.push("--- " + b(e.oldFileName) + (e.oldHeader ? " " + e.oldHeader : "")), t.push("+++ " + b(e.newFileName) + (e.newHeader ? " " + e.newHeader : "")));
141
+ for (let u = 0; u < e.hunks.length; u++) {
142
+ const f = e.hunks[u], N = f.oldLines === 0 ? f.oldStart - 1 : f.oldStart, g = f.newLines === 0 ? f.newStart - 1 : f.newStart;
143
+ t.push("@@ -" + N + "," + f.oldLines + " +" + g + "," + f.newLines + " @@");
144
+ for (const k of f.lines)
145
+ t.push(k);
146
+ }
147
+ return t.join(`
148
+ `) + `
149
+ `;
150
+ }
151
+ function _(e, n, i, l, s, a, r) {
152
+ if (typeof r == "function" && (r = { callback: r }), r?.callback) {
153
+ const { callback: o } = r;
154
+ I(e, n, i, l, s, a, Object.assign(Object.assign({}, r), { callback: (t) => {
155
+ o(t ? L(t, r.headerOptions) : void 0);
156
+ } }));
157
+ } else {
158
+ const o = I(e, n, i, l, s, a, r);
159
+ return o ? L(o, r?.headerOptions) : void 0;
160
+ }
161
+ }
162
+ function G(e, n, i, l, s, a) {
163
+ return _(e, e, n, i, l, s, a);
164
+ }
165
+ function R(e) {
166
+ const n = e.endsWith(`
167
+ `), i = e.split(`
168
+ `).map((l) => l + `
169
+ `);
170
+ return n ? i.pop() : i.push(i.pop().slice(0, -1)), i;
171
+ }
172
+ export {
173
+ _ as a,
174
+ G as c
175
+ };