@orbit-build/cli 3.2.1 → 3.4.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.
- package/README.md +5 -2
- package/dist/Orbit Browser.app/Contents/Info.plist +12 -0
- package/dist/Orbit Browser.app/Contents/MacOS/OrbitBrowser +0 -0
- package/dist/Orbit Browser.app/Contents/Resources/Targets.js +58 -0
- package/dist/Orbit Browser.app/Contents/_CodeSignature/CodeResources +128 -0
- package/dist/index.js +5923 -4554
- package/dist/safari-extension/page.js +1 -1
- package/dist/safari-extension/popup.css +14 -10
- package/dist/safari-extension/popup.js +18 -6
- package/package.json +2 -2
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
if (msg.documentId !== documentId) throw Error("stale");
|
|
166
|
-
if (
|
|
166
|
+
if (["draftQuestion", "prepare", "proposal"].includes(msg.action)) {
|
|
167
167
|
const target = destination(workspace());
|
|
168
168
|
if (msg.draftTarget !== undefined && target !== msg.draftTarget) throw Error("chatChanged");
|
|
169
169
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
:root { color-scheme: light dark; font:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
textarea {
|
|
1
|
+
:root { color-scheme: light dark; font-family: -apple-system, system-ui, sans-serif; font-size: 13px; line-height: 1.45; }
|
|
2
|
+
* { box-sizing: border-box; }
|
|
3
|
+
body { margin: 0; width: 318px; max-width: 100vw; padding: 14px; color: CanvasText; background: Canvas; }
|
|
4
|
+
strong { font-size: 16px; }
|
|
5
|
+
section { display: grid; gap: 7px; }
|
|
6
|
+
section:not(:empty) { margin-top: 12px; }
|
|
7
|
+
label { display: grid; gap: 4px; font-weight: 550; }
|
|
8
|
+
button, textarea { font: inherit; border: 1px solid color-mix(in srgb, CanvasText 24%, Canvas); border-radius: 7px; color: CanvasText; }
|
|
9
|
+
button { min-height: 32px; padding: 5px 10px; background: color-mix(in srgb, CanvasText 5%, Canvas); cursor: pointer; }
|
|
10
|
+
button:hover { background: color-mix(in srgb, CanvasText 10%, Canvas); }
|
|
11
|
+
button:disabled { opacity: .55; }
|
|
12
|
+
textarea { width: 100%; min-height: 54px; padding: 6px 8px; resize: vertical; background: Canvas; }
|
|
9
13
|
p, label { overflow-wrap: anywhere; }
|
|
10
|
-
|
|
11
|
-
#
|
|
14
|
+
#route { margin: 5px 0 0; padding-bottom: 9px; border-bottom: 1px solid color-mix(in srgb, CanvasText 20%, Canvas); font-weight: 550; }
|
|
15
|
+
#status { margin: 9px 0 0; }
|
|
12
16
|
button:focus-visible, textarea:focus-visible { outline: 2px solid AccentColor; outline-offset: 2px; }
|
|
@@ -44,9 +44,9 @@ const reasons = {
|
|
|
44
44
|
"請先在 Orbit 工作區開啟延伸功能並連線。",
|
|
45
45
|
),
|
|
46
46
|
reply: t(
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
47
|
+
"Open the chat where you prepared this form, send the draft, and wait for the JSON reply.",
|
|
48
|
+
"请打开起草这份表单的对话,发送草稿,并等待完整的 JSON 回复。",
|
|
49
|
+
"請開啟起草這份表單的對話,傳送草稿,並等待完整的 JSON 回覆。",
|
|
50
50
|
),
|
|
51
51
|
stale: t(
|
|
52
52
|
"The tab or form changed. Start a new handoff.",
|
|
@@ -213,6 +213,7 @@ async function main() {
|
|
|
213
213
|
const values = await message(workspace, "proposal", {
|
|
214
214
|
key: task.key,
|
|
215
215
|
length: task.labels.length,
|
|
216
|
+
draftTarget: target.draftTarget,
|
|
216
217
|
});
|
|
217
218
|
actions.replaceChildren();
|
|
218
219
|
fields.replaceChildren();
|
|
@@ -243,6 +244,7 @@ async function main() {
|
|
|
243
244
|
);
|
|
244
245
|
});
|
|
245
246
|
button(t("Cancel", "取消"), main);
|
|
247
|
+
inputs[0]?.focus();
|
|
246
248
|
});
|
|
247
249
|
button(t("Return to Orbit", "返回 Orbit"), () => focusTab(workspace.tabId));
|
|
248
250
|
button(t("End this handoff", "结束这次协作", "結束這次交接"), async () => {
|
|
@@ -271,6 +273,16 @@ async function main() {
|
|
|
271
273
|
});
|
|
272
274
|
}
|
|
273
275
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
276
|
+
async function openPopup() {
|
|
277
|
+
try {
|
|
278
|
+
await main();
|
|
279
|
+
} catch (error) {
|
|
280
|
+
fields.replaceChildren();
|
|
281
|
+
actions.replaceChildren();
|
|
282
|
+
document.querySelector("#route").hidden = true;
|
|
283
|
+
status.textContent = reasons[error.message] || reasons.access;
|
|
284
|
+
button(t("Try again", "重试", "重試"), openPopup);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
void openPopup();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbit-build/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Local-first AI coding agent CLI, TUI, Web UI, diagnostics, and LSP runtime",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node ../../scripts/build-package.mjs",
|
|
49
|
-
"prepack": "
|
|
49
|
+
"prepack": "node ../../scripts/build-package.mjs --pack"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"picocolors": "^1.0.1",
|