@iwsdk/create 1.1.0-rc.1 → 1.1.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.
Files changed (60) hide show
  1. package/dist/cli.js +8 -13
  2. package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/SKILL.md +16 -2
  3. package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/references/environment-recipes.md +234 -0
  4. package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/references/scene-format.md +6 -0
  5. package/dist/guidance/agents/.agents/skills/iwsdk-dev/references/api-reference.md +56 -33
  6. package/dist/guidance/agents/.agents/skills/iwsdk-dev/references/iterate.md +24 -5
  7. package/dist/guidance/agents/.agents/skills/iwsdk-glasses-test/SKILL.md +281 -0
  8. package/dist/guidance/agents/.agents/skills/iwsdk-grab/SKILL.md +24 -1
  9. package/dist/guidance/agents/.agents/skills/iwsdk-ray/SKILL.md +3 -1
  10. package/dist/guidance/agents/.agents/skills/iwsdk-ui/SKILL.md +25 -2
  11. package/dist/guidance/claude/.claude/agents/iwsdk-project-code-reviewer.md +73 -6
  12. package/dist/guidance/claude/.claude/rules/assets-and-manifest.md +2 -0
  13. package/dist/guidance/claude/.claude/rules/ecs-api.md +1 -1
  14. package/dist/guidance/claude/.claude/rules/scene-json.md +3 -1
  15. package/dist/guidance/claude/.claude/rules/uikitml.md +5 -0
  16. package/dist/guidance/claude/.claude/settings.json +1 -0
  17. package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/SKILL.md +16 -2
  18. package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/references/environment-recipes.md +234 -0
  19. package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/references/scene-format.md +6 -0
  20. package/dist/guidance/claude/.claude/skills/iwsdk-dev/references/api-reference.md +56 -33
  21. package/dist/guidance/claude/.claude/skills/iwsdk-dev/references/iterate.md +24 -5
  22. package/dist/guidance/claude/.claude/skills/iwsdk-glasses-test/SKILL.md +281 -0
  23. package/dist/guidance/claude/.claude/skills/iwsdk-grab/SKILL.md +24 -1
  24. package/dist/guidance/claude/.claude/skills/iwsdk-ray/SKILL.md +3 -1
  25. package/dist/guidance/claude/.claude/skills/iwsdk-ui/SKILL.md +25 -2
  26. package/dist/guidance/common/AGENTS.md +25 -12
  27. package/dist/guidance/copilot/.github/instructions/assets-and-manifest.instructions.md +2 -0
  28. package/dist/guidance/copilot/.github/instructions/ecs-api.instructions.md +1 -1
  29. package/dist/guidance/copilot/.github/instructions/scene-json.instructions.md +3 -1
  30. package/dist/guidance/copilot/.github/instructions/uikitml.instructions.md +5 -0
  31. package/dist/guidance/cursor/.cursor/rules/assets-and-manifest.mdc +2 -0
  32. package/dist/guidance/cursor/.cursor/rules/ecs-api.mdc +1 -1
  33. package/dist/guidance/cursor/.cursor/rules/scene-json.mdc +3 -1
  34. package/dist/guidance/cursor/.cursor/rules/uikitml.mdc +5 -0
  35. package/dist/guidance/scoped-agents/public/scenes/AGENTS.md +3 -1
  36. package/dist/guidance/scoped-agents/public/ui/AGENTS.md +5 -0
  37. package/dist/guidance/scoped-agents/src/AGENTS.md +3 -1
  38. package/dist/template/common/README.md +19 -0
  39. package/dist/template/common/public/ui/label-grab.uikitml +57 -0
  40. package/dist/template/common/public/ui/label-select.uikitml +57 -0
  41. package/dist/template/common/public/ui/label-spin.uikitml +57 -0
  42. package/dist/template/common/public/ui/welcome.uikitml +33 -32
  43. package/dist/template/common/src/assets.ts +32 -23
  44. package/dist/template/common/src/scene-assets/decor.scene-asset.ts +781 -0
  45. package/dist/template/common/src/scene-assets/studio.scene-asset.ts +298 -0
  46. package/dist/template/common-js/README.md +19 -0
  47. package/dist/template/common-js/public/ui/label-grab.uikitml +57 -0
  48. package/dist/template/common-js/public/ui/label-select.uikitml +57 -0
  49. package/dist/template/common-js/public/ui/label-spin.uikitml +57 -0
  50. package/dist/template/common-js/public/ui/welcome.uikitml +33 -32
  51. package/dist/template/common-js/src/assets.js +20 -23
  52. package/dist/template/common-js/src/scene-assets/decor.scene-asset.js +554 -0
  53. package/dist/template/common-js/src/scene-assets/studio.scene-asset.js +236 -0
  54. package/dist/template/scenes/ar.iwsdk.scene.json +354 -58
  55. package/dist/template/scenes/immersive.iwsdk.scene.json +435 -54
  56. package/package.json +4 -4
  57. package/dist/template/common/public/gltf/webxr-banner/banner.gltf +0 -68
  58. package/dist/template/common/public/textures/webxr.png +0 -0
  59. package/dist/template/common-js/public/gltf/webxr-banner/banner.gltf +0 -68
  60. package/dist/template/common-js/public/textures/webxr.png +0 -0
@@ -0,0 +1,57 @@
1
+ <!--
2
+ Station label. Plain divs keep these colors in both color schemes.
3
+ -->
4
+ <style>
5
+ .label {
6
+ flex-direction: row;
7
+ align-items: center;
8
+ gap: 18px;
9
+ padding-top: 14px;
10
+ padding-bottom: 14px;
11
+ padding-left: 16px;
12
+ padding-right: 30px;
13
+ border-radius: 26px;
14
+ border-width: 1px;
15
+ border-color: #3a3b40;
16
+ background-color: #232427;
17
+ }
18
+
19
+ .number {
20
+ width: 46px;
21
+ height: 46px;
22
+ flex-shrink: 0;
23
+ align-items: center;
24
+ justify-content: center;
25
+ border-radius: 23px;
26
+ background-color: #f1ece3;
27
+ }
28
+
29
+ .digit {
30
+ color: #1d1e22;
31
+ font-size: 24px;
32
+ font-weight: 700;
33
+ }
34
+
35
+ .text {
36
+ flex-direction: column;
37
+ gap: 4px;
38
+ }
39
+
40
+ .title {
41
+ color: #fafaf7;
42
+ font-size: 28px;
43
+ font-weight: 700;
44
+ }
45
+
46
+ .how {
47
+ color: #eeeff2;
48
+ font-size: 27px;
49
+ }
50
+ </style>
51
+ <div class="label">
52
+ <div class="number"><span class="digit">1</span></div>
53
+ <div class="text">
54
+ <span class="title">Grab</span>
55
+ <span class="how">Point, then hold to move it</span>
56
+ </div>
57
+ </div>
@@ -0,0 +1,57 @@
1
+ <!--
2
+ Station label. Plain divs keep these colors in both color schemes.
3
+ -->
4
+ <style>
5
+ .label {
6
+ flex-direction: row;
7
+ align-items: center;
8
+ gap: 18px;
9
+ padding-top: 14px;
10
+ padding-bottom: 14px;
11
+ padding-left: 16px;
12
+ padding-right: 30px;
13
+ border-radius: 26px;
14
+ border-width: 1px;
15
+ border-color: #3a3b40;
16
+ background-color: #232427;
17
+ }
18
+
19
+ .number {
20
+ width: 46px;
21
+ height: 46px;
22
+ flex-shrink: 0;
23
+ align-items: center;
24
+ justify-content: center;
25
+ border-radius: 23px;
26
+ background-color: #f1ece3;
27
+ }
28
+
29
+ .digit {
30
+ color: #1d1e22;
31
+ font-size: 24px;
32
+ font-weight: 700;
33
+ }
34
+
35
+ .text {
36
+ flex-direction: column;
37
+ gap: 4px;
38
+ }
39
+
40
+ .title {
41
+ color: #fafaf7;
42
+ font-size: 28px;
43
+ font-weight: 700;
44
+ }
45
+
46
+ .how {
47
+ color: #eeeff2;
48
+ font-size: 27px;
49
+ }
50
+ </style>
51
+ <div class="label">
52
+ <div class="number"><span class="digit">2</span></div>
53
+ <div class="text">
54
+ <span class="title">Select</span>
55
+ <span class="how">Point at the robot, then select</span>
56
+ </div>
57
+ </div>
@@ -0,0 +1,57 @@
1
+ <!--
2
+ Station label. Plain divs keep these colors in both color schemes.
3
+ -->
4
+ <style>
5
+ .label {
6
+ flex-direction: row;
7
+ align-items: center;
8
+ gap: 18px;
9
+ padding-top: 14px;
10
+ padding-bottom: 14px;
11
+ padding-left: 16px;
12
+ padding-right: 30px;
13
+ border-radius: 26px;
14
+ border-width: 1px;
15
+ border-color: #3a3b40;
16
+ background-color: #232427;
17
+ }
18
+
19
+ .number {
20
+ width: 46px;
21
+ height: 46px;
22
+ flex-shrink: 0;
23
+ align-items: center;
24
+ justify-content: center;
25
+ border-radius: 23px;
26
+ background-color: #f1ece3;
27
+ }
28
+
29
+ .digit {
30
+ color: #1d1e22;
31
+ font-size: 24px;
32
+ font-weight: 700;
33
+ }
34
+
35
+ .text {
36
+ flex-direction: column;
37
+ gap: 4px;
38
+ }
39
+
40
+ .title {
41
+ color: #fafaf7;
42
+ font-size: 28px;
43
+ font-weight: 700;
44
+ }
45
+
46
+ .how {
47
+ color: #eeeff2;
48
+ font-size: 27px;
49
+ }
50
+ </style>
51
+ <div class="label">
52
+ <div class="number"><span class="digit">3</span></div>
53
+ <div class="text">
54
+ <span class="title">Spin</span>
55
+ <span class="how">Point, then hold to turn it</span>
56
+ </div>
57
+ </div>
@@ -1,54 +1,57 @@
1
1
  <!--
2
- Panel, Divider, Button, ButtonIcon, and ButtonLabel come from the bundled
3
- Horizon kit. RectangleGoggles and LogIn are bundled Lucide icon components.
2
+ Panel, Button, ButtonIcon, and ButtonLabel come from the bundled Horizon kit.
3
+ RectangleGoggles and LogIn are bundled Lucide icon components. The :dark
4
+ styles apply because iwsdk.config.json prefers the dark color scheme.
4
5
  -->
5
6
  <style>
6
7
  .panel-root {
7
8
  flex-direction: column;
8
- width: 344px;
9
+ width: 420px;
9
10
  }
10
11
 
11
12
  .panel-content {
12
- align-items: center;
13
13
  flex-direction: column;
14
- padding-top: 16px;
15
- padding-left: 24px;
16
- padding-right: 24px;
14
+ gap: 7px;
15
+ padding: 22px;
16
+ }
17
+
18
+ .eyebrow {
19
+ color: #6b5a00;
20
+ font-size: 14px;
21
+ font-weight: 700;
22
+ letter-spacing: 1.4px;
23
+ }
24
+
25
+ .eyebrow:dark {
26
+ color: #f5d90a;
17
27
  }
18
28
 
19
29
  .heading {
20
- height: 48px;
21
- text-align: center;
22
- font-size: 24px;
30
+ color: #1c1d20;
31
+ font-size: 30px;
23
32
  font-weight: 700;
24
- line-height: 24px;
25
- letter-spacing: -0.5px;
26
- color: #272727;
33
+ line-height: 36px;
27
34
  }
28
35
 
29
36
  .heading:dark {
30
- color: rgba(255, 255, 255, 0.9);
37
+ color: #fafaf7;
31
38
  }
32
39
 
33
- .sub-heading {
34
- color: #272727;
35
- font-size: 14px;
36
- font-weight: 500;
37
- line-height: 18px;
38
- width: 100%;
39
- margin-top: 10px;
40
+ .body {
41
+ color: #3a3b40;
42
+ font-size: 20px;
43
+ line-height: 27px;
40
44
  }
41
45
 
42
- .sub-heading:dark {
43
- color: rgba(255, 255, 255, 0.9);
46
+ .body:dark {
47
+ color: #dddfe3;
44
48
  }
45
49
 
46
50
  .button {
47
51
  justify-content: flex-start;
48
- margin-left: 24px;
49
- margin-right: 24px;
50
- margin-top: 16px;
51
- margin-bottom: 24px;
52
+ margin-left: 22px;
53
+ margin-right: 22px;
54
+ margin-bottom: 22px;
52
55
  }
53
56
 
54
57
  .button-label {
@@ -57,12 +60,10 @@
57
60
  </style>
58
61
  <Panel class="panel-root">
59
62
  <div class="panel-content">
63
+ <div class="eyebrow">IMMERSIVE WEB SDK</div>
60
64
  <div class="heading">Hello, Immersive Web!</div>
61
- <Divider></Divider>
62
- <div class="sub-heading">
63
- Build interactive browser, mixed-reality, and virtual-reality experiences
64
- with Immersive Web SDK.
65
- </div>
65
+ <div class="body">Try each station around you,</div>
66
+ <div class="body">then make this scene your own.</div>
66
67
  </div>
67
68
  <Button id="xr-button" class="button">
68
69
  <ButtonIcon>
@@ -6,6 +6,19 @@
6
6
  */
7
7
 
8
8
  import { AssetType, defineAssets } from '@iwsdk/core';
9
+ import {
10
+ createGallerySet,
11
+ createSideboardSet,
12
+ } from './scene-assets/decor.scene-asset.js';
13
+ import {
14
+ createGraphiteCube,
15
+ createGraphiteGem,
16
+ createGraphiteKnot,
17
+ createGraphiteRing,
18
+ createPlinth,
19
+ createStage,
20
+ createStudioFloor,
21
+ } from './scene-assets/studio.scene-asset.js';
9
22
 
10
23
  const publicAssetUrl = (filePath: string): string =>
11
24
  `${import.meta.env.BASE_URL}${filePath.replace(/^\/+/u, '')}`;
@@ -21,34 +34,30 @@ function stockAssetUrl(assetId: string, fileName: string): string {
21
34
  return `${stockAssetBase}/${assetId}/${fileName}`;
22
35
  }
23
36
 
37
+ const uikitml = (fileName: string, name: string) => ({
38
+ url: publicAssetUrl(`ui/${fileName}`),
39
+ type: AssetType.UIKitML,
40
+ name,
41
+ });
42
+
24
43
  export default defineAssets({
25
- 'environment-desk': {
26
- url: stockAssetUrl('environment-desk', 'environmentDesk.gltf'),
27
- type: AssetType.GLTF,
28
- name: 'Environment Desk',
29
- priority: 'lazy',
30
- },
31
- 'plant-sansevieria': {
32
- url: stockAssetUrl('plant-sansevieria', 'plantSansevieria.gltf'),
33
- type: AssetType.GLTF,
34
- name: 'Plant Sansevieria',
35
- priority: 'lazy',
36
- },
44
+ 'studio-floor': createStudioFloor(),
45
+ stage: createStage(),
46
+ plinth: createPlinth(),
47
+ 'graphite-cube': createGraphiteCube(),
48
+ 'graphite-gem': createGraphiteGem(),
49
+ 'graphite-knot': createGraphiteKnot(),
50
+ 'graphite-ring': createGraphiteRing(),
51
+ 'gallery-set': createGallerySet(),
52
+ 'sideboard-set': createSideboardSet(),
37
53
  robot: {
38
54
  url: stockAssetUrl('robot', 'robot.gltf'),
39
55
  type: AssetType.GLTF,
40
56
  name: 'Robot',
41
57
  priority: 'lazy',
42
58
  },
43
- 'welcome-panel': {
44
- url: publicAssetUrl('ui/welcome.uikitml'),
45
- type: AssetType.UIKitML,
46
- name: 'Welcome Panel',
47
- },
48
- 'webxr-banner': {
49
- url: publicAssetUrl('gltf/webxr-banner/banner.gltf'),
50
- type: AssetType.GLTF,
51
- name: 'WebXR Banner',
52
- priority: 'lazy',
53
- },
59
+ 'welcome-panel': uikitml('welcome.uikitml', 'Welcome Panel'),
60
+ 'label-grab': uikitml('label-grab.uikitml', 'Grab Label'),
61
+ 'label-select': uikitml('label-select.uikitml', 'Select Label'),
62
+ 'label-spin': uikitml('label-spin.uikitml', 'Spin Label'),
54
63
  });