@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.
- package/README.md +73 -0
- package/SPEC.md +127 -0
- package/agents/code-reviewer.md +49 -0
- package/agents/debugger.md +25 -0
- package/agents/explore.md +22 -0
- package/agents/general-purpose.md +25 -0
- package/agents/plan.md +28 -0
- package/agents/researcher.md +26 -0
- package/agents/security-auditor.md +44 -0
- package/dist/BrowserWebSocketTransport-e6g854ra.mjs +8 -0
- package/dist/LaunchOptions-d24f2e73.mjs +8 -0
- package/dist/NodeWebSocketTransport-s3fsfh3j.mjs +9 -0
- package/dist/bidi-fwqajnyx.mjs +17261 -0
- package/dist/cli.mjs +1669 -0
- package/dist/devtools-fkz8mzpk.mjs +83 -0
- package/dist/fileFromPath-s8scncrt.mjs +128 -0
- package/dist/helpers-667kxskd.mjs +17 -0
- package/dist/index-4706p1xh.mjs +3238 -0
- package/dist/index-gp8nzd9n.mjs +1561 -0
- package/dist/main-0r35eyef.mjs +16229 -0
- package/dist/main-2aqyq9g6.mjs +24239 -0
- package/dist/main-5vqwebnv.mjs +54 -0
- package/dist/main-7f2pnmhh.mjs +2901 -0
- package/dist/main-7jta7ark.mjs +57 -0
- package/dist/main-8y3fe7c3.mjs +48 -0
- package/dist/main-9w13grbs.mjs +41 -0
- package/dist/main-d71btkt1.mjs +2478 -0
- package/dist/main-h8e68gyt.mjs +2819 -0
- package/dist/main-p2xnn95s.mjs +2240 -0
- package/dist/main-qfprs50h.mjs +1629 -0
- package/dist/main-tqg5vhra.mjs +19 -0
- package/dist/puppeteer-core-qdv3v3fq.mjs +1486 -0
- package/dist/tui-0r2q70wm.mjs +23768 -0
- package/package.json +66 -0
- package/skills/commit/SKILL.md +34 -0
- package/skills/debug/SKILL.md +44 -0
- package/skills/docker/SKILL.md +18 -0
- package/skills/init/SKILL.md +36 -0
- package/skills/nextjs-app-router/SKILL.md +16 -0
- package/skills/nextjs-data-fetching/SKILL.md +16 -0
- package/skills/nextjs-env-config/SKILL.md +18 -0
- package/skills/nextjs-metadata-seo/SKILL.md +17 -0
- package/skills/nextjs-middleware/SKILL.md +18 -0
- package/skills/nextjs-performance/SKILL.md +17 -0
- package/skills/nextjs-route-handler/SKILL.md +18 -0
- package/skills/nextjs-server-actions/SKILL.md +17 -0
- package/skills/nextjs-server-components/SKILL.md +18 -0
- package/skills/power-ui/SKILL.md +40 -0
- package/skills/pr/SKILL.md +38 -0
- package/skills/refactor/SKILL.md +40 -0
- package/skills/remember/SKILL.md +39 -0
- package/skills/review/SKILL.md +22 -0
- package/skills/security-review/SKILL.md +21 -0
- package/skills/simplify/SKILL.md +47 -0
- package/skills/skill-create/SKILL.md +37 -0
- package/skills/test/SKILL.md +34 -0
- 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 };
|