@pqpo/pragma 0.1.0-next.1
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/LICENSE +322 -0
- package/README.md +65 -0
- package/THIRD_PARTY_NOTICES.txt +8 -0
- package/dist/cli.js +422860 -0
- package/dist/code-service-worker.js +3885 -0
- package/dist/pragma.js +24 -0
- package/package.json +45 -0
package/dist/pragma.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import process from "node:process";
|
|
3
|
+
const nodeVersion = process.versions.node;
|
|
4
|
+
const nodeMajor = Number.parseInt(nodeVersion.split(".", 1)[0] ?? "", 10);
|
|
5
|
+
if (!Number.isInteger(nodeMajor) || nodeMajor < 22) {
|
|
6
|
+
process.stderr.write(
|
|
7
|
+
`Pragma CLI requires Node.js 22 or later; detected Node.js ${nodeVersion}.
|
|
8
|
+
Install a supported Node.js release from https://nodejs.org/ and try again.
|
|
9
|
+
`
|
|
10
|
+
);
|
|
11
|
+
process.exitCode = 2;
|
|
12
|
+
} else {
|
|
13
|
+
try {
|
|
14
|
+
const mainBundle = "./cli.js";
|
|
15
|
+
const cli = await import(mainBundle);
|
|
16
|
+
process.exitCode = await cli.runCli(process.argv.slice(2), {
|
|
17
|
+
writeStdout: (value) => process.stdout.write(value),
|
|
18
|
+
writeStderr: (value) => process.stderr.write(value)
|
|
19
|
+
});
|
|
20
|
+
} catch {
|
|
21
|
+
process.stderr.write("INTERNAL_ERROR: The command could not complete.\n");
|
|
22
|
+
process.exitCode = 10;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pqpo/pragma",
|
|
3
|
+
"version": "0.1.0-next.1",
|
|
4
|
+
"description": "Pragma command-line interface",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"pragma": "./dist/pragma.js"
|
|
9
|
+
},
|
|
10
|
+
"exports": {},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=22"
|
|
13
|
+
},
|
|
14
|
+
"os": [
|
|
15
|
+
"darwin",
|
|
16
|
+
"win32"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"THIRD_PARTY_NOTICES.txt"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@napi-rs/keyring": "1.3.0"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public",
|
|
29
|
+
"registry": "https://registry.npmjs.org"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/pqpo/pragma.git",
|
|
34
|
+
"directory": "apps/cli"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/pqpo/pragma#readme",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/pqpo/pragma/issues"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"pragma",
|
|
42
|
+
"cli",
|
|
43
|
+
"agent"
|
|
44
|
+
]
|
|
45
|
+
}
|