sizmo 0.4.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,13 @@
1
+ // lib/registry.mjs — name → lazy loader. All 10 commands run in-process (v0.3 importable-core).
2
+ export const registry = {
3
+ snapshot: () => import('../commands/snapshot.mjs'),
4
+ triage: () => import('../commands/triage.mjs'),
5
+ pipeline: () => import('../commands/pipeline.mjs'),
6
+ noshow: () => import('../commands/noshow.mjs'),
7
+ segment: () => import('../commands/segment.mjs'),
8
+ receivables: () => import('../commands/receivables.mjs'),
9
+ reconcile: () => import('../commands/reconcile.mjs'),
10
+ 'booked-not-paid': () => import('../commands/booked-not-paid.mjs'),
11
+ brief: () => import('../commands/brief.mjs'),
12
+ focus: () => import('../commands/focus.mjs'),
13
+ };
package/lib/schema.mjs ADDED
@@ -0,0 +1,9 @@
1
+ // lib/schema.mjs — walk registry loaders, read each command's meta, emit a JSON manifest.
2
+ export async function buildSchema(registry, exitCodes) {
3
+ const commands = [];
4
+ for (const [name, loader] of Object.entries(registry)) {
5
+ const mod = await loader();
6
+ if (mod?.meta) commands.push(mod.meta);
7
+ }
8
+ return { schemaVersion: 1, commands, exitCodes };
9
+ }
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "sizmo",
3
+ "version": "0.4.0",
4
+ "description": "Unofficial read-only GoHighLevel CLI for coaches and consultants. Not affiliated with HighLevel.",
5
+ "type": "module",
6
+ "bin": {
7
+ "sizmo": "bin/sizmo.mjs"
8
+ },
9
+ "engines": {
10
+ "node": ">=20"
11
+ },
12
+ "scripts": {
13
+ "test": "node --test",
14
+ "prepublishOnly": "node --test"
15
+ },
16
+ "author": "Sizmo / CJ Salamida",
17
+ "license": "MIT",
18
+ "keywords": [
19
+ "gohighlevel",
20
+ "ghl",
21
+ "crm",
22
+ "cli",
23
+ "leadconnector",
24
+ "read-only"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/csalamida07-cyber/sizmo-ghl-cli.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/csalamida07-cyber/sizmo-ghl-cli/issues"
32
+ },
33
+ "homepage": "https://github.com/csalamida07-cyber/sizmo-ghl-cli#readme",
34
+ "files": [
35
+ "bin/",
36
+ "lib/",
37
+ "commands/",
38
+ "SKILL.md",
39
+ "INSTALL.md",
40
+ "docs/"
41
+ ],
42
+ "publishConfig": {
43
+ "access": "public"
44
+ }
45
+ }