log10x-mcp 1.30.21 → 1.30.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 (78) hide show
  1. package/README.md +3 -1
  2. package/build/index.js +26 -4
  3. package/build/index.js.map +1 -1
  4. package/build/lib/advisor/envelope.d.ts +1 -1
  5. package/build/lib/advisor/reporter-forwarders.d.ts +32 -13
  6. package/build/lib/advisor/reporter-forwarders.js +179 -94
  7. package/build/lib/advisor/reporter-forwarders.js.map +1 -1
  8. package/build/lib/advisor/reporter.d.ts +18 -10
  9. package/build/lib/advisor/reporter.js +43 -16
  10. package/build/lib/advisor/reporter.js.map +1 -1
  11. package/build/lib/advisor/retriever.d.ts +6 -0
  12. package/build/lib/advisor/retriever.js +5 -3
  13. package/build/lib/advisor/retriever.js.map +1 -1
  14. package/build/lib/advisor/types.d.ts +3 -1
  15. package/build/lib/cdk-recipes.d.ts +1 -1
  16. package/build/lib/cdk-recipes.js +21 -10
  17. package/build/lib/cdk-recipes.js.map +1 -1
  18. package/build/lib/discovery/types.d.ts +15 -10
  19. package/build/lib/fenced.d.ts +2 -0
  20. package/build/lib/fenced.js +2 -2
  21. package/build/lib/fenced.js.map +1 -1
  22. package/build/lib/offload-recipes.d.ts +2 -1
  23. package/build/lib/offload-recipes.js +13 -10
  24. package/build/lib/offload-recipes.js.map +1 -1
  25. package/build/lib/poc-report-renderer.js +17 -11
  26. package/build/lib/poc-report-renderer.js.map +1 -1
  27. package/build/lib/retriever-api.d.ts +14 -0
  28. package/build/lib/retriever-api.js +40 -10
  29. package/build/lib/retriever-api.js.map +1 -1
  30. package/build/lib/runtime-image.d.ts +7 -2
  31. package/build/lib/runtime-image.js +7 -2
  32. package/build/lib/runtime-image.js.map +1 -1
  33. package/build/lib/siem/_sampling.js +4 -0
  34. package/build/lib/siem/_sampling.js.map +1 -1
  35. package/build/lib/siem/cloudwatch.d.ts +18 -0
  36. package/build/lib/siem/cloudwatch.js +106 -2
  37. package/build/lib/siem/cloudwatch.js.map +1 -1
  38. package/build/lib/siem/datadog.js +1 -1
  39. package/build/lib/siem/datadog.js.map +1 -1
  40. package/build/lib/siem/elasticsearch.js +13 -1
  41. package/build/lib/siem/elasticsearch.js.map +1 -1
  42. package/build/lib/siem/splunk.d.ts +18 -0
  43. package/build/lib/siem/splunk.js +71 -7
  44. package/build/lib/siem/splunk.js.map +1 -1
  45. package/build/product-kb/docs/apps/receiver/compact/index.md +3 -3
  46. package/build/product-kb/docs/apps/receiver/compact/splunk.md +81 -67
  47. package/build/product-kb/docs/apps/retriever/faq.md +2 -2
  48. package/build/product-kb/docs/engine/launcher/extension.md +20 -20
  49. package/build/product-kb/docs/faq/apps/retriever.md +2 -2
  50. package/build/product-kb/docs/faq/general.md +1 -1
  51. package/build/product-kb/docs/faq/stacks/splunk/comparisons.md +3 -3
  52. package/build/product-kb/docs/faq/stacks/splunk/compatibility.md +19 -242
  53. package/build/product-kb/docs/faq/stacks/splunk/index.md +1 -1
  54. package/build/product-kb/docs/faq/stacks/splunk/kv-store.md +41 -159
  55. package/build/product-kb/docs/faq/stacks/splunk/optimization.md +4 -4
  56. package/build/product-kb/docs/run/input/forwarder/fluentbit/index.md +1 -1
  57. package/build/product-kb/docs/run/input/forwarder/fluentd/index.md +1 -1
  58. package/build/product-kb/docs/run/input/forwarder/otel-collector/index.md +1 -1
  59. package/build/product-kb/docs/run/input/forwarder/vector/index.md +1 -1
  60. package/build/product-kb/docs/summary.md +0 -1
  61. package/build/tools/advise-install.d.ts +25 -18
  62. package/build/tools/advise-install.js +156 -90
  63. package/build/tools/advise-install.js.map +1 -1
  64. package/build/tools/advise-retriever.d.ts +5 -5
  65. package/build/tools/advise-retriever.js +25 -9
  66. package/build/tools/advise-retriever.js.map +1 -1
  67. package/build/tools/doctor.js +3 -2
  68. package/build/tools/doctor.js.map +1 -1
  69. package/build/tools/emit-sample-plan.js +7 -1
  70. package/build/tools/emit-sample-plan.js.map +1 -1
  71. package/build/tools/poc-from-local.js +7 -6
  72. package/build/tools/poc-from-local.js.map +1 -1
  73. package/build/tools/poc-from-siem.js +71 -4
  74. package/build/tools/poc-from-siem.js.map +1 -1
  75. package/build/tools/retriever-query.js +1 -1
  76. package/build/tools/retriever-query.js.map +1 -1
  77. package/package.json +1 -1
  78. package/build/product-kb/docs/run/output/event/dev/index.md +0 -351
@@ -7,8 +7,10 @@
7
7
  *
8
8
  * 1. Asks the next missing question (returning markdown that the agent
9
9
  * surfaces to the user), or
10
- * 2. Once all answers are in, emits a concrete install plan with the
11
- * license JWT pre-filled (auto-fetched from the gateway if absent).
10
+ * 2. Once all answers are in, emits a concrete install plan. By default
11
+ * the plan carries no licence and the engine runs its built-in
12
+ * evaluation licence; a signed-in, pasted or demo JWT is wired in
13
+ * only when the caller asks for one via `license_source`.
12
14
  *
13
15
  * The five decisions, by dependency order:
14
16
  *
@@ -16,26 +18,31 @@
16
18
  * "plug into existing forwarder" (Receiver). The biggest fork.
17
19
  * Q2. (Receiver only) Which forwarder — auto-uses the snapshot's
18
20
  * detected forwarder when there's exactly one; asks if multiple.
19
- * Q3. Backend — where TenXSummary metrics go. Default suggestion:
20
- * log10x SaaS unless airgapped or a backend agent is already
21
- * detected in the cluster.
21
+ * Q3. Backend — where TenXSummary metrics go: the user's own TSDB
22
+ * (prometheus, datadog, elastic, cloudwatch). Backends whose agent
23
+ * discovery detected are listed first. The log10x-hosted backend is
24
+ * for the public demo, not customer installs, so it is never offered
25
+ * or defaulted; it is accepted only when passed explicitly, and then
26
+ * needs a user licence (signin / paste) to receive anything.
22
27
  * Q4. (Backend ≠ log10x only) Airgapped — opt-in for CISO-friction
23
28
  * reduction. Skipped silently when backend=log10x (SaaS implies
24
29
  * not-airgapped).
25
- * Q5. License — auto-fetched from `/api/v1/license/demo` if the user
26
- * hasn't signed in. When `airgapped=true` and the only available
27
- * license is a demo, the wizard surfaces a soft warning that
28
- * demo licenses can't run airgapped (engine downgrades silently
29
- * to online mode), and offers sign-in or proceed-without-airgapped.
30
+ * Q5. License — not asked. The default (`license_source: "builtin"`)
31
+ * puts no licence in the plan: the engine runs its built-in
32
+ * evaluation licence (10 nodes, 30 days from each start,
33
+ * airgapped), so there is nothing to mint, store or mount.
34
+ * `signin` (user-scoped JWT), `paste` (a JWT the user holds) and
35
+ * `demo` (1-node, 14-day JWT) stay available as explicit choices,
36
+ * and each adds a step that creates the licence Secret.
30
37
  *
31
38
  * State retention is via WizardSession on the snapshot store — the
32
39
  * MCP itself is stateless per call, but the snapshot store's 30-min TTL
33
40
  * gives the agent a coherent conversation thread.
34
41
  *
35
- * **Credential note.** The wizard mints a LICENSE JWT (not an api_key)
36
- * for the install plan. The license JWT is the credential the deployed
37
- * engine pods consume — it goes into the helm chart's `log10xLicenseJwt`
38
- * value. The wizard never touches the user's api_key; the api_key stays
42
+ * **Credential note.** When asked to (`signin` / `demo`), the wizard mints
43
+ * a LICENSE JWT (not an api_key) for the install plan. The license JWT is
44
+ * the credential the deployed engine pods consume: it goes into the helm
45
+ * chart's `log10xLicenseJwt` value or a mounted Secret. The wizard never touches the user's api_key; the api_key stays
39
46
  * with the MCP for user-action calls (queries, env management, etc.).
40
47
  * See `../lib/auth-model.ts` for the full split.
41
48
  */
@@ -60,7 +67,7 @@ export declare const adviseInstallSchema: {
60
67
  secretName: string;
61
68
  plainValues?: Record<string, string> | undefined;
62
69
  }>>>;
63
- license_source: z.ZodDefault<z.ZodEnum<["signin", "demo", "paste"]>>;
70
+ license_source: z.ZodOptional<z.ZodEnum<["builtin", "signin", "demo", "paste"]>>;
64
71
  license_jwt_paste: z.ZodOptional<z.ZodString>;
65
72
  namespace: z.ZodOptional<z.ZodString>;
66
73
  release_name: z.ZodOptional<z.ZodString>;
@@ -82,13 +89,12 @@ declare const schemaObj: z.ZodObject<{
82
89
  secretName: string;
83
90
  plainValues?: Record<string, string> | undefined;
84
91
  }>>>;
85
- license_source: z.ZodDefault<z.ZodEnum<["signin", "demo", "paste"]>>;
92
+ license_source: z.ZodOptional<z.ZodEnum<["builtin", "signin", "demo", "paste"]>>;
86
93
  license_jwt_paste: z.ZodOptional<z.ZodString>;
87
94
  namespace: z.ZodOptional<z.ZodString>;
88
95
  release_name: z.ZodOptional<z.ZodString>;
89
96
  action: z.ZodOptional<z.ZodEnum<["install", "verify", "teardown", "all"]>>;
90
97
  }, "strip", z.ZodTypeAny, {
91
- license_source: "demo" | "signin" | "paste";
92
98
  namespace?: string | undefined;
93
99
  app?: "reporter" | "receiver" | undefined;
94
100
  forwarder?: "vector" | "fluentbit" | "fluentd" | "filebeat" | "logstash" | "otel-collector" | undefined;
@@ -96,6 +102,7 @@ declare const schemaObj: z.ZodObject<{
96
102
  snapshot_id?: string | undefined;
97
103
  backends?: string[] | undefined;
98
104
  airgapped?: boolean | undefined;
105
+ license_source?: "demo" | "builtin" | "signin" | "paste" | undefined;
99
106
  license_jwt_paste?: string | undefined;
100
107
  release_name?: string | undefined;
101
108
  backend_credentials?: Record<string, {
@@ -110,7 +117,7 @@ declare const schemaObj: z.ZodObject<{
110
117
  snapshot_id?: string | undefined;
111
118
  backends?: string[] | undefined;
112
119
  airgapped?: boolean | undefined;
113
- license_source?: "demo" | "signin" | "paste" | undefined;
120
+ license_source?: "demo" | "builtin" | "signin" | "paste" | undefined;
114
121
  license_jwt_paste?: string | undefined;
115
122
  release_name?: string | undefined;
116
123
  backend_credentials?: Record<string, {