@hivey/cli 0.9.60 → 0.9.62

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/native/darwin-arm64/hivey +0 -0
  2. package/package.json +1 -1
  3. package/repo/skills/hivey/scripts/new_wiki.py +12 -0
  4. package/repo/skills/hivey-agent-map/SKILL.md +36 -3
  5. package/repo/skills/hivey-agent-map/scripts/agent_map.py +16 -6
  6. package/repo/skills/hivey-agent-map/scripts/office/OutlineEffect.js +539 -0
  7. package/repo/skills/hivey-agent-map/scripts/office/RoomEnvironment.js +148 -0
  8. package/repo/skills/hivey-agent-map/scripts/office/loaders/GLTFLoader.js +4663 -0
  9. package/repo/skills/hivey-agent-map/scripts/office/models/LICENSE-kenney-space-kit.txt +23 -0
  10. package/repo/skills/hivey-agent-map/scripts/office/models/LICENSE-kenney-space-station-kit.txt +28 -0
  11. package/repo/skills/hivey-agent-map/scripts/office/models/LICENSE-robot.txt +2 -0
  12. package/repo/skills/hivey-agent-map/scripts/office/models/astronautA.glb.b64 +1 -0
  13. package/repo/skills/hivey-agent-map/scripts/office/models/astronautB.glb.b64 +1 -0
  14. package/repo/skills/hivey-agent-map/scripts/office/models/barrels.glb.b64 +1 -0
  15. package/repo/skills/hivey-agent-map/scripts/office/models/barrels_rail.glb.b64 +1 -0
  16. package/repo/skills/hivey-agent-map/scripts/office/models/craft_cargoA.glb.b64 +1 -0
  17. package/repo/skills/hivey-agent-map/scripts/office/models/craft_racer.glb.b64 +1 -0
  18. package/repo/skills/hivey-agent-map/scripts/office/models/craft_speederA.glb.b64 +1 -0
  19. package/repo/skills/hivey-agent-map/scripts/office/models/desk_chairArms.glb.b64 +1 -0
  20. package/repo/skills/hivey-agent-map/scripts/office/models/desk_computer.glb.b64 +1 -0
  21. package/repo/skills/hivey-agent-map/scripts/office/models/machine_generator.glb.b64 +1 -0
  22. package/repo/skills/hivey-agent-map/scripts/office/models/machine_generatorLarge.glb.b64 +1 -0
  23. package/repo/skills/hivey-agent-map/scripts/office/models/machine_wireless.glb.b64 +1 -0
  24. package/repo/skills/hivey-agent-map/scripts/office/models/robot.glb.b64 +1 -0
  25. package/repo/skills/hivey-agent-map/scripts/office/models/satelliteDish_detailed.glb.b64 +1 -0
  26. package/repo/skills/hivey-agent-map/scripts/office/models/satelliteDish_large.glb.b64 +1 -0
  27. package/repo/skills/hivey-agent-map/scripts/office/models/station/Textures/colormap.png.b64 +1 -0
  28. package/repo/skills/hivey-agent-map/scripts/office/models/station/chair-cushion-headrest.glb.b64 +1 -0
  29. package/repo/skills/hivey-agent-map/scripts/office/models/station/computer-system.glb.b64 +1 -0
  30. package/repo/skills/hivey-agent-map/scripts/office/models/station/computer-wide.glb.b64 +1 -0
  31. package/repo/skills/hivey-agent-map/scripts/office/models/station/container-flat.glb.b64 +1 -0
  32. package/repo/skills/hivey-agent-map/scripts/office/models/station/container-tall.glb.b64 +1 -0
  33. package/repo/skills/hivey-agent-map/scripts/office/models/station/container-wide.glb.b64 +1 -0
  34. package/repo/skills/hivey-agent-map/scripts/office/models/station/display-wall-wide.glb.b64 +1 -0
  35. package/repo/skills/hivey-agent-map/scripts/office/models/station/pipe-ring-colored.glb.b64 +1 -0
  36. package/repo/skills/hivey-agent-map/scripts/office/music/README.txt +2 -0
  37. package/repo/skills/hivey-agent-map/scripts/office/music/space.mp3.b64 +1 -0
  38. package/repo/skills/hivey-agent-map/scripts/office/office.html +179 -0
  39. package/repo/skills/hivey-agent-map/scripts/office/office.js +754 -0
  40. package/repo/skills/hivey-agent-map/scripts/office/postprocessing/EffectComposer.js +231 -0
  41. package/repo/skills/hivey-agent-map/scripts/office/postprocessing/MaskPass.js +104 -0
  42. package/repo/skills/hivey-agent-map/scripts/office/postprocessing/OutputPass.js +95 -0
  43. package/repo/skills/hivey-agent-map/scripts/office/postprocessing/Pass.js +95 -0
  44. package/repo/skills/hivey-agent-map/scripts/office/postprocessing/RenderPass.js +99 -0
  45. package/repo/skills/hivey-agent-map/scripts/office/postprocessing/ShaderPass.js +77 -0
  46. package/repo/skills/hivey-agent-map/scripts/office/postprocessing/UnrealBloomPass.js +415 -0
  47. package/repo/skills/hivey-agent-map/scripts/office/shaders/CopyShader.js +45 -0
  48. package/repo/skills/hivey-agent-map/scripts/office/shaders/LuminosityHighPassShader.js +66 -0
  49. package/repo/skills/hivey-agent-map/scripts/office/shaders/OutputShader.js +81 -0
  50. package/repo/skills/hivey-agent-map/scripts/office/ship.js +578 -0
  51. package/repo/skills/hivey-agent-map/scripts/office/three.module.min.js +6 -0
  52. package/repo/skills/hivey-agent-map/scripts/office/utils/BufferGeometryUtils.js +1375 -0
  53. package/repo/skills/hivey-agent-map/scripts/office/utils/SkeletonUtils.js +413 -0
  54. package/repo/skills/hivey-agent-map/scripts/office.py +522 -0
  55. package/repo/skills/hivey-agent-map/scripts/report.py +105 -2
  56. package/repo/skills/hivey-agent-map/scripts/serve.py +190 -9
  57. package/repo/skills/hivey-create-wiki/SKILL.md +27 -2
  58. package/repo/skills/hivey-swarm-creator/SKILL.md +4 -0
  59. package/repo/skills/hivey-swarm-creator/references/wiki-memory.md +3 -0
  60. package/repo/skills/hivey-wiki-lint/SKILL.md +7 -2
@@ -0,0 +1,148 @@
1
+ /**
2
+ * https://github.com/google/model-viewer/blob/master/packages/model-viewer/src/three-components/EnvironmentScene.ts
3
+ */
4
+
5
+ import {
6
+ BackSide,
7
+ BoxGeometry,
8
+ Mesh,
9
+ MeshBasicMaterial,
10
+ MeshStandardMaterial,
11
+ PointLight,
12
+ Scene,
13
+ } from './three.module.min.js';
14
+
15
+ class RoomEnvironment extends Scene {
16
+
17
+ constructor( renderer = null ) {
18
+
19
+ super();
20
+
21
+ const geometry = new BoxGeometry();
22
+ geometry.deleteAttribute( 'uv' );
23
+
24
+ const roomMaterial = new MeshStandardMaterial( { side: BackSide } );
25
+ const boxMaterial = new MeshStandardMaterial();
26
+
27
+ let intensity = 5;
28
+
29
+ if ( renderer !== null && renderer._useLegacyLights === false ) intensity = 900;
30
+
31
+ const mainLight = new PointLight( 0xffffff, intensity, 28, 2 );
32
+ mainLight.position.set( 0.418, 16.199, 0.300 );
33
+ this.add( mainLight );
34
+
35
+ const room = new Mesh( geometry, roomMaterial );
36
+ room.position.set( - 0.757, 13.219, 0.717 );
37
+ room.scale.set( 31.713, 28.305, 28.591 );
38
+ this.add( room );
39
+
40
+ const box1 = new Mesh( geometry, boxMaterial );
41
+ box1.position.set( - 10.906, 2.009, 1.846 );
42
+ box1.rotation.set( 0, - 0.195, 0 );
43
+ box1.scale.set( 2.328, 7.905, 4.651 );
44
+ this.add( box1 );
45
+
46
+ const box2 = new Mesh( geometry, boxMaterial );
47
+ box2.position.set( - 5.607, - 0.754, - 0.758 );
48
+ box2.rotation.set( 0, 0.994, 0 );
49
+ box2.scale.set( 1.970, 1.534, 3.955 );
50
+ this.add( box2 );
51
+
52
+ const box3 = new Mesh( geometry, boxMaterial );
53
+ box3.position.set( 6.167, 0.857, 7.803 );
54
+ box3.rotation.set( 0, 0.561, 0 );
55
+ box3.scale.set( 3.927, 6.285, 3.687 );
56
+ this.add( box3 );
57
+
58
+ const box4 = new Mesh( geometry, boxMaterial );
59
+ box4.position.set( - 2.017, 0.018, 6.124 );
60
+ box4.rotation.set( 0, 0.333, 0 );
61
+ box4.scale.set( 2.002, 4.566, 2.064 );
62
+ this.add( box4 );
63
+
64
+ const box5 = new Mesh( geometry, boxMaterial );
65
+ box5.position.set( 2.291, - 0.756, - 2.621 );
66
+ box5.rotation.set( 0, - 0.286, 0 );
67
+ box5.scale.set( 1.546, 1.552, 1.496 );
68
+ this.add( box5 );
69
+
70
+ const box6 = new Mesh( geometry, boxMaterial );
71
+ box6.position.set( - 2.193, - 0.369, - 5.547 );
72
+ box6.rotation.set( 0, 0.516, 0 );
73
+ box6.scale.set( 3.875, 3.487, 2.986 );
74
+ this.add( box6 );
75
+
76
+
77
+ // -x right
78
+ const light1 = new Mesh( geometry, createAreaLightMaterial( 50 ) );
79
+ light1.position.set( - 16.116, 14.37, 8.208 );
80
+ light1.scale.set( 0.1, 2.428, 2.739 );
81
+ this.add( light1 );
82
+
83
+ // -x left
84
+ const light2 = new Mesh( geometry, createAreaLightMaterial( 50 ) );
85
+ light2.position.set( - 16.109, 18.021, - 8.207 );
86
+ light2.scale.set( 0.1, 2.425, 2.751 );
87
+ this.add( light2 );
88
+
89
+ // +x
90
+ const light3 = new Mesh( geometry, createAreaLightMaterial( 17 ) );
91
+ light3.position.set( 14.904, 12.198, - 1.832 );
92
+ light3.scale.set( 0.15, 4.265, 6.331 );
93
+ this.add( light3 );
94
+
95
+ // +z
96
+ const light4 = new Mesh( geometry, createAreaLightMaterial( 43 ) );
97
+ light4.position.set( - 0.462, 8.89, 14.520 );
98
+ light4.scale.set( 4.38, 5.441, 0.088 );
99
+ this.add( light4 );
100
+
101
+ // -z
102
+ const light5 = new Mesh( geometry, createAreaLightMaterial( 20 ) );
103
+ light5.position.set( 3.235, 11.486, - 12.541 );
104
+ light5.scale.set( 2.5, 2.0, 0.1 );
105
+ this.add( light5 );
106
+
107
+ // +y
108
+ const light6 = new Mesh( geometry, createAreaLightMaterial( 100 ) );
109
+ light6.position.set( 0.0, 20.0, 0.0 );
110
+ light6.scale.set( 1.0, 0.1, 1.0 );
111
+ this.add( light6 );
112
+
113
+ }
114
+
115
+ dispose() {
116
+
117
+ const resources = new Set();
118
+
119
+ this.traverse( ( object ) => {
120
+
121
+ if ( object.isMesh ) {
122
+
123
+ resources.add( object.geometry );
124
+ resources.add( object.material );
125
+
126
+ }
127
+
128
+ } );
129
+
130
+ for ( const resource of resources ) {
131
+
132
+ resource.dispose();
133
+
134
+ }
135
+
136
+ }
137
+
138
+ }
139
+
140
+ function createAreaLightMaterial( intensity ) {
141
+
142
+ const material = new MeshBasicMaterial();
143
+ material.color.setScalar( intensity );
144
+ return material;
145
+
146
+ }
147
+
148
+ export { RoomEnvironment };