@modeloslab/modelcode 0.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 (57) hide show
  1. package/README.md +73 -0
  2. package/SPEC.md +127 -0
  3. package/agents/code-reviewer.md +49 -0
  4. package/agents/debugger.md +25 -0
  5. package/agents/explore.md +22 -0
  6. package/agents/general-purpose.md +25 -0
  7. package/agents/plan.md +28 -0
  8. package/agents/researcher.md +26 -0
  9. package/agents/security-auditor.md +44 -0
  10. package/dist/BrowserWebSocketTransport-e6g854ra.mjs +8 -0
  11. package/dist/LaunchOptions-d24f2e73.mjs +8 -0
  12. package/dist/NodeWebSocketTransport-s3fsfh3j.mjs +9 -0
  13. package/dist/bidi-fwqajnyx.mjs +17261 -0
  14. package/dist/cli.mjs +1669 -0
  15. package/dist/devtools-fkz8mzpk.mjs +83 -0
  16. package/dist/fileFromPath-s8scncrt.mjs +128 -0
  17. package/dist/helpers-667kxskd.mjs +17 -0
  18. package/dist/index-4706p1xh.mjs +3238 -0
  19. package/dist/index-gp8nzd9n.mjs +1561 -0
  20. package/dist/main-0r35eyef.mjs +16229 -0
  21. package/dist/main-2aqyq9g6.mjs +24239 -0
  22. package/dist/main-5vqwebnv.mjs +54 -0
  23. package/dist/main-7f2pnmhh.mjs +2901 -0
  24. package/dist/main-7jta7ark.mjs +57 -0
  25. package/dist/main-8y3fe7c3.mjs +48 -0
  26. package/dist/main-9w13grbs.mjs +41 -0
  27. package/dist/main-d71btkt1.mjs +2478 -0
  28. package/dist/main-h8e68gyt.mjs +2819 -0
  29. package/dist/main-p2xnn95s.mjs +2240 -0
  30. package/dist/main-qfprs50h.mjs +1629 -0
  31. package/dist/main-tqg5vhra.mjs +19 -0
  32. package/dist/puppeteer-core-qdv3v3fq.mjs +1486 -0
  33. package/dist/tui-0r2q70wm.mjs +23768 -0
  34. package/package.json +66 -0
  35. package/skills/commit/SKILL.md +34 -0
  36. package/skills/debug/SKILL.md +44 -0
  37. package/skills/docker/SKILL.md +18 -0
  38. package/skills/init/SKILL.md +36 -0
  39. package/skills/nextjs-app-router/SKILL.md +16 -0
  40. package/skills/nextjs-data-fetching/SKILL.md +16 -0
  41. package/skills/nextjs-env-config/SKILL.md +18 -0
  42. package/skills/nextjs-metadata-seo/SKILL.md +17 -0
  43. package/skills/nextjs-middleware/SKILL.md +18 -0
  44. package/skills/nextjs-performance/SKILL.md +17 -0
  45. package/skills/nextjs-route-handler/SKILL.md +18 -0
  46. package/skills/nextjs-server-actions/SKILL.md +17 -0
  47. package/skills/nextjs-server-components/SKILL.md +18 -0
  48. package/skills/power-ui/SKILL.md +40 -0
  49. package/skills/pr/SKILL.md +38 -0
  50. package/skills/refactor/SKILL.md +40 -0
  51. package/skills/remember/SKILL.md +39 -0
  52. package/skills/review/SKILL.md +22 -0
  53. package/skills/security-review/SKILL.md +21 -0
  54. package/skills/simplify/SKILL.md +47 -0
  55. package/skills/skill-create/SKILL.md +37 -0
  56. package/skills/test/SKILL.md +34 -0
  57. package/skills/vercel-deploy/SKILL.md +16 -0
@@ -0,0 +1,54 @@
1
+ import {
2
+ wrapper_default
3
+ } from "./main-7f2pnmhh.mjs";
4
+ import {
5
+ debugError,
6
+ packageVersion
7
+ } from "./main-h8e68gyt.mjs";
8
+
9
+ // node_modules/puppeteer-core/lib/puppeteer/node/NodeWebSocketTransport.js
10
+ class NodeWebSocketTransport {
11
+ static create(url, headers) {
12
+ return new Promise((resolve, reject) => {
13
+ const ws = new wrapper_default(url, [], {
14
+ followRedirects: true,
15
+ perMessageDeflate: false,
16
+ allowSynchronousEvents: false,
17
+ maxPayload: 256 * 1024 * 1024,
18
+ headers: {
19
+ "User-Agent": `Puppeteer ${packageVersion}`,
20
+ ...headers
21
+ }
22
+ });
23
+ ws.addEventListener("open", () => {
24
+ return resolve(new NodeWebSocketTransport(ws));
25
+ });
26
+ ws.addEventListener("error", reject);
27
+ });
28
+ }
29
+ #ws;
30
+ onmessage;
31
+ onclose;
32
+ constructor(ws) {
33
+ this.#ws = ws;
34
+ this.#ws.addEventListener("message", (event) => {
35
+ if (this.onmessage) {
36
+ this.onmessage.call(null, event.data);
37
+ }
38
+ });
39
+ this.#ws.addEventListener("close", () => {
40
+ if (this.onclose) {
41
+ this.onclose.call(null);
42
+ }
43
+ });
44
+ this.#ws.addEventListener("error", debugError);
45
+ }
46
+ send(message) {
47
+ this.#ws.send(message);
48
+ }
49
+ close() {
50
+ this.#ws.close();
51
+ }
52
+ }
53
+
54
+ export { NodeWebSocketTransport };