@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.
- package/dist-lib/{ChangelogPage-ZCG63VYl.js → ChangelogPage-DOeIV4dV.js} +25 -1
- package/dist-lib/{File-6EjmZMI_.js → File-Cai5L4FH.js} +9 -9
- package/dist-lib/{FileEditor-Cd_j2Pn3.js → FileEditor-CBvFYi01.js} +1 -1
- package/dist-lib/{FileViewer-rlK_MPcS.js → FileViewer-Bw4MhWTo.js} +1 -1
- package/dist-lib/{SessionFilesPanel-C96LFRaK.js → SessionFilesPanel-CljApZ_J.js} +90 -97
- package/dist-lib/{TermView-DPak1fmH.js → TermView-rrih9NtI.js} +1057 -1047
- package/dist-lib/base-D0bhR7dg.js +134 -0
- package/dist-lib/{board-page-CjMNQP53.js → board-page-BwukgQSe.js} +4 -4
- package/dist-lib/{chat-engine-9n8lwBiU.js → chat-engine-DABQ686L.js} +1 -1
- package/dist-lib/{coding-agents-page-BjNVGDUO.js → coding-agents-page-BnrON9w7.js} +1 -1
- package/dist-lib/{computer-page-CpnPqiR3.js → computer-page-Dh90OIFY.js} +1437 -1358
- package/dist-lib/create-BOwd_pad.js +175 -0
- package/dist-lib/{embedded-Be_WfQ0h.js → embedded-D1ndCfZJ.js} +17211 -15895
- package/dist-lib/{index-bi2f1zSC.js → index-DzATxXrP.js} +7 -7
- package/dist-lib/index.js +1 -1
- package/dist-lib/keyboard-BDO5X89t.js +35 -0
- package/dist-lib/{resume-session-sheet-Cdd6ggcF.js → resume-session-sheet-KVNxdDSa.js} +1 -1
- package/dist-lib/{session-token-usage-CFcnTEub.js → session-token-usage-CnQ2HFfV.js} +1 -1
- package/dist-lib/{shipped-page-YCpkukPP.js → shipped-page-DT5xVVf3.js} +21 -21
- package/dist-lib/{streamdown-response-Sv-hLrr_.js → streamdown-response-zhsvDlE5.js} +1 -1
- package/dist-lib/styles.css +1 -1
- package/package.json +3 -2
- package/dist-lib/create-CBk9uwJH.js +0 -306
- package/dist-lib/keyboard-CcMBZA9k.js +0 -21
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
class D {
|
|
2
|
+
diff(e, n, t = {}) {
|
|
3
|
+
let s;
|
|
4
|
+
typeof t == "function" ? (s = t, t = {}) : "callback" in t && (s = t.callback);
|
|
5
|
+
const a = this.castInput(e, t), u = this.castInput(n, t), d = this.removeEmpty(this.tokenize(a, t)), r = this.removeEmpty(this.tokenize(u, t));
|
|
6
|
+
return this.diffWithOptionsObj(d, r, t, s);
|
|
7
|
+
}
|
|
8
|
+
diffWithOptionsObj(e, n, t, s) {
|
|
9
|
+
var a;
|
|
10
|
+
const u = (i) => {
|
|
11
|
+
if (i = this.postProcess(i, t), s) {
|
|
12
|
+
setTimeout(function() {
|
|
13
|
+
s(i);
|
|
14
|
+
}, 0);
|
|
15
|
+
return;
|
|
16
|
+
} else
|
|
17
|
+
return i;
|
|
18
|
+
}, d = n.length, r = e.length;
|
|
19
|
+
let l = 1, o = d + r;
|
|
20
|
+
t.maxEditLength != null && (o = Math.min(o, t.maxEditLength));
|
|
21
|
+
const h = (a = t.timeout) !== null && a !== void 0 ? a : 1 / 0, P = Date.now() + h, c = [{ oldPos: -1, lastComponent: void 0 }];
|
|
22
|
+
let m = this.extractCommon(c[0], n, e, 0, t);
|
|
23
|
+
if (c[0].oldPos + 1 >= r && m + 1 >= d)
|
|
24
|
+
return u(this.buildValues(c[0].lastComponent, n, e));
|
|
25
|
+
let g = -1 / 0, v = 1 / 0;
|
|
26
|
+
const L = () => {
|
|
27
|
+
for (let i = Math.max(g, -l); i <= Math.min(v, l); i += 2) {
|
|
28
|
+
let f;
|
|
29
|
+
const C = c[i - 1], p = c[i + 1];
|
|
30
|
+
C && (c[i - 1] = void 0);
|
|
31
|
+
let x = !1;
|
|
32
|
+
if (p) {
|
|
33
|
+
const E = p.oldPos - i;
|
|
34
|
+
x = p && 0 <= E && E < d;
|
|
35
|
+
}
|
|
36
|
+
const w = C && C.oldPos + 1 < r;
|
|
37
|
+
if (!x && !w) {
|
|
38
|
+
c[i] = void 0;
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (!w || x && C.oldPos < p.oldPos ? f = this.addToPath(p, !0, !1, 0, t) : f = this.addToPath(C, !1, !0, 1, t), m = this.extractCommon(f, n, e, i, t), f.oldPos + 1 >= r && m + 1 >= d)
|
|
42
|
+
return u(this.buildValues(f.lastComponent, n, e)) || !0;
|
|
43
|
+
c[i] = f, f.oldPos + 1 >= r && (v = Math.min(v, i - 1)), m + 1 >= d && (g = Math.max(g, i + 1));
|
|
44
|
+
}
|
|
45
|
+
l++;
|
|
46
|
+
};
|
|
47
|
+
if (s)
|
|
48
|
+
(function i() {
|
|
49
|
+
setTimeout(function() {
|
|
50
|
+
if (l > o || Date.now() > P)
|
|
51
|
+
return s(void 0);
|
|
52
|
+
L() || i();
|
|
53
|
+
}, 0);
|
|
54
|
+
})();
|
|
55
|
+
else
|
|
56
|
+
for (; l <= o && Date.now() <= P; ) {
|
|
57
|
+
const i = L();
|
|
58
|
+
if (i)
|
|
59
|
+
return i;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
addToPath(e, n, t, s, a) {
|
|
63
|
+
const u = e.lastComponent;
|
|
64
|
+
return u && !a.oneChangePerToken && u.added === n && u.removed === t ? {
|
|
65
|
+
oldPos: e.oldPos + s,
|
|
66
|
+
lastComponent: { count: u.count + 1, added: n, removed: t, previousComponent: u.previousComponent }
|
|
67
|
+
} : {
|
|
68
|
+
oldPos: e.oldPos + s,
|
|
69
|
+
lastComponent: { count: 1, added: n, removed: t, previousComponent: u }
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
extractCommon(e, n, t, s, a) {
|
|
73
|
+
const u = n.length, d = t.length;
|
|
74
|
+
let r = e.oldPos, l = r - s, o = 0;
|
|
75
|
+
for (; l + 1 < u && r + 1 < d && this.equals(t[r + 1], n[l + 1], a); )
|
|
76
|
+
l++, r++, o++, a.oneChangePerToken && (e.lastComponent = { count: 1, previousComponent: e.lastComponent, added: !1, removed: !1 });
|
|
77
|
+
return o && !a.oneChangePerToken && (e.lastComponent = { count: o, previousComponent: e.lastComponent, added: !1, removed: !1 }), e.oldPos = r, l;
|
|
78
|
+
}
|
|
79
|
+
equals(e, n, t) {
|
|
80
|
+
return t.comparator ? t.comparator(e, n) : e === n || !!t.ignoreCase && e.toLowerCase() === n.toLowerCase();
|
|
81
|
+
}
|
|
82
|
+
removeEmpty(e) {
|
|
83
|
+
const n = [];
|
|
84
|
+
for (let t = 0; t < e.length; t++)
|
|
85
|
+
e[t] && n.push(e[t]);
|
|
86
|
+
return n;
|
|
87
|
+
}
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
89
|
+
castInput(e, n) {
|
|
90
|
+
return e;
|
|
91
|
+
}
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
93
|
+
tokenize(e, n) {
|
|
94
|
+
return Array.from(e);
|
|
95
|
+
}
|
|
96
|
+
join(e) {
|
|
97
|
+
return e.join("");
|
|
98
|
+
}
|
|
99
|
+
postProcess(e, n) {
|
|
100
|
+
return e;
|
|
101
|
+
}
|
|
102
|
+
get useLongestToken() {
|
|
103
|
+
return !1;
|
|
104
|
+
}
|
|
105
|
+
buildValues(e, n, t) {
|
|
106
|
+
const s = [];
|
|
107
|
+
let a;
|
|
108
|
+
for (; e; )
|
|
109
|
+
s.push(e), a = e.previousComponent, delete e.previousComponent, e = a;
|
|
110
|
+
s.reverse();
|
|
111
|
+
const u = s.length;
|
|
112
|
+
let d = 0, r = 0, l = 0;
|
|
113
|
+
for (; d < u; d++) {
|
|
114
|
+
const o = s[d];
|
|
115
|
+
if (o.removed)
|
|
116
|
+
o.value = this.join(t.slice(l, l + o.count)), l += o.count;
|
|
117
|
+
else {
|
|
118
|
+
if (!o.added && this.useLongestToken) {
|
|
119
|
+
let h = n.slice(r, r + o.count);
|
|
120
|
+
h = h.map(function(P, c) {
|
|
121
|
+
const m = t[l + c];
|
|
122
|
+
return m.length > P.length ? m : P;
|
|
123
|
+
}), o.value = this.join(h);
|
|
124
|
+
} else
|
|
125
|
+
o.value = this.join(n.slice(r, r + o.count));
|
|
126
|
+
r += o.count, o.added || (l += o.count);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return s;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export {
|
|
133
|
+
D
|
|
134
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { useState as x, useEffect as h, useMemo as b } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { y, F as N, O as k, Q as w, a4 as v, L as I, l as A, j } from "./embedded-D1ndCfZJ.js";
|
|
4
4
|
import { cn as g } from "cnfast";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.577.0 - ISC
|
|
@@ -8,11 +8,11 @@ import { cn as g } from "cnfast";
|
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
11
|
+
const _ = [
|
|
12
12
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
13
13
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
14
14
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
15
|
-
], L = y("circle-question-mark",
|
|
15
|
+
], L = y("circle-question-mark", _), u = {
|
|
16
16
|
"needs-you": "Needs you",
|
|
17
17
|
working: "Working",
|
|
18
18
|
idle: "Idle",
|
|
@@ -136,7 +136,7 @@ function S({
|
|
|
136
136
|
t.note ? /* @__PURE__ */ i("p", { className: "line-clamp-2 text-xs leading-snug text-muted-foreground", children: t.note }) : null,
|
|
137
137
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-muted-foreground/80", children: [
|
|
138
138
|
t.project ? /* @__PURE__ */ i("span", { className: "truncate", children: t.project }) : null,
|
|
139
|
-
/* @__PURE__ */ i("span", { className: "ml-auto shrink-0", children:
|
|
139
|
+
/* @__PURE__ */ i("span", { className: "ml-auto shrink-0", children: j(t.at || null) })
|
|
140
140
|
] })
|
|
141
141
|
]
|
|
142
142
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as ao } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as Dt, useCallback as Lt, useSyncExternalStore as ut, useEffect as so } from "react";
|
|
3
3
|
import { g as io } from "./_commonjsHelpers-C6fGbg64.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ag as uo } from "./embedded-D1ndCfZJ.js";
|
|
5
5
|
var Ar = "vercel.ai.error", co = Symbol.for(Ar), Ut, Ft, se = class Nr extends (Ft = Error, Ut = co, Ft) {
|
|
6
6
|
/**
|
|
7
7
|
* Creates an AI SDK Error.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as U } from "react/jsx-runtime";
|
|
2
|
-
import { R as v, B as u, L as C,
|
|
2
|
+
import { R as v, B as u, L as C, m as A, n as S, M as W, o as j, p as E, q as f, T as O, s as I, u as X, v as D, w as J, x as Q, X as V, K as Y } from "./embedded-D1ndCfZJ.js";
|
|
3
3
|
import { cn as P } from "cnfast";
|
|
4
4
|
import { useState as T } from "react";
|
|
5
5
|
function B(l) {
|