@celljs/ta 4.15.2 → 4.16.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 (165) hide show
  1. package/dist/cli.mjs +5 -2
  2. package/dist/gateway.mjs +663 -46
  3. package/dist/pi/CHANGELOG.md +7 -0
  4. package/dist/pi/package.json +1 -1
  5. package/dist/pi/packages/ta-3d/package.json +1 -1
  6. package/dist/pi/packages/ta-agents/extension/index.mjs +8 -6
  7. package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +2 -0
  8. package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -0
  9. package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +0 -2
  10. package/dist/pi/packages/ta-agents/lib/agent-session.js +1 -5
  11. package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +7 -2
  12. package/dist/pi/packages/ta-agents/lib/agent-turn.js +8 -4
  13. package/dist/pi/packages/ta-agents/package.json +1 -1
  14. package/dist/pi/packages/ta-bots/host/index.mjs +38 -3
  15. package/dist/pi/packages/ta-bots/package.json +1 -1
  16. package/dist/pi/packages/ta-changes/package.json +1 -1
  17. package/dist/pi/packages/ta-channels/host/index.mjs +38 -3
  18. package/dist/pi/packages/ta-channels/package.json +1 -1
  19. package/dist/pi/packages/ta-computer-use/package.json +1 -1
  20. package/dist/pi/packages/ta-cron/package.json +1 -1
  21. package/dist/pi/packages/ta-extensions/package.json +1 -1
  22. package/dist/pi/packages/ta-extensions/web/index.js +38 -3
  23. package/dist/pi/packages/ta-games/package.json +1 -1
  24. package/dist/pi/packages/ta-glance/README.en.md +2 -0
  25. package/dist/pi/packages/ta-glance/README.md +2 -0
  26. package/dist/pi/packages/ta-glance/extension/index.mjs +110 -21
  27. package/dist/pi/packages/ta-glance/lib/card.js +88 -8
  28. package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
  29. package/dist/pi/packages/ta-glance/lib/glance-prompt.js +7 -4
  30. package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +34 -2
  31. package/dist/pi/packages/ta-glance/lib/glance-protocol.js +39 -1
  32. package/dist/pi/packages/ta-glance/lib/glance-spec.js +93 -19
  33. package/dist/pi/packages/ta-glance/lib/glance-util.d.ts +13 -0
  34. package/dist/pi/packages/ta-glance/lib/glance-util.js +28 -0
  35. package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
  36. package/dist/pi/packages/ta-glance/lib/style.js +65 -2
  37. package/dist/pi/packages/ta-glance/package.json +1 -1
  38. package/dist/pi/packages/ta-glance/web/index.js +330 -34
  39. package/dist/pi/packages/ta-initiative/package.json +1 -1
  40. package/dist/pi/packages/ta-launcher/package.json +1 -1
  41. package/dist/pi/packages/ta-manual/package.json +1 -1
  42. package/dist/pi/packages/ta-moments/extension/index.mjs +38 -3
  43. package/dist/pi/packages/ta-moments/host/index.mjs +38 -3
  44. package/dist/pi/packages/ta-moments/package.json +1 -1
  45. package/dist/pi/packages/ta-moments/web/index.js +38 -3
  46. package/dist/pi/packages/ta-nearby/package.json +1 -1
  47. package/dist/pi/packages/ta-notify/package.json +1 -1
  48. package/dist/pi/packages/ta-plot/package.json +1 -1
  49. package/dist/pi/packages/ta-recall/package.json +1 -1
  50. package/dist/pi/packages/ta-rooms/package.json +1 -1
  51. package/dist/pi/packages/ta-share/package.json +1 -1
  52. package/dist/pi/packages/ta-sync/package.json +1 -1
  53. package/dist/pi/packages/ta-sync-cloud/package.json +1 -1
  54. package/dist/pi/packages/ta-team/package.json +1 -1
  55. package/dist/pi/packages/ta-workspace/package.json +1 -1
  56. package/dist/pi/packages/ta-workspace/web/index.js +38 -3
  57. package/dist/public/assets/{abnfDiagram-S7VZAUFO-Dd51Bqbx.js → abnfDiagram-S7VZAUFO-FSEuUCgT.js} +1 -1
  58. package/dist/public/assets/{architecture-WOLXFQ4H-BbG3_x7_.js → architecture-WOLXFQ4H-Do_DyWCg.js} +1 -1
  59. package/dist/public/assets/{architectureDiagram-YGSQEFNW-DbJO4t8I.js → architectureDiagram-YGSQEFNW-D-N2qDs4.js} +1 -1
  60. package/dist/public/assets/{blockDiagram-APKKGZFW-BwtrHF1f.js → blockDiagram-APKKGZFW-Ds6DzHNZ.js} +1 -1
  61. package/dist/public/assets/{browser-CTbeNBsA.js → browser-KlrZxPbE.js} +1 -1
  62. package/dist/public/assets/{c4Diagram-KJ2TOQU5-CfBe5A0H.js → c4Diagram-KJ2TOQU5-D5ZdqxrP.js} +1 -1
  63. package/dist/public/assets/{chunk-6MUBBAK2-C7R0mhrg.js → chunk-6MUBBAK2-CWOwhB3b.js} +1 -1
  64. package/dist/public/assets/{chunk-AXFCVDMN-VQgQruZT.js → chunk-AXFCVDMN-Dr6p2RGg.js} +1 -1
  65. package/dist/public/assets/{chunk-BG4553SI-CkUi_vD5.js → chunk-BG4553SI-DUCV_pmW.js} +1 -1
  66. package/dist/public/assets/{chunk-DQASFODM-BAQq7ktk.js → chunk-DQASFODM-Yxd3jIXM.js} +1 -1
  67. package/dist/public/assets/{chunk-HFQBQIA3-B1oF8lB7.js → chunk-HFQBQIA3-C24I15MF.js} +1 -1
  68. package/dist/public/assets/{chunk-KQLB2F66-DE5amcgT.js → chunk-KQLB2F66-Dxk-aejD.js} +1 -1
  69. package/dist/public/assets/{chunk-KS47KZWR-ev9S_csp.js → chunk-KS47KZWR-DPyr7gb8.js} +1 -1
  70. package/dist/public/assets/{chunk-LEVMRMFU-ziqnRvTG.js → chunk-LEVMRMFU-D_mEFJGR.js} +1 -1
  71. package/dist/public/assets/{chunk-M57EVK23-DaqPdEKA.js → chunk-M57EVK23-DfMFxQib.js} +1 -1
  72. package/dist/public/assets/{chunk-OY52VR5R-DFOG8j6z.js → chunk-OY52VR5R-O9W83Laa.js} +1 -1
  73. package/dist/public/assets/{chunk-QB3YPZ4I-eg35JLLN.js → chunk-QB3YPZ4I-IdikGcw1.js} +1 -1
  74. package/dist/public/assets/{chunk-R3KSYZAL-J73nie-R.js → chunk-R3KSYZAL-DLpaFCvz.js} +1 -1
  75. package/dist/public/assets/{chunk-STOXU5M4-B8EvDZvB.js → chunk-STOXU5M4-Lx-CZ4Ql.js} +1 -1
  76. package/dist/public/assets/{chunk-TU62E6Q5-DyCM007V.js → chunk-TU62E6Q5-DCnr5NsA.js} +1 -1
  77. package/dist/public/assets/{chunk-X4PVCEUW-BBGeCNmA.js → chunk-X4PVCEUW-Ct7aUJFY.js} +1 -1
  78. package/dist/public/assets/{chunk-XXDRQBXY-CAtJ2Wph.js → chunk-XXDRQBXY-CQhxfoYw.js} +1 -1
  79. package/dist/public/assets/{classDiagram-v2-L25IHNXF-DhQM6yHy.js → classDiagram-v2-L25IHNXF-DPSu5qYq.js} +1 -1
  80. package/dist/public/assets/{cose-bilkent-JH36ORCC-AqIcHabu.js → cose-bilkent-JH36ORCC-CFimsFsN.js} +1 -1
  81. package/dist/public/assets/cynefin-EF2NZ3EQ-Dcc0sCHf.js +1 -0
  82. package/dist/public/assets/{cynefinDiagram-L36ESFBY-7SyXzhRd.js → cynefinDiagram-L36ESFBY-CiAWhkVp.js} +1 -1
  83. package/dist/public/assets/{d3-selection-DsahLieG.js → d3-selection-C8RIDfkO.js} +1 -1
  84. package/dist/public/assets/{dagre-SPEB5RXH-DalaGtMS.js → dagre-SPEB5RXH-l1nRD1Fx.js} +1 -1
  85. package/dist/public/assets/{diagram-3B7GL73J-BcY-qB9G.js → diagram-3B7GL73J-ipqtnhoX.js} +1 -1
  86. package/dist/public/assets/{diagram-DNEMPZML-NV7fbe0h.js → diagram-DNEMPZML-VpIcHRUP.js} +1 -1
  87. package/dist/public/assets/{diagram-L3MUGCDN-BPx4GHoj.js → diagram-L3MUGCDN-8VdVmcS6.js} +1 -1
  88. package/dist/public/assets/{diagram-LA4NIPWU-BeUxqmw1.js → diagram-LA4NIPWU-Bej-aiF0.js} +1 -1
  89. package/dist/public/assets/{diagram-MHCOC4E2-Dlg1S5na.js → diagram-MHCOC4E2-D8gW4bVQ.js} +1 -1
  90. package/dist/public/assets/{diagram-XPFHEONP-DQhRoMkK.js → diagram-XPFHEONP-BMevAJ1M.js} +1 -1
  91. package/dist/public/assets/{dist-CQU8zJh_.js → dist-DBKJcjvW.js} +1 -1
  92. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-gVEs3Um2.js → ebnfDiagram-UZSYDL2S-C3HDTOzn.js} +1 -1
  93. package/dist/public/assets/{editor.api-SQ1snuat.js → editor.api-BMWdjwhK.js} +1 -1
  94. package/dist/public/assets/{elk-XV6XMXQE-CHtlrPwu.js → elk-XV6XMXQE-XOOPrVin.js} +1 -1
  95. package/dist/public/assets/{erDiagram-EYBAPDEH-B0xok726.js → erDiagram-EYBAPDEH-Cr-vwx1l.js} +1 -1
  96. package/dist/public/assets/{eventmodeling-K75KTNOO-CFwphA0e.js → eventmodeling-K75KTNOO-DbPhpfxn.js} +1 -1
  97. package/dist/public/assets/flowDiagram-MALGAFMO-CDXqnHAQ.js +1 -0
  98. package/dist/public/assets/{freemarker2-DJKO-X2B.js → freemarker2-6h_1-8qB.js} +1 -1
  99. package/dist/public/assets/{ganttDiagram-23REXITY-B5wVGN1A.js → ganttDiagram-23REXITY-C7kNPXx3.js} +1 -1
  100. package/dist/public/assets/gitGraph-VSP46ZUC-KPsoB6Z1.js +1 -0
  101. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-DEjNU1R_.js → gitGraphDiagram-STJD7YCW-CVnEJEZr.js} +1 -1
  102. package/dist/public/assets/{handlebars-ChVN7JPd.js → handlebars-F4lp3oLr.js} +1 -1
  103. package/dist/public/assets/{html-CQ0znKSa.js → html-Dj6f8B_g.js} +1 -1
  104. package/dist/public/assets/{index-CLlacdXR.js → index-DnNrrk68.js} +2 -2
  105. package/dist/public/assets/info-OHQRW6UA-CtM6s0SQ.js +1 -0
  106. package/dist/public/assets/{infoDiagram-KBXO4MBG-CJtrS72M.js → infoDiagram-KBXO4MBG-DcttQWdp.js} +1 -1
  107. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-qYI1QBsK.js → ishikawaDiagram-M35NCXHK-BSUYTZf6.js} +1 -1
  108. package/dist/public/assets/{javascript-B-DHbkyI.js → javascript-b_BkOE5Y.js} +1 -1
  109. package/dist/public/assets/{journeyDiagram-OPLOXDXO-BOQ2y2ZZ.js → journeyDiagram-OPLOXDXO-BCfd5-6n.js} +1 -1
  110. package/dist/public/assets/{jsonMode-XuGC5N_z.js → jsonMode-Cq5QJbVZ.js} +1 -1
  111. package/dist/public/assets/{kanban-definition-BZKZHSQY-BJ64tKdP.js → kanban-definition-BZKZHSQY-B3nenaw_.js} +1 -1
  112. package/dist/public/assets/{liquid-B0Ujylzc.js → liquid-CGuZI_Aa.js} +1 -1
  113. package/dist/public/assets/{mdx-B19-V510.js → mdx-Dt9yTqnf.js} +1 -1
  114. package/dist/public/assets/{mermaid-parser.core-Scb01iBq.js → mermaid-parser.core-CquzROwT.js} +3 -3
  115. package/dist/public/assets/{mermaid.core-BMuvs7us.js → mermaid.core-Bx-e_Scq.js} +4 -4
  116. package/dist/public/assets/{mindmap-definition-I2QAS2VK-BYfOS3XN.js → mindmap-definition-I2QAS2VK-DyeewbnH.js} +1 -1
  117. package/dist/public/assets/module-C-ofp7U4.js +1 -0
  118. package/dist/public/assets/{module-DOrYVZ7B.js → module-dnDlIzeV.js} +79 -78
  119. package/dist/public/assets/{monaco-Bbe2os7m.js → monaco-nvIdDTWu.js} +3 -3
  120. package/dist/public/assets/packet-JDAUHWVQ-XKjiwdar.js +1 -0
  121. package/dist/public/assets/{pegDiagram-FD4XPPHP-D-Vlq9Gm.js → pegDiagram-FD4XPPHP-B884_KoR.js} +1 -1
  122. package/dist/public/assets/pie-XZMESJXO-MuCMavHL.js +1 -0
  123. package/dist/public/assets/{pieDiagram-J4AKIIQI-_-94-aMD.js → pieDiagram-J4AKIIQI-I40wRwyy.js} +1 -1
  124. package/dist/public/assets/{python-CWnMIOYq.js → python-Djw4wvG9.js} +1 -1
  125. package/dist/public/assets/{quadrantDiagram-XTYBLID2-BhFUbUYz.js → quadrantDiagram-XTYBLID2-DyNOImfk.js} +1 -1
  126. package/dist/public/assets/radar-ABXABTNO-Cq12GHJS.js +1 -0
  127. package/dist/public/assets/railroad-I3PHUGI6-CfeMswZU.js +1 -0
  128. package/dist/public/assets/{railroad-abnf-LNEFI6M7-yUa9GGCQ.js → railroad-abnf-LNEFI6M7-3G0zWzgf.js} +1 -1
  129. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-xY4YiL8M.js → railroad-ebnf-DWYD2UWJ-B5XRDRWS.js} +1 -1
  130. package/dist/public/assets/{railroad-peg-JR7BVNR7-BYFYCUAQ.js → railroad-peg-JR7BVNR7-rcIioIyH.js} +1 -1
  131. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-C9FVhj0k.js → railroadDiagram-MRQ6NCDL-CDM2ahQM.js} +1 -1
  132. package/dist/public/assets/{razor-bDtpN6EJ.js → razor-CStezNUn.js} +1 -1
  133. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-DLmAg-6C.js → requirementDiagram-Y7LWUY3S-hbb6WtfM.js} +1 -1
  134. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-Bl5IpDk4.js → sankeyDiagram-WGJFYUXA-DLV3Aoae.js} +1 -1
  135. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-Z-N0OiT_.js → sequenceDiagram-5NDRBG5M-BWxOV5U9.js} +1 -1
  136. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-ctKQz8Mo.js → stateDiagram-v2-FJ4FJNEA-C-TaUPaQ.js} +1 -1
  137. package/dist/public/assets/{swimlanes-UMQ2AFYF-CWLKnALg.js → swimlanes-UMQ2AFYF-CJY0BFmc.js} +1 -1
  138. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DdFDl6aK.js +8 -0
  139. package/dist/public/assets/{timeline-definition-SEUHKTQE-DP8Ph_d6.js → timeline-definition-SEUHKTQE-CUfQb8Gv.js} +1 -1
  140. package/dist/public/assets/treeView-D4JQ5SDB-BQ4uUy4s.js +1 -0
  141. package/dist/public/assets/treemap-SAJKECNS-BFTTkjF9.js +1 -0
  142. package/dist/public/assets/{typescript-CGpNlLbn.js → typescript-B7kmi8MF.js} +1 -1
  143. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-DvFjNj3J.js → usecaseDiagram-AFA6YXN4-BKTVAp-G.js} +1 -1
  144. package/dist/public/assets/{vennDiagram-NNMJR3RB-3m2F2H-I.js → vennDiagram-NNMJR3RB-CN1RxNTS.js} +1 -1
  145. package/dist/public/assets/wardley-7MLQ67FV-BbyzsA8S.js +1 -0
  146. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-CsMntu16.js → wardleyDiagram-S7YFUSEH-JJ6qcpu1.js} +1 -1
  147. package/dist/public/assets/{xml-ByiLoakX.js → xml-DVamlHEU.js} +1 -1
  148. package/dist/public/assets/{xychartDiagram-GGNKY7IX-C80rxvM0.js → xychartDiagram-GGNKY7IX-BNakYgUZ.js} +1 -1
  149. package/dist/public/assets/{yaml-Cz2Af5Rj.js → yaml-BihGeFrM.js} +1 -1
  150. package/dist/public/index.html +1 -1
  151. package/dist/serve/index.mjs +5283 -4884
  152. package/package.json +39 -39
  153. package/dist/public/assets/cynefin-EF2NZ3EQ-yFytgtiy.js +0 -1
  154. package/dist/public/assets/flowDiagram-MALGAFMO-Cwye_DsX.js +0 -1
  155. package/dist/public/assets/gitGraph-VSP46ZUC-BYzb--zb.js +0 -1
  156. package/dist/public/assets/info-OHQRW6UA-na0qX3JP.js +0 -1
  157. package/dist/public/assets/module-B3SKdB70.js +0 -1
  158. package/dist/public/assets/packet-JDAUHWVQ-jhCd70vR.js +0 -1
  159. package/dist/public/assets/pie-XZMESJXO-DV0NJFsI.js +0 -1
  160. package/dist/public/assets/radar-ABXABTNO-Co-Hlf34.js +0 -1
  161. package/dist/public/assets/railroad-I3PHUGI6-DKMPEjDD.js +0 -1
  162. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CU76xJSu.js +0 -8
  163. package/dist/public/assets/treeView-D4JQ5SDB-JMMnu_MW.js +0 -1
  164. package/dist/public/assets/treemap-SAJKECNS-CPlAD3X1.js +0 -1
  165. package/dist/public/assets/wardley-7MLQ67FV-Dhc8wpLp.js +0 -1
@@ -248,15 +248,47 @@ var TaGatewayServer = Symbol("TaGatewayServer");
248
248
  var TaLocation;
249
249
  (function(TaLocation2) {
250
250
  TaLocation2.SSH = "ssh://";
251
+ TaLocation2.CLOUD = "ta://";
252
+ const CLOUD_NAME = /^[a-z0-9][a-z0-9-]{0,39}$/;
251
253
  const HOST = /^(?!-)[\w.@:%+[\]-]+$/;
252
254
  function isRemote(location) {
253
- return location.startsWith(TaLocation2.SSH);
255
+ return location.startsWith(TaLocation2.SSH) || location.startsWith(TaLocation2.CLOUD);
254
256
  }
255
257
  TaLocation2.isRemote = isRemote;
258
+ function isCloud(host2) {
259
+ return !!host2 && host2.startsWith(TaLocation2.CLOUD);
260
+ }
261
+ TaLocation2.isCloud = isCloud;
262
+ function isCloudName(name) {
263
+ return CLOUD_NAME.test(name);
264
+ }
265
+ TaLocation2.isCloudName = isCloudName;
266
+ function cloud(name, path2 = "") {
267
+ return `${TaLocation2.CLOUD}${name}${path2 ? normalize(path2) : ""}`;
268
+ }
269
+ TaLocation2.cloud = cloud;
270
+ function cloudName(hostOrLocation) {
271
+ if (!hostOrLocation.startsWith(TaLocation2.CLOUD)) {
272
+ return;
273
+ }
274
+ const rest = hostOrLocation.slice(TaLocation2.CLOUD.length);
275
+ const slash = rest.indexOf("/");
276
+ return slash < 0 ? rest : rest.slice(0, slash);
277
+ }
278
+ TaLocation2.cloudName = cloudName;
256
279
  function parse(location) {
280
+ var _a;
257
281
  if (!isRemote(location)) {
258
282
  return;
259
283
  }
284
+ if (location.startsWith(TaLocation2.CLOUD)) {
285
+ const name = (_a = cloudName(location)) !== null && _a !== undefined ? _a : "";
286
+ if (!isCloudName(name)) {
287
+ throw new Error(`${JSON.stringify(location)} names no cloud workspace: write ta://<name>/<path>.`);
288
+ }
289
+ const path3 = location.slice(TaLocation2.CLOUD.length + name.length);
290
+ return { host: `${TaLocation2.CLOUD}${name}`, path: path3 ? normalize(path3) : "" };
291
+ }
260
292
  const rest = location.slice(TaLocation2.SSH.length);
261
293
  const slash = rest.indexOf("/");
262
294
  const host2 = slash < 0 ? rest : rest.slice(0, slash);
@@ -268,7 +300,7 @@ var TaLocation;
268
300
  }
269
301
  TaLocation2.parse = parse;
270
302
  function isHost(host2) {
271
- return HOST.test(host2);
303
+ return isCloud(host2) ? isCloudName(host2.slice(TaLocation2.CLOUD.length)) : HOST.test(host2);
272
304
  }
273
305
  TaLocation2.isHost = isHost;
274
306
  const FLAGS = /^-[46AaCfGgKkMNnqsTtVvXxYy]+$/;
@@ -332,10 +364,13 @@ var TaLocation;
332
364
  }
333
365
  TaLocation2.readHost = readHost;
334
366
  function ssh(host2, path2 = "") {
335
- return `${TaLocation2.SSH}${host2}${path2 ? normalize(path2) : ""}`;
367
+ return isCloud(host2) ? `${host2}${path2 ? normalize(path2) : ""}` : `${TaLocation2.SSH}${host2}${path2 ? normalize(path2) : ""}`;
336
368
  }
337
369
  TaLocation2.ssh = ssh;
338
370
  function hostLabel(host2) {
371
+ if (isCloud(host2)) {
372
+ return host2.slice(TaLocation2.CLOUD.length);
373
+ }
339
374
  const name = host2.replace(/^[^@]*@/, "").replace(/^\[(.*)\](?::\d+)?$/, "$1").replace(/^([^:]*):\d+$/, "$1");
340
375
  return /^[\d.]+$/.test(name) || name.includes(":") ? name : name.split(".")[0] || name;
341
376
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-moments",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: Moments, what friends made with Ta that one can take and use. Ta drafts a post of what you made and you post it; your Ta friends see it, like it and take it, their Ta reading the code first",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -499,15 +499,47 @@ var TaGatewayServer = Symbol("TaGatewayServer");
499
499
  var TaLocation;
500
500
  (function(TaLocation2) {
501
501
  TaLocation2.SSH = "ssh://";
502
+ TaLocation2.CLOUD = "ta://";
503
+ const CLOUD_NAME = /^[a-z0-9][a-z0-9-]{0,39}$/;
502
504
  const HOST = /^(?!-)[\w.@:%+[\]-]+$/;
503
505
  function isRemote(location) {
504
- return location.startsWith(TaLocation2.SSH);
506
+ return location.startsWith(TaLocation2.SSH) || location.startsWith(TaLocation2.CLOUD);
505
507
  }
506
508
  TaLocation2.isRemote = isRemote;
509
+ function isCloud(host2) {
510
+ return !!host2 && host2.startsWith(TaLocation2.CLOUD);
511
+ }
512
+ TaLocation2.isCloud = isCloud;
513
+ function isCloudName(name) {
514
+ return CLOUD_NAME.test(name);
515
+ }
516
+ TaLocation2.isCloudName = isCloudName;
517
+ function cloud(name, path2 = "") {
518
+ return `${TaLocation2.CLOUD}${name}${path2 ? normalize(path2) : ""}`;
519
+ }
520
+ TaLocation2.cloud = cloud;
521
+ function cloudName(hostOrLocation) {
522
+ if (!hostOrLocation.startsWith(TaLocation2.CLOUD)) {
523
+ return;
524
+ }
525
+ const rest = hostOrLocation.slice(TaLocation2.CLOUD.length);
526
+ const slash = rest.indexOf("/");
527
+ return slash < 0 ? rest : rest.slice(0, slash);
528
+ }
529
+ TaLocation2.cloudName = cloudName;
507
530
  function parse(location) {
531
+ var _a;
508
532
  if (!isRemote(location)) {
509
533
  return;
510
534
  }
535
+ if (location.startsWith(TaLocation2.CLOUD)) {
536
+ const name = (_a = cloudName(location)) !== null && _a !== undefined ? _a : "";
537
+ if (!isCloudName(name)) {
538
+ throw new Error(`${JSON.stringify(location)} names no cloud workspace: write ta://<name>/<path>.`);
539
+ }
540
+ const path3 = location.slice(TaLocation2.CLOUD.length + name.length);
541
+ return { host: `${TaLocation2.CLOUD}${name}`, path: path3 ? normalize(path3) : "" };
542
+ }
511
543
  const rest = location.slice(TaLocation2.SSH.length);
512
544
  const slash = rest.indexOf("/");
513
545
  const host2 = slash < 0 ? rest : rest.slice(0, slash);
@@ -519,7 +551,7 @@ var TaLocation;
519
551
  }
520
552
  TaLocation2.parse = parse;
521
553
  function isHost(host2) {
522
- return HOST.test(host2);
554
+ return isCloud(host2) ? isCloudName(host2.slice(TaLocation2.CLOUD.length)) : HOST.test(host2);
523
555
  }
524
556
  TaLocation2.isHost = isHost;
525
557
  const FLAGS = /^-[46AaCfGgKkMNnqsTtVvXxYy]+$/;
@@ -583,10 +615,13 @@ var TaLocation;
583
615
  }
584
616
  TaLocation2.readHost = readHost;
585
617
  function ssh(host2, path2 = "") {
586
- return `${TaLocation2.SSH}${host2}${path2 ? normalize(path2) : ""}`;
618
+ return isCloud(host2) ? `${host2}${path2 ? normalize(path2) : ""}` : `${TaLocation2.SSH}${host2}${path2 ? normalize(path2) : ""}`;
587
619
  }
588
620
  TaLocation2.ssh = ssh;
589
621
  function hostLabel(host2) {
622
+ if (isCloud(host2)) {
623
+ return host2.slice(TaLocation2.CLOUD.length);
624
+ }
590
625
  const name = host2.replace(/^[^@]*@/, "").replace(/^\[(.*)\](?::\d+)?$/, "$1").replace(/^([^:]*):\d+$/, "$1");
591
626
  return /^[\d.]+$/.test(name) || name.includes(":") ? name : name.split(".")[0] || name;
592
627
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-nearby",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: the other Ta around on the same network while you let them see you, known to Ta in your conversations, and rooms of those present made in a tap",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-notify",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: tells the user when a conversation needs them, failed or answered, while they look elsewhere, and lets Ta ask them to decide with answers to pick",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-plot",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: functions and curves of replies drawn as animated plots, with params to drag",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-recall",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: asks earlier conversations what was done, offers to keep a request asked again as an extension (steps, a card, a page), and writes a daily brief of what got done and what waits for the user",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-rooms",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: rooms shared with other Ta through the relay, end to end: who asks to join and the owner's answer, your rooms and their members, your Ta friends, and links that invite",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-share",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: share a conversation, a page or a file by a link, public, with a password or for yourself, end to end through the relay; open and import what others share",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-sync",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: the user's settings, instructions, skills, extensions and the data extensions declare, the same on each of their computers, through a room of the relay sealed end to end, without an account",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-sync-cloud",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: sync of the user's computers in storage of their own, a WebDAV server (Jianguoyun, Nextcloud, a NAS) a bucket of S3 (AWS, Cloudflare R2, MinIO) or a git repository, sealed, with no relay",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-team",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: people let into your Ta by a link, each with a role (admin, collaborator, viewer, guest, or one of your own), what they may do checked by the Ta service for every call and every tool, asking for more and the answers, and a record",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-workspace",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "A pi package for Ta: the workspace beside the conversation, with an explorer, open files, search, source control, terminals and a browser",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -6221,15 +6221,47 @@ var TaGatewayServer = Symbol("TaGatewayServer");
6221
6221
  var TaLocation;
6222
6222
  (function(TaLocation2) {
6223
6223
  TaLocation2.SSH = "ssh://";
6224
+ TaLocation2.CLOUD = "ta://";
6225
+ const CLOUD_NAME = /^[a-z0-9][a-z0-9-]{0,39}$/;
6224
6226
  const HOST = /^(?!-)[\w.@:%+[\]-]+$/;
6225
6227
  function isRemote(location2) {
6226
- return location2.startsWith(TaLocation2.SSH);
6228
+ return location2.startsWith(TaLocation2.SSH) || location2.startsWith(TaLocation2.CLOUD);
6227
6229
  }
6228
6230
  TaLocation2.isRemote = isRemote;
6231
+ function isCloud(host2) {
6232
+ return !!host2 && host2.startsWith(TaLocation2.CLOUD);
6233
+ }
6234
+ TaLocation2.isCloud = isCloud;
6235
+ function isCloudName(name) {
6236
+ return CLOUD_NAME.test(name);
6237
+ }
6238
+ TaLocation2.isCloudName = isCloudName;
6239
+ function cloud(name, path2 = "") {
6240
+ return `${TaLocation2.CLOUD}${name}${path2 ? normalize(path2) : ""}`;
6241
+ }
6242
+ TaLocation2.cloud = cloud;
6243
+ function cloudName(hostOrLocation) {
6244
+ if (!hostOrLocation.startsWith(TaLocation2.CLOUD)) {
6245
+ return;
6246
+ }
6247
+ const rest = hostOrLocation.slice(TaLocation2.CLOUD.length);
6248
+ const slash = rest.indexOf("/");
6249
+ return slash < 0 ? rest : rest.slice(0, slash);
6250
+ }
6251
+ TaLocation2.cloudName = cloudName;
6229
6252
  function parse(location2) {
6253
+ var _a;
6230
6254
  if (!isRemote(location2)) {
6231
6255
  return;
6232
6256
  }
6257
+ if (location2.startsWith(TaLocation2.CLOUD)) {
6258
+ const name = (_a = cloudName(location2)) !== null && _a !== undefined ? _a : "";
6259
+ if (!isCloudName(name)) {
6260
+ throw new Error(`${JSON.stringify(location2)} names no cloud workspace: write ta://<name>/<path>.`);
6261
+ }
6262
+ const path3 = location2.slice(TaLocation2.CLOUD.length + name.length);
6263
+ return { host: `${TaLocation2.CLOUD}${name}`, path: path3 ? normalize(path3) : "" };
6264
+ }
6233
6265
  const rest = location2.slice(TaLocation2.SSH.length);
6234
6266
  const slash = rest.indexOf("/");
6235
6267
  const host2 = slash < 0 ? rest : rest.slice(0, slash);
@@ -6241,7 +6273,7 @@ var TaLocation;
6241
6273
  }
6242
6274
  TaLocation2.parse = parse;
6243
6275
  function isHost(host2) {
6244
- return HOST.test(host2);
6276
+ return isCloud(host2) ? isCloudName(host2.slice(TaLocation2.CLOUD.length)) : HOST.test(host2);
6245
6277
  }
6246
6278
  TaLocation2.isHost = isHost;
6247
6279
  const FLAGS = /^-[46AaCfGgKkMNnqsTtVvXxYy]+$/;
@@ -6305,10 +6337,13 @@ var TaLocation;
6305
6337
  }
6306
6338
  TaLocation2.readHost = readHost;
6307
6339
  function ssh(host2, path2 = "") {
6308
- return `${TaLocation2.SSH}${host2}${path2 ? normalize(path2) : ""}`;
6340
+ return isCloud(host2) ? `${host2}${path2 ? normalize(path2) : ""}` : `${TaLocation2.SSH}${host2}${path2 ? normalize(path2) : ""}`;
6309
6341
  }
6310
6342
  TaLocation2.ssh = ssh;
6311
6343
  function hostLabel(host2) {
6344
+ if (isCloud(host2)) {
6345
+ return host2.slice(TaLocation2.CLOUD.length);
6346
+ }
6312
6347
  const name = host2.replace(/^[^@]*@/, "").replace(/^\[(.*)\](?::\d+)?$/, "$1").replace(/^([^:]*):\d+$/, "$1");
6313
6348
  return /^[\d.]+$/.test(name) || name.includes(":") ? name : name.split(".")[0] || name;
6314
6349
  }
@@ -1 +1 @@
1
- import{n as e,r as t,t as n}from"./chunk-OY52VR5R-DFOG8j6z.js";import{t as r}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BMuvs7us.js";import"./chunk-BG4553SI-CkUi_vD5.js";import{n as i}from"./d3-selection-DsahLieG.js";import{n as a}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as o,t as s}from"./mermaid-parser.core-Scb01iBq.js";var c=o().RailroadAbnf.parser.LangiumParser,l=a(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=a(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=a(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=a(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=a(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=a(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=a(e=>{r(e,n),e.title&&n.setTitle(e.title),e.rules.map(e=>n.addRule(m(e)))},`populateDb`),g={parser:{parse:a(e=>{n.clear(),i.debug(`[ABNF Parser] Starting Langium parse`);let t=c.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new s(t);let r=t.value;i.debug(`[ABNF Parser] Parsed rules:`,r.rules.length),h(r),i.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:n}},db:n,renderer:t,styles:e};export{g as diagram};
1
+ import{n as e,r as t,t as n}from"./chunk-OY52VR5R-O9W83Laa.js";import{t as r}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-Bx-e_Scq.js";import"./chunk-BG4553SI-DUCV_pmW.js";import{n as i}from"./d3-selection-C8RIDfkO.js";import{n as a}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as o,t as s}from"./mermaid-parser.core-CquzROwT.js";var c=o().RailroadAbnf.parser.LangiumParser,l=a(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=a(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=a(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=a(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=a(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=a(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=a(e=>{r(e,n),e.title&&n.setTitle(e.title),e.rules.map(e=>n.addRule(m(e)))},`populateDb`),g={parser:{parse:a(e=>{n.clear(),i.debug(`[ABNF Parser] Starting Langium parse`);let t=c.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new s(t);let r=t.value;i.debug(`[ABNF Parser] Parsed rules:`,r.rules.length),h(r),i.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:n}},db:n,renderer:t,styles:e};export{g as diagram};
@@ -1 +1 @@
1
- export{M as createArchitectureServices}from"./mermaid-parser.core-Scb01iBq.js";import"./chunk-NGNAAXSQ-Bxuf9Ivc.js";
1
+ export{M as createArchitectureServices}from"./mermaid-parser.core-CquzROwT.js";import"./chunk-NGNAAXSQ-Bxuf9Ivc.js";