@overaihq/cli 0.14.7 → 0.14.9

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 CHANGED
@@ -165,7 +165,8 @@ The CLI bundles its own guidance — no extra setup files needed. Point your
165
165
  agent at a cloned workspace and have it run:
166
166
 
167
167
  ```sh
168
- overai best-practices # platform + per-resource-type guides
168
+ overai best-practices # list the guides; read `workflow` first
169
+ overai best-practices webPages # one guide (add a section name to narrow it)
169
170
  overai review # before every push
170
171
  ```
171
172
 
@@ -4,7 +4,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __commonJS = (cb, mod) => function __require2() {
8
14
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
15
  };
10
16
  var __export = (target, all) => {
@@ -29,6 +35,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
35
  ));
30
36
 
31
37
  export {
38
+ __require,
32
39
  __commonJS,
33
40
  __export,
34
41
  __toESM
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./chunk-U67V476Y.js";
3
+ } from "./chunk-4VNS5WPM.js";
4
4
 
5
5
  // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
6
6
  var external_exports = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  external_exports
3
- } from "./chunk-PF6GZFT4.js";
3
+ } from "./chunk-5SW6TRJG.js";
4
4
 
5
5
  // ../common/src/types/value-type.ts
6
6
  var TypeEnum = /* @__PURE__ */ ((TypeEnum2) => {
@@ -385,6 +385,14 @@ var injectCodeMessageSchema = external_exports.object({
385
385
 
386
386
  // ../common/src/webPage.ts
387
387
  var webPageLanguage = ["react"];
388
+ var webPagePermissions = [
389
+ "camera",
390
+ "microphone",
391
+ "geolocation",
392
+ "display-capture",
393
+ "fullscreen",
394
+ "screen-wake-lock"
395
+ ];
388
396
  var configFlag = external_exports.union([external_exports.boolean(), external_exports.string()]).nullish().transform((value) => value === true || value === "true").catch(false);
389
397
  var webPageConfigFields = {
390
398
  language: external_exports.enum(webPageLanguage),
@@ -403,7 +411,13 @@ var webPageConfigFields = {
403
411
  * iframe; "v2" serves the page from its own origin (separate renderer
404
412
  * process, real localStorage).
405
413
  */
406
- runtime: external_exports.enum(["v1", "v2"])
414
+ runtime: external_exports.enum(["v1", "v2"]),
415
+ /*
416
+ * Prompt-gated browser features the v2 iframe delegates to the page. Opt-in
417
+ * because the visitor's grant is stored against the app origin, so every
418
+ * other page declaring the same feature inherits it without a prompt.
419
+ */
420
+ permissions: external_exports.array(external_exports.enum(webPagePermissions)).nullish()
407
421
  };
408
422
  var webPageConfigSchema = external_exports.object({
409
423
  ...webPageConfigFields,
@@ -416,7 +430,9 @@ var webPageConfigSchema = external_exports.object({
416
430
  hideTopBar: configFlag,
417
431
  // Absent or invalid reads as "v1" so a legacy config never fails to parse
418
432
  // over the toggle.
419
- runtime: webPageConfigFields.runtime.catch("v1")
433
+ runtime: webPageConfigFields.runtime.catch("v1"),
434
+ // One unknown name drops the whole list rather than failing the page.
435
+ permissions: webPageConfigFields.permissions.catch(null)
420
436
  });
421
437
  var webPageConfigUpdateSchema = external_exports.object(webPageConfigFields).partial();
422
438
  var webPageConfigWriteSchema = webPageConfigSchema.extend({
@@ -424,7 +440,8 @@ var webPageConfigWriteSchema = webPageConfigSchema.extend({
424
440
  hideTopBar: external_exports.union([external_exports.boolean(), external_exports.enum(["true", "false"])]).nullish(),
425
441
  // Without this override the read schema's .catch would silently push a typo
426
442
  // ("V2", "2") as v1.
427
- runtime: external_exports.enum(["v1", "v2"]).nullish()
443
+ runtime: external_exports.enum(["v1", "v2"]).nullish(),
444
+ permissions: webPageConfigFields.permissions
428
445
  });
429
446
  var defaultWebPageTemplate = reactDefaultTemplate.replace(
430
447
  'className="page"',
@@ -435,6 +452,7 @@ export {
435
452
  itemFilterExpressionRootSchema,
436
453
  reactDefaultTemplate,
437
454
  webPageLanguage,
455
+ webPagePermissions,
438
456
  webPageConfigSchema,
439
457
  webPageConfigUpdateSchema,
440
458
  webPageConfigWriteSchema,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __commonJS,
3
3
  __toESM
4
- } from "./chunk-U67V476Y.js";
4
+ } from "./chunk-4VNS5WPM.js";
5
5
 
6
6
  // ../../node_modules/.pnpm/ts-interface-checker@0.1.13/node_modules/ts-interface-checker/dist/util.js
7
7
  var require_util = __commonJS({