toyon 0.10.0 → 0.11.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 (27) hide show
  1. package/dist/cli.js +23 -23
  2. package/dist/daemon.js +1481 -440
  3. package/dist/shell/assets/{Editor-DL0q1Bu5.js → Editor-Cs_OeWSx.js} +3 -3
  4. package/dist/shell/assets/XTerm-Dc6Bk52B.js +58 -0
  5. package/dist/shell/assets/{cssMode-Et22hXpa.js → cssMode-D8uDYrHJ.js} +1 -1
  6. package/dist/shell/assets/{freemarker2-Clz20PcM.js → freemarker2-DlU9uDzS.js} +1 -1
  7. package/dist/shell/assets/{grammar-CPvdB3az.js → grammar-BSzyJU-q.js} +1 -1
  8. package/dist/shell/assets/{handlebars-B4nvXAx8.js → handlebars-B66kGi_7.js} +1 -1
  9. package/dist/shell/assets/{html-DPIGgBLK.js → html-D6juOeyd.js} +1 -1
  10. package/dist/shell/assets/{htmlMode-C2LaVuEX.js → htmlMode-CbTT-4ZV.js} +1 -1
  11. package/dist/shell/assets/index-B4KJ--q9.css +1 -0
  12. package/dist/shell/assets/index-Cj-6Xixu.js +268 -0
  13. package/dist/shell/assets/{javascript-CnwJfTbN.js → javascript-CHwG4FvH.js} +1 -1
  14. package/dist/shell/assets/{jsonMode-8znCTiqR.js → jsonMode-DzTEiaKX.js} +1 -1
  15. package/dist/shell/assets/{liquid-Bdm-1CUh.js → liquid-wddZX4zw.js} +1 -1
  16. package/dist/shell/assets/{lspLanguageFeatures-B1DMU7yH.js → lspLanguageFeatures-BlqDZ6dO.js} +1 -1
  17. package/dist/shell/assets/{mdx-Ktcqo9Jf.js → mdx-Dlz2LIv9.js} +1 -1
  18. package/dist/shell/assets/{python-QX--d8LR.js → python-DvkArqZY.js} +1 -1
  19. package/dist/shell/assets/{razor-C0LrXteG.js → razor-bDLQ0jQf.js} +1 -1
  20. package/dist/shell/assets/{tsMode-BtYCp6db.js → tsMode-B_NomV_y.js} +1 -1
  21. package/dist/shell/assets/{xml-BXbaQ9MG.js → xml-CBYJrQiV.js} +1 -1
  22. package/dist/shell/assets/{yaml-C6FhaU_C.js → yaml-DnmVK8S2.js} +1 -1
  23. package/dist/shell/index.html +2 -2
  24. package/package.json +1 -1
  25. package/dist/shell/assets/XTerm-C9YH4Lh2.js +0 -58
  26. package/dist/shell/assets/index-2QusTgw-.js +0 -262
  27. package/dist/shell/assets/index-TaJLoLSd.css +0 -1
package/dist/cli.js CHANGED
@@ -5,6 +5,28 @@
5
5
  import { existsSync as existsSync10, statSync as statSync4 } from "fs";
6
6
  import { join as join7, resolve } from "path";
7
7
 
8
+ // ../shared/src/pair.ts
9
+ var isTailnetName = (host) => host.endsWith(".ts.net");
10
+ var listed = (names) => names.length < 2 ? names[0] ?? "" : `${names.slice(0, -1).join(", ")} and ${names.at(-1)}`;
11
+ function tailnetLine(phones) {
12
+ if (phones === null)
13
+ return { ok: true, text: "Your phone needs Tailscale on, signed in to the same tailnet." };
14
+ if (phones.length === 0) {
15
+ return {
16
+ ok: false,
17
+ text: "No phone has joined your tailnet. Install Tailscale on it and sign in to the same account first."
18
+ };
19
+ }
20
+ const on = phones.filter((p) => p.online).map((p) => p.name);
21
+ if (on.length > 0)
22
+ return { ok: true, text: `${listed(on)} ${on.length > 1 ? "are" : "is"} on your tailnet.` };
23
+ const off = phones.map((p) => p.name);
24
+ return {
25
+ ok: false,
26
+ text: `${listed(off)} ${off.length > 1 ? "are" : "is"} not answering on your tailnet. Check Tailscale is on there.`
27
+ };
28
+ }
29
+
8
30
  // ../shared/src/daemon.ts
9
31
  var DAEMON_FILES = {
10
32
  token: "token",
@@ -5083,28 +5105,6 @@ function describeManaged(p) {
5083
5105
  return out;
5084
5106
  }
5085
5107
 
5086
- // ../shared/src/pair.ts
5087
- var isTailnetName = (host) => host.endsWith(".ts.net");
5088
- var listed = (names) => names.length < 2 ? names[0] ?? "" : `${names.slice(0, -1).join(", ")} and ${names.at(-1)}`;
5089
- function tailnetLine(phones) {
5090
- if (phones === null)
5091
- return { ok: true, text: "Your phone needs Tailscale on, signed in to the same tailnet." };
5092
- if (phones.length === 0) {
5093
- return {
5094
- ok: false,
5095
- text: "No phone has joined your tailnet. Install Tailscale on it and sign in to the same account first."
5096
- };
5097
- }
5098
- const on = phones.filter((p) => p.online).map((p) => p.name);
5099
- if (on.length > 0)
5100
- return { ok: true, text: `${listed(on)} ${on.length > 1 ? "are" : "is"} on your tailnet.` };
5101
- const off = phones.map((p) => p.name);
5102
- return {
5103
- ok: false,
5104
- text: `${listed(off)} ${off.length > 1 ? "are" : "is"} not answering on your tailnet. Check Tailscale is on there.`
5105
- };
5106
- }
5107
-
5108
5108
  // ../shared/src/ports.ts
5109
5109
  var DAEMON_DEFAULT_PORT = 4141;
5110
5110
 
@@ -5190,7 +5190,7 @@ function parseVersion(v) {
5190
5190
  // package.json
5191
5191
  var package_default = {
5192
5192
  name: "toyon",
5193
- version: "0.10.0",
5193
+ version: "0.11.0",
5194
5194
  description: "Toyon is where coding agents work on your web app while you check each change by using it. Every chat gets its own running copy with a live preview.",
5195
5195
  license: "MIT",
5196
5196
  type: "module",