@settlemint/dalp-cli 3.0.6-main.28330703758 → 3.0.6-main.28331023435

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 (2) hide show
  1. package/dist/dalp.js +68 -3
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -134879,6 +134879,43 @@ var PlatformStatusV2DataFreshnessOutputSchema = PanelSchema.extend({
134879
134879
  generatedAt: timestamp(),
134880
134880
  stats: DataFreshnessStatsSchema
134881
134881
  });
134882
+ var DebugBundleCategoryIdSchema = exports_external.enum([
134883
+ "build-deploy",
134884
+ "service-health",
134885
+ "restate-state",
134886
+ "blockchain-rpc",
134887
+ "indexer-didx",
134888
+ "database",
134889
+ "recent-errors",
134890
+ "org-config"
134891
+ ]);
134892
+ var DebugBundleCategoryStatusSchema = exports_external.enum(["ok", "partial", "unavailable", "redacted"]);
134893
+ var DebugBundleCategoryEntrySchema = exports_external.object({
134894
+ id: DebugBundleCategoryIdSchema,
134895
+ title: exports_external.string(),
134896
+ source: exports_external.string(),
134897
+ capturedAt: timestamp(),
134898
+ status: DebugBundleCategoryStatusSchema,
134899
+ file: exports_external.string().optional(),
134900
+ note: exports_external.string().optional()
134901
+ });
134902
+ var DebugBundlePlatformSchema = exports_external.object({
134903
+ version: exports_external.string(),
134904
+ commit: exports_external.string(),
134905
+ deploy: exports_external.string()
134906
+ });
134907
+ var DebugBundleManifestSchema = exports_external.object({
134908
+ schemaVersion: exports_external.literal(1),
134909
+ generatedAt: timestamp(),
134910
+ generatedByRole: exports_external.string(),
134911
+ platform: DebugBundlePlatformSchema,
134912
+ categories: exports_external.array(DebugBundleCategoryEntrySchema)
134913
+ });
134914
+ var PlatformStatusV2DebugBundleInputSchema = exports_external.object({}).strict();
134915
+ var PlatformStatusV2DebugBundleOutputSchema = exports_external.object({
134916
+ manifest: DebugBundleManifestSchema,
134917
+ categories: exports_external.record(exports_external.string(), exports_external.unknown())
134918
+ });
134882
134919
  var PlatformStatusV2PlatformApiInputSchema = exports_external.object({}).strict();
134883
134920
  var PlatformStatusV2PlatformApiOutputSchema = PanelSchema.extend({
134884
134921
  generatedAt: timestamp(),
@@ -135142,6 +135179,13 @@ var history4 = v2Contract.route({
135142
135179
  successDescription: "History retrieved successfully",
135143
135180
  tags: [V2_TAG.platformStatus]
135144
135181
  }).input(v2Input.query(PlatformStatusV2HistoryInputSchema)).output(PlatformStatusV2HistoryOutputSchema);
135182
+ var debugBundle = v2Contract.route({
135183
+ method: "GET",
135184
+ path: "/platform-status/debug-bundle",
135185
+ description: "Whole-environment debug snapshot (manifest + per-category payloads) for offline support triage",
135186
+ successDescription: "Debug bundle collected successfully",
135187
+ tags: [V2_TAG.platformStatus]
135188
+ }).input(v2Input.query(PlatformStatusV2DebugBundleInputSchema)).output(PlatformStatusV2DebugBundleOutputSchema);
135145
135189
  var platformStatusV2Contract = {
135146
135190
  dataFreshness,
135147
135191
  transactions,
@@ -135151,7 +135195,8 @@ var platformStatusV2Contract = {
135151
135195
  transactionsList,
135152
135196
  statCards,
135153
135197
  snapshot,
135154
- history: history4
135198
+ history: history4,
135199
+ debugBundle
135155
135200
  };
135156
135201
  var RestateV2CleanupStaleDeploymentsInputSchema = exports_external.object({
135157
135202
  serviceUrl: exports_external.string().url().meta({
@@ -144061,7 +144106,7 @@ function normalizeDalpBaseUrl(url2) {
144061
144106
  }
144062
144107
  var package_default = {
144063
144108
  name: "@settlemint/dalp-sdk",
144064
- version: "3.0.6-main.28330703758",
144109
+ version: "3.0.6-main.28331023435",
144065
144110
  private: false,
144066
144111
  description: "Fully typed SDK for the DALP tokenization platform API",
144067
144112
  homepage: "https://settlemint.com",
@@ -145281,7 +145326,7 @@ var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
145281
145326
  // package.json
145282
145327
  var package_default2 = {
145283
145328
  name: "@settlemint/dalp-cli",
145284
- version: "3.0.6-main.28330703758",
145329
+ version: "3.0.6-main.28331023435",
145285
145330
  private: false,
145286
145331
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
145287
145332
  homepage: "https://settlemint.com",
@@ -209644,6 +209689,26 @@ platformStatusCommand.command("transactions-list", {
209644
209689
  });
209645
209690
  }
209646
209691
  });
209692
+ platformStatusCommand.command("debug-bundle", {
209693
+ description: "Whole-environment debug export (manifest + per-category payloads) for offline support triage",
209694
+ options: exports_external.object({
209695
+ out: exports_external.string().optional().describe("Directory to write the bundle into (manifest.json + <category>.json); prints JSON when omitted")
209696
+ }),
209697
+ async run(c) {
209698
+ const bundle = await c.var.orpc.platformStatus.debugBundle({ query: {} });
209699
+ if (c.options.out === undefined) {
209700
+ return bundle;
209701
+ }
209702
+ const dir = c.options.out;
209703
+ await Promise.all([
209704
+ Bun.write(`${dir}/manifest.json`, `${JSON.stringify(bundle.manifest, null, 2)}
209705
+ `),
209706
+ ...Object.entries(bundle.categories).map(([id, payload]) => Bun.write(`${dir}/${id}.json`, `${JSON.stringify(payload, null, 2)}
209707
+ `))
209708
+ ]);
209709
+ return { out: dir, manifest: `${dir}/manifest.json`, categories: Object.keys(bundle.categories) };
209710
+ }
209711
+ });
209647
209712
 
209648
209713
  // src/commands/restate.ts
209649
209714
  var restateCommand = exports_Cli.create("restate", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "3.0.6-main.28330703758",
3
+ "version": "3.0.6-main.28331023435",
4
4
  "private": false,
5
5
  "description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
6
6
  "homepage": "https://settlemint.com",