cngkit 1.1.22 → 1.1.23
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 +15 -1
- package/dist/{chunk-DCW4RKLC.js → chunk-67FUBMNB.js} +10 -8
- package/dist/{chunk-DCW4RKLC.js.map → chunk-67FUBMNB.js.map} +1 -1
- package/dist/{chunk-KURN5BJ6.js → chunk-BXS4IKUA.js} +3 -3
- package/dist/{chunk-N255PYL7.js → chunk-GYRLVNJX.js} +2 -2
- package/dist/{chunk-NLAANOBW.js → chunk-U725ZHCI.js} +2 -2
- package/dist/{chunk-TIY4RTXC.js → chunk-WIEYHKQA.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/commands/coderoom/index.js +2 -2
- package/dist/commands/coderoom/join.js +4 -4
- package/dist/commands/coderoom/share.js +4 -4
- package/dist/commands/hookify/index.js +2 -2
- package/dist/commands/hookify/ingest.js +3 -3
- package/dist/commands/hooks/index.js +2 -2
- package/dist/commands/hooks/install.js +2 -2
- package/dist/commands/hooks/uninstall.js +2 -2
- package/dist/commands/index.js +2 -2
- package/dist/commands/knowledges/audiences.js +4 -4
- package/dist/commands/knowledges/cat.js +4 -4
- package/dist/commands/knowledges/files.js +4 -4
- package/dist/commands/knowledges/find.js +4 -4
- package/dist/commands/knowledges/glob.js +4 -4
- package/dist/commands/knowledges/grep.js +4 -4
- package/dist/commands/knowledges/head.js +4 -4
- package/dist/commands/knowledges/index.js +2 -2
- package/dist/commands/knowledges/list.js +4 -4
- package/dist/commands/knowledges/ls.js +4 -4
- package/dist/commands/knowledges/read.js +4 -4
- package/dist/commands/knowledges/realpath.js +2 -2
- package/dist/commands/knowledges/search.js +4 -4
- package/dist/commands/knowledges/stat.js +4 -4
- package/dist/commands/knowledges/status.js +4 -4
- package/dist/commands/knowledges/tail.js +4 -4
- package/dist/commands/knowledges/tree.js +4 -4
- package/dist/commands/login.js +2 -2
- package/dist/commands/scrub.js +2 -2
- package/dist/commands/transcripts.js +6 -6
- package/dist/commands/transcripts.js.map +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-KURN5BJ6.js.map → chunk-BXS4IKUA.js.map} +0 -0
- /package/dist/{chunk-N255PYL7.js.map → chunk-GYRLVNJX.js.map} +0 -0
- /package/dist/{chunk-NLAANOBW.js.map → chunk-U725ZHCI.js.map} +0 -0
- /package/dist/{chunk-TIY4RTXC.js.map → chunk-WIEYHKQA.js.map} +0 -0
package/README.md
CHANGED
|
@@ -10,6 +10,19 @@ inspection, and terminal access to the hosted Harness knowledge catalog.
|
|
|
10
10
|
well in terminals, scripts, and coding assistants. Human-facing status lines use Ink
|
|
11
11
|
styling when the terminal supports color. Data-heavy output stays plain and easy to pipe.
|
|
12
12
|
|
|
13
|
+
## Important Notice
|
|
14
|
+
|
|
15
|
+
`cngkit` is a personal-use project. I publish it because it solves problems I run into
|
|
16
|
+
in my own operator workflow, not because it is a polished community-maintained open-source
|
|
17
|
+
platform.
|
|
18
|
+
|
|
19
|
+
Assume backend-backed commands send their inputs, metadata, and command context to the
|
|
20
|
+
owner-operated Curly.ng backend for processing. Do not use this package as a self-contained
|
|
21
|
+
offline tool or neutral third-party service boundary.
|
|
22
|
+
|
|
23
|
+
If you need this to become a real open-source project, a self-hostable system, or a package
|
|
24
|
+
with stronger data-processing guarantees, reach out first.
|
|
25
|
+
|
|
13
26
|
## Quick Start
|
|
14
27
|
|
|
15
28
|
Run it without installing:
|
|
@@ -405,4 +418,5 @@ The package build uses `tsup` to emit a file-preserving ESM build. The published
|
|
|
405
418
|
|
|
406
419
|
## License
|
|
407
420
|
|
|
408
|
-
Apache-2.0
|
|
421
|
+
Apache-2.0, with the personal-use and owner-operated backend notice above. If this helps
|
|
422
|
+
you, support the workshop: https://curly.ng/support
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/shared/config.ts
|
|
6
6
|
import process2 from "process";
|
|
7
|
-
var packageVersion = "1.1.
|
|
7
|
+
var packageVersion = "1.1.23";
|
|
8
8
|
var defaultApiBaseUrl = "https://curly.ng";
|
|
9
9
|
function resolveApiBaseUrl(options) {
|
|
10
10
|
void options;
|
|
@@ -3872,20 +3872,22 @@ function formatApiError(error) {
|
|
|
3872
3872
|
}
|
|
3873
3873
|
return error.message;
|
|
3874
3874
|
}
|
|
3875
|
+
function isRecord(value) {
|
|
3876
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
3877
|
+
}
|
|
3875
3878
|
function extractBodyErrorMessage(body) {
|
|
3876
|
-
if (body
|
|
3879
|
+
if (!isRecord(body)) {
|
|
3877
3880
|
return void 0;
|
|
3878
3881
|
}
|
|
3879
|
-
const
|
|
3880
|
-
|
|
3881
|
-
if (errorField != null && typeof errorField === "object") {
|
|
3882
|
+
const errorField = body.error;
|
|
3883
|
+
if (errorField != null && isRecord(errorField)) {
|
|
3882
3884
|
const message = errorField.message;
|
|
3883
3885
|
if (typeof message === "string") {
|
|
3884
3886
|
return message;
|
|
3885
3887
|
}
|
|
3886
3888
|
}
|
|
3887
|
-
if (typeof
|
|
3888
|
-
return
|
|
3889
|
+
if (typeof body.message === "string") {
|
|
3890
|
+
return body.message;
|
|
3889
3891
|
}
|
|
3890
3892
|
return void 0;
|
|
3891
3893
|
}
|
|
@@ -3898,4 +3900,4 @@ export {
|
|
|
3898
3900
|
CngApiClient,
|
|
3899
3901
|
formatError
|
|
3900
3902
|
};
|
|
3901
|
-
//# sourceMappingURL=chunk-
|
|
3903
|
+
//# sourceMappingURL=chunk-67FUBMNB.js.map
|