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.
Files changed (43) hide show
  1. package/README.md +15 -1
  2. package/dist/{chunk-DCW4RKLC.js → chunk-67FUBMNB.js} +10 -8
  3. package/dist/{chunk-DCW4RKLC.js.map → chunk-67FUBMNB.js.map} +1 -1
  4. package/dist/{chunk-KURN5BJ6.js → chunk-BXS4IKUA.js} +3 -3
  5. package/dist/{chunk-N255PYL7.js → chunk-GYRLVNJX.js} +2 -2
  6. package/dist/{chunk-NLAANOBW.js → chunk-U725ZHCI.js} +2 -2
  7. package/dist/{chunk-TIY4RTXC.js → chunk-WIEYHKQA.js} +2 -2
  8. package/dist/cli.js +1 -1
  9. package/dist/commands/coderoom/index.js +2 -2
  10. package/dist/commands/coderoom/join.js +4 -4
  11. package/dist/commands/coderoom/share.js +4 -4
  12. package/dist/commands/hookify/index.js +2 -2
  13. package/dist/commands/hookify/ingest.js +3 -3
  14. package/dist/commands/hooks/index.js +2 -2
  15. package/dist/commands/hooks/install.js +2 -2
  16. package/dist/commands/hooks/uninstall.js +2 -2
  17. package/dist/commands/index.js +2 -2
  18. package/dist/commands/knowledges/audiences.js +4 -4
  19. package/dist/commands/knowledges/cat.js +4 -4
  20. package/dist/commands/knowledges/files.js +4 -4
  21. package/dist/commands/knowledges/find.js +4 -4
  22. package/dist/commands/knowledges/glob.js +4 -4
  23. package/dist/commands/knowledges/grep.js +4 -4
  24. package/dist/commands/knowledges/head.js +4 -4
  25. package/dist/commands/knowledges/index.js +2 -2
  26. package/dist/commands/knowledges/list.js +4 -4
  27. package/dist/commands/knowledges/ls.js +4 -4
  28. package/dist/commands/knowledges/read.js +4 -4
  29. package/dist/commands/knowledges/realpath.js +2 -2
  30. package/dist/commands/knowledges/search.js +4 -4
  31. package/dist/commands/knowledges/stat.js +4 -4
  32. package/dist/commands/knowledges/status.js +4 -4
  33. package/dist/commands/knowledges/tail.js +4 -4
  34. package/dist/commands/knowledges/tree.js +4 -4
  35. package/dist/commands/login.js +2 -2
  36. package/dist/commands/scrub.js +2 -2
  37. package/dist/commands/transcripts.js +6 -6
  38. package/dist/commands/transcripts.js.map +1 -1
  39. package/package.json +1 -1
  40. /package/dist/{chunk-KURN5BJ6.js.map → chunk-BXS4IKUA.js.map} +0 -0
  41. /package/dist/{chunk-N255PYL7.js.map → chunk-GYRLVNJX.js.map} +0 -0
  42. /package/dist/{chunk-NLAANOBW.js.map → chunk-U725ZHCI.js.map} +0 -0
  43. /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. If this helps you, support the workshop: https://curly.ng/support
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.22";
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 == null || typeof body !== "object") {
3879
+ if (!isRecord(body)) {
3877
3880
  return void 0;
3878
3881
  }
3879
- const record = body;
3880
- const errorField = record.error;
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 record.message === "string") {
3888
- return record.message;
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-DCW4RKLC.js.map
3903
+ //# sourceMappingURL=chunk-67FUBMNB.js.map