@mathiscode/pucc 1.0.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.
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Parsed command arguments structure
3
+ */
4
+ export interface ParsedArgs {
5
+ /**
6
+ * Positional arguments (array of strings)
7
+ */
8
+ _: string[];
9
+ /**
10
+ * Key-value pairs (all other properties)
11
+ */
12
+ [key: string]: string | number | boolean | string[];
13
+ }
14
+ /**
15
+ * Command handler function signature
16
+ * @param args - Parsed command arguments
17
+ * @param shell - The Pucc instance (for accessing shell methods)
18
+ */
19
+ export type CommandHandler = (args: ParsedArgs, shell?: import('./core/Pucc').Pucc) => void | Promise<void>;
20
+ /**
21
+ * Command definition
22
+ */
23
+ export interface Command {
24
+ name: string;
25
+ description: string;
26
+ handler: CommandHandler;
27
+ }
28
+ /**
29
+ * Window augmentation for Pucc
30
+ */
31
+ declare global {
32
+ interface Window {
33
+ Pucc: import('./core/Pucc').Pucc;
34
+ [key: `$${string}`]: (...args: string[]) => void;
35
+ [key: string]: unknown;
36
+ }
37
+ }
38
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;CACrD;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,OAAO,aAAa,EAAE,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5G;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,IAAI,EAAE,OAAO,aAAa,EAAE,IAAI,CAAC;QACjC,CAAC,GAAG,EAAE,IAAI,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;QACjD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB;CACF"}
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@mathiscode/pucc",
3
+ "version": "1.0.0",
4
+ "license": "MIT",
5
+ "description": "Power User Console Component - A browser console command system library",
6
+ "author": {
7
+ "name": "Jay Mathis",
8
+ "email": "code@mathis.network",
9
+ "url": "https://github.com/mathiscode"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/mathiscode/pucc.git"
14
+ },
15
+ "main": "dist/pucc.js",
16
+ "module": "dist/pucc.esm.js",
17
+ "types": "dist/index.d.ts",
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "build": "node config/build.js",
23
+ "build:dev": "node config/build.js --watch",
24
+ "format": "prettier --write \"src/**/*.ts\"",
25
+ "lint": "eslint src --ext .ts",
26
+ "server": "node server.js",
27
+ "start": "node server.js",
28
+ "type-check": "tsc --noEmit"
29
+ },
30
+ "keywords": [
31
+ "devtools",
32
+ "console",
33
+ "commands",
34
+ "browser"
35
+ ],
36
+ "devDependencies": {
37
+ "@eslint/js": "^10.0.1",
38
+ "@types/node": "^25.3.0",
39
+ "@typescript-eslint/eslint-plugin": "^8.56.0",
40
+ "@typescript-eslint/parser": "^8.56.0",
41
+ "@xterm/addon-fit": "^0.11.0",
42
+ "@xterm/xterm": "^6.0.0",
43
+ "chalk": "^5.6.2",
44
+ "esbuild": "^0.27.3",
45
+ "esbuild-server": "^0.3.0",
46
+ "eslint": "^10.0.1",
47
+ "eslint-config-prettier": "^10.1.8",
48
+ "globals": "^17.3.0",
49
+ "jiti": "^2.6.1",
50
+ "lint-staged": "^16.2.7",
51
+ "prettier": "^3.8.1",
52
+ "typescript": "^5.9.3",
53
+ "typescript-eslint": "^8.56.0"
54
+ },
55
+ "lint-staged": {
56
+ "*.{ts,js}": [
57
+ "eslint --fix",
58
+ "prettier --write"
59
+ ]
60
+ },
61
+ "publishConfig": {
62
+ "access": "public"
63
+ }
64
+ }