fnloom 0.4.0 → 0.4.1

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 (132) hide show
  1. package/package.json +13 -13
  2. package/packages/build/package.json +2 -2
  3. package/packages/cli/package.json +1 -1
  4. package/packages/core/package.json +4 -4
  5. package/packages/core/src/gin-a.ts +13 -2
  6. package/packages/hub/package.json +13 -13
  7. package/packages/hub/src/api/store-ops.ts +9 -2
  8. package/packages/hub/src/catalog/catalog.ts +3 -2
  9. package/packages/sdk/package.json +8 -8
  10. package/packages/sdk/src/server/llm-wire.ts +50 -1
  11. package/packages/web/dist/assets/{ActorSettingsView-CDszUbHz.js → ActorSettingsView-CiWhrnP4.js} +2 -2
  12. package/packages/web/dist/assets/{AdminLayout-CFIz4GsQ.js → AdminLayout-CjVNzmYD.js} +2 -2
  13. package/packages/web/dist/assets/{AppPage-BvoVTk6h.js → AppPage-D_kkUatv.js} +2 -2
  14. package/packages/web/dist/assets/{AutoPairPicker-CLjD-muP.js → AutoPairPicker-BdCHi7dL.js} +2 -2
  15. package/packages/web/dist/assets/{BrowserFrame-BcN-A76X.js → BrowserFrame-CVQvfCB8.js} +2 -2
  16. package/packages/web/dist/assets/{ChatPage-DhTpAyM2.js → ChatPage-CPZJ8ya6.js} +2 -2
  17. package/packages/web/dist/assets/{CodeViewer-K9jrTmFO.js → CodeViewer-DzWZyAp4.js} +2 -2
  18. package/packages/web/dist/assets/{ConfigWithCustom-BvrvSVIp.js → ConfigWithCustom-C49loznj.js} +3 -3
  19. package/packages/web/dist/assets/{ConfirmDialog-BDvLleYf.js → ConfirmDialog-BtugUGEY.js} +2 -2
  20. package/packages/web/dist/assets/{ConnectPage-Dg6IPNNh.js → ConnectPage-D8k2nSdX.js} +2 -2
  21. package/packages/web/dist/assets/{ContextItemPage-qisBQetR.js → ContextItemPage-DC4FGi8V.js} +2 -2
  22. package/packages/web/dist/assets/{ContextPage-DXa6Yqk-.js → ContextPage-MlEkKMq0.js} +2 -2
  23. package/packages/web/dist/assets/{ContextRow-DDYnYRaL.js → ContextRow-BN26Di1B.js} +2 -2
  24. package/packages/web/dist/assets/{DataPage-DOE_pKAY.js → DataPage-CvOYkEkS.js} +2 -2
  25. package/packages/web/dist/assets/{DataTypePage-BnP_JELT.js → DataTypePage-CDEL6BHp.js} +2 -2
  26. package/packages/web/dist/assets/{DesignPage-B9MJbF10.js → DesignPage-D-MsKLuP.js} +2 -2
  27. package/packages/web/dist/assets/{ExplorePage-cRDQZRea.js → ExplorePage-CNQpEe_8.js} +2 -2
  28. package/packages/web/dist/assets/{FnPill-CbLZCXYM.js → FnPill-Dm5mmffj.js} +2 -2
  29. package/packages/web/dist/assets/{FnView-CG_wBKTP.js → FnView-oiIU5vka.js} +2 -2
  30. package/packages/web/dist/assets/{FnsView-BybyK12w.js → FnsView-DgIfza4W.js} +2 -2
  31. package/packages/web/dist/assets/{GinExprView-BYCKSD_n.js → GinExprView-C19g0UgI.js} +2 -2
  32. package/packages/web/dist/assets/{GinForm-CXjYVf2_.js → GinForm-p7UsKQ3s.js} +2 -2
  33. package/packages/web/dist/assets/{GinTypeView-Bmbmx9e_.js → GinTypeView-DvdHc0V4.js} +2 -2
  34. package/packages/web/dist/assets/{GinValueView-CWUzS7ti.js → GinValueView-D6c7E4C_.js} +2 -2
  35. package/packages/web/dist/assets/{GraphPage-D6OhckfJ.js → GraphPage-BTamx4d-.js} +2 -2
  36. package/packages/web/dist/assets/{GraphPanel-BTitgA-K.js → GraphPanel-DKpbijQD.js} +2 -2
  37. package/packages/web/dist/assets/{HubPicker-DVly8dLD.js → HubPicker-DfXIcUz1.js} +2 -2
  38. package/packages/web/dist/assets/{InboxApprovals-BF84edZU.js → InboxApprovals-B9qwPCHR.js} +2 -2
  39. package/packages/web/dist/assets/{InboxPage-DohZ9EDP.js → InboxPage-j2lF00uW.js} +2 -2
  40. package/packages/web/dist/assets/{InjectedList-e6qr1kdU.js → InjectedList-BTGvy8GB.js} +2 -2
  41. package/packages/web/dist/assets/{InstallDialog-JJCKYs2s.js → InstallDialog-BRJXLSMJ.js} +2 -2
  42. package/packages/web/dist/assets/{InstanceTypes-BqUzx87o.js → InstanceTypes-DYdolFFW.js} +2 -2
  43. package/packages/web/dist/assets/{InstanceView-C73pev7A.js → InstanceView-C5dJLBPe.js} +2 -2
  44. package/packages/web/dist/assets/{ItemHistory-dbGgOZsw.js → ItemHistory-vsyIMjIX.js} +2 -2
  45. package/packages/web/dist/assets/{LimitsView-Ddp5WakY.js → LimitsView-BtbQzkX1.js} +2 -2
  46. package/packages/web/dist/assets/{ListSearch-CYNNAuMB.js → ListSearch-BdVW9FHD.js} +2 -2
  47. package/packages/web/dist/assets/{LlmCallDetails-C9H5Hc2J.js → LlmCallDetails-Cd7qtybU.js} +2 -2
  48. package/packages/web/dist/assets/{LlmCallsView-CBqyZ8Cj.js → LlmCallsView-CrZB_I1H.js} +2 -2
  49. package/packages/web/dist/assets/{LoadState-B2YhZlyC.js → LoadState-8UknKQ6e.js} +2 -2
  50. package/packages/web/dist/assets/{McpDialog-DhlLklIq.js → McpDialog-r-qJDHOO.js} +2 -2
  51. package/packages/web/dist/assets/{McpView-D_ZmNO56.js → McpView-FeDQWGxu.js} +2 -2
  52. package/packages/web/dist/assets/{McpsView-9_gwBuzw.js → McpsView-Czd2yUdE.js} +2 -2
  53. package/packages/web/dist/assets/{MemoryDialog-pTHIxKEX.js → MemoryDialog-DDiT6wO1.js} +2 -2
  54. package/packages/web/dist/assets/{ModelCallsView-FHv2XWRX.js → ModelCallsView-DsdztwCR.js} +2 -2
  55. package/packages/web/dist/assets/{ModelPicker-EqOuvVnE.js → ModelPicker-Df_3l8nS.js} +2 -2
  56. package/packages/web/dist/assets/{ModelsView-D9UaL4PX.js → ModelsView-YXwRDgWv.js} +2 -2
  57. package/packages/web/dist/assets/{NotFoundPage-BsuJysan.js → NotFoundPage-DDEOlB6B.js} +2 -2
  58. package/packages/web/dist/assets/{PairPage-B_ZXsbL4.js → PairPage-D3uHAkh1.js} +2 -2
  59. package/packages/web/dist/assets/{PanelHost-Dx-vNNl5.js → PanelHost-BzWYqH39.js} +2 -2
  60. package/packages/web/dist/assets/{PeopleView-D6dmEgMs.js → PeopleView-Cg9RO5SF.js} +2 -2
  61. package/packages/web/dist/assets/{PoliciesView-Bn4rm-ao.js → PoliciesView-BoshL7RQ.js} +2 -2
  62. package/packages/web/dist/assets/{RefusalList-aosRD1ie.js → RefusalList-DnLIfmi-.js} +2 -2
  63. package/packages/web/dist/assets/{RendererHost-rjnpSgyQ.js → RendererHost-CmkaVEX0.js} +2 -2
  64. package/packages/web/dist/assets/{ResourceViewer-C4tRColf.js → ResourceViewer-CSAY6xIs.js} +2 -2
  65. package/packages/web/dist/assets/{ResourcesPage-7mCLBORZ.js → ResourcesPage-DAoa9mDs.js} +2 -2
  66. package/packages/web/dist/assets/{ResultGrid-GIMoQUAr.js → ResultGrid-DSyc0btv.js} +2 -2
  67. package/packages/web/dist/assets/{ReviewSummaryStrip-Bvjn3Iq8.js → ReviewSummaryStrip-Bzy-KGz_.js} +2 -2
  68. package/packages/web/dist/assets/{ReviewView-DIqsUedT.js → ReviewView-Cwq8Az_B.js} +2 -2
  69. package/packages/web/dist/assets/{RuleRow-zRg-e8Vj.js → RuleRow-DAvl2m9p.js} +2 -2
  70. package/packages/web/dist/assets/{RunCard-C7wOGaw8.js → RunCard-BMyRkKxJ.js} +2 -2
  71. package/packages/web/dist/assets/{RunDetails-W4GbE6AE.js → RunDetails-Bvyr1HYK.js} +2 -2
  72. package/packages/web/dist/assets/{RunDot-C46uzzNM.js → RunDot-Lfrt5XR3.js} +2 -2
  73. package/packages/web/dist/assets/{RunPage-DPLtZpeB.js → RunPage-C0-wY6Uz.js} +2 -2
  74. package/packages/web/dist/assets/{RunProgress-Cr_6TBaF.js → RunProgress-BbzwzrTK.js} +2 -2
  75. package/packages/web/dist/assets/{RunsView-tU350TPK.js → RunsView-so-UV2Cq.js} +2 -2
  76. package/packages/web/dist/assets/{SettingsPage-B8QmmMN3.js → SettingsPage-B4SQLk09.js} +2 -2
  77. package/packages/web/dist/assets/{SignInPage-DTwdqlnB.js → SignInPage-Ck-v3eH0.js} +2 -2
  78. package/packages/web/dist/assets/{StatusBadge-D7wKMAcD.js → StatusBadge-C4NawPsO.js} +2 -2
  79. package/packages/web/dist/assets/{StorePlacementStep-C04nRU-u.js → StorePlacementStep-DjLWeQF9.js} +2 -2
  80. package/packages/web/dist/assets/{SystemConfig-CE3keXWq.js → SystemConfig-B5C5B3b0.js} +2 -2
  81. package/packages/web/dist/assets/{SystemPageHost-CEhz4li8.js → SystemPageHost-DoyQlhKM.js} +2 -2
  82. package/packages/web/dist/assets/{SystemView-CBFzEGfm.js → SystemView-CTdpay8I.js} +2 -2
  83. package/packages/web/dist/assets/{SystemsView-0G8JntMV.js → SystemsView-Cnv2moRw.js} +2 -2
  84. package/packages/web/dist/assets/{TableView-BK0uwLHl.js → TableView-BK_95qHT.js} +3 -3
  85. package/packages/web/dist/assets/{TableViewer-nbMInGJJ.js → TableViewer-CRsIxdku.js} +2 -2
  86. package/packages/web/dist/assets/{ThemePicker-fZpVSYqG.js → ThemePicker-BlW7qvUd.js} +2 -2
  87. package/packages/web/dist/assets/{TurnTree-Co-iBqhT.js → TurnTree-D6OYRutQ.js} +2 -2
  88. package/packages/web/dist/assets/{UserMessage-CDjUxKY0.js → UserMessage-DJH2bXqv.js} +2 -2
  89. package/packages/web/dist/assets/{ValueVisual-EJnCKgSy.js → ValueVisual-BJUrdkHO.js} +2 -2
  90. package/packages/web/dist/assets/{fn-modal-DtE65mFt.js → fn-modal-DFtN7Kn-.js} +2 -2
  91. package/packages/web/dist/assets/{fn-notices-CCZ-DFbi.js → fn-notices-C8HXeo7m.js} +2 -2
  92. package/packages/web/dist/assets/{formats-CyHV2siv.js → formats-CHSYhY4X.js} +2 -2
  93. package/packages/web/dist/assets/{index-OZS2EluT.js → index-Uz-h2M5K.js} +3 -3
  94. package/packages/web/dist/assets/{labels-CT7_K0Pt.js → labels-DkV96Md_.js} +2 -2
  95. package/packages/web/dist/assets/{layout-B6fBDg80.js → layout-CTAHAwIH.js} +2 -2
  96. package/packages/web/dist/assets/{loaded-LaPjk6mK.js → loaded-BrwmsuZY.js} +2 -2
  97. package/packages/web/dist/assets/{metrics-9n8bKI7u.js → metrics-BBvD6KSk.js} +2 -2
  98. package/packages/web/dist/assets/{problems--AW4igVY.js → problems-CI9huk1n.js} +2 -2
  99. package/packages/web/dist/assets/{push-payload-B3EcrsVz.js → push-payload-C1ppI5V2.js} +61 -61
  100. package/packages/web/dist/assets/{record-edits-B-FWAbxR.js → record-edits-DFJBcNnL.js} +2 -2
  101. package/packages/web/dist/assets/{review-uLESCEz1.js → review-DlP8FQiO.js} +2 -2
  102. package/packages/web/dist/assets/{routes-B7Zmt8wh.js → routes-oIISbS5Z.js} +4 -4
  103. package/packages/web/dist/assets/{runs-CUb2PTFg.js → runs-BWVBevgu.js} +2 -2
  104. package/packages/web/dist/assets/{shared-Bxhw_9et.js → shared-Bc4GJbiE.js} +2 -2
  105. package/packages/web/dist/assets/{sources-YgkjgFLe.js → sources-gONU9kk2.js} +2 -2
  106. package/packages/web/dist/assets/{src-DY1fSFJS.js → src-ClMFVauH.js} +2 -2
  107. package/packages/web/dist/assets/{state-ChQDWWj-.js → state-BQlvjJzT.js} +2 -2
  108. package/packages/web/dist/assets/{systems-CjwjRySu.js → systems-Dt01wDhP.js} +2 -2
  109. package/packages/web/dist/assets/{table-host-B_D9dmCz.js → table-host-BvEY0Zxn.js} +2 -2
  110. package/packages/web/dist/assets/{tables-CaxIuHdw.js → tables-CkqGZ0Yq.js} +2 -2
  111. package/packages/web/dist/assets/{ui-DWjytmDS.js → ui-CjoSgSyZ.js} +2 -2
  112. package/packages/web/dist/assets/{url-DbGOI14W.js → url-Deh5u3O5.js} +2 -2
  113. package/packages/web/dist/index.html +40 -40
  114. package/packages/web/dist/sw.js +1 -1
  115. package/packages/web/package.json +2 -2
  116. package/premade/claude.zip +0 -0
  117. package/premade/database.zip +0 -0
  118. package/premade/web.zip +0 -0
  119. package/systems/api/package.json +3 -3
  120. package/systems/code/package.json +3 -3
  121. package/systems/embedder/package.json +1 -1
  122. package/systems/fs/client/machines/files/CommentComposer.vue +6 -3
  123. package/systems/fs/client/machines/files/FilePane.vue +2 -2
  124. package/systems/fs/package.json +3 -3
  125. package/systems/fs/server/metrics/os.ts +50 -29
  126. package/systems/google-calendar/package.json +1 -1
  127. package/systems/input/package.json +3 -3
  128. package/systems/mcp/package.json +3 -3
  129. package/systems/ollama/package.json +3 -3
  130. package/systems/schedule/package.json +3 -3
  131. package/systems/template/package.json +1 -1
  132. package/systems/widgets/package.json +3 -3
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,o as n,s as r,t as i}from"./assets/push-payload-B3EcrsVz.js";var a=`harness-offline-v1`,o=[`/offline.html`];async function s(e,t){try{return await e()}catch{return t()}}self.addEventListener(`install`,e=>{e.waitUntil((async()=>{await(await caches.open(a)).addAll([...o]),await self.skipWaiting()})())}),self.addEventListener(`activate`,e=>{e.waitUntil((async()=>{for(let e of await caches.keys())e!==`harness-offline-v1`&&await caches.delete(e);await self.clients.claim()})())}),self.addEventListener(`fetch`,e=>{e.request.mode===`navigate`&&e.request.method===`GET`&&e.respondWith(s(()=>fetch(e.request),async()=>await caches.match(`/offline.html`,{cacheName:`harness-offline-v1`})??Response.error()))}),self.addEventListener(`push`,e=>{let a=t.safeParse(e.data?.json());if(!a.success)return;let o=a.data,s={body:o.body,tag:n(o),icon:`/icons/icon-192.png`,data:r(o),...o.key===void 0?{}:{renotify:!0},...o.also===void 0?{}:{actions:[{action:i,title:o.also.label}]}};e.waitUntil(self.registration.showNotification(o.title,s))}),self.addEventListener(`notificationclick`,t=>{t.notification.close();let n=e(t.notification.data,t.action);t.waitUntil((async()=>{let e=(await self.clients.matchAll({type:`window`,includeUncontrolled:!0}))[0];e===void 0?await self.clients.openWindow(n):(await e.navigate(n),await e.focus())})())});
1
+ import{a as e,i as t,o as n,s as r,t as i}from"./assets/push-payload-C1ppI5V2.js";var a=`harness-offline-v1`,o=[`/offline.html`];async function s(e,t){try{return await e()}catch{return t()}}self.addEventListener(`install`,e=>{e.waitUntil((async()=>{await(await caches.open(a)).addAll([...o]),await self.skipWaiting()})())}),self.addEventListener(`activate`,e=>{e.waitUntil((async()=>{for(let e of await caches.keys())e!==`harness-offline-v1`&&await caches.delete(e);await self.clients.claim()})())}),self.addEventListener(`fetch`,e=>{e.request.mode===`navigate`&&e.request.method===`GET`&&e.respondWith(s(()=>fetch(e.request),async()=>await caches.match(`/offline.html`,{cacheName:`harness-offline-v1`})??Response.error()))}),self.addEventListener(`push`,e=>{let a=t.safeParse(e.data?.json());if(!a.success)return;let o=a.data,s={body:o.body,tag:n(o),icon:`/icons/icon-192.png`,data:r(o),...o.key===void 0?{}:{renotify:!0},...o.also===void 0?{}:{actions:[{action:i,title:o.also.label}]}};e.waitUntil(self.registration.showNotification(o.title,s))}),self.addEventListener(`notificationclick`,t=>{t.notification.close();let n=e(t.notification.data,t.action);t.waitUntil((async()=>{let e=(await self.clients.matchAll({type:`window`,includeUncontrolled:!0}))[0];e===void 0?await self.clients.openWindow(n):(await e.navigate(n),await e.focus())})())});
2
2
  //# sourceMappingURL=sw.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/resources": "^0.11.1",
3
+ "@aeye/resources": "^0.11.2",
4
4
  "@ayepi/core": "^0.6.0",
5
5
  "@ayepi/env": "^0.6.0",
6
6
  "@harness/core": "*",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "name": "@harness/web",
18
18
  "private": true,
19
- "version": "0.4.0",
19
+ "version": "0.4.1",
20
20
  "license": "Apache-2.0",
21
21
  "type": "module",
22
22
  "description": "The chat and admin web app: Vue 3, vue-router, ayepi client callers."
Binary file
Binary file
package/premade/web.zip CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/gin": "^0.11.1",
4
- "@aeye/schema": "^0.11.1",
3
+ "@aeye/gin": "^0.11.2",
4
+ "@aeye/schema": "^0.11.2",
5
5
  "@ayepi/env": "^0.6.0",
6
6
  "@harness/core": "*",
7
7
  "@harness/sdk": "*",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "name": "@harness/system-api",
12
12
  "private": true,
13
- "version": "0.4.0",
13
+ "version": "0.4.1",
14
14
  "license": "Apache-2.0",
15
15
  "type": "module",
16
16
  "description": "Development only: system.json holds this system's name, version and entries. Its client draws the API services admin page (/admin/s/api/services).",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/gin": "^0.11.1",
4
- "@aeye/schema": "^0.11.1",
3
+ "@aeye/gin": "^0.11.2",
4
+ "@aeye/schema": "^0.11.2",
5
5
  "@ayepi/env": "^0.6.0",
6
6
  "@harness/core": "*",
7
7
  "@harness/sdk": "*",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "name": "@harness/system-code",
11
11
  "private": true,
12
- "version": "0.4.0",
12
+ "version": "0.4.1",
13
13
  "license": "Apache-2.0",
14
14
  "type": "module",
15
15
  "description": "Development only: system.json holds this system's name, version and entries. Build 9 skeleton (codeapi lane).",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "name": "@harness/system-embedder",
10
10
  "private": true,
11
- "version": "0.4.0",
11
+ "version": "0.4.1",
12
12
  "license": "Apache-2.0",
13
13
  "type": "module",
14
14
  "description": "The embedder system: product's EmbeddingGemma service (768 dimensions) as a harness embedder.",
@@ -10,7 +10,10 @@ import type { PhotoData } from './api.ts';
10
10
  import { shrinkPhoto } from './ink.ts';
11
11
  import { useFiles } from './state.ts';
12
12
 
13
- const props = defineProps<{ title: string; quote?: string | undefined; busy?: boolean; placeholder?: string; photos?: boolean }>();
13
+ /** `photos` is on unless turned off: every comment box takes photos (the file's and a marked area's). */
14
+ const props = withDefaults(defineProps<{ title: string; quote?: string | undefined; busy?: boolean; placeholder?: string; photos?: boolean }>(), {
15
+ quote: undefined, placeholder: 'What should change, or what do you want to know?', photos: true,
16
+ });
14
17
  const emit = defineEmits<{ submit: [{ body: string; photos: PhotoData[] }]; cancel: [] }>();
15
18
  const { ui, host } = useFiles();
16
19
 
@@ -51,7 +54,7 @@ function keys(event: KeyboardEvent): void {
51
54
  <form class="composer" @submit.prevent="send" @keydown="keys">
52
55
  <p class="title">{{ title }}</p>
53
56
  <pre v-if="quote" class="quote">{{ quote }}</pre>
54
- <component :is="ui.Textarea" v-model="body" label="Comment" hide-label :placeholder="placeholder ?? 'What should change, or what do you want to know?'" :rows="3" :max-rows="12" />
57
+ <component :is="ui.Textarea" v-model="body" label="Comment" hide-label :placeholder="placeholder" :rows="3" :max-rows="12" />
55
58
  <div v-if="picked.length > 0" class="thumbs">
56
59
  <span v-for="(photo, i) in picked" :key="i" class="thumb">
57
60
  <img :src="photo.url" alt="A photo to send" />
@@ -59,7 +62,7 @@ function keys(event: KeyboardEvent): void {
59
62
  </span>
60
63
  </div>
61
64
  <div class="actions">
62
- <label v-if="photos !== false && room > 0" class="photo">
65
+ <label v-if="photos && room > 0" class="photo">
63
66
  <component :is="ui.Icon" name="image" :size="16" />
64
67
  <span>{{ reading ? 'Adding…' : 'Photo' }}</span>
65
68
  <input type="file" accept="image/*" multiple hidden @change="pick" />
@@ -31,6 +31,8 @@ const viewer = computed(() => (file.value === undefined ? undefined : viewerFor(
31
31
  /** The bytes' URL, for a kind drawn from them (a picture, a recording, a pdf). */
32
32
  const url = ref<string | undefined>(undefined);
33
33
  const urlProblem = ref('');
34
+ /** What a new comment is on: lines or selected text, or the whole file (declared before the watch, which clears it). */
35
+ const draft = ref<{ line?: number; endLine?: number; quote?: string; selected?: boolean } | undefined>(undefined);
34
36
  /** The working-tree diff, for change bars and the Changes tab. */
35
37
  const diff = ref<FileDiff | undefined>(undefined);
36
38
  watch(file, async (now, before) => {
@@ -50,8 +52,6 @@ const marked = computed(() => new Set(grouped.value.byLine.keys()));
50
52
  /** Comments on pictures, numbered as their pins are. */
51
53
  const areaNumbers = computed(() => new Map(comments.value.filter((c) => c.strokes !== undefined).map((c, i) => [c.id, i + 1])));
52
54
 
53
- /** What a new comment is on: lines or selected text, or the whole file. */
54
- const draft = ref<{ line?: number; endLine?: number; quote?: string; selected?: boolean } | undefined>(undefined);
55
55
  const busy = ref(false);
56
56
  const draftTitle = computed(() => (draft.value?.line === undefined ? 'Comment on this file' : `Comment on ${placeOf({ line: draft.value.line, endLine: draft.value.endLine, selected: draft.value.selected }).toLowerCase()}`));
57
57
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/resources": "^0.11.1",
4
- "@aeye/schema": "^0.11.1",
3
+ "@aeye/resources": "^0.11.2",
4
+ "@aeye/schema": "^0.11.2",
5
5
  "@ayepi/env": "^0.6.0",
6
6
  "@harness/build": "*",
7
7
  "@harness/core": "*",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "name": "@harness/system-fs",
20
20
  "private": true,
21
- "version": "0.4.0",
21
+ "version": "0.4.1",
22
22
  "license": "Apache-2.0",
23
23
  "type": "module",
24
24
  "description": "The fs system: files and a shell over chosen folders, served as resources. Can restart itself.",
@@ -100,45 +100,66 @@ export class NodeMachineOs implements MachineOs {
100
100
  }
101
101
 
102
102
  powershell(script: string): Asker | undefined {
103
- let child: ChildProcess;
104
- try {
105
- // the script goes in -EncodedCommand, so stdin is ours: each line written asks for an answer
106
- child = spawn('powershell.exe', ['-NoLogo', '-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Bypass', '-EncodedCommand', Buffer.from(script, 'utf16le').toString('base64')], {
107
- windowsHide: true, stdio: ['pipe', 'pipe', 'ignore'],
108
- });
109
- } catch {
110
- return undefined;
111
- }
112
- let lines: string[] = [];
113
- let waiting: { end: string; done: (lines: string[]) => void } | undefined;
114
- let exited = false;
115
- child.on('error', () => undefined);
116
- child.on('exit', () => { exited = true; waiting?.done([]); waiting = undefined; });
117
- if (child.stdout !== null) {
118
- createInterface({ input: child.stdout }).on('line', (line) => {
119
- if (waiting !== undefined && line === waiting.end) {
120
- const answer = lines;
121
- lines = [];
122
- const { done } = waiting;
123
- waiting = undefined;
124
- done(answer);
125
- } else { lines.push(line); }
126
- });
103
+ // the script goes in -EncodedCommand, so stdin is ours: each line written asks for an answer
104
+ const args = ['-NoLogo', '-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Bypass', '-EncodedCommand', Buffer.from(script, 'utf16le').toString('base64')];
105
+ /** One PowerShell process: what it has printed since the last answer, and the question waiting on it. */
106
+ interface Session {
107
+ readonly child: ChildProcess;
108
+ lines: string[];
109
+ waiting: { end: string; done: (lines: string[]) => void } | undefined;
110
+ exited: boolean;
127
111
  }
112
+ const start = (): Session | undefined => {
113
+ let child: ChildProcess;
114
+ try {
115
+ child = spawn('powershell.exe', args, { windowsHide: true, stdio: ['pipe', 'pipe', 'ignore'] });
116
+ } catch {
117
+ return undefined;
118
+ }
119
+ const session: Session = { child, lines: [], waiting: undefined, exited: false };
120
+ child.on('error', () => undefined);
121
+ child.stdin?.on('error', () => undefined);
122
+ child.on('exit', () => { session.exited = true; session.waiting?.done([]); session.waiting = undefined; });
123
+ if (child.stdout !== null) {
124
+ createInterface({ input: child.stdout }).on('line', (line) => {
125
+ if (session.waiting !== undefined && line === session.waiting.end) {
126
+ const answer = session.lines;
127
+ session.lines = [];
128
+ const { done } = session.waiting;
129
+ session.waiting = undefined;
130
+ done(answer);
131
+ } else { session.lines.push(line); }
132
+ });
133
+ }
134
+ return session;
135
+ };
136
+ let session = start();
137
+ if (session === undefined) { return undefined; }
138
+ let stopped = false;
128
139
  // one question at a time: each waits for the one before it
129
140
  let queue: Promise<unknown> = Promise.resolve();
130
141
  return {
131
142
  ask: (line, end, timeout) => {
132
143
  const asked = queue.then(() => new Promise<string[]>((resolve) => {
133
- if (exited) { resolve([]); return; }
134
- const timer = setTimeout(() => { waiting = undefined; lines = []; resolve([]); }, timeout);
135
- waiting = { end, done: (answer) => { clearTimeout(timer); resolve(answer); } };
136
- child.stdin?.write(`${line}\r\n`);
144
+ if (stopped) { resolve([]); return; }
145
+ // a question that timed out took its PowerShell with it (its late answer can't be told from the next one's,
146
+ // and it may be stuck), so this one starts a fresh PowerShell
147
+ if (session === undefined || session.exited) { session = start(); }
148
+ const now = session;
149
+ if (now === undefined) { resolve([]); return; }
150
+ const timer = setTimeout(() => {
151
+ now.waiting = undefined;
152
+ now.exited = true;
153
+ now.child.kill();
154
+ resolve([]);
155
+ }, timeout);
156
+ now.waiting = { end, done: (answer) => { clearTimeout(timer); resolve(answer); } };
157
+ now.child.stdin?.write(`${line}\r\n`);
137
158
  }));
138
159
  queue = asked.catch(() => undefined);
139
160
  return asked;
140
161
  },
141
- stop: () => { child.kill(); },
162
+ stop: () => { stopped = true; session?.child.kill(); },
142
163
  };
143
164
  }
144
165
  }
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "name": "@harness/system-google-calendar",
9
9
  "private": true,
10
- "version": "0.4.0",
10
+ "version": "0.4.1",
11
11
  "license": "Apache-2.0",
12
12
  "type": "module",
13
13
  "description": "Development only: system.json holds this system's name, version and entries.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/gin": "^0.11.1",
4
- "@aeye/schema": "^0.11.1",
3
+ "@aeye/gin": "^0.11.2",
4
+ "@aeye/schema": "^0.11.2",
5
5
  "@ayepi/env": "^0.6.0",
6
6
  "@harness/core": "*",
7
7
  "@harness/sdk": "*",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "name": "@harness/system-input",
12
12
  "private": true,
13
- "version": "0.4.0",
13
+ "version": "0.4.1",
14
14
  "license": "Apache-2.0",
15
15
  "type": "module",
16
16
  "description": "Development only: system.json holds this system's name, version and entries.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/gin": "^0.11.1",
4
- "@aeye/schema": "^0.11.1",
3
+ "@aeye/gin": "^0.11.2",
4
+ "@aeye/schema": "^0.11.2",
5
5
  "@ayepi/env": "^0.6.0",
6
6
  "@ayepi/mcp": "^0.6.0",
7
7
  "@harness/core": "*",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "name": "@harness/system-mcp",
13
13
  "private": true,
14
- "version": "0.4.0",
14
+ "version": "0.4.1",
15
15
  "license": "Apache-2.0",
16
16
  "type": "module",
17
17
  "description": "Development only: system.json holds this system's name, version and entries. Its client draws the MCP servers admin page (/admin/s/mcp/servers).",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/ai": "^0.11.1",
4
- "@aeye/ollama": "^0.11.1",
3
+ "@aeye/ai": "^0.11.2",
4
+ "@aeye/ollama": "^0.11.2",
5
5
  "@ayepi/env": "^0.6.0",
6
6
  "@harness/core": "*",
7
7
  "@harness/sdk": "*",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "name": "@harness/system-ollama",
12
12
  "private": true,
13
- "version": "0.4.0",
13
+ "version": "0.4.1",
14
14
  "license": "Apache-2.0",
15
15
  "type": "module",
16
16
  "description": "Development only: system.json holds this system's name, version and entries.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/gin": "^0.11.1",
4
- "@aeye/schema": "^0.11.1",
3
+ "@aeye/gin": "^0.11.2",
4
+ "@aeye/schema": "^0.11.2",
5
5
  "@ayepi/core": "^0.6.0",
6
6
  "@ayepi/env": "^0.6.0",
7
7
  "@ayepi/work": "^0.6.0",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "name": "@harness/system-schedule",
16
16
  "private": true,
17
- "version": "0.4.0",
17
+ "version": "0.4.1",
18
18
  "license": "Apache-2.0",
19
19
  "type": "module",
20
20
  "description": "Development only: system.json holds this system's name, version and entries.",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "name": "@harness/system-template",
10
10
  "private": true,
11
- "version": "0.4.0",
11
+ "version": "0.4.1",
12
12
  "license": "Apache-2.0",
13
13
  "type": "module",
14
14
  "description": "Development only: system.json holds this system's name, version and entries.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@aeye/gin": "^0.11.1",
4
- "@aeye/schema": "^0.11.1",
3
+ "@aeye/gin": "^0.11.2",
4
+ "@aeye/schema": "^0.11.2",
5
5
  "@ayepi/core": "^0.6.0",
6
6
  "@ayepi/env": "^0.6.0",
7
7
  "@harness/core": "*",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "name": "@harness/system-widgets",
15
15
  "private": true,
16
- "version": "0.4.0",
16
+ "version": "0.4.1",
17
17
  "license": "Apache-2.0",
18
18
  "type": "module",
19
19
  "description": "Development only: system.json holds this system's name, version and entries.",