@lotics/cli 0.52.0 → 0.52.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.
@@ -8,9 +8,11 @@
8
8
  * wrapper (different port), so the app gets its own real origin (and Web
9
9
  * Storage) without being able to reach the wrapper. `allow-downloads` lets
10
10
  * apps trigger file downloads (generated xlsx / pdf etc.) — Chrome blocks
11
- * every download path from sandboxed iframes without it. `allow="...; geolocation"`
12
- * delegates the host's location permission to the app so geofenced actions can
13
- * read the device position matching production. The iframe sends postMessage RPCs to
11
+ * every download path from sandboxed iframes without it. `allow="...; geolocation;
12
+ * web-share"` delegates the host's location permission (geofenced actions read the
13
+ * device position) and grants the Web Share API (apps call `navigator.share({ files })`
14
+ * to push e.g. container photos to the OS share sheet / gallery) — matching
15
+ * production. The iframe sends postMessage RPCs to
14
16
  * this wrapper, which forwards them to the local /_rpc endpoint, which
15
17
  * dispatches to api.lotics.ai with the CLI's API key.
16
18
  *
@@ -8,9 +8,11 @@
8
8
  * wrapper (different port), so the app gets its own real origin (and Web
9
9
  * Storage) without being able to reach the wrapper. `allow-downloads` lets
10
10
  * apps trigger file downloads (generated xlsx / pdf etc.) — Chrome blocks
11
- * every download path from sandboxed iframes without it. `allow="...; geolocation"`
12
- * delegates the host's location permission to the app so geofenced actions can
13
- * read the device position matching production. The iframe sends postMessage RPCs to
11
+ * every download path from sandboxed iframes without it. `allow="...; geolocation;
12
+ * web-share"` delegates the host's location permission (geofenced actions read the
13
+ * device position) and grants the Web Share API (apps call `navigator.share({ files })`
14
+ * to push e.g. container photos to the OS share sheet / gallery) — matching
15
+ * production. The iframe sends postMessage RPCs to
14
16
  * this wrapper, which forwards them to the local /_rpc endpoint, which
15
17
  * dispatches to api.lotics.ai with the CLI's API key.
16
18
  *
@@ -64,7 +66,7 @@ export function buildWrapperPage(args) {
64
66
  <span>workspace <code>${escapeHtml(workspace_id)}</code></span>
65
67
  <span>RPC → <code>${escapeHtml(api_url)}</code></span>
66
68
  </header>
67
- <iframe id="app" sandbox="allow-scripts allow-same-origin allow-downloads" allow="clipboard-write; geolocation"></iframe>
69
+ <iframe id="app" sandbox="allow-scripts allow-same-origin allow-downloads" allow="clipboard-write; geolocation; web-share"></iframe>
68
70
  <script>
69
71
  (function () {
70
72
  const APP_ID = ${JSON.stringify(app_id)};
package/dist/src/cli.js CHANGED
@@ -30954,7 +30954,7 @@ function buildWrapperPage(args) {
30954
30954
  <span>workspace <code>${escapeHtml2(workspace_id)}</code></span>
30955
30955
  <span>RPC \u2192 <code>${escapeHtml2(api_url)}</code></span>
30956
30956
  </header>
30957
- <iframe id="app" sandbox="allow-scripts allow-same-origin allow-downloads" allow="clipboard-write; geolocation"></iframe>
30957
+ <iframe id="app" sandbox="allow-scripts allow-same-origin allow-downloads" allow="clipboard-write; geolocation; web-share"></iframe>
30958
30958
  <script>
30959
30959
  (function () {
30960
30960
  const APP_ID = ${JSON.stringify(app_id)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {