@h1r-ai/croche-cli 0.5.5 → 0.6.0

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 (44) hide show
  1. package/README.md +267 -148
  2. package/THIRD-PARTY-NOTICES +7 -8
  3. package/dist/bin.js +29 -25
  4. package/dist/chunk-66EUX7EL.js +165 -0
  5. package/dist/chunk-DKT5HHSB.js +532 -0
  6. package/dist/chunk-K3UDT4EM.js +3110 -0
  7. package/dist/collector-credential.d.ts +9 -0
  8. package/dist/config-authoring.d.ts +19 -0
  9. package/dist/config-bases.d.ts +17 -0
  10. package/dist/config-push-base-35HX67AJ.js +2254 -0
  11. package/dist/config-push-base.d.ts +7 -0
  12. package/dist/control-address.d.ts +2 -0
  13. package/dist/control-server.d.ts +12 -15
  14. package/dist/control-server.js +9 -288
  15. package/dist/control-v2-auth.d.ts +24 -0
  16. package/dist/control-v2-capture.d.ts +34 -0
  17. package/dist/control-v2-json.d.ts +15 -0
  18. package/dist/control-v2-state.d.ts +90 -0
  19. package/dist/credentials.d.ts +2 -2
  20. package/dist/debugger/public/index.html +1 -0
  21. package/dist/debugger/public/stage-control.js +84 -0
  22. package/dist/debugger/public/stage-manifest.js +45 -0
  23. package/dist/debugger/public/stage-model.js +103 -0
  24. package/dist/debugger/public/stage-targets.js +18 -0
  25. package/dist/debugger/public/stage.css +459 -0
  26. package/dist/debugger/public/stage.html +17 -0
  27. package/dist/debugger/public/stage.js +113 -0
  28. package/dist/debugger/server/collector.js +42 -26
  29. package/dist/debugger/server/control-bridge.js +113 -0
  30. package/dist/debugger/server/server.js +10 -1
  31. package/dist/debugger/server/viewer-security.js +12 -0
  32. package/dist/debugger.d.ts +16 -6
  33. package/dist/index.d.ts +8 -1
  34. package/dist/index.js +17 -321
  35. package/dist/json-result.d.ts +2 -0
  36. package/package.json +2 -1
  37. package/dist/config.js +0 -100
  38. package/dist/control-client.js +0 -65
  39. package/dist/core-defaults.js +0 -2
  40. package/dist/credentials.js +0 -136
  41. package/dist/debug-keys.js +0 -141
  42. package/dist/debugger.js +0 -469
  43. package/dist/help.js +0 -158
  44. package/dist/text-file.js +0 -15
@@ -0,0 +1,9 @@
1
+ /** Least-privilege bridge projection: never forward ingest/controller secrets. */
2
+ export declare function collectorCredential(control: {
3
+ url: string;
4
+ token: string;
5
+ observe_token?: string;
6
+ }): {
7
+ url: string;
8
+ token: string;
9
+ } | undefined;
@@ -0,0 +1,19 @@
1
+ export declare function buildConfig(directory: string): Promise<{
2
+ id: string;
3
+ schema: number;
4
+ document: string;
5
+ }>;
6
+ export declare function splitConfig(file: string, directory: string): Promise<{
7
+ directory: string;
8
+ revision_id: string;
9
+ schema: number;
10
+ }>;
11
+ export declare function authoringCommand(action: string, args: Record<string, string>): Promise<{
12
+ directory: string;
13
+ revision_id: string;
14
+ schema: number;
15
+ } | {
16
+ file: string;
17
+ revision_id: string;
18
+ schema: number;
19
+ }>;
@@ -0,0 +1,17 @@
1
+ type Context = {
2
+ env: Record<string, string | undefined>;
3
+ request: (path: string) => Promise<unknown>;
4
+ };
5
+ type Base = {
6
+ revision_id: string;
7
+ document_known: boolean;
8
+ installs_7d: number;
9
+ unknown_count: number;
10
+ push_base_hint?: string;
11
+ };
12
+ /** Read the existing Cloud catalog; discovery neither uploads nor selects a base. */
13
+ export declare function listBases(args: Record<string, string>, context: Context): Promise<{
14
+ version: 1;
15
+ bases: Base[];
16
+ }>;
17
+ export {};