cngkit 1.1.5 → 1.1.6

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.
@@ -1,7 +1,7 @@
1
1
  // src/config.ts
2
2
  import { randomBytes, randomUUID } from "crypto";
3
3
  import process from "process";
4
- var packageVersion = "1.1.5";
4
+ var packageVersion = "1.1.6";
5
5
  var defaultApiBaseUrl = "https://curly.ng";
6
6
  function resolveApiBaseUrl(options) {
7
7
  return options.apiBaseUrl ?? process.env.CNGKIT_API_BASE_URL ?? defaultApiBaseUrl;
@@ -19,4 +19,4 @@ export {
19
19
  createRoomCode,
20
20
  createPeerId
21
21
  };
22
- //# sourceMappingURL=chunk-TZRXQ6GR.js.map
22
+ //# sourceMappingURL=chunk-F6YQGKLK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/config.ts"],"sourcesContent":["import { randomBytes, randomUUID } from \"node:crypto\";\nimport process from \"node:process\";\n\nexport const packageVersion = \"1.1.5\";\nexport const defaultApiBaseUrl = \"https://curly.ng\";\n\nexport type GlobalCommandOptions = {\n apiBaseUrl?: string;\n};\n\nexport function resolveApiBaseUrl(options: GlobalCommandOptions): string {\n return options.apiBaseUrl ?? process.env.CNGKIT_API_BASE_URL ?? defaultApiBaseUrl;\n}\n\nexport function createRoomCode(): string {\n return randomBytes(4).toString(\"hex\").toUpperCase();\n}\n\nexport function createPeerId(): string {\n return randomUUID();\n}\n"],"mappings":";AAAA,SAAS,aAAa,kBAAkB;AACxC,OAAO,aAAa;AAEb,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAM1B,SAAS,kBAAkB,SAAuC;AACvE,SAAO,QAAQ,cAAc,QAAQ,IAAI,uBAAuB;AAClE;AAEO,SAAS,iBAAyB;AACvC,SAAO,YAAY,CAAC,EAAE,SAAS,KAAK,EAAE,YAAY;AACpD;AAEO,SAAS,eAAuB;AACrC,SAAO,WAAW;AACpB;","names":[]}
1
+ {"version":3,"sources":["../src/config.ts"],"sourcesContent":["import { randomBytes, randomUUID } from \"node:crypto\";\nimport process from \"node:process\";\n\nexport const packageVersion = \"1.1.6\";\nexport const defaultApiBaseUrl = \"https://curly.ng\";\n\nexport type GlobalCommandOptions = {\n apiBaseUrl?: string;\n};\n\nexport function resolveApiBaseUrl(options: GlobalCommandOptions): string {\n return options.apiBaseUrl ?? process.env.CNGKIT_API_BASE_URL ?? defaultApiBaseUrl;\n}\n\nexport function createRoomCode(): string {\n return randomBytes(4).toString(\"hex\").toUpperCase();\n}\n\nexport function createPeerId(): string {\n return randomUUID();\n}\n"],"mappings":";AAAA,SAAS,aAAa,kBAAkB;AACxC,OAAO,aAAa;AAEb,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAM1B,SAAS,kBAAkB,SAAuC;AACvE,SAAO,QAAQ,cAAc,QAAQ,IAAI,uBAAuB;AAClE;AAEO,SAAS,iBAAyB;AACvC,SAAO,YAAY,CAAC,EAAE,SAAS,KAAK,EAAE,YAAY;AACpD;AAEO,SAAS,eAAuB;AACrC,SAAO,WAAW;AACpB;","names":[]}
@@ -2,7 +2,7 @@ import {
2
2
  createPeerId,
3
3
  createRoomCode,
4
4
  resolveApiBaseUrl
5
- } from "./chunk-TZRXQ6GR.js";
5
+ } from "./chunk-F6YQGKLK.js";
6
6
  import {
7
7
  formatCngkitHelp
8
8
  } from "./chunk-SSRUN6G5.js";
@@ -4582,4 +4582,4 @@ export {
4582
4582
  runKnowGrepCommand,
4583
4583
  runKnowGlobCommand
4584
4584
  };
4585
- //# sourceMappingURL=chunk-UXMP5Z5P.js.map
4585
+ //# sourceMappingURL=chunk-Z3J7PPZB.js.map
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  packageVersion
4
- } from "./chunk-TZRXQ6GR.js";
4
+ } from "./chunk-F6YQGKLK.js";
5
5
  import {
6
6
  consoleOutput,
7
7
  formatCngkitHelp,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runJoinCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  GlobalOptionsSchema,
7
7
  RequiredRoomCodeArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runShareCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  GlobalOptionsSchema,
7
7
  OptionalRoomCodeArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runKnowAudiencesCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  JsonOutputOptionsSchema
7
7
  } from "../../chunk-YY2VGJ5N.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runKnowFilesCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  JsonOutputOptionsSchema,
7
7
  OptionalQueryArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runKnowGlobCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  LimitOptionsSchema,
7
7
  OptionalGlobPatternArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runKnowGrepCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  LimitOptionsSchema,
7
7
  RequiredPatternArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runKnowListCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  LimitOptionsSchema,
7
7
  OptionalQueryArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runKnowReadCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  JsonOutputOptionsSchema,
7
7
  RequiredFilePathArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runKnowSearchCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  LimitOptionsSchema,
7
7
  RequiredQueryArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runKnowStatusCommand
3
- } from "../../chunk-UXMP5Z5P.js";
4
- import "../../chunk-TZRXQ6GR.js";
3
+ } from "../../chunk-Z3J7PPZB.js";
4
+ import "../../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  JsonOutputOptionsSchema
7
7
  } from "../../chunk-YY2VGJ5N.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runLoginCommand
3
- } from "../chunk-UXMP5Z5P.js";
4
- import "../chunk-TZRXQ6GR.js";
3
+ } from "../chunk-Z3J7PPZB.js";
4
+ import "../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  GlobalOptionsSchema
7
7
  } from "../chunk-YY2VGJ5N.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runScrubCommand
3
- } from "../chunk-UXMP5Z5P.js";
4
- import "../chunk-TZRXQ6GR.js";
3
+ } from "../chunk-Z3J7PPZB.js";
4
+ import "../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  GlobalOptionsSchema,
7
7
  OptionalPathArgsSchema
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runTranscriptCommand
3
- } from "../chunk-UXMP5Z5P.js";
4
- import "../chunk-TZRXQ6GR.js";
3
+ } from "../chunk-Z3J7PPZB.js";
4
+ import "../chunk-F6YQGKLK.js";
5
5
  import {
6
6
  GlobalOptionsSchema,
7
7
  TranscriptArgsSchema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cngkit",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Opinionated Curly.ng CLI kit for Coderoom collaboration and website tooling.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,6 +16,17 @@
16
16
  "type": "custom",
17
17
  "url": "https://curly.ng/support"
18
18
  },
19
+ "scripts": {
20
+ "build": "tsup --config tsup.config.ts && chmod +x dist/cli.js",
21
+ "clean": "rm -rf dist *.tsbuildinfo",
22
+ "dev": "tsx src/cli.ts",
23
+ "format": "prettier --write README.md src tsconfig.json tsup.config.ts package.json",
24
+ "lint": "eslint src",
25
+ "prepublishOnly": "pnpm run build && pnpm run smoke",
26
+ "smoke": "node dist/cli.js --help && node dist/cli.js --version && node dist/cli.js help && node dist/cli.js help knowledges && node dist/cli.js help coderoom && node dist/cli.js help transcripts && node dist/cli.js login --help && node dist/cli.js coderoom --help && node dist/cli.js coderoom share --help && node dist/cli.js coderoom join --help && node dist/cli.js scrub --help && node dist/cli.js transcripts --help && node dist/cli.js knowledges --help && node dist/cli.js knowledges audiences --help && node dist/cli.js knowledges search --help && node dist/cli.js knowledges read --help && node dist/cli.js knowledges grep --help && node dist/cli.js knowledges glob --help && node dist/cli.js knowledges list --help && node dist/cli.js knowledges files --help && node dist/cli.js knowledges status --help",
27
+ "smoke:docker": "bash scripts/smoke-docker.sh",
28
+ "typecheck": "tsc -p tsconfig.json --noEmit"
29
+ },
19
30
  "publishConfig": {
20
31
  "access": "public"
21
32
  },
@@ -33,6 +44,7 @@
33
44
  "zod": "^4.4.3"
34
45
  },
35
46
  "devDependencies": {
47
+ "@cng/client": "workspace:*",
36
48
  "@types/node": "^20",
37
49
  "@types/react": "^19.2.17",
38
50
  "@types/ws": "^8.18.1",
@@ -40,17 +52,6 @@
40
52
  "prettier": "^3.8.1",
41
53
  "tsup": "^8.5.0",
42
54
  "tsx": "^4.21.0",
43
- "typescript": "5.9.3",
44
- "@cng/client": "0.1.0"
45
- },
46
- "scripts": {
47
- "build": "tsup --config tsup.config.ts && chmod +x dist/cli.js",
48
- "clean": "rm -rf dist *.tsbuildinfo",
49
- "dev": "tsx src/cli.ts",
50
- "format": "prettier --write README.md src tsconfig.json tsup.config.ts package.json",
51
- "lint": "eslint src",
52
- "smoke": "node dist/cli.js --help && node dist/cli.js --version && node dist/cli.js help && node dist/cli.js help knowledges && node dist/cli.js help coderoom && node dist/cli.js help transcripts && node dist/cli.js login --help && node dist/cli.js coderoom --help && node dist/cli.js coderoom share --help && node dist/cli.js coderoom join --help && node dist/cli.js scrub --help && node dist/cli.js transcripts --help && node dist/cli.js knowledges --help && node dist/cli.js knowledges audiences --help && node dist/cli.js knowledges search --help && node dist/cli.js knowledges read --help && node dist/cli.js knowledges grep --help && node dist/cli.js knowledges glob --help && node dist/cli.js knowledges list --help && node dist/cli.js knowledges files --help && node dist/cli.js knowledges status --help",
53
- "smoke:docker": "bash scripts/smoke-docker.sh",
54
- "typecheck": "tsc -p tsconfig.json --noEmit"
55
+ "typescript": "5.9.3"
55
56
  }
56
- }
57
+ }