@iwsdk/vite-plugin-dev 0.4.2 → 0.5.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.
@@ -0,0 +1,17 @@
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 IwsdkProjectManifestV1 } from '@iwsdk/core/project';
8
+ export declare const IWSDK_PROJECT_CONFIG_FILE = "iwsdk.config.json";
9
+ export interface LoadedIwsdkProject {
10
+ configPath: string;
11
+ manifest: IwsdkProjectManifestV1;
12
+ scenePath: string;
13
+ }
14
+ /** Read and validate the project authority without executing browser modules. */
15
+ export declare function loadIwsdkProject(projectRoot: string): LoadedIwsdkProject | null;
16
+ /** Resolve one extensionless, local manifest module deterministically. */
17
+ export declare function resolveProjectModulePath(projectRoot: string, sourcePath: string, label: 'Asset' | 'Component'): string;
@@ -0,0 +1,97 @@
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 SceneDocument, type SceneReview, type Sha256 } from '@iwsdk/scene-composition';
8
+ export interface SceneReviewRecordLink {
9
+ path: string;
10
+ reviewSha256: Sha256;
11
+ }
12
+ export interface SceneCorrectionRecordLink {
13
+ path: string;
14
+ correctionSha256: Sha256;
15
+ }
16
+ export interface SceneCorrectionRecord {
17
+ version: 'iwsdk.scene-correction.v1';
18
+ round: number;
19
+ intent: Omit<SceneCorrectionIntent, 'previousReview'>;
20
+ previousReview: SceneReviewRecordLink;
21
+ previousCorrection?: SceneCorrectionRecordLink;
22
+ patchSha256: Sha256;
23
+ base: {
24
+ contractHash: Sha256;
25
+ documentHash: Sha256;
26
+ runtimeHash: Sha256;
27
+ };
28
+ candidate: {
29
+ contractHash: Sha256;
30
+ documentHash: Sha256;
31
+ runtimeHash: Sha256;
32
+ };
33
+ }
34
+ export interface SceneCorrectionIntent {
35
+ kind: 'scene' | 'resource' | 'camera' | 'contract';
36
+ previousReview: SceneReviewRecordLink;
37
+ defectTags: string[];
38
+ reason?: string;
39
+ }
40
+ export interface SceneReviewWorkflowState {
41
+ version: 'iwsdk.review-workflow.v1';
42
+ phase: 'draft' | 'awaiting-review' | 'manual-edit' | 'reviewed';
43
+ contractHash: Sha256 | null;
44
+ documentHash: Sha256;
45
+ runtimeHash: Sha256;
46
+ lockedMaxCorrectionRounds: number;
47
+ round: number;
48
+ previousReview?: SceneReviewRecordLink;
49
+ headReview?: SceneReviewRecordLink;
50
+ headCorrection?: SceneCorrectionRecordLink;
51
+ }
52
+ export interface SceneReviewTransitionPlan {
53
+ correctionRecord?: SceneCorrectionRecord;
54
+ expectedState: SceneReviewWorkflowState | null;
55
+ nextState: SceneReviewWorkflowState;
56
+ }
57
+ export declare class SceneReviewWorkflowError extends Error {
58
+ readonly code: string;
59
+ readonly statusCode: number;
60
+ readonly details: Record<string, unknown>;
61
+ constructor(message: string, code: string, statusCode?: number, details?: Record<string, unknown>);
62
+ }
63
+ export declare function beginSceneReviewWorkflow(input: {
64
+ document: SceneDocument;
65
+ expectedDocumentHash: Sha256;
66
+ reviewRoot: string;
67
+ }): SceneReviewWorkflowState;
68
+ export declare function planSceneReviewTransition(input: {
69
+ candidate: SceneDocument;
70
+ correction?: unknown;
71
+ current: SceneDocument;
72
+ expectedBaseDocumentHash: Sha256;
73
+ operation?: unknown;
74
+ patch?: unknown;
75
+ reviewRoot: string;
76
+ }): SceneReviewTransitionPlan | null;
77
+ export declare function commitSceneReviewTransition(input: {
78
+ document: SceneDocument;
79
+ plan: SceneReviewTransitionPlan;
80
+ reviewRoot: string;
81
+ }): SceneReviewWorkflowState;
82
+ export declare function recordSceneReviewWorkflowReview(input: {
83
+ document: SceneDocument;
84
+ review: SceneReview;
85
+ reviewLink: SceneReviewRecordLink;
86
+ reviewRoot: string;
87
+ }): SceneReviewWorkflowState | null;
88
+ export declare function recordManualSceneEdit(input: {
89
+ document: SceneDocument;
90
+ reviewRoot: string;
91
+ }): SceneReviewWorkflowState | null;
92
+ export declare function assertSceneReviewWorkflowPublishable(input: {
93
+ document: SceneDocument;
94
+ reviewLink: SceneReviewRecordLink;
95
+ reviewRoot: string;
96
+ }): void;
97
+ export declare function readSceneReviewWorkflowState(reviewRoot: string): SceneReviewWorkflowState | null;
@@ -0,0 +1,90 @@
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 SceneDocument, type SceneAuthoringView } from '@iwsdk/scene-composition';
8
+ export interface RuntimeCameraSnapshot {
9
+ aspect: number | null;
10
+ direction: [number, number, number];
11
+ far: number | null;
12
+ fov: number | null;
13
+ height: number | null;
14
+ near: number | null;
15
+ position: [number, number, number];
16
+ projection: 'orthographic' | 'perspective' | 'unknown';
17
+ }
18
+ export interface RuntimeFramingSnapshot {
19
+ boundsAvailable: boolean;
20
+ centerNdc: [number, number, number] | null;
21
+ fullyInsideViewport: boolean;
22
+ inFrontCornerCount: number;
23
+ projectedBounds: {
24
+ max: [number, number];
25
+ min: [number, number];
26
+ } | null;
27
+ viewportCoverage: number;
28
+ viewportOverlap: number;
29
+ }
30
+ export interface RuntimePresentationSnapshot {
31
+ camera: RuntimeCameraSnapshot | null;
32
+ framing: RuntimeFramingSnapshot | null;
33
+ }
34
+ export interface RuntimePresentationParityResult {
35
+ camera: {
36
+ issues: string[];
37
+ passed: boolean;
38
+ };
39
+ expectedView: SceneAuthoringView | null;
40
+ framing: {
41
+ issues: string[];
42
+ passed: boolean;
43
+ };
44
+ warnings: string[];
45
+ }
46
+ export interface RuntimeCountExplanation {
47
+ authored: {
48
+ explicitNodeCount: number;
49
+ instanceNodeCount: number;
50
+ patternNodeCount: number;
51
+ };
52
+ editor: Record<string, number | null>;
53
+ explanation: string[];
54
+ runtime: Record<string, number | null>;
55
+ }
56
+ export interface RuntimeSceneParityResult extends Record<string, unknown> {
57
+ actual: {
58
+ assets: unknown;
59
+ environment: unknown;
60
+ lights: unknown;
61
+ };
62
+ expected: {
63
+ assets: ExpectedAssetState[];
64
+ environment: Record<string, unknown>;
65
+ lights: ExpectedLightState[];
66
+ };
67
+ mismatches: string[];
68
+ passed: boolean;
69
+ }
70
+ interface ExpectedAssetState {
71
+ count: number;
72
+ id: string;
73
+ }
74
+ interface ExpectedLightState extends Record<string, unknown> {
75
+ count: number;
76
+ sourceNodeId: string;
77
+ type: string;
78
+ }
79
+ /** Compare authored render state with measurements from the reloaded app runtime. */
80
+ export declare function evaluateRuntimeSceneParity(document: SceneDocument, renderStats: unknown): RuntimeSceneParityResult;
81
+ /**
82
+ * Compare the live app camera and framing with the scene's authored hero view.
83
+ * This deliberately does not use screenshot similarity: the authored view is
84
+ * the stable presentation contract, while projected bounds prove that the
85
+ * live camera is actually looking at renderable scene content.
86
+ */
87
+ export declare function evaluateRuntimePresentationParity(expectedView: SceneAuthoringView | null, snapshot: RuntimePresentationSnapshot): RuntimePresentationParityResult;
88
+ /** Explain why authoring, editor, and runtime object counts are not equal. */
89
+ export declare function explainRuntimeCountDifferences(document: SceneDocument, editorStats: unknown, runtimeStats: unknown, runtimeHierarchyObjectCount: number | null): RuntimeCountExplanation;
90
+ export {};
@@ -0,0 +1,4 @@
1
+ const i=Symbol.for("preact-signals");function t(){if(r>1){r--;return}let i,t=false;while(void 0!==s){let o=s;s=void 0;f++;while(void 0!==o){const n=o.o;o.o=void 0;o.f&=-3;if(!(8&o.f)&&v(o))try{o.c();}catch(o){if(!t){i=o;t=true;}}o=n;}}f=0;r--;if(t)throw i}let n,s;function h(i){const t=n;n=void 0;try{return i()}finally{n=t;}}let r=0,f=0,e=0;function u(i){if(void 0===n)return;let t=i.n;if(void 0===t||t.t!==n){t={i:0,S:i,p:n.s,n:void 0,t:n,e:void 0,x:void 0,r:t};if(void 0!==n.s)n.s.n=t;n.s=t;i.n=t;if(32&n.f)i.S(t);return t}else if(-1===t.i){t.i=0;if(void 0!==t.n){t.n.p=t.p;if(void 0!==t.p)t.p.n=t.n;t.p=n.s;t.n=void 0;n.s.n=t;n.s=t;}return t}}function c(i,t){this.v=i;this.i=0;this.n=void 0;this.t=void 0;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name;}c.prototype.brand=i;c.prototype.h=function(){return true};c.prototype.S=function(i){const t=this.t;if(t!==i&&void 0===i.e){i.x=t;this.t=i;if(void 0!==t)t.e=i;else h(()=>{var i;null==(i=this.W)||i.call(this);});}};c.prototype.U=function(i){if(void 0!==this.t){const t=i.e,o=i.x;if(void 0!==t){t.x=o;i.e=void 0;}if(void 0!==o){o.e=t;i.x=void 0;}if(i===this.t){this.t=o;if(void 0===o)h(()=>{var i;null==(i=this.Z)||i.call(this);});}}};c.prototype.subscribe=function(i){return E(()=>{const t=this.value,o=n;n=void 0;try{i(t);}finally{n=o;}},{name:"sub"})};c.prototype.valueOf=function(){return this.value};c.prototype.toString=function(){return this.value+""};c.prototype.toJSON=function(){return this.value};c.prototype.peek=function(){const i=n;n=void 0;try{return this.value}finally{n=i;}};Object.defineProperty(c.prototype,"value",{get(){const i=u(this);if(void 0!==i)i.i=this.i;return this.v},set(i){if(i!==this.v){if(f>100)throw new Error("Cycle detected");this.v=i;this.i++;e++;r++;try{for(let i=this.t;void 0!==i;i=i.x)i.t.N();}finally{t();}}}});function d(i,t){return new c(i,t)}function v(i){for(let t=i.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return true;return false}function l(i){for(let t=i.s;void 0!==t;t=t.n){const o=t.S.n;if(void 0!==o)t.r=o;t.S.n=t;t.i=-1;if(void 0===t.n){i.s=t;break}}}function y(i){let t,o=i.s;while(void 0!==o){const i=o.p;if(-1===o.i){o.S.U(o);if(void 0!==i)i.n=o.n;if(void 0!==o.n)o.n.p=i;}else t=o;o.S.n=o.r;if(void 0!==o.r)o.r=void 0;o=i;}i.s=t;}function a(i,t){c.call(this,void 0);this.x=i;this.s=void 0;this.g=e-1;this.f=4;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name;}a.prototype=new c;a.prototype.h=function(){this.f&=-3;if(1&this.f)return false;if(32==(36&this.f))return true;this.f&=-5;if(this.g===e)return true;this.g=e;this.f|=1;if(this.i>0&&!v(this)){this.f&=-2;return true}const i=n;try{l(this);n=this;const i=this.x();if(16&this.f||this.v!==i||0===this.i){this.v=i;this.f&=-17;this.i++;}}catch(i){this.v=i;this.f|=16;this.i++;}n=i;y(this);this.f&=-2;return true};a.prototype.S=function(i){if(void 0===this.t){this.f|=36;for(let i=this.s;void 0!==i;i=i.n)i.S.S(i);}c.prototype.S.call(this,i);};a.prototype.U=function(i){if(void 0!==this.t){c.prototype.U.call(this,i);if(void 0===this.t){this.f&=-33;for(let i=this.s;void 0!==i;i=i.n)i.S.U(i);}}};a.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let i=this.t;void 0!==i;i=i.x)i.t.N();}};Object.defineProperty(a.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const i=u(this);this.h();if(void 0!==i)i.i=this.i;if(16&this.f)throw this.v;return this.v}});function _(i){const o=i.u;i.u=void 0;if("function"==typeof o){r++;const s=n;n=void 0;try{o();}catch(t){i.f&=-2;i.f|=8;b(i);throw t}finally{n=s;t();}}}function b(i){for(let t=i.s;void 0!==t;t=t.n)t.S.U(t);i.x=void 0;i.s=void 0;_(i);}function g(i){if(n!==this)throw new Error("Out-of-order effect");y(this);n=i;this.f&=-2;if(8&this.f)b(this);t();}function p(i,t){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32;this.name=null==t?void 0:t.name;}p.prototype.c=function(){const i=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const t=this.x();if("function"==typeof t)this.u=t;}finally{i();}};p.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1;this.f&=-9;_(this);l(this);r++;const i=n;n=this;return g.bind(this,i)};p.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=s;s=this;}};p.prototype.d=function(){this.f|=8;if(!(1&this.f))b(this);};p.prototype.dispose=function(){this.d();};function E(i,t){const o=new p(i,t);try{o.c();}catch(i){o.d();throw i}const n=o.d.bind(o);n[Symbol.dispose]=n;return n}
2
+
3
+ export { d };
4
+ //# sourceMappingURL=signals-core-BRx7ThPn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signals-core-BRx7ThPn.js","sources":["../../../node_modules/.pnpm/@preact+signals-core@1.12.1/node_modules/@preact/signals-core/dist/signals-core.mjs"],"sourcesContent":["const i=Symbol.for(\"preact-signals\");function t(){if(r>1){r--;return}let i,t=!1;while(void 0!==s){let o=s;s=void 0;f++;while(void 0!==o){const n=o.o;o.o=void 0;o.f&=-3;if(!(8&o.f)&&v(o))try{o.c()}catch(o){if(!t){i=o;t=!0}}o=n}}f=0;r--;if(t)throw i}function o(i){if(r>0)return i();r++;try{return i()}finally{t()}}let n,s;function h(i){const t=n;n=void 0;try{return i()}finally{n=t}}let r=0,f=0,e=0;function u(i){if(void 0===n)return;let t=i.n;if(void 0===t||t.t!==n){t={i:0,S:i,p:n.s,n:void 0,t:n,e:void 0,x:void 0,r:t};if(void 0!==n.s)n.s.n=t;n.s=t;i.n=t;if(32&n.f)i.S(t);return t}else if(-1===t.i){t.i=0;if(void 0!==t.n){t.n.p=t.p;if(void 0!==t.p)t.p.n=t.n;t.p=n.s;t.n=void 0;n.s.n=t;n.s=t}return t}}function c(i,t){this.v=i;this.i=0;this.n=void 0;this.t=void 0;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}c.prototype.brand=i;c.prototype.h=function(){return!0};c.prototype.S=function(i){const t=this.t;if(t!==i&&void 0===i.e){i.x=t;this.t=i;if(void 0!==t)t.e=i;else h(()=>{var i;null==(i=this.W)||i.call(this)})}};c.prototype.U=function(i){if(void 0!==this.t){const t=i.e,o=i.x;if(void 0!==t){t.x=o;i.e=void 0}if(void 0!==o){o.e=t;i.x=void 0}if(i===this.t){this.t=o;if(void 0===o)h(()=>{var i;null==(i=this.Z)||i.call(this)})}}};c.prototype.subscribe=function(i){return E(()=>{const t=this.value,o=n;n=void 0;try{i(t)}finally{n=o}},{name:\"sub\"})};c.prototype.valueOf=function(){return this.value};c.prototype.toString=function(){return this.value+\"\"};c.prototype.toJSON=function(){return this.value};c.prototype.peek=function(){const i=n;n=void 0;try{return this.value}finally{n=i}};Object.defineProperty(c.prototype,\"value\",{get(){const i=u(this);if(void 0!==i)i.i=this.i;return this.v},set(i){if(i!==this.v){if(f>100)throw new Error(\"Cycle detected\");this.v=i;this.i++;e++;r++;try{for(let i=this.t;void 0!==i;i=i.x)i.t.N()}finally{t()}}}});function d(i,t){return new c(i,t)}function v(i){for(let t=i.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function l(i){for(let t=i.s;void 0!==t;t=t.n){const o=t.S.n;if(void 0!==o)t.r=o;t.S.n=t;t.i=-1;if(void 0===t.n){i.s=t;break}}}function y(i){let t,o=i.s;while(void 0!==o){const i=o.p;if(-1===o.i){o.S.U(o);if(void 0!==i)i.n=o.n;if(void 0!==o.n)o.n.p=i}else t=o;o.S.n=o.r;if(void 0!==o.r)o.r=void 0;o=i}i.s=t}function a(i,t){c.call(this,void 0);this.x=i;this.s=void 0;this.g=e-1;this.f=4;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}a.prototype=new c;a.prototype.h=function(){this.f&=-3;if(1&this.f)return!1;if(32==(36&this.f))return!0;this.f&=-5;if(this.g===e)return!0;this.g=e;this.f|=1;if(this.i>0&&!v(this)){this.f&=-2;return!0}const i=n;try{l(this);n=this;const i=this.x();if(16&this.f||this.v!==i||0===this.i){this.v=i;this.f&=-17;this.i++}}catch(i){this.v=i;this.f|=16;this.i++}n=i;y(this);this.f&=-2;return!0};a.prototype.S=function(i){if(void 0===this.t){this.f|=36;for(let i=this.s;void 0!==i;i=i.n)i.S.S(i)}c.prototype.S.call(this,i)};a.prototype.U=function(i){if(void 0!==this.t){c.prototype.U.call(this,i);if(void 0===this.t){this.f&=-33;for(let i=this.s;void 0!==i;i=i.n)i.S.U(i)}}};a.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let i=this.t;void 0!==i;i=i.x)i.t.N()}};Object.defineProperty(a.prototype,\"value\",{get(){if(1&this.f)throw new Error(\"Cycle detected\");const i=u(this);this.h();if(void 0!==i)i.i=this.i;if(16&this.f)throw this.v;return this.v}});function w(i,t){return new a(i,t)}function _(i){const o=i.u;i.u=void 0;if(\"function\"==typeof o){r++;const s=n;n=void 0;try{o()}catch(t){i.f&=-2;i.f|=8;b(i);throw t}finally{n=s;t()}}}function b(i){for(let t=i.s;void 0!==t;t=t.n)t.S.U(t);i.x=void 0;i.s=void 0;_(i)}function g(i){if(n!==this)throw new Error(\"Out-of-order effect\");y(this);n=i;this.f&=-2;if(8&this.f)b(this);t()}function p(i,t){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32;this.name=null==t?void 0:t.name}p.prototype.c=function(){const i=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const t=this.x();if(\"function\"==typeof t)this.u=t}finally{i()}};p.prototype.S=function(){if(1&this.f)throw new Error(\"Cycle detected\");this.f|=1;this.f&=-9;_(this);l(this);r++;const i=n;n=this;return g.bind(this,i)};p.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=s;s=this}};p.prototype.d=function(){this.f|=8;if(!(1&this.f))b(this)};p.prototype.dispose=function(){this.d()};function E(i,t){const o=new p(i,t);try{o.c()}catch(i){o.d();throw i}const n=o.d.bind(o);n[Symbol.dispose]=n;return n}export{a as Computed,p as Effect,c as Signal,o as batch,w as computed,E as effect,d as signal,h as untracked};//# s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'office_small';
17
17
  }
18
- export type AiTool = 'claude' | 'cursor' | 'copilot' | 'codex';
19
- export type AiMode = 'agent' | 'oversight' | 'collaborate';
18
+ export type AiMode = 'agent' | 'collaborate';
20
19
  /**
21
20
  * AI agent tooling configuration.
22
21
  * Enables AI agent control of the emulated XR runtime via MCP + WebSocket.
@@ -24,16 +23,15 @@ export type AiMode = 'agent' | 'oversight' | 'collaborate';
24
23
  export interface AiOptions {
25
24
  /**
26
25
  * Usage mode:
27
- * - `'agent'`: Headless Playwright, fixed viewport, no DevUI. Normal browser opens for the human.
28
- * - `'oversight'`: Visible Playwright, freely resizable, no DevUI. Human watches the agent.
26
+ * - `'agent'`: Headless Playwright, fixed viewport, no DevUI.
29
27
  * - `'collaborate'`: Visible Playwright, freely resizable, DevUI on. Human and agent share the session.
30
- * @default 'agent'
28
+ * @default 'collaborate'
31
29
  */
32
30
  mode?: AiMode;
33
31
  /**
34
32
  * Screenshot size constraint.
35
33
  * - In agent mode: sets the Playwright viewport dimensions directly.
36
- * - In oversight/collaborate: screenshots are downscaled to fit within
34
+ * - In collaborate mode: screenshots are downscaled to fit within
37
35
  * this bounding box, preserving aspect ratio.
38
36
  * @default { width: 800, height: 800 }
39
37
  */
@@ -42,6 +40,36 @@ export interface AiOptions {
42
40
  height?: number;
43
41
  };
44
42
  }
43
+ /**
44
+ * Managed IWSDK workspace configuration.
45
+ * Enables the Playwright-managed runtime/editor workspace without
46
+ * requiring an AI mode.
47
+ */
48
+ export interface WorkspaceOptions {
49
+ /**
50
+ * Enable the managed workspace.
51
+ * @default false unless ai is configured
52
+ */
53
+ enabled?: boolean;
54
+ /**
55
+ * Launch the managed browser when the dev server starts.
56
+ * @default true
57
+ */
58
+ open?: boolean;
59
+ /**
60
+ * Launch the managed workspace headlessly.
61
+ * @default false for workspace-only, derived from ai.mode when ai is set
62
+ */
63
+ headless?: boolean;
64
+ /**
65
+ * Screenshot size constraint for managed browser captures.
66
+ * @default { width: 800, height: 800 }
67
+ */
68
+ screenshotSize?: {
69
+ width?: number;
70
+ height?: number;
71
+ };
72
+ }
45
73
  /**
46
74
  * XR emulator configuration
47
75
  */
@@ -76,6 +104,39 @@ export interface EmulatorOptions {
76
104
  * @default /OculusBrowser/
77
105
  */
78
106
  userAgentException?: RegExp;
107
+ /**
108
+ * Whether to inject the IWER (Immersive Web Emulation Runtime).
109
+ * - `true` (default): inject the emulator during development, subject to
110
+ * `activation` and `userAgentException` (which already skips real XR
111
+ * browsers such as OculusBrowser so headsets keep their native WebXR).
112
+ * - `false`: never inject the emulator. Use this for browser-only apps, or to
113
+ * develop exclusively against native WebXR.
114
+ *
115
+ * @remarks
116
+ * Note that `navigator.xr` exists in ordinary desktop Chrome (the API surface
117
+ * is present even with no XR device), so its mere presence is not a reliable
118
+ * signal for whether to emulate — hence a simple opt-out rather than
119
+ * auto-detection.
120
+ * @default true
121
+ */
122
+ iwer?: boolean;
123
+ }
124
+ /**
125
+ * Options for IWSDK's cached, untrusted development certificate.
126
+ */
127
+ export interface DevelopmentHttpsOptions {
128
+ /**
129
+ * Directory used to cache the generated certificate. Relative paths are
130
+ * resolved from the Vite project root.
131
+ * @default '<vite cacheDir>/iwsdk-https'
132
+ */
133
+ certDir?: string;
134
+ /** Additional DNS names to include in the certificate. */
135
+ domains?: string[];
136
+ /** Certificate common name. */
137
+ name?: string;
138
+ /** Certificate lifetime in days. */
139
+ ttlDays?: number;
79
140
  }
80
141
  /**
81
142
  * Main plugin options interface
@@ -92,6 +153,24 @@ export interface DevPluginOptions {
92
153
  * runtime session publication).
93
154
  */
94
155
  ai?: AiOptions;
156
+ /**
157
+ * Managed workspace configuration. AI modes imply a managed workspace, but
158
+ * this option can be used for manual editor workflows without an active AI
159
+ * mode.
160
+ */
161
+ workspace?: WorkspaceOptions;
162
+ /**
163
+ * Configure the cached, self-signed HTTPS certificate used by the Vite dev
164
+ * server. IWSDK enables it by default so WebXR is available on physical
165
+ * headsets without installing a local certificate authority. The managed
166
+ * Playwright browser accepts the certificate automatically; headset browsers
167
+ * show their normal one-time warning.
168
+ *
169
+ * Set this to `false` to opt into HTTP. A `server.https` value supplied to
170
+ * Vite takes precedence, so projects can also provide their own certificate.
171
+ * @default true
172
+ */
173
+ https?: boolean | DevelopmentHttpsOptions;
95
174
  /**
96
175
  * Enable verbose logging
97
176
  * @default false
@@ -104,6 +183,8 @@ export type IWERPluginOptions = DevPluginOptions;
104
183
  * Internal processed options with all defaults applied
105
184
  */
106
185
  export interface ProcessedDevOptions {
186
+ assetManifest?: string;
187
+ componentManifest?: string;
107
188
  device: 'metaQuest2' | 'metaQuest3' | 'metaQuestPro' | 'oculusQuest1';
108
189
  sem?: {
109
190
  defaultScene: string;
@@ -121,10 +202,25 @@ export interface ProcessedDevOptions {
121
202
  height: number;
122
203
  };
123
204
  };
205
+ workspace?: {
206
+ enabled: boolean;
207
+ open: boolean;
208
+ headless: boolean;
209
+ devUI: boolean;
210
+ viewport: {
211
+ width: number;
212
+ height: number;
213
+ } | null;
214
+ screenshotSize: {
215
+ width: number;
216
+ height: number;
217
+ };
218
+ };
124
219
  injectOnBuild: boolean;
125
220
  activation: 'localhost' | 'always' | RegExp;
126
221
  verbose: boolean;
127
222
  userAgentException?: RegExp | string;
223
+ iwer: boolean;
128
224
  }
129
225
  /** @deprecated Use `ProcessedDevOptions` instead */
130
226
  export type ProcessedIWEROptions = ProcessedDevOptions;
package/package.json CHANGED
@@ -1,14 +1,43 @@
1
1
  {
2
2
  "name": "@iwsdk/vite-plugin-dev",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "description": "Vite plugin for IWSDK development — XR emulation, AI agent tooling, and Playwright browser",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./client": {
14
+ "types": "./client.d.ts"
15
+ },
16
+ "./editor/session": {
17
+ "types": "./dist/editor/scene-editor-session.d.ts",
18
+ "import": "./dist/editor/scene-editor-session.js"
19
+ },
20
+ "./editor/workspace": {
21
+ "types": "./dist/editor/editor-workspace.d.ts",
22
+ "import": "./dist/editor/editor-workspace.js"
23
+ }
24
+ },
8
25
  "files": [
9
26
  "dist",
27
+ "client.d.ts",
10
28
  "README.md"
11
29
  ],
30
+ "scripts": {
31
+ "prebuild": "corepack pnpm@10.18.3 --filter @iwsdk/cli build",
32
+ "prebuild:plugin": "corepack pnpm@10.18.3 --filter @iwsdk/cli build",
33
+ "build": "rollup -c rollup.injection.config.js && rollup -c rollup.config.js",
34
+ "build:plugin": "rollup -c rollup.config.js",
35
+ "build:injection": "rollup -c rollup.injection.config.js",
36
+ "test": "corepack pnpm@10.18.3 --filter @iwsdk/scene-composition build && corepack pnpm@10.18.3 --filter @iwsdk/core build && corepack pnpm@10.18.3 --filter @iwsdk/cli build && corepack pnpm@10.18.3 run build:injection && rollup -c rollup.config.js && vitest run",
37
+ "test:watch": "vitest",
38
+ "dev": "rollup -c --watch",
39
+ "clean": "rm -rf dist"
40
+ },
12
41
  "keywords": [
13
42
  "vite",
14
43
  "plugin",
@@ -24,33 +53,30 @@
24
53
  "author": "Felix Zhang <fe1ix@meta.com>",
25
54
  "license": "MIT",
26
55
  "dependencies": {
27
- "@iwer/devui": "^2.2.0",
28
- "@iwer/sem": "^0.2.5",
29
- "iwer": "^2.2.1",
56
+ "@vitejs/plugin-basic-ssl": "^2.3.0",
57
+ "@iwer/devui": "^2.3.0",
58
+ "@iwer/sem": "^2.3.0",
59
+ "@iwsdk/core": "workspace:*",
60
+ "@iwsdk/scene-composition": "workspace:*",
61
+ "@preact/signals-core": "^1.12.1",
62
+ "iwer": "^2.3.0",
63
+ "lucide": "^0.468.0",
30
64
  "playwright": "^1.58.2",
31
- "sharp": "^0.33.0",
32
- "ws": "^8.18.0"
65
+ "preact": "^10.29.7",
66
+ "sharp": "^0.35.3",
67
+ "three": "npm:super-three@0.181.0",
68
+ "three-viewport-gizmo": "^2.2.0",
69
+ "ws": "^8.21.1"
33
70
  },
34
71
  "devDependencies": {
72
+ "@iwsdk/cli": "workspace:*",
35
73
  "@types/ws": "^8.5.13",
36
- "vitest": "^4.0.0",
37
- "@iwsdk/cli": "0.4.2"
74
+ "vitest": "^4.1.10"
38
75
  },
39
76
  "peerDependencies": {
40
77
  "vite": "^7.0.0"
41
78
  },
42
79
  "engines": {
43
80
  "node": ">=20.19.0 <21.0.0-0 || >=22.12.0 <23.0.0-0 || >=24.0.0"
44
- },
45
- "scripts": {
46
- "prebuild": "pnpm --filter @iwsdk/cli build",
47
- "prebuild:plugin": "pnpm --filter @iwsdk/cli build",
48
- "build": "rollup -c rollup.injection.config.js && rollup -c rollup.config.js",
49
- "build:plugin": "rollup -c rollup.config.js",
50
- "build:injection": "rollup -c rollup.injection.config.js",
51
- "test": "pnpm --filter @iwsdk/cli build && vitest run",
52
- "test:watch": "vitest",
53
- "dev": "rollup -c --watch",
54
- "clean": "rm -rf dist"
55
81
  }
56
- }
82
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Meta Platforms, Inc. and affiliates.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.