@poolzin/pool-bot 2026.1.37 → 2026.1.39
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/CHANGELOG.md +9 -98
- package/dist/agents/tools/memory-tool.js +1 -2
- package/dist/agents/workspace.js +1 -5
- package/dist/build-info.json +3 -3
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +1 -17
- package/dist/commands/doctor-state-integrity.js +2 -14
- package/dist/config/types.js +0 -1
- package/dist/config/zod-schema.js +0 -6
- package/dist/discord/monitor/message-handler.process.js +6 -4
- package/dist/gateway/client.js +0 -14
- package/dist/gateway/server.impl.js +0 -4
- package/dist/memory/index.js +0 -5
- package/dist/memory/manager.js +2 -25
- package/dist/slack/monitor/message-handler/prepare.js +10 -4
- package/dist/slack/monitor/slash.js +10 -4
- package/extensions/memory-core/package.json +0 -3
- package/package.json +3 -2
- package/skills/webgpu-threejs-tsl/REFERENCE.md +0 -283
- package/skills/webgpu-threejs-tsl/SKILL.md +0 -91
- package/skills/webgpu-threejs-tsl/docs/compute-shaders.md +0 -404
- package/skills/webgpu-threejs-tsl/docs/core-concepts.md +0 -453
- package/skills/webgpu-threejs-tsl/docs/materials.md +0 -353
- package/skills/webgpu-threejs-tsl/docs/post-processing.md +0 -434
- package/skills/webgpu-threejs-tsl/docs/wgsl-integration.md +0 -324
- package/skills/webgpu-threejs-tsl/examples/basic-setup.js +0 -87
- package/skills/webgpu-threejs-tsl/examples/custom-material.js +0 -170
- package/skills/webgpu-threejs-tsl/examples/earth-shader.js +0 -292
- package/skills/webgpu-threejs-tsl/examples/particle-system.js +0 -259
- package/skills/webgpu-threejs-tsl/examples/post-processing.js +0 -199
- package/skills/webgpu-threejs-tsl/templates/compute-shader.js +0 -305
- package/skills/webgpu-threejs-tsl/templates/webgpu-project.js +0 -276
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WebGPU Three.js Project Template
|
|
3
|
-
*
|
|
4
|
-
* A complete starter template with:
|
|
5
|
-
* - WebGPU renderer setup
|
|
6
|
-
* - TSL material example
|
|
7
|
-
* - Post-processing ready
|
|
8
|
-
* - Responsive design
|
|
9
|
-
* - Animation loop
|
|
10
|
-
*
|
|
11
|
-
* Usage:
|
|
12
|
-
* 1. Copy this file to your project
|
|
13
|
-
* 2. Install Three.js: npm install three
|
|
14
|
-
* 3. Replace placeholder content with your scene
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import * as THREE from 'three/webgpu';
|
|
18
|
-
import {
|
|
19
|
-
// Types
|
|
20
|
-
float,
|
|
21
|
-
vec2,
|
|
22
|
-
vec3,
|
|
23
|
-
vec4,
|
|
24
|
-
color,
|
|
25
|
-
uniform,
|
|
26
|
-
|
|
27
|
-
// Geometry
|
|
28
|
-
positionLocal,
|
|
29
|
-
positionWorld,
|
|
30
|
-
normalLocal,
|
|
31
|
-
normalWorld,
|
|
32
|
-
uv,
|
|
33
|
-
|
|
34
|
-
// Camera
|
|
35
|
-
cameraPosition,
|
|
36
|
-
|
|
37
|
-
// Time
|
|
38
|
-
time,
|
|
39
|
-
deltaTime,
|
|
40
|
-
|
|
41
|
-
// Math
|
|
42
|
-
mix,
|
|
43
|
-
smoothstep,
|
|
44
|
-
clamp,
|
|
45
|
-
sin,
|
|
46
|
-
cos,
|
|
47
|
-
|
|
48
|
-
// Texture
|
|
49
|
-
texture,
|
|
50
|
-
|
|
51
|
-
// Functions
|
|
52
|
-
Fn,
|
|
53
|
-
If,
|
|
54
|
-
Loop,
|
|
55
|
-
|
|
56
|
-
// Post-processing
|
|
57
|
-
pass
|
|
58
|
-
} from 'three/tsl';
|
|
59
|
-
|
|
60
|
-
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
|
61
|
-
|
|
62
|
-
// ============================================
|
|
63
|
-
// CONFIGURATION
|
|
64
|
-
// ============================================
|
|
65
|
-
|
|
66
|
-
const CONFIG = {
|
|
67
|
-
// Renderer
|
|
68
|
-
antialias: true,
|
|
69
|
-
pixelRatio: Math.min(window.devicePixelRatio, 2),
|
|
70
|
-
|
|
71
|
-
// Camera
|
|
72
|
-
fov: 60,
|
|
73
|
-
near: 0.1,
|
|
74
|
-
far: 1000,
|
|
75
|
-
position: new THREE.Vector3(0, 2, 5),
|
|
76
|
-
|
|
77
|
-
// Scene
|
|
78
|
-
backgroundColor: 0x111111,
|
|
79
|
-
|
|
80
|
-
// Controls
|
|
81
|
-
enableDamping: true,
|
|
82
|
-
dampingFactor: 0.05
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
// ============================================
|
|
86
|
-
// GLOBALS
|
|
87
|
-
// ============================================
|
|
88
|
-
|
|
89
|
-
let camera, scene, renderer, controls;
|
|
90
|
-
let clock;
|
|
91
|
-
|
|
92
|
-
// Add your uniforms here
|
|
93
|
-
const uniforms = {
|
|
94
|
-
// Example: myColor: uniform(new THREE.Color(0xff0000))
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
// ============================================
|
|
98
|
-
// INITIALIZATION
|
|
99
|
-
// ============================================
|
|
100
|
-
|
|
101
|
-
async function init() {
|
|
102
|
-
// Clock
|
|
103
|
-
clock = new THREE.Clock();
|
|
104
|
-
|
|
105
|
-
// Scene
|
|
106
|
-
scene = new THREE.Scene();
|
|
107
|
-
scene.background = new THREE.Color(CONFIG.backgroundColor);
|
|
108
|
-
|
|
109
|
-
// Camera
|
|
110
|
-
camera = new THREE.PerspectiveCamera(
|
|
111
|
-
CONFIG.fov,
|
|
112
|
-
window.innerWidth / window.innerHeight,
|
|
113
|
-
CONFIG.near,
|
|
114
|
-
CONFIG.far
|
|
115
|
-
);
|
|
116
|
-
camera.position.copy(CONFIG.position);
|
|
117
|
-
|
|
118
|
-
// Renderer
|
|
119
|
-
renderer = new THREE.WebGPURenderer({ antialias: CONFIG.antialias });
|
|
120
|
-
renderer.setSize(window.innerWidth, window.innerHeight);
|
|
121
|
-
renderer.setPixelRatio(CONFIG.pixelRatio);
|
|
122
|
-
document.body.appendChild(renderer.domElement);
|
|
123
|
-
|
|
124
|
-
// Initialize WebGPU
|
|
125
|
-
await renderer.init();
|
|
126
|
-
|
|
127
|
-
// Controls
|
|
128
|
-
controls = new OrbitControls(camera, renderer.domElement);
|
|
129
|
-
controls.enableDamping = CONFIG.enableDamping;
|
|
130
|
-
controls.dampingFactor = CONFIG.dampingFactor;
|
|
131
|
-
|
|
132
|
-
// Setup scene content
|
|
133
|
-
setupLights();
|
|
134
|
-
setupScene();
|
|
135
|
-
|
|
136
|
-
// Optional: Setup post-processing
|
|
137
|
-
// setupPostProcessing();
|
|
138
|
-
|
|
139
|
-
// Events
|
|
140
|
-
window.addEventListener('resize', onWindowResize);
|
|
141
|
-
|
|
142
|
-
// Start animation loop
|
|
143
|
-
renderer.setAnimationLoop(animate);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// ============================================
|
|
147
|
-
// SCENE SETUP
|
|
148
|
-
// ============================================
|
|
149
|
-
|
|
150
|
-
function setupLights() {
|
|
151
|
-
// Ambient light
|
|
152
|
-
const ambientLight = new THREE.AmbientLight(0x404040, 0.5);
|
|
153
|
-
scene.add(ambientLight);
|
|
154
|
-
|
|
155
|
-
// Directional light
|
|
156
|
-
const directionalLight = new THREE.DirectionalLight(0xffffff, 1);
|
|
157
|
-
directionalLight.position.set(5, 10, 5);
|
|
158
|
-
directionalLight.castShadow = true;
|
|
159
|
-
scene.add(directionalLight);
|
|
160
|
-
|
|
161
|
-
// Add more lights as needed
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function setupScene() {
|
|
165
|
-
// ========================================
|
|
166
|
-
// ADD YOUR SCENE CONTENT HERE
|
|
167
|
-
// ========================================
|
|
168
|
-
|
|
169
|
-
// Example: Create a mesh with TSL material
|
|
170
|
-
const geometry = new THREE.BoxGeometry(1, 1, 1);
|
|
171
|
-
const material = createExampleMaterial();
|
|
172
|
-
const mesh = new THREE.Mesh(geometry, material);
|
|
173
|
-
scene.add(mesh);
|
|
174
|
-
|
|
175
|
-
// Example: Add a floor
|
|
176
|
-
const floorGeometry = new THREE.PlaneGeometry(10, 10);
|
|
177
|
-
const floorMaterial = new THREE.MeshStandardNodeMaterial({
|
|
178
|
-
color: 0x333333
|
|
179
|
-
});
|
|
180
|
-
const floor = new THREE.Mesh(floorGeometry, floorMaterial);
|
|
181
|
-
floor.rotation.x = -Math.PI / 2;
|
|
182
|
-
floor.position.y = -0.5;
|
|
183
|
-
scene.add(floor);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function createExampleMaterial() {
|
|
187
|
-
const material = new THREE.MeshStandardNodeMaterial();
|
|
188
|
-
|
|
189
|
-
// ========================================
|
|
190
|
-
// CUSTOMIZE YOUR MATERIAL HERE
|
|
191
|
-
// ========================================
|
|
192
|
-
|
|
193
|
-
// Example: Animated color
|
|
194
|
-
material.colorNode = Fn(() => {
|
|
195
|
-
const t = time.mul(0.5).sin().mul(0.5).add(0.5);
|
|
196
|
-
return mix(color(0x0066ff), color(0xff6600), t);
|
|
197
|
-
})();
|
|
198
|
-
|
|
199
|
-
// Example: PBR properties
|
|
200
|
-
material.roughnessNode = float(0.5);
|
|
201
|
-
material.metalnessNode = float(0.0);
|
|
202
|
-
|
|
203
|
-
// Example: Simple fresnel rim
|
|
204
|
-
material.emissiveNode = Fn(() => {
|
|
205
|
-
const viewDir = cameraPosition.sub(positionWorld).normalize();
|
|
206
|
-
const fresnel = float(1.0).sub(normalWorld.dot(viewDir).saturate()).pow(3.0);
|
|
207
|
-
return color(0x00ffff).mul(fresnel).mul(0.5);
|
|
208
|
-
})();
|
|
209
|
-
|
|
210
|
-
return material;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
// ============================================
|
|
214
|
-
// POST-PROCESSING (Optional)
|
|
215
|
-
// ============================================
|
|
216
|
-
|
|
217
|
-
let postProcessing;
|
|
218
|
-
|
|
219
|
-
function setupPostProcessing() {
|
|
220
|
-
// Uncomment and customize as needed
|
|
221
|
-
|
|
222
|
-
// postProcessing = new THREE.PostProcessing(renderer);
|
|
223
|
-
// const scenePass = pass(scene, camera);
|
|
224
|
-
// const sceneColor = scenePass.getTextureNode('output');
|
|
225
|
-
//
|
|
226
|
-
// // Add effects here
|
|
227
|
-
// postProcessing.outputNode = sceneColor;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
// ============================================
|
|
231
|
-
// ANIMATION LOOP
|
|
232
|
-
// ============================================
|
|
233
|
-
|
|
234
|
-
function animate() {
|
|
235
|
-
const delta = clock.getDelta();
|
|
236
|
-
const elapsed = clock.getElapsedTime();
|
|
237
|
-
|
|
238
|
-
// ========================================
|
|
239
|
-
// UPDATE YOUR SCENE HERE
|
|
240
|
-
// ========================================
|
|
241
|
-
|
|
242
|
-
// Example: Rotate mesh
|
|
243
|
-
const mesh = scene.children.find((child) => child.type === 'Mesh');
|
|
244
|
-
if (mesh) {
|
|
245
|
-
mesh.rotation.y += delta * 0.5;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// Update controls
|
|
249
|
-
controls.update();
|
|
250
|
-
|
|
251
|
-
// Render
|
|
252
|
-
if (postProcessing) {
|
|
253
|
-
postProcessing.render();
|
|
254
|
-
} else {
|
|
255
|
-
renderer.render(scene, camera);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
// ============================================
|
|
260
|
-
// EVENT HANDLERS
|
|
261
|
-
// ============================================
|
|
262
|
-
|
|
263
|
-
function onWindowResize() {
|
|
264
|
-
camera.aspect = window.innerWidth / window.innerHeight;
|
|
265
|
-
camera.updateProjectionMatrix();
|
|
266
|
-
renderer.setSize(window.innerWidth, window.innerHeight);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
// ============================================
|
|
270
|
-
// START
|
|
271
|
-
// ============================================
|
|
272
|
-
|
|
273
|
-
init().catch(console.error);
|
|
274
|
-
|
|
275
|
-
// Export for external access if needed
|
|
276
|
-
export { scene, camera, renderer, uniforms };
|