cngkit 1.1.4 → 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.
- package/dist/{chunk-XWVFKUUD.js → chunk-F6YQGKLK.js} +2 -2
- package/dist/{chunk-XWVFKUUD.js.map → chunk-F6YQGKLK.js.map} +1 -1
- package/dist/{chunk-HBBUFPJG.js → chunk-Z3J7PPZB.js} +4 -4
- package/dist/chunk-Z3J7PPZB.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/commands/coderoom/join.js +2 -2
- package/dist/commands/coderoom/share.js +2 -2
- package/dist/commands/knowledges/audiences.js +2 -2
- package/dist/commands/knowledges/files.js +2 -2
- package/dist/commands/knowledges/glob.js +2 -2
- package/dist/commands/knowledges/grep.js +2 -2
- package/dist/commands/knowledges/list.js +2 -2
- package/dist/commands/knowledges/read.js +2 -2
- package/dist/commands/knowledges/search.js +2 -2
- package/dist/commands/knowledges/status.js +2 -2
- package/dist/commands/login.js +2 -2
- package/dist/commands/scrub.js +2 -2
- package/dist/commands/transcripts.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-HBBUFPJG.js.map +0 -1
|
@@ -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.
|
|
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-
|
|
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.
|
|
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-
|
|
5
|
+
} from "./chunk-F6YQGKLK.js";
|
|
6
6
|
import {
|
|
7
7
|
formatCngkitHelp
|
|
8
8
|
} from "./chunk-SSRUN6G5.js";
|
|
@@ -4547,7 +4547,7 @@ function normalizeCatalogPath(value) {
|
|
|
4547
4547
|
return relativePath;
|
|
4548
4548
|
}
|
|
4549
4549
|
const [firstSegment, ...restSegments] = relativePath.split("/");
|
|
4550
|
-
if (!firstSegment
|
|
4550
|
+
if (!firstSegment) {
|
|
4551
4551
|
return relativePath;
|
|
4552
4552
|
}
|
|
4553
4553
|
switch (firstSegment) {
|
|
@@ -4561,7 +4561,7 @@ function normalizeCatalogPath(value) {
|
|
|
4561
4561
|
case "procedures":
|
|
4562
4562
|
case "protocols":
|
|
4563
4563
|
case "tools":
|
|
4564
|
-
return `skills/knowledges/subskills/${firstSegment}
|
|
4564
|
+
return `skills/knowledges/subskills/${firstSegment}${restSegments.length > 0 ? `/${restSegments.join("/")}` : ""}`;
|
|
4565
4565
|
default:
|
|
4566
4566
|
return relativePath;
|
|
4567
4567
|
}
|
|
@@ -4582,4 +4582,4 @@ export {
|
|
|
4582
4582
|
runKnowGrepCommand,
|
|
4583
4583
|
runKnowGlobCommand
|
|
4584
4584
|
};
|
|
4585
|
-
//# sourceMappingURL=chunk-
|
|
4585
|
+
//# sourceMappingURL=chunk-Z3J7PPZB.js.map
|