@iwsdk/cli 1.1.0 → 1.2.0-rc.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 (160) hide show
  1. package/README.md +106 -2
  2. package/dist/agent-adapters.d.ts +12 -1
  3. package/dist/agent-adapters.d.ts.map +1 -1
  4. package/dist/agent-guidance/files/.agents/skills/iwsdk-build-model/SKILL.md +312 -0
  5. package/dist/agent-guidance/files/.agents/skills/iwsdk-build-model/agents/openai.yaml +4 -0
  6. package/dist/agent-guidance/files/.agents/skills/iwsdk-build-model/assets/hardsurface.ts.template +599 -0
  7. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/SKILL.md +277 -0
  8. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/agents/openai.yaml +4 -0
  9. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/references/environment-recipes.md +234 -0
  10. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/references/extended-workflow.md +166 -0
  11. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/references/image-intake.md +190 -0
  12. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/references/scene-composition.md +80 -0
  13. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/references/scene-format.md +466 -0
  14. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/references/scene-review.md +66 -0
  15. package/dist/agent-guidance/files/.agents/skills/iwsdk-compose-scene/references/text-intake.md +80 -0
  16. package/dist/agent-guidance/files/.agents/skills/iwsdk-debug/SKILL.md +74 -0
  17. package/dist/agent-guidance/files/.agents/skills/iwsdk-depth-occlusion/SKILL.md +88 -0
  18. package/dist/agent-guidance/files/.agents/skills/iwsdk-dev/SKILL.md +46 -0
  19. package/dist/agent-guidance/files/.agents/skills/iwsdk-dev/references/api-reference.md +1532 -0
  20. package/dist/agent-guidance/files/.agents/skills/iwsdk-dev/references/headless-rendering.md +96 -0
  21. package/dist/agent-guidance/files/.agents/skills/iwsdk-dev/references/iterate.md +267 -0
  22. package/dist/agent-guidance/files/.agents/skills/iwsdk-dev/references/planner.md +307 -0
  23. package/dist/agent-guidance/files/.agents/skills/iwsdk-glasses-test/SKILL.md +282 -0
  24. package/dist/agent-guidance/files/.agents/skills/iwsdk-grab/SKILL.md +75 -0
  25. package/dist/agent-guidance/files/.agents/skills/iwsdk-hosting/SKILL.md +179 -0
  26. package/dist/agent-guidance/files/.agents/skills/iwsdk-hosting/references/existing-hosts.md +181 -0
  27. package/dist/agent-guidance/files/.agents/skills/iwsdk-hosting/references/vercel.md +114 -0
  28. package/dist/agent-guidance/files/.agents/skills/iwsdk-native-xr-test/SKILL.md +262 -0
  29. package/dist/agent-guidance/files/.agents/skills/iwsdk-offline/SKILL.md +217 -0
  30. package/dist/agent-guidance/files/.agents/skills/iwsdk-offline/assets/offline.ts.template +99 -0
  31. package/dist/agent-guidance/files/.agents/skills/iwsdk-offline/assets/sw.js.template +241 -0
  32. package/dist/agent-guidance/files/.agents/skills/iwsdk-offline/assets/write-service-worker.mjs.template +72 -0
  33. package/dist/agent-guidance/files/.agents/skills/iwsdk-offline/references/build-step.md +71 -0
  34. package/dist/agent-guidance/files/.agents/skills/iwsdk-offline/references/page.md +70 -0
  35. package/dist/agent-guidance/files/.agents/skills/iwsdk-offline/references/service-worker.md +107 -0
  36. package/dist/agent-guidance/files/.agents/skills/iwsdk-offline/references/testing.md +57 -0
  37. package/dist/agent-guidance/files/.agents/skills/iwsdk-physics/SKILL.md +106 -0
  38. package/dist/agent-guidance/files/.agents/skills/iwsdk-physics/references/component-reference.md +152 -0
  39. package/dist/agent-guidance/files/.agents/skills/iwsdk-physics/references/tuning-and-config.md +102 -0
  40. package/dist/agent-guidance/files/.agents/skills/iwsdk-physics/references/workflows.md +309 -0
  41. package/dist/agent-guidance/files/.agents/skills/iwsdk-pwa-packaging/SKILL.md +230 -0
  42. package/dist/agent-guidance/files/.agents/skills/iwsdk-pwa-packaging/references/app-modes.md +104 -0
  43. package/dist/agent-guidance/files/.agents/skills/iwsdk-pwa-packaging/references/bubblewrap.md +219 -0
  44. package/dist/agent-guidance/files/.agents/skills/iwsdk-pwa-packaging/references/manifest-and-icons.md +149 -0
  45. package/dist/agent-guidance/files/.agents/skills/iwsdk-pwa-packaging/references/store-upload.md +104 -0
  46. package/dist/agent-guidance/files/.agents/skills/iwsdk-pwa-packaging/references/troubleshooting.md +208 -0
  47. package/dist/agent-guidance/files/.agents/skills/iwsdk-ray/SKILL.md +70 -0
  48. package/dist/agent-guidance/files/.agents/skills/iwsdk-ui/SKILL.md +335 -0
  49. package/dist/agent-guidance/files/.agents/skills/iwsdk-upgrade/SKILL.md +74 -0
  50. package/dist/agent-guidance/files/.claude/agents/iwsdk-project-code-reviewer.md +521 -0
  51. package/dist/agent-guidance/files/.claude/rules/assets-and-manifest.md +60 -0
  52. package/dist/agent-guidance/files/.claude/rules/ecs-api.md +103 -0
  53. package/dist/agent-guidance/files/.claude/rules/scene-json.md +72 -0
  54. package/dist/agent-guidance/files/.claude/rules/uikitml.md +66 -0
  55. package/dist/agent-guidance/files/.claude/settings.json +30 -0
  56. package/dist/agent-guidance/files/.claude/skills/iwsdk-build-model/SKILL.md +312 -0
  57. package/dist/agent-guidance/files/.claude/skills/iwsdk-build-model/agents/openai.yaml +4 -0
  58. package/dist/agent-guidance/files/.claude/skills/iwsdk-build-model/assets/hardsurface.ts.template +599 -0
  59. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/SKILL.md +277 -0
  60. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/agents/openai.yaml +4 -0
  61. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/references/environment-recipes.md +234 -0
  62. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/references/extended-workflow.md +166 -0
  63. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/references/image-intake.md +190 -0
  64. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/references/scene-composition.md +80 -0
  65. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/references/scene-format.md +466 -0
  66. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/references/scene-review.md +66 -0
  67. package/dist/agent-guidance/files/.claude/skills/iwsdk-compose-scene/references/text-intake.md +80 -0
  68. package/dist/agent-guidance/files/.claude/skills/iwsdk-debug/SKILL.md +74 -0
  69. package/dist/agent-guidance/files/.claude/skills/iwsdk-depth-occlusion/SKILL.md +88 -0
  70. package/dist/agent-guidance/files/.claude/skills/iwsdk-dev/SKILL.md +46 -0
  71. package/dist/agent-guidance/files/.claude/skills/iwsdk-dev/references/api-reference.md +1532 -0
  72. package/dist/agent-guidance/files/.claude/skills/iwsdk-dev/references/headless-rendering.md +96 -0
  73. package/dist/agent-guidance/files/.claude/skills/iwsdk-dev/references/iterate.md +267 -0
  74. package/dist/agent-guidance/files/.claude/skills/iwsdk-dev/references/planner.md +307 -0
  75. package/dist/agent-guidance/files/.claude/skills/iwsdk-glasses-test/SKILL.md +282 -0
  76. package/dist/agent-guidance/files/.claude/skills/iwsdk-grab/SKILL.md +75 -0
  77. package/dist/agent-guidance/files/.claude/skills/iwsdk-hosting/SKILL.md +179 -0
  78. package/dist/agent-guidance/files/.claude/skills/iwsdk-hosting/references/existing-hosts.md +181 -0
  79. package/dist/agent-guidance/files/.claude/skills/iwsdk-hosting/references/vercel.md +114 -0
  80. package/dist/agent-guidance/files/.claude/skills/iwsdk-native-xr-test/SKILL.md +262 -0
  81. package/dist/agent-guidance/files/.claude/skills/iwsdk-offline/SKILL.md +217 -0
  82. package/dist/agent-guidance/files/.claude/skills/iwsdk-offline/assets/offline.ts.template +99 -0
  83. package/dist/agent-guidance/files/.claude/skills/iwsdk-offline/assets/sw.js.template +241 -0
  84. package/dist/agent-guidance/files/.claude/skills/iwsdk-offline/assets/write-service-worker.mjs.template +72 -0
  85. package/dist/agent-guidance/files/.claude/skills/iwsdk-offline/references/build-step.md +71 -0
  86. package/dist/agent-guidance/files/.claude/skills/iwsdk-offline/references/page.md +70 -0
  87. package/dist/agent-guidance/files/.claude/skills/iwsdk-offline/references/service-worker.md +107 -0
  88. package/dist/agent-guidance/files/.claude/skills/iwsdk-offline/references/testing.md +57 -0
  89. package/dist/agent-guidance/files/.claude/skills/iwsdk-physics/SKILL.md +106 -0
  90. package/dist/agent-guidance/files/.claude/skills/iwsdk-physics/references/component-reference.md +152 -0
  91. package/dist/agent-guidance/files/.claude/skills/iwsdk-physics/references/tuning-and-config.md +102 -0
  92. package/dist/agent-guidance/files/.claude/skills/iwsdk-physics/references/workflows.md +309 -0
  93. package/dist/agent-guidance/files/.claude/skills/iwsdk-pwa-packaging/SKILL.md +230 -0
  94. package/dist/agent-guidance/files/.claude/skills/iwsdk-pwa-packaging/references/app-modes.md +104 -0
  95. package/dist/agent-guidance/files/.claude/skills/iwsdk-pwa-packaging/references/bubblewrap.md +219 -0
  96. package/dist/agent-guidance/files/.claude/skills/iwsdk-pwa-packaging/references/manifest-and-icons.md +149 -0
  97. package/dist/agent-guidance/files/.claude/skills/iwsdk-pwa-packaging/references/store-upload.md +104 -0
  98. package/dist/agent-guidance/files/.claude/skills/iwsdk-pwa-packaging/references/troubleshooting.md +208 -0
  99. package/dist/agent-guidance/files/.claude/skills/iwsdk-ray/SKILL.md +70 -0
  100. package/dist/agent-guidance/files/.claude/skills/iwsdk-ui/SKILL.md +335 -0
  101. package/dist/agent-guidance/files/.claude/skills/iwsdk-upgrade/SKILL.md +74 -0
  102. package/dist/agent-guidance/files/.cursor/rules/assets-and-manifest.mdc +62 -0
  103. package/dist/agent-guidance/files/.cursor/rules/ecs-api.mdc +105 -0
  104. package/dist/agent-guidance/files/.cursor/rules/scene-json.mdc +74 -0
  105. package/dist/agent-guidance/files/.cursor/rules/uikitml.mdc +68 -0
  106. package/dist/agent-guidance/files/.github/instructions/assets-and-manifest.instructions.md +55 -0
  107. package/dist/agent-guidance/files/.github/instructions/ecs-api.instructions.md +101 -0
  108. package/dist/agent-guidance/files/.github/instructions/scene-json.instructions.md +71 -0
  109. package/dist/agent-guidance/files/.github/instructions/uikitml.instructions.md +65 -0
  110. package/{guidance → dist/agent-guidance/files}/AGENTS.md +107 -27
  111. package/dist/agent-guidance/files/CLAUDE.md +3 -0
  112. package/dist/agent-guidance/files/public/scenes/AGENTS.md +72 -0
  113. package/dist/agent-guidance/files/public/ui/AGENTS.md +66 -0
  114. package/dist/agent-guidance/files/src/AGENTS.md +153 -0
  115. package/dist/agent-guidance/manifest.json +954 -0
  116. package/dist/agent-guidance.d.ts +140 -0
  117. package/dist/agent-guidance.d.ts.map +1 -0
  118. package/dist/agent-guidance.js +3612 -0
  119. package/dist/agent-guidance.js.map +1 -0
  120. package/dist/cli.js +4010 -750
  121. package/dist/cli.js.map +1 -1
  122. package/dist/commands/adapter.d.ts +1 -0
  123. package/dist/commands/adapter.d.ts.map +1 -1
  124. package/dist/commands/agents.d.ts +11 -0
  125. package/dist/commands/agents.d.ts.map +1 -0
  126. package/dist/commands/browser.d.ts +11 -0
  127. package/dist/commands/browser.d.ts.map +1 -1
  128. package/dist/commands/dev.d.ts +1 -0
  129. package/dist/commands/dev.d.ts.map +1 -1
  130. package/dist/commands/reference.d.ts +15 -1
  131. package/dist/commands/reference.d.ts.map +1 -1
  132. package/dist/commands/runtime.d.ts.map +1 -1
  133. package/dist/commands/upgrade.d.ts +138 -0
  134. package/dist/commands/upgrade.d.ts.map +1 -0
  135. package/dist/contract.js +32 -0
  136. package/dist/contract.js.map +1 -1
  137. package/dist/guidance-refresh.d.ts +53 -0
  138. package/dist/guidance-refresh.d.ts.map +1 -0
  139. package/dist/help.d.ts +2 -0
  140. package/dist/help.d.ts.map +1 -1
  141. package/dist/index.d.ts.map +1 -1
  142. package/dist/index.js +6114 -508
  143. package/dist/index.js.map +1 -1
  144. package/dist/mcp-stdio.d.ts.map +1 -1
  145. package/dist/metavr-telemetry.d.ts +6 -0
  146. package/dist/metavr-telemetry.d.ts.map +1 -1
  147. package/dist/migrations/iwsdk-migrate-0-5/SKILL.md +413 -0
  148. package/dist/migrations.d.ts +36 -0
  149. package/dist/migrations.d.ts.map +1 -0
  150. package/dist/package-manager.d.ts +34 -0
  151. package/dist/package-manager.d.ts.map +1 -0
  152. package/dist/release-notes.d.ts +28 -0
  153. package/dist/release-notes.d.ts.map +1 -0
  154. package/dist/release-notes.json +1506 -0
  155. package/dist/runtime-contract.d.ts +8 -0
  156. package/dist/runtime-contract.d.ts.map +1 -1
  157. package/dist/runtime-telemetry.d.ts +8 -1
  158. package/dist/runtime-telemetry.d.ts.map +1 -1
  159. package/dist/version.d.ts +1 -1
  160. package/package.json +9 -3
@@ -15,6 +15,7 @@ export interface AdapterStatusEntry {
15
15
  support: AdapterSupportStatus;
16
16
  }
17
17
  export declare function readAdapterStatus(workspaceRoot: string): Promise<AdapterStatusEntry[]>;
18
+ export declare function resolveAdapterTools(options: CliOptions): AiTool[];
18
19
  export declare function handleAdapterSync(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
19
20
  export declare function handleAdapterPrune(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
20
21
  export declare function handleAdapterStatus(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/commands/adapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAKL,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EACV,UAAU,EAEV,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EAGL,KAAK,MAAM,EACZ,MAAM,wBAAwB,CAAC;AAGhC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,YAAY,GAAG,SAAS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/B;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,EAAE,CAgBjE;AAaD,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAc9B;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAS9B;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAM9B;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,IAAI,CAAC,CAIf"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { type SyncAgentGuidanceResult } from '../agent-guidance.js';
8
+ import type { CliFailure, CliOptions, CliSuccess, ResolvedCliIo } from '../cli-types.js';
9
+ export declare function handleAgentsSync(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<SyncAgentGuidanceResult>>;
10
+ export declare function handleAgentsCheck(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<SyncAgentGuidanceResult> | CliFailure>;
11
+ //# sourceMappingURL=agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/commands/agents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAKL,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AA+DzB,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAQ9C;AAED,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,GAAG,UAAU,CAAC,CAc3D"}
@@ -10,5 +10,16 @@ export declare function selectManagedBrowserPage(browser: any, managedOrigin: st
10
10
  page: any;
11
11
  }>;
12
12
  export declare function protectManagedOwnership(browser: any, context: any, page: any, cdp: any): void;
13
+ /** The part of a Playwright frame {@link withRenderHold} needs. */
14
+ interface RenderHoldFrame {
15
+ evaluate<R, A>(fn: (arg: A) => R | Promise<R>, arg: A): Promise<R>;
16
+ }
17
+ /**
18
+ * Run `fn` with the managed app drawing every frame, then release the hold,
19
+ * also when `fn` throws. Apps without render holds (non-IWSDK runtimes, older
20
+ * @iwsdk/core) always draw continuously, so `fn` simply runs.
21
+ */
22
+ export declare function withRenderHold<T>(frame: RenderHoldFrame, fn: () => Promise<T>): Promise<T>;
13
23
  export declare function handleBrowserRun(scriptArgument: string | undefined, options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
24
+ export {};
14
25
  //# sourceMappingURL=browser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/commands/browser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA2B7E,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,GAAG,EACZ,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC;IAAE,OAAO,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,CA2CtC;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GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAuP9B"}
@@ -31,6 +31,7 @@ export declare function isAbnormalChildExit(exit: ProcessExitResult): boolean;
31
31
  export declare function describeChildExit(exit: ProcessExitResult): string;
32
32
  /** Names the port a fail-closed startup could not bind, from its launch log. */
33
33
  export declare function describeStartupExit(logPath: string | null): Promise<string>;
34
+ export declare function detectPackageManager(workspaceRoot: string): Promise<string>;
34
35
  /** Parse and validate launch-time choices owned by the dev command. */
35
36
  export declare function resolveDevSessionOptions(options: CliOptions): ResolvedDevSessionOptions;
36
37
  /** Build the child environment without retaining stale session overrides. */
@@ -1 +1 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EASL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AA6BhC,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,aAAa,CAAC;AAEhD,MAAM,WAAW,yBAAyB;IACxC,sBAAsB,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAYD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAE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AClB,yBAAyB,CAgD3B;AAED,6EAA6E;AAC7E,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,UAAU,EACnB,eAAe,GAAE,MAAM,CAAC,UAAwB,GAC/C,MAAM,CAAC,UAAU,CA6BnB;AAED,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,OAAO,EACtB,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GACvC,OAAO,CAET;AAkdD,wBAAsB,WAAW,CAC/B,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC,CA4C3D;AA2TD,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAQ9B;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC,CAU3D;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAyB9B;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CA+B9B;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAE9B"}
@@ -7,6 +7,20 @@
7
7
  import type { CliCommandResult, ResolvedCliIo } from '../cli-types.js';
8
8
  export declare function handleReferenceStatus(options: Record<string, unknown>, context: ResolvedCliIo): Promise<CliCommandResult>;
9
9
  export declare function handleReferenceInspect(options: Record<string, unknown>, context: ResolvedCliIo): Promise<CliCommandResult>;
10
- export declare function handleReferenceQuery(subcommand: string, options: Record<string, unknown>, context: ResolvedCliIo): Promise<CliCommandResult>;
10
+ /**
11
+ * The input field a query subcommand fills from its positional text, so
12
+ * `iwsdk reference search "grab a box"` works without `--input-json`.
13
+ */
14
+ export declare const REFERENCE_POSITIONAL_FIELDS: Readonly<Record<string, string>>;
15
+ /**
16
+ * Builds the `--input-json` payload for a reference query from the
17
+ * subcommand's positional text and `--input-json`. Fields given in
18
+ * `--input-json` win. Returns an error message when the input can't be used.
19
+ */
20
+ export declare function buildReferenceQueryInput(subcommand: string, positional: string, inputJson: unknown): {
21
+ input?: string;
22
+ error?: string;
23
+ };
24
+ export declare function handleReferenceQuery(subcommand: string, options: Record<string, unknown>, context: ResolvedCliIo, positional?: string): Promise<CliCommandResult>;
11
25
  export declare function handleReferenceWarmup(options: Record<string, unknown>, context: ResolvedCliIo): Promise<CliCommandResult>;
12
26
  //# sourceMappingURL=reference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../src/commands/reference.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAiFvE,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CAkC3B;AAED,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CAsC3B;AAED,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,aA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AAO,CAAC,gBAAgB,CAAC,CA8B3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/commands/runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AAuLzB,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,CAoB7C"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/commands/runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AA6LzB,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,CAoB7C"}
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { CliOptions, CliSuccess, ResolvedCliIo } from '../cli-types.js';
8
+ import { type PackageManagerInfo } from '../package-manager.js';
9
+ /** Packages published together (the fixed group in .changeset/config.json, minus private @iwsdk/reference-assets). */
10
+ export declare const RELEASED_PACKAGES: string[];
11
+ interface PackageBump {
12
+ field: string;
13
+ name: string;
14
+ from: string;
15
+ to: string;
16
+ }
17
+ export interface UpgradeResult {
18
+ projectRoot: string;
19
+ from: string | null;
20
+ to: string;
21
+ dryRun: boolean;
22
+ packageManager: string;
23
+ installed: boolean;
24
+ packages: PackageBump[];
25
+ migrations: Array<{
26
+ id: string;
27
+ introducedIn: string;
28
+ path?: string;
29
+ }>;
30
+ releaseNotes: {
31
+ count: number;
32
+ path?: string;
33
+ notable?: number;
34
+ };
35
+ configIssues: Array<{
36
+ path: string;
37
+ message: string;
38
+ }>;
39
+ guidance: {
40
+ status: 'synced';
41
+ version: string;
42
+ changed: string[];
43
+ skipped: string[];
44
+ } | {
45
+ status: 'pending' | 'unavailable' | 'none';
46
+ message: string;
47
+ };
48
+ manualSteps: string[];
49
+ }
50
+ /**
51
+ * Thrown when the upgrade stops before writing anything; `code` becomes the
52
+ * error code of the CLI's JSON failure.
53
+ */
54
+ export declare class UpgradeError extends Error {
55
+ readonly code: 'release_not_on_registry';
56
+ readonly details: Record<string, unknown>;
57
+ constructor(message: string, code: 'release_not_on_registry', details: Record<string, unknown>);
58
+ }
59
+ /** Yarn in Yarn 2+ projects, which ignore .npmrc; npm everywhere else. */
60
+ export type RegistryClient = 'npm' | 'yarn';
61
+ /** How to ask the registry the install uses; see `registryLookup`. */
62
+ export interface RegistryLookup {
63
+ client: RegistryClient;
64
+ /** Where the client runs. */
65
+ cwd: string;
66
+ /** Flags for every npm call. */
67
+ npmArgs?: string[];
68
+ /**
69
+ * npm_config_* variables for every npm call: the registry and auth
70
+ * settings of an app's own .npmrc, which pnpm and Yarn 1 merge over the
71
+ * workspace root's.
72
+ */
73
+ env?: Record<string, string>;
74
+ /** A Yarn 1 project: Yarn, run here, names its registry; npm asks it. */
75
+ yarnClassicCwd?: string;
76
+ }
77
+ /** The fields of a published package.json that the upgrade reads. */
78
+ interface PublishedManifest {
79
+ version?: string;
80
+ dependencies?: Record<string, string>;
81
+ /** Every published version (npm is asked for it for core only). */
82
+ versions?: string[];
83
+ }
84
+ export type ReleaseCheck = {
85
+ status: 'found';
86
+ registry: string;
87
+ core?: PublishedManifest;
88
+ } | {
89
+ status: 'missing';
90
+ registry: string;
91
+ /** Each package the registry does not have at the version. */
92
+ missing: Array<{
93
+ /** `<name>@<version>`. */
94
+ spec: string;
95
+ /** npm's or Yarn's error. */
96
+ reason: string;
97
+ /** No such package, which a registry also answers when you may not access it. */
98
+ packageNotFound: boolean;
99
+ }>;
100
+ /** The registry is the one set for the @iwsdk scope. */
101
+ scoped: boolean;
102
+ } | {
103
+ status: 'unavailable';
104
+ registry: string | null;
105
+ reason: string;
106
+ };
107
+ /**
108
+ * Ask the registry for every package at `version` before anything is
109
+ * written, the way the install will ask it (see `registryLookup`). Says which
110
+ * registry it asks on `stderr`.
111
+ */
112
+ export declare function checkRegistry({ names, version, stderr, timeoutMs, ...lookup }: RegistryLookup & {
113
+ names: string[];
114
+ version: string;
115
+ stderr: NodeJS.WritableStream;
116
+ timeoutMs?: number;
117
+ }): Promise<ReleaseCheck>;
118
+ /**
119
+ * How to ask the registry the install will use. The install runs in the
120
+ * project directory.
121
+ * - npm installs there with the workspace root's .npmrc and ignores the
122
+ * project's own, so npm runs in the workspace root.
123
+ * - pnpm and Yarn 1 merge the project's own .npmrc over the workspace root's,
124
+ * setting by setting: a scope registry or a token only the root sets still
125
+ * applies. When both set the registry or auth, npm runs in the workspace
126
+ * root and gets the project's registry and auth settings as npm_config_*
127
+ * variables, which npm takes over any .npmrc (unless the environment
128
+ * already sets them, as pnpm and Yarn 1 then do too). Otherwise npm runs in
129
+ * whichever directory sets them, the root when neither does. npm gets
130
+ * --no-workspaces, so that it reads the .npmrc there and not that of a root
131
+ * whose package.json declares workspaces.
132
+ * - Yarn 1 also takes the registry from .yarnrc, so Yarn names it.
133
+ * - Yarn 2+ reads only .yarnrc.yml, and is asked itself.
134
+ */
135
+ export declare function registryLookup(projectRoot: string, info: PackageManagerInfo): RegistryLookup;
136
+ export declare function handleUpgrade(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<UpgradeResult>>;
137
+ export {};
138
+ //# sourceMappingURL=upgrade.d.ts.map
@@ -0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AAE,KAAK,CAAC;QACb,0BAA0B;QAC1B,IAAI,EAAE,MAAM,CAAC;QACb,6BAA6B;QAC7B,MAAM,EAAE,MAAM,CAAC;QACf,iFAAiF;QACjF,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC,CAAC;IACH,wDAAwD;IACxD,MAAM,EAAE,OAAO,CAAC;CACjB,GACD;IAAE,MAAM,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AA4ZvE;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,EAClC,KAAK,EACL,OAAO,EACP,MAAM,EACN,SAA+B,EAC/B,GAAG,MAAM,EACV,EAAE,cAAc,GAAG;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,YAAY,CAAC,CAyGxB;AAiED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,kBAAkB,GACvB,cAAc,CA8BhB;AA8JD,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAsXpC"}
package/dist/contract.js CHANGED
@@ -24,6 +24,7 @@ const TIMED_RUNTIME_METHODS = new Set([
24
24
  'set_select_value',
25
25
  ]);
26
26
  const BROWSER_RUNTIME_METHODS = new Set([
27
+ 'browser_filmstrip',
27
28
  'browser_interact',
28
29
  'browser_profile',
29
30
  'browser_set_muted',
@@ -1306,6 +1307,34 @@ const ALL_RUNTIME_MCP_TOOLS = [
1306
1307
  additionalProperties: false,
1307
1308
  },
1308
1309
  },
1310
+ {
1311
+ name: 'browser_filmstrip',
1312
+ description: 'Capture a frame-accurate sequence of the application: pause the ECS, capture the current frame, then step `every` simulation frames and capture again until `count` frames are taken, and return one contact-sheet image (screenshotPath) with each panel labeled by its frame offset. Restores the previous pause state. Use it to see motion (physics, animation, locomotion) independently of how fast the browser renders.',
1313
+ inputSchema: {
1314
+ type: 'object',
1315
+ properties: {
1316
+ count: {
1317
+ type: 'integer',
1318
+ minimum: 2,
1319
+ maximum: 12,
1320
+ description: 'Frames to capture, including the current one. Defaults to 6.',
1321
+ },
1322
+ every: {
1323
+ type: 'integer',
1324
+ minimum: 1,
1325
+ maximum: 120,
1326
+ description: 'Simulation frames to step between captures (fixed 1/72 s timestep). Defaults to 5.',
1327
+ },
1328
+ format: {
1329
+ type: 'string',
1330
+ enum: ['png', 'jpeg'],
1331
+ description: 'Image format of the contact sheet. Defaults to png.',
1332
+ },
1333
+ },
1334
+ required: [],
1335
+ additionalProperties: false,
1336
+ },
1337
+ },
1309
1338
  {
1310
1339
  name: 'browser_snapshot',
1311
1340
  description: 'Inspect the current application as a compact accessibility-first list of interactive elements and canvas regions. Use returned refs with browser_interact.',
@@ -3330,6 +3359,7 @@ const RUNTIME_TOOL_TO_METHOD = {
3330
3359
  xr_cancel_sequence: 'cancel_sequence',
3331
3360
  xr_list_targets: 'list_targets',
3332
3361
  browser_screenshot: 'screenshot',
3362
+ browser_filmstrip: 'browser_filmstrip',
3333
3363
  browser_snapshot: 'browser_snapshot',
3334
3364
  browser_interact: 'browser_interact',
3335
3365
  browser_profile: 'browser_profile',
@@ -3355,6 +3385,7 @@ const ALL_RUNTIME_CLI_PATHS = {
3355
3385
  xr_get_gamepad_state: ['xr', 'get-gamepad-state'],
3356
3386
  xr_set_gamepad_state: ['xr', 'set-gamepad-state'],
3357
3387
  browser_screenshot: ['browser', 'screenshot'],
3388
+ browser_filmstrip: ['browser', 'filmstrip'],
3358
3389
  browser_snapshot: ['browser', 'snapshot'],
3359
3390
  browser_interact: ['browser', 'interact'],
3360
3391
  browser_profile: ['browser', 'profile'],
@@ -3468,6 +3499,7 @@ const EDITOR_TARGET_MCP_TOOL_NAME_SET = new Set([
3468
3499
  ]);
3469
3500
  const HOST_BROWSER_MCP_TOOL_NAME_SET = new Set([
3470
3501
  'browser_screenshot',
3502
+ 'browser_filmstrip',
3471
3503
  'browser_snapshot',
3472
3504
  'browser_interact',
3473
3505
  'browser_profile',