@hupu-tech/shaper 0.0.0-stage → 0.2.2

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 (82) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +3 -0
  3. package/README.md +282 -2
  4. package/dist/api.d.ts +29 -0
  5. package/dist/auth.d.ts +80 -0
  6. package/dist/cli.js +14 -0
  7. package/dist/cloud-service.d.ts +55 -0
  8. package/dist/cloud.d.ts +71 -0
  9. package/dist/config.d.ts +21 -0
  10. package/dist/core.d.ts +17 -0
  11. package/dist/credentials.d.ts +23 -0
  12. package/dist/dev-runner.js +1 -0
  13. package/dist/dev.d.ts +66 -0
  14. package/dist/index.d.ts +9 -0
  15. package/dist/index.js +1 -0
  16. package/dist/legacy-cloud.d.ts +25 -0
  17. package/dist/runtime.d.ts +54 -0
  18. package/dist/runtime.js +1 -0
  19. package/dist/shared-2ZNSJXPO.js +15 -0
  20. package/dist/shared-BTZI42QW.js +17 -0
  21. package/dist/workspace.d.ts +84 -0
  22. package/package.json +73 -4
  23. package/skills/compat/hupu-cloud/SKILL.md +8 -0
  24. package/skills/core/hupu-business/SKILL.md +14 -0
  25. package/skills/core/hupu-business/references/runtime.md +55 -0
  26. package/skills/core/shaper-backend/SKILL.md +35 -0
  27. package/skills/core/shaper-backend/references/legacy.md +41 -0
  28. package/skills/core/shaper-backend/references/node-server.md +44 -0
  29. package/skills/core/shaper-design/SKILL.md +16 -0
  30. package/skills/core/shaper-development/SKILL.md +54 -0
  31. package/skills/core/shaper-game-development/SKILL.md +16 -0
  32. package/skills/core/shaper-product/SKILL.md +17 -0
  33. package/skills/core/shaper-product/references/ecosystem.md +10 -0
  34. package/skills/core/shaper-release/SKILL.md +17 -0
  35. package/skills/game/shaper-idle-game/SKILL.md +16 -0
  36. package/skills/manifest.json +18 -0
  37. package/templates/cloud-service/README.md +32 -0
  38. package/templates/cloud-service/cloud.json +30 -0
  39. package/templates/cloud-service/handlers.cjs +46 -0
  40. package/templates/cloud-service/migrations/202610250001_init.sql +5 -0
  41. package/templates/cloud-service/migrations/202610250002_events.sql +8 -0
  42. package/templates/h5/docs/design.md +3 -0
  43. package/templates/h5/docs/product.md +3 -0
  44. package/templates/h5/docs/validation.md +3 -0
  45. package/templates/h5/index.html +24 -0
  46. package/templates/h5/package-lock.json +828 -0
  47. package/templates/h5/package.json +15 -0
  48. package/templates/h5/public/.gitkeep +0 -0
  49. package/templates/h5/shaper.config.json +7 -0
  50. package/templates/h5/src/main.js +7 -0
  51. package/templates/h5/src/style.css +21 -0
  52. package/templates/h5/vite.config.js +4 -0
  53. package/templates/phaser/docs/design.md +3 -0
  54. package/templates/phaser/docs/product.md +3 -0
  55. package/templates/phaser/docs/validation.md +3 -0
  56. package/templates/phaser/index.html +2 -0
  57. package/templates/phaser/package-lock.json +1287 -0
  58. package/templates/phaser/package.json +19 -0
  59. package/templates/phaser/public/.gitkeep +0 -0
  60. package/templates/phaser/shaper.config.json +7 -0
  61. package/templates/phaser/src/game/create-game.ts +5 -0
  62. package/templates/phaser/src/game/rules/scoring.ts +2 -0
  63. package/templates/phaser/src/game/scenes/PlayScene.ts +15 -0
  64. package/templates/phaser/src/main.ts +4 -0
  65. package/templates/phaser/src/styles.css +1 -0
  66. package/templates/phaser/tsconfig.json +21 -0
  67. package/templates/phaser/vite.config.ts +4 -0
  68. package/templates/react/docs/design.md +3 -0
  69. package/templates/react/docs/product.md +3 -0
  70. package/templates/react/docs/validation.md +3 -0
  71. package/templates/react/index.html +2 -0
  72. package/templates/react/package-lock.json +1329 -0
  73. package/templates/react/package.json +22 -0
  74. package/templates/react/public/.gitkeep +0 -0
  75. package/templates/react/shaper.config.json +7 -0
  76. package/templates/react/src/app/App.tsx +5 -0
  77. package/templates/react/src/app/styles.css +1 -0
  78. package/templates/react/src/main.tsx +6 -0
  79. package/templates/react/tsconfig.json +21 -0
  80. package/templates/react/vite.config.ts +4 -0
  81. package/vendor/cloud-server/hupu-cloud-server-0.1.0.tgz +0 -0
  82. package/vendor/cloud-server/release.json +12 -0
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "shaper-h5-app",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "preview": "vite preview",
10
+ "check": "node --check src/main.js"
11
+ },
12
+ "devDependencies": {
13
+ "vite": "8.3.4"
14
+ }
15
+ }
File without changes
@@ -0,0 +1,7 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "devCommand": "npm run dev -- --host 127.0.0.1 --port {port} --strictPort",
4
+ "devUrl": "http://127.0.0.1:{port}",
5
+ "buildCommand": "npm run build",
6
+ "outputDir": "dist"
7
+ }
@@ -0,0 +1,7 @@
1
+ import './style.css';
2
+ let count = 0;
3
+ document.querySelector('#play').addEventListener('click', () => {
4
+ count += 1;
5
+ document.querySelector('#status').textContent = `第 ${count} 个灵感,已经点亮。`;
6
+ document.querySelector('.orb').style.transform = `rotate(${count % 2 ? -6 : 6}deg)`;
7
+ });
@@ -0,0 +1,21 @@
1
+ :root { color: #173b35; background: #f1f0e7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; }
2
+ * { box-sizing: border-box; }
3
+ body { margin: 0; }
4
+ main { max-width: 1200px; min-height: 100svh; margin: auto; padding: 36px 48px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; }
5
+ header, footer { grid-column: 1 / -1; }
6
+ header { align-self: start; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
7
+ .brand { font-size: 22px; letter-spacing: .14em; font-weight: 800; }
8
+ .tag, footer { font-size: 12px; color: #5b6c63; }
9
+ .eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 600; }
10
+ h1 { font-size: clamp(36px, 4.5vw, 62px); line-height: 1.18; letter-spacing: -.04em; margin: 25px 0; }
11
+ .intro { max-width: 400px; color: #5b6c63; font-size: 16px; line-height: 1.8; }
12
+ button { margin-top: 20px; cursor: pointer; background: #173b35; color: white; border: 0; border-radius: 6px; padding: 17px 24px; font-size: 15px; }
13
+ button span { margin-left: 32px; }
14
+ button:focus-visible { outline: 3px solid #a07822; outline-offset: 4px; }
15
+ #status { font-size: 13px; margin-top: 18px; }
16
+ .orb { width: min(100%, 420px); aspect-ratio: 1; border-radius: 45% 55% 49% 51%; background: #d9e48a; display: grid; place-items: center; transform: rotate(6deg); transition: transform .3s; }
17
+ .orb span { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
18
+ .orb em { font-style: normal; color: #6c8031; }
19
+ footer { align-self: end; border-top: 1px solid #d6dacf; padding-top: 22px; }
20
+ @media (max-width: 700px) { main { padding: 24px; grid-template-columns: 1fr; } .tag { max-width: 120px; } aside { padding: 12px 30px; } footer { line-height: 1.8; } }
21
+ @media (prefers-reduced-motion: reduce) { .orb { transition: none; } }
@@ -0,0 +1,4 @@
1
+ import { defineConfig } from 'vite';
2
+ // Shaper's host handles requests. Modern target browsers support modulepreload;
3
+ // avoid injecting Vite's fetch-based preload fallback into the delivered app.
4
+ export default defineConfig({ base: './', build: { modulePreload: { polyfill: false } } });
@@ -0,0 +1,3 @@
1
+ # 设计
2
+
3
+ 记录交互、视觉、技术结构及重要取舍。云能力按需增加,不默认开通。
@@ -0,0 +1,3 @@
1
+ # 产品
2
+
3
+ 记录用户目标、主流程、规则与本期完成条件。当前仅初始化工程,具体需求待明确。
@@ -0,0 +1,3 @@
1
+ # 验证
2
+
3
+ 尚未执行业务验证。实现后记录实际命令、页面行为、运行环境与未验证项;构建成功不代表业务已验证。
@@ -0,0 +1,2 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Shaper</title></head><body><div id="app"></div><script type="module" src="/src/main.ts"></script></body></html>