cngkit 1.1.3 → 1.1.5
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 +24 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-SNTLRTQ2.js +34 -0
- package/dist/chunk-SNTLRTQ2.js.map +1 -0
- package/dist/chunk-SSRUN6G5.js +524 -0
- package/dist/chunk-SSRUN6G5.js.map +1 -0
- package/dist/chunk-TZRXQ6GR.js +22 -0
- package/dist/chunk-TZRXQ6GR.js.map +1 -0
- package/dist/chunk-UXMP5Z5P.js +4585 -0
- package/dist/chunk-UXMP5Z5P.js.map +1 -0
- package/dist/chunk-YY2VGJ5N.js +114 -0
- package/dist/chunk-YY2VGJ5N.js.map +1 -0
- package/dist/cli.js +88 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/_app.js +11 -0
- package/dist/commands/_app.js.map +1 -0
- package/dist/commands/coderoom/index.js +24 -0
- package/dist/commands/coderoom/index.js.map +1 -0
- package/dist/commands/coderoom/join.js +29 -0
- package/dist/commands/coderoom/join.js.map +1 -0
- package/dist/commands/coderoom/share.js +29 -0
- package/dist/commands/coderoom/share.js.map +1 -0
- package/dist/commands/index.js +19 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/knowledges/audiences.js +26 -0
- package/dist/commands/knowledges/audiences.js.map +1 -0
- package/dist/commands/knowledges/files.js +44 -0
- package/dist/commands/knowledges/files.js.map +1 -0
- package/dist/commands/knowledges/glob.js +38 -0
- package/dist/commands/knowledges/glob.js.map +1 -0
- package/dist/commands/knowledges/grep.js +61 -0
- package/dist/commands/knowledges/grep.js.map +1 -0
- package/dist/commands/knowledges/index.js +24 -0
- package/dist/commands/knowledges/index.js.map +1 -0
- package/dist/commands/knowledges/list.js +29 -0
- package/dist/commands/knowledges/list.js.map +1 -0
- package/dist/commands/knowledges/read.js +44 -0
- package/dist/commands/knowledges/read.js.map +1 -0
- package/dist/commands/knowledges/search.js +29 -0
- package/dist/commands/knowledges/search.js.map +1 -0
- package/dist/commands/knowledges/status.js +26 -0
- package/dist/commands/knowledges/status.js.map +1 -0
- package/dist/commands/login.js +26 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/scrub.js +42 -0
- package/dist/commands/scrub.js.map +1 -0
- package/dist/commands/transcripts.js +60 -0
- package/dist/commands/transcripts.js.map +1 -0
- package/package.json +24 -19
- package/dist/cli.cjs +0 -25247
- package/dist/cli.cjs.map +0 -1
- package/dist/cli.d.cts +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
import { randomBytes, randomUUID } from "crypto";
|
|
3
|
+
import process from "process";
|
|
4
|
+
var packageVersion = "1.1.5";
|
|
5
|
+
var defaultApiBaseUrl = "https://curly.ng";
|
|
6
|
+
function resolveApiBaseUrl(options) {
|
|
7
|
+
return options.apiBaseUrl ?? process.env.CNGKIT_API_BASE_URL ?? defaultApiBaseUrl;
|
|
8
|
+
}
|
|
9
|
+
function createRoomCode() {
|
|
10
|
+
return randomBytes(4).toString("hex").toUpperCase();
|
|
11
|
+
}
|
|
12
|
+
function createPeerId() {
|
|
13
|
+
return randomUUID();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
packageVersion,
|
|
18
|
+
resolveApiBaseUrl,
|
|
19
|
+
createRoomCode,
|
|
20
|
+
createPeerId
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=chunk-TZRXQ6GR.js.map
|
|
@@ -0,0 +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":[]}
|