@temps-sdk/cli 0.1.26 → 0.1.28

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/index.js +1153 -256
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1020,7 +1020,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1020
1020
  this._exitCallback = (err) => {
1021
1021
  if (err.code !== "commander.executeSubCommandAsync") {
1022
1022
  throw err;
1023
- } else {}
1023
+ }
1024
1024
  };
1025
1025
  }
1026
1026
  return this;
@@ -12654,7 +12654,7 @@ var require_dist = __commonJS((exports, module) => {
12654
12654
  exports.default = formatsPlugin;
12655
12655
  });
12656
12656
 
12657
- // node_modules/conf/node_modules/semver/internal/constants.js
12657
+ // node_modules/semver/internal/constants.js
12658
12658
  var require_constants = __commonJS((exports, module) => {
12659
12659
  var SEMVER_SPEC_VERSION = "2.0.0";
12660
12660
  var MAX_LENGTH = 256;
@@ -12682,13 +12682,13 @@ var require_constants = __commonJS((exports, module) => {
12682
12682
  };
12683
12683
  });
12684
12684
 
12685
- // node_modules/conf/node_modules/semver/internal/debug.js
12685
+ // node_modules/semver/internal/debug.js
12686
12686
  var require_debug = __commonJS((exports, module) => {
12687
12687
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
12688
12688
  module.exports = debug;
12689
12689
  });
12690
12690
 
12691
- // node_modules/conf/node_modules/semver/internal/re.js
12691
+ // node_modules/semver/internal/re.js
12692
12692
  var require_re = __commonJS((exports, module) => {
12693
12693
  var {
12694
12694
  MAX_SAFE_COMPONENT_LENGTH,
@@ -12773,7 +12773,7 @@ var require_re = __commonJS((exports, module) => {
12773
12773
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
12774
12774
  });
12775
12775
 
12776
- // node_modules/conf/node_modules/semver/internal/parse-options.js
12776
+ // node_modules/semver/internal/parse-options.js
12777
12777
  var require_parse_options = __commonJS((exports, module) => {
12778
12778
  var looseOption = Object.freeze({ loose: true });
12779
12779
  var emptyOpts = Object.freeze({});
@@ -12789,7 +12789,7 @@ var require_parse_options = __commonJS((exports, module) => {
12789
12789
  module.exports = parseOptions;
12790
12790
  });
12791
12791
 
12792
- // node_modules/conf/node_modules/semver/internal/identifiers.js
12792
+ // node_modules/semver/internal/identifiers.js
12793
12793
  var require_identifiers = __commonJS((exports, module) => {
12794
12794
  var numeric = /^[0-9]+$/;
12795
12795
  var compareIdentifiers = (a, b) => {
@@ -12811,7 +12811,7 @@ var require_identifiers = __commonJS((exports, module) => {
12811
12811
  };
12812
12812
  });
12813
12813
 
12814
- // node_modules/conf/node_modules/semver/classes/semver.js
12814
+ // node_modules/semver/classes/semver.js
12815
12815
  var require_semver = __commonJS((exports, module) => {
12816
12816
  var debug = require_debug();
12817
12817
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -13080,7 +13080,7 @@ var require_semver = __commonJS((exports, module) => {
13080
13080
  module.exports = SemVer;
13081
13081
  });
13082
13082
 
13083
- // node_modules/conf/node_modules/semver/functions/parse.js
13083
+ // node_modules/semver/functions/parse.js
13084
13084
  var require_parse = __commonJS((exports, module) => {
13085
13085
  var SemVer = require_semver();
13086
13086
  var parse = (version, options, throwErrors = false) => {
@@ -13099,7 +13099,7 @@ var require_parse = __commonJS((exports, module) => {
13099
13099
  module.exports = parse;
13100
13100
  });
13101
13101
 
13102
- // node_modules/conf/node_modules/semver/functions/valid.js
13102
+ // node_modules/semver/functions/valid.js
13103
13103
  var require_valid = __commonJS((exports, module) => {
13104
13104
  var parse = require_parse();
13105
13105
  var valid = (version, options) => {
@@ -13109,7 +13109,7 @@ var require_valid = __commonJS((exports, module) => {
13109
13109
  module.exports = valid;
13110
13110
  });
13111
13111
 
13112
- // node_modules/conf/node_modules/semver/functions/clean.js
13112
+ // node_modules/semver/functions/clean.js
13113
13113
  var require_clean = __commonJS((exports, module) => {
13114
13114
  var parse = require_parse();
13115
13115
  var clean = (version, options) => {
@@ -13119,7 +13119,7 @@ var require_clean = __commonJS((exports, module) => {
13119
13119
  module.exports = clean;
13120
13120
  });
13121
13121
 
13122
- // node_modules/conf/node_modules/semver/functions/inc.js
13122
+ // node_modules/semver/functions/inc.js
13123
13123
  var require_inc = __commonJS((exports, module) => {
13124
13124
  var SemVer = require_semver();
13125
13125
  var inc = (version, release, options, identifier, identifierBase) => {
@@ -13137,7 +13137,7 @@ var require_inc = __commonJS((exports, module) => {
13137
13137
  module.exports = inc;
13138
13138
  });
13139
13139
 
13140
- // node_modules/conf/node_modules/semver/functions/diff.js
13140
+ // node_modules/semver/functions/diff.js
13141
13141
  var require_diff = __commonJS((exports, module) => {
13142
13142
  var parse = require_parse();
13143
13143
  var diff = (version1, version2) => {
@@ -13178,28 +13178,28 @@ var require_diff = __commonJS((exports, module) => {
13178
13178
  module.exports = diff;
13179
13179
  });
13180
13180
 
13181
- // node_modules/conf/node_modules/semver/functions/major.js
13181
+ // node_modules/semver/functions/major.js
13182
13182
  var require_major = __commonJS((exports, module) => {
13183
13183
  var SemVer = require_semver();
13184
13184
  var major = (a, loose) => new SemVer(a, loose).major;
13185
13185
  module.exports = major;
13186
13186
  });
13187
13187
 
13188
- // node_modules/conf/node_modules/semver/functions/minor.js
13188
+ // node_modules/semver/functions/minor.js
13189
13189
  var require_minor = __commonJS((exports, module) => {
13190
13190
  var SemVer = require_semver();
13191
13191
  var minor = (a, loose) => new SemVer(a, loose).minor;
13192
13192
  module.exports = minor;
13193
13193
  });
13194
13194
 
13195
- // node_modules/conf/node_modules/semver/functions/patch.js
13195
+ // node_modules/semver/functions/patch.js
13196
13196
  var require_patch = __commonJS((exports, module) => {
13197
13197
  var SemVer = require_semver();
13198
13198
  var patch = (a, loose) => new SemVer(a, loose).patch;
13199
13199
  module.exports = patch;
13200
13200
  });
13201
13201
 
13202
- // node_modules/conf/node_modules/semver/functions/prerelease.js
13202
+ // node_modules/semver/functions/prerelease.js
13203
13203
  var require_prerelease = __commonJS((exports, module) => {
13204
13204
  var parse = require_parse();
13205
13205
  var prerelease = (version, options) => {
@@ -13209,28 +13209,28 @@ var require_prerelease = __commonJS((exports, module) => {
13209
13209
  module.exports = prerelease;
13210
13210
  });
13211
13211
 
13212
- // node_modules/conf/node_modules/semver/functions/compare.js
13212
+ // node_modules/semver/functions/compare.js
13213
13213
  var require_compare = __commonJS((exports, module) => {
13214
13214
  var SemVer = require_semver();
13215
13215
  var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
13216
13216
  module.exports = compare;
13217
13217
  });
13218
13218
 
13219
- // node_modules/conf/node_modules/semver/functions/rcompare.js
13219
+ // node_modules/semver/functions/rcompare.js
13220
13220
  var require_rcompare = __commonJS((exports, module) => {
13221
13221
  var compare = require_compare();
13222
13222
  var rcompare = (a, b, loose) => compare(b, a, loose);
13223
13223
  module.exports = rcompare;
13224
13224
  });
13225
13225
 
13226
- // node_modules/conf/node_modules/semver/functions/compare-loose.js
13226
+ // node_modules/semver/functions/compare-loose.js
13227
13227
  var require_compare_loose = __commonJS((exports, module) => {
13228
13228
  var compare = require_compare();
13229
13229
  var compareLoose = (a, b) => compare(a, b, true);
13230
13230
  module.exports = compareLoose;
13231
13231
  });
13232
13232
 
13233
- // node_modules/conf/node_modules/semver/functions/compare-build.js
13233
+ // node_modules/semver/functions/compare-build.js
13234
13234
  var require_compare_build = __commonJS((exports, module) => {
13235
13235
  var SemVer = require_semver();
13236
13236
  var compareBuild = (a, b, loose) => {
@@ -13241,63 +13241,63 @@ var require_compare_build = __commonJS((exports, module) => {
13241
13241
  module.exports = compareBuild;
13242
13242
  });
13243
13243
 
13244
- // node_modules/conf/node_modules/semver/functions/sort.js
13244
+ // node_modules/semver/functions/sort.js
13245
13245
  var require_sort = __commonJS((exports, module) => {
13246
13246
  var compareBuild = require_compare_build();
13247
13247
  var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
13248
13248
  module.exports = sort;
13249
13249
  });
13250
13250
 
13251
- // node_modules/conf/node_modules/semver/functions/rsort.js
13251
+ // node_modules/semver/functions/rsort.js
13252
13252
  var require_rsort = __commonJS((exports, module) => {
13253
13253
  var compareBuild = require_compare_build();
13254
13254
  var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
13255
13255
  module.exports = rsort;
13256
13256
  });
13257
13257
 
13258
- // node_modules/conf/node_modules/semver/functions/gt.js
13258
+ // node_modules/semver/functions/gt.js
13259
13259
  var require_gt = __commonJS((exports, module) => {
13260
13260
  var compare = require_compare();
13261
13261
  var gt = (a, b, loose) => compare(a, b, loose) > 0;
13262
13262
  module.exports = gt;
13263
13263
  });
13264
13264
 
13265
- // node_modules/conf/node_modules/semver/functions/lt.js
13265
+ // node_modules/semver/functions/lt.js
13266
13266
  var require_lt = __commonJS((exports, module) => {
13267
13267
  var compare = require_compare();
13268
13268
  var lt = (a, b, loose) => compare(a, b, loose) < 0;
13269
13269
  module.exports = lt;
13270
13270
  });
13271
13271
 
13272
- // node_modules/conf/node_modules/semver/functions/eq.js
13272
+ // node_modules/semver/functions/eq.js
13273
13273
  var require_eq = __commonJS((exports, module) => {
13274
13274
  var compare = require_compare();
13275
13275
  var eq = (a, b, loose) => compare(a, b, loose) === 0;
13276
13276
  module.exports = eq;
13277
13277
  });
13278
13278
 
13279
- // node_modules/conf/node_modules/semver/functions/neq.js
13279
+ // node_modules/semver/functions/neq.js
13280
13280
  var require_neq = __commonJS((exports, module) => {
13281
13281
  var compare = require_compare();
13282
13282
  var neq = (a, b, loose) => compare(a, b, loose) !== 0;
13283
13283
  module.exports = neq;
13284
13284
  });
13285
13285
 
13286
- // node_modules/conf/node_modules/semver/functions/gte.js
13286
+ // node_modules/semver/functions/gte.js
13287
13287
  var require_gte = __commonJS((exports, module) => {
13288
13288
  var compare = require_compare();
13289
13289
  var gte = (a, b, loose) => compare(a, b, loose) >= 0;
13290
13290
  module.exports = gte;
13291
13291
  });
13292
13292
 
13293
- // node_modules/conf/node_modules/semver/functions/lte.js
13293
+ // node_modules/semver/functions/lte.js
13294
13294
  var require_lte = __commonJS((exports, module) => {
13295
13295
  var compare = require_compare();
13296
13296
  var lte = (a, b, loose) => compare(a, b, loose) <= 0;
13297
13297
  module.exports = lte;
13298
13298
  });
13299
13299
 
13300
- // node_modules/conf/node_modules/semver/functions/cmp.js
13300
+ // node_modules/semver/functions/cmp.js
13301
13301
  var require_cmp = __commonJS((exports, module) => {
13302
13302
  var eq = require_eq();
13303
13303
  var neq = require_neq();
@@ -13344,7 +13344,7 @@ var require_cmp = __commonJS((exports, module) => {
13344
13344
  module.exports = cmp;
13345
13345
  });
13346
13346
 
13347
- // node_modules/conf/node_modules/semver/functions/coerce.js
13347
+ // node_modules/semver/functions/coerce.js
13348
13348
  var require_coerce = __commonJS((exports, module) => {
13349
13349
  var SemVer = require_semver();
13350
13350
  var parse = require_parse();
@@ -13387,7 +13387,7 @@ var require_coerce = __commonJS((exports, module) => {
13387
13387
  module.exports = coerce;
13388
13388
  });
13389
13389
 
13390
- // node_modules/conf/node_modules/semver/internal/lrucache.js
13390
+ // node_modules/semver/internal/lrucache.js
13391
13391
  var require_lrucache = __commonJS((exports, module) => {
13392
13392
  class LRUCache {
13393
13393
  constructor() {
@@ -13422,7 +13422,7 @@ var require_lrucache = __commonJS((exports, module) => {
13422
13422
  module.exports = LRUCache;
13423
13423
  });
13424
13424
 
13425
- // node_modules/conf/node_modules/semver/classes/range.js
13425
+ // node_modules/semver/classes/range.js
13426
13426
  var require_range = __commonJS((exports, module) => {
13427
13427
  var SPACE_CHARACTERS = /\s+/g;
13428
13428
 
@@ -13796,7 +13796,7 @@ var require_range = __commonJS((exports, module) => {
13796
13796
  };
13797
13797
  });
13798
13798
 
13799
- // node_modules/conf/node_modules/semver/classes/comparator.js
13799
+ // node_modules/semver/classes/comparator.js
13800
13800
  var require_comparator = __commonJS((exports, module) => {
13801
13801
  var ANY = Symbol("SemVer ANY");
13802
13802
 
@@ -13907,7 +13907,7 @@ var require_comparator = __commonJS((exports, module) => {
13907
13907
  var Range = require_range();
13908
13908
  });
13909
13909
 
13910
- // node_modules/conf/node_modules/semver/functions/satisfies.js
13910
+ // node_modules/semver/functions/satisfies.js
13911
13911
  var require_satisfies = __commonJS((exports, module) => {
13912
13912
  var Range = require_range();
13913
13913
  var satisfies = (version, range, options) => {
@@ -13921,14 +13921,14 @@ var require_satisfies = __commonJS((exports, module) => {
13921
13921
  module.exports = satisfies;
13922
13922
  });
13923
13923
 
13924
- // node_modules/conf/node_modules/semver/ranges/to-comparators.js
13924
+ // node_modules/semver/ranges/to-comparators.js
13925
13925
  var require_to_comparators = __commonJS((exports, module) => {
13926
13926
  var Range = require_range();
13927
13927
  var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
13928
13928
  module.exports = toComparators;
13929
13929
  });
13930
13930
 
13931
- // node_modules/conf/node_modules/semver/ranges/max-satisfying.js
13931
+ // node_modules/semver/ranges/max-satisfying.js
13932
13932
  var require_max_satisfying = __commonJS((exports, module) => {
13933
13933
  var SemVer = require_semver();
13934
13934
  var Range = require_range();
@@ -13954,7 +13954,7 @@ var require_max_satisfying = __commonJS((exports, module) => {
13954
13954
  module.exports = maxSatisfying;
13955
13955
  });
13956
13956
 
13957
- // node_modules/conf/node_modules/semver/ranges/min-satisfying.js
13957
+ // node_modules/semver/ranges/min-satisfying.js
13958
13958
  var require_min_satisfying = __commonJS((exports, module) => {
13959
13959
  var SemVer = require_semver();
13960
13960
  var Range = require_range();
@@ -13980,7 +13980,7 @@ var require_min_satisfying = __commonJS((exports, module) => {
13980
13980
  module.exports = minSatisfying;
13981
13981
  });
13982
13982
 
13983
- // node_modules/conf/node_modules/semver/ranges/min-version.js
13983
+ // node_modules/semver/ranges/min-version.js
13984
13984
  var require_min_version = __commonJS((exports, module) => {
13985
13985
  var SemVer = require_semver();
13986
13986
  var Range = require_range();
@@ -14034,7 +14034,7 @@ var require_min_version = __commonJS((exports, module) => {
14034
14034
  module.exports = minVersion;
14035
14035
  });
14036
14036
 
14037
- // node_modules/conf/node_modules/semver/ranges/valid.js
14037
+ // node_modules/semver/ranges/valid.js
14038
14038
  var require_valid2 = __commonJS((exports, module) => {
14039
14039
  var Range = require_range();
14040
14040
  var validRange = (range, options) => {
@@ -14047,7 +14047,7 @@ var require_valid2 = __commonJS((exports, module) => {
14047
14047
  module.exports = validRange;
14048
14048
  });
14049
14049
 
14050
- // node_modules/conf/node_modules/semver/ranges/outside.js
14050
+ // node_modules/semver/ranges/outside.js
14051
14051
  var require_outside = __commonJS((exports, module) => {
14052
14052
  var SemVer = require_semver();
14053
14053
  var Comparator = require_comparator();
@@ -14113,21 +14113,21 @@ var require_outside = __commonJS((exports, module) => {
14113
14113
  module.exports = outside;
14114
14114
  });
14115
14115
 
14116
- // node_modules/conf/node_modules/semver/ranges/gtr.js
14116
+ // node_modules/semver/ranges/gtr.js
14117
14117
  var require_gtr = __commonJS((exports, module) => {
14118
14118
  var outside = require_outside();
14119
14119
  var gtr = (version, range, options) => outside(version, range, ">", options);
14120
14120
  module.exports = gtr;
14121
14121
  });
14122
14122
 
14123
- // node_modules/conf/node_modules/semver/ranges/ltr.js
14123
+ // node_modules/semver/ranges/ltr.js
14124
14124
  var require_ltr = __commonJS((exports, module) => {
14125
14125
  var outside = require_outside();
14126
14126
  var ltr = (version, range, options) => outside(version, range, "<", options);
14127
14127
  module.exports = ltr;
14128
14128
  });
14129
14129
 
14130
- // node_modules/conf/node_modules/semver/ranges/intersects.js
14130
+ // node_modules/semver/ranges/intersects.js
14131
14131
  var require_intersects = __commonJS((exports, module) => {
14132
14132
  var Range = require_range();
14133
14133
  var intersects = (r1, r2, options) => {
@@ -14138,7 +14138,7 @@ var require_intersects = __commonJS((exports, module) => {
14138
14138
  module.exports = intersects;
14139
14139
  });
14140
14140
 
14141
- // node_modules/conf/node_modules/semver/ranges/simplify.js
14141
+ // node_modules/semver/ranges/simplify.js
14142
14142
  var require_simplify = __commonJS((exports, module) => {
14143
14143
  var satisfies = require_satisfies();
14144
14144
  var compare = require_compare();
@@ -14185,7 +14185,7 @@ var require_simplify = __commonJS((exports, module) => {
14185
14185
  };
14186
14186
  });
14187
14187
 
14188
- // node_modules/conf/node_modules/semver/ranges/subset.js
14188
+ // node_modules/semver/ranges/subset.js
14189
14189
  var require_subset = __commonJS((exports, module) => {
14190
14190
  var Range = require_range();
14191
14191
  var Comparator = require_comparator();
@@ -14345,7 +14345,7 @@ var require_subset = __commonJS((exports, module) => {
14345
14345
  module.exports = subset;
14346
14346
  });
14347
14347
 
14348
- // node_modules/conf/node_modules/semver/index.js
14348
+ // node_modules/semver/index.js
14349
14349
  var require_semver2 = __commonJS((exports, module) => {
14350
14350
  var internalRe = require_re();
14351
14351
  var constants = require_constants();
@@ -23791,7 +23791,7 @@ var require_dbcs_codec = __commonJS((exports) => {
23791
23791
  if (resCode !== undefined) {
23792
23792
  dbcsCode = resCode;
23793
23793
  nextChar = uCode;
23794
- } else {}
23794
+ }
23795
23795
  }
23796
23796
  seqObj = undefined;
23797
23797
  } else if (uCode >= 0) {
@@ -23856,7 +23856,7 @@ var require_dbcs_codec = __commonJS((exports) => {
23856
23856
  newBuf[j++] = dbcsCode >> 8;
23857
23857
  newBuf[j++] = dbcsCode & 255;
23858
23858
  }
23859
- } else {}
23859
+ }
23860
23860
  this.seqObj = undefined;
23861
23861
  }
23862
23862
  if (this.leadSurrogate !== -1) {
@@ -33777,6 +33777,7 @@ __export(exports_sdk_gen, {
33777
33777
  updatePreferences: () => updatePreferences,
33778
33778
  updateOidcProvider: () => updateOidcProvider,
33779
33779
  updateNotificationProvider: () => updateNotificationProvider,
33780
+ updateNotificationEmailProvider: () => updateNotificationEmailProvider,
33780
33781
  updateMcp: () => updateMcp,
33781
33782
  updateIpAccessControl: () => updateIpAccessControl,
33782
33783
  updateIncidentStatus: () => updateIncidentStatus,
@@ -33789,14 +33790,16 @@ __export(exports_sdk_gen, {
33789
33790
  updateEnvironmentVariable: () => updateEnvironmentVariable,
33790
33791
  updateEnvironmentSubdomain: () => updateEnvironmentSubdomain,
33791
33792
  updateEnvironmentSettings: () => updateEnvironmentSettings,
33792
- updateEmailProvider2: () => updateEmailProvider2,
33793
33793
  updateEmailProvider: () => updateEmailProvider,
33794
+ updateDashboard: () => updateDashboard,
33794
33795
  updateCustomDomain: () => updateCustomDomain,
33795
33796
  updateConnectionToken: () => updateConnectionToken,
33797
+ updateCloudflareProvider: () => updateCloudflareProvider,
33796
33798
  updateBackupSchedule: () => updateBackupSchedule,
33797
33799
  updateAutomaticDeploy: () => updateAutomaticDeploy,
33798
33800
  updateApiKey: () => updateApiKey,
33799
33801
  updateAlertRule: () => updateAlertRule,
33802
+ updateAlert: () => updateAlert,
33800
33803
  updateAiProvider: () => updateAiProvider,
33801
33804
  updateAgent: () => updateAgent,
33802
33805
  unlinkServiceFromProject: () => unlinkServiceFromProject,
@@ -33843,6 +33846,7 @@ __export(exports_sdk_gen, {
33843
33846
  setupDns: () => setupDns,
33844
33847
  setPreviewPassword: () => setPreviewPassword,
33845
33848
  setDefaultS3Source: () => setDefaultS3Source,
33849
+ sendMessage: () => sendMessage,
33846
33850
  sendEmail: () => sendEmail,
33847
33851
  searchLogs: () => searchLogs,
33848
33852
  saveAiProviderCredential: () => saveAiProviderCredential,
@@ -33854,6 +33858,7 @@ __export(exports_sdk_gen, {
33854
33858
  rollbackToDeployment: () => rollbackToDeployment,
33855
33859
  rollbackPgUpgrade: () => rollbackPgUpgrade,
33856
33860
  revokeJoinToken: () => revokeJoinToken,
33861
+ revokeEnrollmentToken: () => revokeEnrollmentToken,
33857
33862
  revokeDsn: () => revokeDsn,
33858
33863
  revenueUpdateSecret: () => revenueUpdateSecret,
33859
33864
  revenueUpdateConfig: () => revenueUpdateConfig,
@@ -33881,6 +33886,7 @@ __export(exports_sdk_gen, {
33881
33886
  restartSandbox: () => restartSandbox,
33882
33887
  restartPreviewGateway: () => restartPreviewGateway,
33883
33888
  restartContainer: () => restartContainer,
33889
+ resolveAlarm: () => resolveAlarm,
33884
33890
  resetPassword: () => resetPassword,
33885
33891
  requestPasswordReset: () => requestPasswordReset,
33886
33892
  requestMagicLink: () => requestMagicLink,
@@ -33912,6 +33918,7 @@ __export(exports_sdk_gen, {
33912
33918
  promoteDeployment: () => promoteDeployment,
33913
33919
  promoteClusterMember: () => promoteClusterMember,
33914
33920
  previewFunnelMetrics: () => previewFunnelMetrics,
33921
+ previewAlert: () => previewAlert,
33915
33922
  postDnsAck: () => postDnsAck,
33916
33923
  planRestore: () => planRestore,
33917
33924
  pauseSandbox: () => pauseSandbox,
@@ -33921,8 +33928,10 @@ __export(exports_sdk_gen, {
33921
33928
  oidcCallback: () => oidcCallback,
33922
33929
  observabilityListEvents: () => observabilityListEvents,
33923
33930
  observabilityFullEvent: () => observabilityFullEvent,
33931
+ nodeMetricsGetRange: () => nodeMetricsGetRange,
33924
33932
  nodeHeartbeat: () => nodeHeartbeat,
33925
33933
  mkdir: () => mkdir3,
33934
+ mintEnrollmentToken: () => mintEnrollmentToken,
33926
33935
  lookupDnsARecords: () => lookupDnsARecords,
33927
33936
  logout: () => logout,
33928
33937
  login: () => login,
@@ -33959,10 +33968,12 @@ __export(exports_sdk_gen, {
33959
33968
  listProjectServices: () => listProjectServices,
33960
33969
  listProjectSecrets: () => listProjectSecrets,
33961
33970
  listProjectScans: () => listProjectScans,
33971
+ listProjectAlarms: () => listProjectAlarms,
33962
33972
  listPresets: () => listPresets,
33963
33973
  listPgUpgrades: () => listPgUpgrades,
33964
33974
  listPeers: () => listPeers,
33965
33975
  listOrders: () => listOrders,
33976
+ listOnDemandCerts: () => listOnDemandCerts,
33966
33977
  listOidcRoleMappings: () => listOidcRoleMappings,
33967
33978
  listOidcProviders: () => listOidcProviders,
33968
33979
  listOidcProviderUsers: () => listOidcProviderUsers,
@@ -33970,6 +33981,8 @@ __export(exports_sdk_gen, {
33970
33981
  listMonitors: () => listMonitors,
33971
33982
  listModels: () => listModels,
33972
33983
  listMetricNames: () => listMetricNames,
33984
+ listMetricLabelValues: () => listMetricLabelValues,
33985
+ listMetricLabelKeys: () => listMetricLabelKeys,
33973
33986
  listMcps: () => listMcps,
33974
33987
  listManagedDomains: () => listManagedDomains,
33975
33988
  listKnownAiAgents: () => listKnownAiAgents,
@@ -33988,14 +34001,18 @@ __export(exports_sdk_gen, {
33988
34001
  listErrorGroups: () => listErrorGroups,
33989
34002
  listErrorEvents: () => listErrorEvents,
33990
34003
  listEntities: () => listEntities,
34004
+ listEnrollmentTokens: () => listEnrollmentTokens,
33991
34005
  listEmails: () => listEmails,
33992
34006
  listEmailProviders: () => listEmailProviders,
33993
34007
  listEmailDomains: () => listEmailDomains,
33994
34008
  listDsns: () => listDsns,
33995
34009
  listDomains: () => listDomains,
33996
34010
  listDnsProviders: () => listDnsProviders,
34011
+ listDeploymentContainerLogs: () => listDeploymentContainerLogs,
33997
34012
  listDeliveries: () => listDeliveries,
34013
+ listDashboards: () => listDashboards,
33998
34014
  listCustomDomainsForProject: () => listCustomDomainsForProject,
34015
+ listConversations: () => listConversations,
33999
34016
  listContainersAtPath: () => listContainersAtPath,
34000
34017
  listContainers: () => listContainers,
34001
34018
  listConnections: () => listConnections,
@@ -34008,6 +34025,8 @@ __export(exports_sdk_gen, {
34008
34025
  listAuditLogs: () => listAuditLogs,
34009
34026
  listApiKeys: () => listApiKeys,
34010
34027
  listAllRuns: () => listAllRuns,
34028
+ listAllConversations: () => listAllConversations,
34029
+ listAlerts: () => listAlerts,
34011
34030
  listAlertRules: () => listAlertRules,
34012
34031
  listAiProviders: () => listAiProviders,
34013
34032
  listAgents: () => listAgents,
@@ -34128,6 +34147,7 @@ __export(exports_sdk_gen, {
34128
34147
  getProjectServiceEnvironmentVariables: () => getProjectServiceEnvironmentVariables,
34129
34148
  getProjectDeployments: () => getProjectDeployments,
34130
34149
  getProjectBySlug: () => getProjectBySlug,
34150
+ getProjectAlarmsSummary: () => getProjectAlarmsSummary,
34131
34151
  getProject: () => getProject,
34132
34152
  getPrivateIp: () => getPrivateIp,
34133
34153
  getPricing: () => getPricing,
@@ -34148,6 +34168,7 @@ __export(exports_sdk_gen, {
34148
34168
  getPageHourlySessions: () => getPageHourlySessions,
34149
34169
  getPageFlow: () => getPageFlow,
34150
34170
  getOrCreateDsn: () => getOrCreateDsn,
34171
+ getOnDemandCertStatus: () => getOnDemandCertStatus,
34151
34172
  getNotificationProvider: () => getNotificationProvider,
34152
34173
  getMonitor: () => getMonitor,
34153
34174
  getMetricsOverTime: () => getMetricsOverTime,
@@ -34214,9 +34235,11 @@ __export(exports_sdk_gen, {
34214
34235
  getDeploymentOperationStatus: () => getDeploymentOperationStatus,
34215
34236
  getDeploymentJobs: () => getDeploymentJobs,
34216
34237
  getDeploymentJobLogs: () => getDeploymentJobLogs,
34238
+ getDeploymentContainerLogContent: () => getDeploymentContainerLogContent,
34217
34239
  getDeployment: () => getDeployment,
34218
34240
  getDelivery: () => getDelivery,
34219
34241
  getDashboardProjectsAnalytics: () => getDashboardProjectsAnalytics,
34242
+ getDashboard: () => getDashboard,
34220
34243
  getCustomDomain: () => getCustomDomain,
34221
34244
  getCurrentUser: () => getCurrentUser,
34222
34245
  getCurrentMonitorStatus: () => getCurrentMonitorStatus,
@@ -34224,6 +34247,7 @@ __export(exports_sdk_gen, {
34224
34247
  getCronById: () => getCronById,
34225
34248
  getConversations: () => getConversations,
34226
34249
  getConversationDetail: () => getConversationDetail,
34250
+ getConversation: () => getConversation,
34227
34251
  getContainerMetrics: () => getContainerMetrics,
34228
34252
  getContainerLogsById: () => getContainerLogsById,
34229
34253
  getContainerLogs: () => getContainerLogs,
@@ -34248,7 +34272,11 @@ __export(exports_sdk_gen, {
34248
34272
  getAnalyticsActiveVisitors: () => getAnalyticsActiveVisitors,
34249
34273
  getAllRepositoriesByName: () => getAllRepositoriesByName,
34250
34274
  getAlertRule: () => getAlertRule,
34275
+ getAlert: () => getAlert,
34276
+ getAiStatusBreakdown: () => getAiStatusBreakdown,
34251
34277
  getAiPageBreakdown: () => getAiPageBreakdown,
34278
+ getAiAgentTimeline: () => getAiAgentTimeline,
34279
+ getAiAgentPages: () => getAiAgentPages,
34252
34280
  getAiAgentBreakdown: () => getAiAgentBreakdown,
34253
34281
  getAggregatedBuckets: () => getAggregatedBuckets,
34254
34282
  getAgent: () => getAgent,
@@ -34258,8 +34286,18 @@ __export(exports_sdk_gen, {
34258
34286
  getAccessInfo: () => getAccessInfo,
34259
34287
  generatePresetDockerfile: () => generatePresetDockerfile,
34260
34288
  generateJoinToken: () => generateJoinToken,
34289
+ findConversation: () => findConversation,
34261
34290
  finalizeProjectRelease: () => finalizeProjectRelease,
34262
34291
  finalizeOrder: () => finalizeOrder,
34292
+ externalServiceMetricsUpdateAlertRule: () => externalServiceMetricsUpdateAlertRule,
34293
+ externalServiceMetricsToggle: () => externalServiceMetricsToggle,
34294
+ externalServiceMetricsStatus: () => externalServiceMetricsStatus,
34295
+ externalServiceMetricsGetRange: () => externalServiceMetricsGetRange,
34296
+ externalServiceMetricsGetLatest: () => externalServiceMetricsGetLatest,
34297
+ externalServiceMetricsGetAlertRules: () => externalServiceMetricsGetAlertRules,
34298
+ externalServiceMetricsDeleteAlertRule: () => externalServiceMetricsDeleteAlertRule,
34299
+ externalServiceMetricsCreateAlertRule: () => externalServiceMetricsCreateAlertRule,
34300
+ externalServiceMetricsByDatabase: () => externalServiceMetricsByDatabase,
34263
34301
  extendTimeout: () => extendTimeout,
34264
34302
  executeImport: () => executeImport,
34265
34303
  executeDeploymentOperation: () => executeDeploymentOperation,
@@ -34279,6 +34317,9 @@ __export(exports_sdk_gen, {
34279
34317
  detectPublicPresets: () => detectPublicPresets,
34280
34318
  detachScheduleService: () => detachScheduleService,
34281
34319
  destroySandbox: () => destroySandbox,
34320
+ deploymentMetricsToggle: () => deploymentMetricsToggle,
34321
+ deploymentMetricsGetRange: () => deploymentMetricsGetRange,
34322
+ deploymentMetricsGetLatest: () => deploymentMetricsGetLatest,
34282
34323
  deployFromStatic: () => deployFromStatic,
34283
34324
  deployFromImageUpload: () => deployFromImageUpload,
34284
34325
  deployFromImage: () => deployFromImage,
@@ -34317,11 +34358,13 @@ __export(exports_sdk_gen, {
34317
34358
  deleteEmailDomain: () => deleteEmailDomain,
34318
34359
  deleteDomain: () => deleteDomain,
34319
34360
  deleteDnsProvider: () => deleteDnsProvider,
34361
+ deleteDashboard: () => deleteDashboard,
34320
34362
  deleteCustomDomain: () => deleteCustomDomain,
34321
34363
  deleteConnection: () => deleteConnection,
34322
34364
  deleteBackupSchedule: () => deleteBackupSchedule,
34323
34365
  deleteApiKey: () => deleteApiKey,
34324
34366
  deleteAlertRule: () => deleteAlertRule,
34367
+ deleteAlert: () => deleteAlert,
34325
34368
  deleteAgent: () => deleteAgent,
34326
34369
  deactivateProvider: () => deactivateProvider,
34327
34370
  deactivateConnection: () => deactivateConnection,
@@ -34357,7 +34400,9 @@ __export(exports_sdk_gen, {
34357
34400
  createGitlabPatProvider: () => createGitlabPatProvider,
34358
34401
  createGitlabOauthProvider: () => createGitlabOauthProvider,
34359
34402
  createGithubPatProvider: () => createGithubPatProvider,
34403
+ createGiteaPatProvider: () => createGiteaPatProvider,
34360
34404
  createGitProvider: () => createGitProvider,
34405
+ createGenericProvider: () => createGenericProvider,
34361
34406
  createFunnel: () => createFunnel,
34362
34407
  createEnvironmentVariable: () => createEnvironmentVariable,
34363
34408
  createEnvironment: () => createEnvironment,
@@ -34366,10 +34411,15 @@ __export(exports_sdk_gen, {
34366
34411
  createDsn: () => createDsn,
34367
34412
  createDomain: () => createDomain,
34368
34413
  createDnsProvider: () => createDnsProvider,
34414
+ createDashboard: () => createDashboard,
34369
34415
  createCustomDomain: () => createCustomDomain,
34416
+ createConversation: () => createConversation,
34417
+ createCloudflareProvider: () => createCloudflareProvider,
34418
+ createBitbucketProvider: () => createBitbucketProvider,
34370
34419
  createBackupSchedule: () => createBackupSchedule,
34371
34420
  createApiKey: () => createApiKey,
34372
34421
  createAlertRule: () => createAlertRule,
34422
+ createAlert: () => createAlert,
34373
34423
  createAgent: () => createAgent,
34374
34424
  cmdLogs: () => cmdLogs,
34375
34425
  cmdKill: () => cmdKill,
@@ -34408,6 +34458,7 @@ __export(exports_sdk_gen, {
34408
34458
  blobCopy: () => blobCopy,
34409
34459
  attachScheduleServices: () => attachScheduleServices,
34410
34460
  assignRole: () => assignRole,
34461
+ archiveConversation: () => archiveConversation,
34411
34462
  adminUndrainNode: () => adminUndrainNode,
34412
34463
  adminRemoveNode: () => adminRemoveNode,
34413
34464
  adminListNodes: () => adminListNodes,
@@ -34424,7 +34475,8 @@ __export(exports_sdk_gen, {
34424
34475
  activateProvider: () => activateProvider,
34425
34476
  activateConnection: () => activateConnection,
34426
34477
  activateApiKey: () => activateApiKey,
34427
- activateAiProvider: () => activateAiProvider
34478
+ activateAiProvider: () => activateAiProvider,
34479
+ acknowledgeAlarm: () => acknowledgeAlarm
34428
34480
  });
34429
34481
  var getPlatformInfo = (options) => (options?.client ?? client).get({
34430
34482
  security: [{ scheme: "bearer", type: "http" }],
@@ -34546,6 +34598,10 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
34546
34598
  "Content-Type": "application/json",
34547
34599
  ...options.headers
34548
34600
  }
34601
+ }), listAllConversations = (options) => (options?.client ?? client).get({
34602
+ security: [{ scheme: "bearer", type: "http" }],
34603
+ url: "/ai/conversations",
34604
+ ...options
34549
34605
  }), getPricing = (options) => (options?.client ?? client).get({
34550
34606
  security: [{ scheme: "bearer", type: "http" }],
34551
34607
  url: "/ai/pricing",
@@ -35082,6 +35138,22 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
35082
35138
  security: [{ scheme: "bearer", type: "http" }],
35083
35139
  url: "/deployments/{deployment_id}/vulnerability-scan",
35084
35140
  ...options
35141
+ }), deploymentMetricsGetRange = (options) => (options.client ?? client).get({
35142
+ security: [{ scheme: "bearer", type: "http" }],
35143
+ url: "/deployments/{id}/metrics",
35144
+ ...options
35145
+ }), deploymentMetricsToggle = (options) => (options.client ?? client).patch({
35146
+ security: [{ scheme: "bearer", type: "http" }],
35147
+ url: "/deployments/{id}/metrics/enable",
35148
+ ...options,
35149
+ headers: {
35150
+ "Content-Type": "application/json",
35151
+ ...options.headers
35152
+ }
35153
+ }), deploymentMetricsGetLatest = (options) => (options.client ?? client).get({
35154
+ security: [{ scheme: "bearer", type: "http" }],
35155
+ url: "/deployments/{id}/metrics/latest",
35156
+ ...options
35085
35157
  }), listDnsProviders = (options) => (options?.client ?? client).get({
35086
35158
  security: [{ scheme: "bearer", type: "http" }],
35087
35159
  url: "/dns-providers",
@@ -35154,6 +35226,14 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
35154
35226
  security: [{ scheme: "bearer", type: "http" }],
35155
35227
  url: "/domains/by-host/{hostname}",
35156
35228
  ...options
35229
+ }), getOnDemandCertStatus = (options) => (options.client ?? client).get({
35230
+ security: [{ scheme: "bearer", type: "http" }],
35231
+ url: "/domains/by-host/{hostname}/cert-status",
35232
+ ...options
35233
+ }), listOnDemandCerts = (options) => (options?.client ?? client).get({
35234
+ security: [{ scheme: "bearer", type: "http" }],
35235
+ url: "/domains/on-demand-certs",
35236
+ ...options
35157
35237
  }), cancelDomainOrder = (options) => (options.client ?? client).delete({
35158
35238
  security: [{ scheme: "bearer", type: "http" }],
35159
35239
  url: "/domains/{domain_id}/order",
@@ -35380,6 +35460,54 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
35380
35460
  security: [{ scheme: "bearer", type: "http" }],
35381
35461
  url: "/external-services/{id}/members/{member_id}/promote",
35382
35462
  ...options
35463
+ }), externalServiceMetricsGetRange = (options) => (options.client ?? client).get({
35464
+ security: [{ scheme: "bearer", type: "http" }],
35465
+ url: "/external-services/{id}/metrics",
35466
+ ...options
35467
+ }), externalServiceMetricsGetAlertRules = (options) => (options.client ?? client).get({
35468
+ security: [{ scheme: "bearer", type: "http" }],
35469
+ url: "/external-services/{id}/metrics/alert-rules",
35470
+ ...options
35471
+ }), externalServiceMetricsCreateAlertRule = (options) => (options.client ?? client).post({
35472
+ security: [{ scheme: "bearer", type: "http" }],
35473
+ url: "/external-services/{id}/metrics/alert-rules",
35474
+ ...options,
35475
+ headers: {
35476
+ "Content-Type": "application/json",
35477
+ ...options.headers
35478
+ }
35479
+ }), externalServiceMetricsDeleteAlertRule = (options) => (options.client ?? client).delete({
35480
+ security: [{ scheme: "bearer", type: "http" }],
35481
+ url: "/external-services/{id}/metrics/alert-rules/{rule_id}",
35482
+ ...options
35483
+ }), externalServiceMetricsUpdateAlertRule = (options) => (options.client ?? client).put({
35484
+ security: [{ scheme: "bearer", type: "http" }],
35485
+ url: "/external-services/{id}/metrics/alert-rules/{rule_id}",
35486
+ ...options,
35487
+ headers: {
35488
+ "Content-Type": "application/json",
35489
+ ...options.headers
35490
+ }
35491
+ }), externalServiceMetricsByDatabase = (options) => (options.client ?? client).get({
35492
+ security: [{ scheme: "bearer", type: "http" }],
35493
+ url: "/external-services/{id}/metrics/by-database",
35494
+ ...options
35495
+ }), externalServiceMetricsToggle = (options) => (options.client ?? client).patch({
35496
+ security: [{ scheme: "bearer", type: "http" }],
35497
+ url: "/external-services/{id}/metrics/enable",
35498
+ ...options,
35499
+ headers: {
35500
+ "Content-Type": "application/json",
35501
+ ...options.headers
35502
+ }
35503
+ }), externalServiceMetricsGetLatest = (options) => (options.client ?? client).get({
35504
+ security: [{ scheme: "bearer", type: "http" }],
35505
+ url: "/external-services/{id}/metrics/latest",
35506
+ ...options
35507
+ }), externalServiceMetricsStatus = (options) => (options.client ?? client).get({
35508
+ security: [{ scheme: "bearer", type: "http" }],
35509
+ url: "/external-services/{id}/metrics/status",
35510
+ ...options
35383
35511
  }), getServicePreviewEnvironmentVariablesMasked = (options) => (options.client ?? client).get({ url: "/external-services/{id}/preview-environment-masked", ...options }), getServicePreviewEnvironmentVariableNames = (options) => (options.client ?? client).get({ url: "/external-services/{id}/preview-environment-names", ...options }), listServiceProjects = (options) => (options.client ?? client).get({ url: "/external-services/{id}/projects", ...options }), linkServiceToProject = (options) => (options.client ?? client).post({
35384
35512
  url: "/external-services/{id}/projects",
35385
35513
  ...options,
@@ -35553,6 +35681,30 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
35553
35681
  "Content-Type": "application/json",
35554
35682
  ...options.headers
35555
35683
  }
35684
+ }), createBitbucketProvider = (options) => (options.client ?? client).post({
35685
+ security: [{ scheme: "bearer", type: "http" }],
35686
+ url: "/git-providers/bitbucket",
35687
+ ...options,
35688
+ headers: {
35689
+ "Content-Type": "application/json",
35690
+ ...options.headers
35691
+ }
35692
+ }), createGenericProvider = (options) => (options.client ?? client).post({
35693
+ security: [{ scheme: "bearer", type: "http" }],
35694
+ url: "/git-providers/generic",
35695
+ ...options,
35696
+ headers: {
35697
+ "Content-Type": "application/json",
35698
+ ...options.headers
35699
+ }
35700
+ }), createGiteaPatProvider = (options) => (options.client ?? client).post({
35701
+ security: [{ scheme: "bearer", type: "http" }],
35702
+ url: "/git-providers/gitea/pat",
35703
+ ...options,
35704
+ headers: {
35705
+ "Content-Type": "application/json",
35706
+ ...options.headers
35707
+ }
35556
35708
  }), createGithubPatProvider = (options) => (options.client ?? client).post({
35557
35709
  security: [{ scheme: "bearer", type: "http" }],
35558
35710
  url: "/git-providers/github/pat",
@@ -35880,6 +36032,10 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
35880
36032
  security: [{ scheme: "bearer", type: "http" }],
35881
36033
  url: "/monitors/{monitor_id}/uptime",
35882
36034
  ...options
36035
+ }), nodeMetricsGetRange = (options) => (options.client ?? client).get({
36036
+ security: [{ scheme: "bearer", type: "http" }],
36037
+ url: "/nodes/{id}/metrics",
36038
+ ...options
35883
36039
  }), deletePreferences = (options) => (options?.client ?? client).delete({
35884
36040
  security: [{ scheme: "bearer", type: "http" }],
35885
36041
  url: "/notification-preferences",
@@ -35908,6 +36064,22 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
35908
36064
  "Content-Type": "application/json",
35909
36065
  ...options.headers
35910
36066
  }
36067
+ }), createCloudflareProvider = (options) => (options.client ?? client).post({
36068
+ security: [{ scheme: "bearer", type: "http" }],
36069
+ url: "/notification-providers/cloudflare",
36070
+ ...options,
36071
+ headers: {
36072
+ "Content-Type": "application/json",
36073
+ ...options.headers
36074
+ }
36075
+ }), updateCloudflareProvider = (options) => (options.client ?? client).put({
36076
+ security: [{ scheme: "bearer", type: "http" }],
36077
+ url: "/notification-providers/cloudflare/{id}",
36078
+ ...options,
36079
+ headers: {
36080
+ "Content-Type": "application/json",
36081
+ ...options.headers
36082
+ }
35911
36083
  }), createNotificationEmailProvider = (options) => (options.client ?? client).post({
35912
36084
  security: [{ scheme: "bearer", type: "http" }],
35913
36085
  url: "/notification-providers/email",
@@ -35916,7 +36088,7 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
35916
36088
  "Content-Type": "application/json",
35917
36089
  ...options.headers
35918
36090
  }
35919
- }), updateEmailProvider2 = (options) => (options.client ?? client).put({
36091
+ }), updateNotificationEmailProvider = (options) => (options.client ?? client).put({
35920
36092
  security: [{ scheme: "bearer", type: "http" }],
35921
36093
  url: "/notification-providers/email/{id}",
35922
36094
  ...options,
@@ -35980,6 +36152,70 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
35980
36152
  security: [{ scheme: "bearer", type: "http" }],
35981
36153
  url: "/orders",
35982
36154
  ...options
36155
+ }), listAlerts = (options) => (options.client ?? client).get({
36156
+ security: [{ scheme: "bearer", type: "http" }],
36157
+ url: "/otel/alerts",
36158
+ ...options
36159
+ }), createAlert = (options) => (options.client ?? client).post({
36160
+ security: [{ scheme: "bearer", type: "http" }],
36161
+ url: "/otel/alerts",
36162
+ ...options,
36163
+ headers: {
36164
+ "Content-Type": "application/json",
36165
+ ...options.headers
36166
+ }
36167
+ }), previewAlert = (options) => (options.client ?? client).post({
36168
+ security: [{ scheme: "bearer", type: "http" }],
36169
+ url: "/otel/alerts/preview",
36170
+ ...options,
36171
+ headers: {
36172
+ "Content-Type": "application/json",
36173
+ ...options.headers
36174
+ }
36175
+ }), deleteAlert = (options) => (options.client ?? client).delete({
36176
+ security: [{ scheme: "bearer", type: "http" }],
36177
+ url: "/otel/alerts/{id}",
36178
+ ...options
36179
+ }), getAlert = (options) => (options.client ?? client).get({
36180
+ security: [{ scheme: "bearer", type: "http" }],
36181
+ url: "/otel/alerts/{id}",
36182
+ ...options
36183
+ }), updateAlert = (options) => (options.client ?? client).patch({
36184
+ security: [{ scheme: "bearer", type: "http" }],
36185
+ url: "/otel/alerts/{id}",
36186
+ ...options,
36187
+ headers: {
36188
+ "Content-Type": "application/json",
36189
+ ...options.headers
36190
+ }
36191
+ }), listDashboards = (options) => (options.client ?? client).get({
36192
+ security: [{ scheme: "bearer", type: "http" }],
36193
+ url: "/otel/dashboards",
36194
+ ...options
36195
+ }), createDashboard = (options) => (options.client ?? client).post({
36196
+ security: [{ scheme: "bearer", type: "http" }],
36197
+ url: "/otel/dashboards",
36198
+ ...options,
36199
+ headers: {
36200
+ "Content-Type": "application/json",
36201
+ ...options.headers
36202
+ }
36203
+ }), deleteDashboard = (options) => (options.client ?? client).delete({
36204
+ security: [{ scheme: "bearer", type: "http" }],
36205
+ url: "/otel/dashboards/{id}",
36206
+ ...options
36207
+ }), getDashboard = (options) => (options.client ?? client).get({
36208
+ security: [{ scheme: "bearer", type: "http" }],
36209
+ url: "/otel/dashboards/{id}",
36210
+ ...options
36211
+ }), updateDashboard = (options) => (options.client ?? client).patch({
36212
+ security: [{ scheme: "bearer", type: "http" }],
36213
+ url: "/otel/dashboards/{id}",
36214
+ ...options,
36215
+ headers: {
36216
+ "Content-Type": "application/json",
36217
+ ...options.headers
36218
+ }
35983
36219
  }), queryGenaiTraces = (options) => (options.client ?? client).get({
35984
36220
  security: [{ scheme: "bearer", type: "http" }],
35985
36221
  url: "/otel/genai/traces",
@@ -36000,6 +36236,14 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
36000
36236
  security: [{ scheme: "bearer", type: "http" }],
36001
36237
  url: "/otel/logs",
36002
36238
  ...options
36239
+ }), listMetricLabelKeys = (options) => (options.client ?? client).get({
36240
+ security: [{ scheme: "bearer", type: "http" }],
36241
+ url: "/otel/metric-label-keys",
36242
+ ...options
36243
+ }), listMetricLabelValues = (options) => (options.client ?? client).get({
36244
+ security: [{ scheme: "bearer", type: "http" }],
36245
+ url: "/otel/metric-label-values",
36246
+ ...options
36003
36247
  }), listMetricNames = (options) => (options.client ?? client).get({
36004
36248
  security: [{ scheme: "bearer", type: "http" }],
36005
36249
  url: "/otel/metric-names/{project_id}",
@@ -36261,6 +36505,54 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
36261
36505
  security: [{ scheme: "bearer", type: "http" }],
36262
36506
  url: "/projects/{project_id}/aggregated-buckets",
36263
36507
  ...options
36508
+ }), findConversation = (options) => (options.client ?? client).get({
36509
+ security: [{ scheme: "bearer", type: "http" }],
36510
+ url: "/projects/{project_id}/ai/conversations",
36511
+ ...options
36512
+ }), createConversation = (options) => (options.client ?? client).post({
36513
+ security: [{ scheme: "bearer", type: "http" }],
36514
+ url: "/projects/{project_id}/ai/conversations",
36515
+ ...options,
36516
+ headers: {
36517
+ "Content-Type": "application/json",
36518
+ ...options.headers
36519
+ }
36520
+ }), listConversations = (options) => (options.client ?? client).get({
36521
+ security: [{ scheme: "bearer", type: "http" }],
36522
+ url: "/projects/{project_id}/ai/conversations/list",
36523
+ ...options
36524
+ }), getConversation = (options) => (options.client ?? client).get({
36525
+ security: [{ scheme: "bearer", type: "http" }],
36526
+ url: "/projects/{project_id}/ai/conversations/{public_id}",
36527
+ ...options
36528
+ }), archiveConversation = (options) => (options.client ?? client).post({
36529
+ security: [{ scheme: "bearer", type: "http" }],
36530
+ url: "/projects/{project_id}/ai/conversations/{public_id}/archive",
36531
+ ...options
36532
+ }), sendMessage = (options) => (options.client ?? client).sse.post({
36533
+ security: [{ scheme: "bearer", type: "http" }],
36534
+ url: "/projects/{project_id}/ai/conversations/{public_id}/messages",
36535
+ ...options,
36536
+ headers: {
36537
+ "Content-Type": "application/json",
36538
+ ...options.headers
36539
+ }
36540
+ }), listProjectAlarms = (options) => (options.client ?? client).get({
36541
+ security: [{ scheme: "bearer", type: "http" }],
36542
+ url: "/projects/{project_id}/alarms",
36543
+ ...options
36544
+ }), getProjectAlarmsSummary = (options) => (options.client ?? client).get({
36545
+ security: [{ scheme: "bearer", type: "http" }],
36546
+ url: "/projects/{project_id}/alarms/summary",
36547
+ ...options
36548
+ }), acknowledgeAlarm = (options) => (options.client ?? client).post({
36549
+ security: [{ scheme: "bearer", type: "http" }],
36550
+ url: "/projects/{project_id}/alarms/{alarm_id}/acknowledge",
36551
+ ...options
36552
+ }), resolveAlarm = (options) => (options.client ?? client).post({
36553
+ security: [{ scheme: "bearer", type: "http" }],
36554
+ url: "/projects/{project_id}/alarms/{alarm_id}/resolve",
36555
+ ...options
36264
36556
  }), startAnalysis = (options) => (options.client ?? client).post({
36265
36557
  security: [{ scheme: "bearer", type: "http" }],
36266
36558
  url: "/projects/{project_id}/autofixer/analyze",
@@ -36349,7 +36641,7 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
36349
36641
  "Content-Type": "application/json",
36350
36642
  ...options.headers
36351
36643
  }
36352
- }), getDeployment = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}", ...options }), cancelDeployment = (options) => (options.client ?? client).post({ url: "/projects/{project_id}/deployments/{deployment_id}/cancel", ...options }), getDeploymentJobs = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}/jobs", ...options }), getDeploymentJobLogs = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}/jobs/{job_id}/logs", ...options }), tailDeploymentJobLogs = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}/jobs/{job_id}/logs/tail", ...options }), getDeploymentOperations = (options) => (options.client ?? client).get({
36644
+ }), getDeployment = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}", ...options }), cancelDeployment = (options) => (options.client ?? client).post({ url: "/projects/{project_id}/deployments/{deployment_id}/cancel", ...options }), listDeploymentContainerLogs = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}/container-logs", ...options }), getDeploymentContainerLogContent = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}/container-logs/{log_id}", ...options }), getDeploymentJobs = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}/jobs", ...options }), getDeploymentJobLogs = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}/jobs/{job_id}/logs", ...options }), tailDeploymentJobLogs = (options) => (options.client ?? client).get({ url: "/projects/{project_id}/deployments/{deployment_id}/jobs/{job_id}/logs/tail", ...options }), getDeploymentOperations = (options) => (options.client ?? client).get({
36353
36645
  security: [{ scheme: "bearer", type: "http" }],
36354
36646
  url: "/projects/{project_id}/deployments/{deployment_id}/operations",
36355
36647
  ...options
@@ -36919,7 +37211,7 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
36919
37211
  "Content-Type": "application/json",
36920
37212
  ...options.headers
36921
37213
  }
36922
- }), getProxyLogs = (options) => (options?.client ?? client).get({ url: "/proxy-logs", ...options }), listKnownAiAgents = (options) => (options?.client ?? client).get({ url: "/proxy-logs/ai-agents/known", ...options }), getProxyLogByRequestId = (options) => (options.client ?? client).get({ url: "/proxy-logs/request/{request_id}", ...options }), getAiAgentBreakdown = (options) => (options?.client ?? client).get({ url: "/proxy-logs/stats/ai-agents", ...options }), getAiPageBreakdown = (options) => (options?.client ?? client).get({ url: "/proxy-logs/stats/ai-pages", ...options }), getProjectsHealth = (options) => (options.client ?? client).get({ url: "/proxy-logs/stats/projects-health", ...options }), getTimeBucketStats = (options) => (options.client ?? client).get({ url: "/proxy-logs/stats/time-buckets", ...options }), getTodayStats = (options) => (options?.client ?? client).get({ url: "/proxy-logs/stats/today", ...options }), getProxyLogById = (options) => (options.client ?? client).get({ url: "/proxy-logs/{id}", ...options }), listSyncedRepositories = (options) => (options?.client ?? client).get({
37214
+ }), getProxyLogs = (options) => (options?.client ?? client).get({ url: "/proxy-logs", ...options }), listKnownAiAgents = (options) => (options?.client ?? client).get({ url: "/proxy-logs/ai-agents/known", ...options }), getProxyLogByRequestId = (options) => (options.client ?? client).get({ url: "/proxy-logs/request/{request_id}", ...options }), getAiAgentPages = (options) => (options.client ?? client).get({ url: "/proxy-logs/stats/ai-agent-pages", ...options }), getAiAgentBreakdown = (options) => (options?.client ?? client).get({ url: "/proxy-logs/stats/ai-agents", ...options }), getAiAgentTimeline = (options) => (options?.client ?? client).get({ url: "/proxy-logs/stats/ai-agents/timeline", ...options }), getAiPageBreakdown = (options) => (options?.client ?? client).get({ url: "/proxy-logs/stats/ai-pages", ...options }), getAiStatusBreakdown = (options) => (options?.client ?? client).get({ url: "/proxy-logs/stats/ai-status", ...options }), getProjectsHealth = (options) => (options.client ?? client).get({ url: "/proxy-logs/stats/projects-health", ...options }), getTimeBucketStats = (options) => (options.client ?? client).get({ url: "/proxy-logs/stats/time-buckets", ...options }), getTodayStats = (options) => (options?.client ?? client).get({ url: "/proxy-logs/stats/today", ...options }), getProxyLogById = (options) => (options.client ?? client).get({ url: "/proxy-logs/{id}", ...options }), listSyncedRepositories = (options) => (options?.client ?? client).get({
36923
37215
  security: [{ scheme: "bearer", type: "http" }],
36924
37216
  url: "/repositories",
36925
37217
  ...options
@@ -37039,6 +37331,22 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
37039
37331
  security: [{ scheme: "bearer", type: "http" }],
37040
37332
  url: "/settings/disk-status",
37041
37333
  ...options
37334
+ }), listEnrollmentTokens = (options) => (options?.client ?? client).get({
37335
+ security: [{ scheme: "bearer", type: "http" }],
37336
+ url: "/settings/enrollment-tokens",
37337
+ ...options
37338
+ }), mintEnrollmentToken = (options) => (options.client ?? client).post({
37339
+ security: [{ scheme: "bearer", type: "http" }],
37340
+ url: "/settings/enrollment-tokens",
37341
+ ...options,
37342
+ headers: {
37343
+ "Content-Type": "application/json",
37344
+ ...options.headers
37345
+ }
37346
+ }), revokeEnrollmentToken = (options) => (options.client ?? client).delete({
37347
+ security: [{ scheme: "bearer", type: "http" }],
37348
+ url: "/settings/enrollment-tokens/{id}",
37349
+ ...options
37042
37350
  }), revokeJoinToken = (options) => (options?.client ?? client).delete({
37043
37351
  security: [{ scheme: "bearer", type: "http" }],
37044
37352
  url: "/settings/join-token",
@@ -37449,7 +37757,7 @@ var getPlatformInfo = (options) => (options?.client ?? client).get({
37449
37757
  "Content-Type": "application/json",
37450
37758
  ...options.headers
37451
37759
  }
37452
- }), listAuditLogs = (options) => (options.client ?? client).get({ url: "audit/logs", ...options }), getAuditLog = (options) => (options.client ?? client).get({ url: "audit/logs/{id}", ...options });
37760
+ }), listAuditLogs = (options) => (options?.client ?? client).get({ url: "audit/logs", ...options }), getAuditLog = (options) => (options.client ?? client).get({ url: "audit/logs/{id}", ...options });
37453
37761
  var init_sdk_gen = __esm(() => {
37454
37762
  init_client();
37455
37763
  init_client_gen2();
@@ -38594,7 +38902,7 @@ var require_cell = __commonJS((exports, module) => {
38594
38902
  let content = utils.truncate(this.content, 10, this.truncate);
38595
38903
  if (!lineNum) {
38596
38904
  info3(`${this.y}-${this.x}: ${this.rowSpan - lineNum}x${this.colSpan} Cell ${content}`);
38597
- } else {}
38905
+ }
38598
38906
  let padLen = Math.max(this.height - this.lines.length, 0);
38599
38907
  let padTop;
38600
38908
  switch (this.vAlign) {
@@ -46932,7 +47240,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
46932
47240
  offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
46933
47241
  wasHidden && !hoistableRoot && !prevOffscreenSubtreeIsHidden && !prevOffscreenSubtreeWasHidden && (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(finishedWork, componentEffectStartTime, componentEffectEndTime);
46934
47242
  commitReconciliationEffects(finishedWork);
46935
- if (flags & 8192 && (root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible, !hoistableRoot || current2 === null || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || (recursivelyTraverseDisappearLayoutEffects(finishedWork), (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Disconnect")), supportsMutation))
47243
+ if (flags & 8192 && (root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible, !hoistableRoot || current2 === null || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || (recursivelyTraverseDisappearLayoutEffects(finishedWork), (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Disconnect")), supportsMutation)) {
46936
47244
  a:
46937
47245
  if (current2 = null, supportsMutation)
46938
47246
  for (root = finishedWork;; ) {
@@ -46982,6 +47290,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
46982
47290
  root.sibling.return = root.return;
46983
47291
  root = root.sibling;
46984
47292
  }
47293
+ }
46985
47294
  flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (current2 = flags.retryQueue, current2 !== null && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current2))));
46986
47295
  break;
46987
47296
  case 19:
@@ -54507,7 +54816,7 @@ var require_backend = __commonJS((exports, module) => {
54507
54816
  987: (module2, __unused_webpack_exports, __webpack_require__2) => {
54508
54817
  if (true) {
54509
54818
  module2.exports = __webpack_require__2(786);
54510
- } else {}
54819
+ }
54511
54820
  },
54512
54821
  126: (__unused_webpack_module, exports2, __webpack_require__2) => {
54513
54822
  var process30 = __webpack_require__2(169);
@@ -54957,7 +55266,7 @@ var require_backend = __commonJS((exports, module) => {
54957
55266
  189: (module2, __unused_webpack_exports, __webpack_require__2) => {
54958
55267
  if (true) {
54959
55268
  module2.exports = __webpack_require__2(126);
54960
- } else {}
55269
+ }
54961
55270
  },
54962
55271
  206: function(module2, exports2, __webpack_require__2) {
54963
55272
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
@@ -54972,7 +55281,7 @@ var require_backend = __commonJS((exports, module) => {
54972
55281
  (function(root, factory) {
54973
55282
  if (true) {
54974
55283
  __WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__2(430)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports2, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__);
54975
- } else {}
55284
+ }
54976
55285
  })(this, function ErrorStackParser(StackFrame) {
54977
55286
  var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+:\d+/;
54978
55287
  var CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m;
@@ -55668,7 +55977,7 @@ var require_backend = __commonJS((exports, module) => {
55668
55977
  (function(root, factory) {
55669
55978
  if (true) {
55670
55979
  __WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports2, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__);
55671
- } else {}
55980
+ }
55672
55981
  })(this, function() {
55673
55982
  function _isNumber(n) {
55674
55983
  return !isNaN(parseFloat(n)) && isFinite(n);
@@ -61042,7 +61351,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
61042
61351
  var suffix = "";
61043
61352
  if (true) {
61044
61353
  suffix = " (<anonymous>)";
61045
- } else {}
61354
+ }
61046
61355
  return `
61047
61356
  ` + prefix + name + suffix;
61048
61357
  }
@@ -63771,7 +64080,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
63771
64080
  hasChanges = true;
63772
64081
  updateMostRecentlyInspectedElementIfNecessary(devtoolsInstance.id);
63773
64082
  }
63774
- } else {}
64083
+ }
63775
64084
  }
63776
64085
  } catch (err) {
63777
64086
  _iterator2.e(err);
@@ -65550,7 +65859,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
65550
65859
  if (contentFiber === null) {
65551
65860
  throw new Error("There should always be an Offscreen Fiber child in a hydrated Suspense boundary.");
65552
65861
  }
65553
- } else {}
65862
+ }
65554
65863
  var _isTimedOut = fiber.memoizedState !== null;
65555
65864
  if (!_isTimedOut) {
65556
65865
  newSuspenseNode.rects = measureInstance(newInstance);
@@ -65584,7 +65893,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
65584
65893
  if (_contentFiber === null) {
65585
65894
  throw new Error("There should always be an Offscreen Fiber child in a hydrated Suspense boundary.");
65586
65895
  }
65587
- } else {}
65896
+ }
65588
65897
  var suspenseState = fiber.memoizedState;
65589
65898
  var _isTimedOut3 = suspenseState !== null;
65590
65899
  if (!_isTimedOut3) {
@@ -65684,7 +65993,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
65684
65993
  trackThrownPromisesFromRetryCache(newSuspenseNode, fiber.stateNode);
65685
65994
  mountSuspenseChildrenRecursively(_contentFiber2, traceNearestHostComponentUpdate, stashedSuspenseParent, stashedSuspensePrevious, stashedSuspenseRemaining);
65686
65995
  shouldPopSuspenseNode = false;
65687
- } else {}
65996
+ }
65688
65997
  } else {
65689
65998
  if (fiber.child !== null) {
65690
65999
  mountChildrenRecursively(fiber.child, traceNearestHostComponentUpdate);
@@ -66270,7 +66579,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
66270
66579
  shouldPopSuspenseNode = false;
66271
66580
  } else if (previousHydrated && !nextHydrated) {
66272
66581
  throw new Error("Encountered a dehydrated Suspense boundary that was previously hydrated.");
66273
- } else {}
66582
+ }
66274
66583
  } else {
66275
66584
  if (nextFiber.child !== prevFiber.child) {
66276
66585
  updateFlags |= updateChildrenRecursively(nextFiber.child, prevFiber.child, traceNearestHostComponentUpdate);
@@ -66316,8 +66625,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
66316
66625
  recordResetChildren(fiberInstance);
66317
66626
  }
66318
66627
  updateFlags &= ~ShouldResetChildren;
66319
- } else {}
66320
- } else {}
66628
+ }
66629
+ }
66321
66630
  if ((updateFlags & ShouldResetSuspenseChildren) !== NoUpdate) {
66322
66631
  if (fiberInstance !== null && fiberInstance.kind === FIBER_INSTANCE) {
66323
66632
  var _suspenseNode3 = fiberInstance.suspenseNode;
@@ -66325,7 +66634,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
66325
66634
  recordResetSuspenseChildren(_suspenseNode3);
66326
66635
  updateFlags &= ~ShouldResetSuspenseChildren;
66327
66636
  }
66328
- } else {}
66637
+ }
66329
66638
  }
66330
66639
  if ((updateFlags & ShouldResetParentSuspenseChildren) !== NoUpdate) {
66331
66640
  if (fiberInstance !== null && fiberInstance.kind === FIBER_INSTANCE) {
@@ -66334,7 +66643,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
66334
66643
  updateFlags &= ~ShouldResetParentSuspenseChildren;
66335
66644
  updateFlags |= ShouldResetSuspenseChildren;
66336
66645
  }
66337
- } else {}
66646
+ }
66338
66647
  }
66339
66648
  return updateFlags;
66340
66649
  } finally {
@@ -69398,7 +69707,7 @@ The error thrown in the component is:
69398
69707
  rendererInterface = renderer_attach(hook, id, renderer, global10, shouldStartProfilingNow, profilingSettings);
69399
69708
  } else if (renderer.ComponentTree) {
69400
69709
  rendererInterface = legacy_renderer_attach(hook, id, renderer, global10);
69401
- } else {}
69710
+ }
69402
69711
  }
69403
69712
  return rendererInterface;
69404
69713
  }
@@ -74347,6 +74656,8 @@ async function saveContexts(contexts) {
74347
74656
  out.expiresAt = c.expiresAt;
74348
74657
  if (c.isActive !== undefined)
74349
74658
  out.isActive = c.isActive;
74659
+ if (c.defaultProject !== undefined)
74660
+ out.defaultProject = c.defaultProject;
74350
74661
  return out;
74351
74662
  });
74352
74663
  await writeFile(path5, JSON.stringify(normalized, null, 2) + `
@@ -74427,6 +74738,19 @@ async function removeContext(name) {
74427
74738
  await saveContexts(filtered);
74428
74739
  return true;
74429
74740
  }
74741
+ async function renameContext(oldName, newName) {
74742
+ const contexts = await loadContexts();
74743
+ if (!contexts.some((c) => c.name === oldName))
74744
+ return false;
74745
+ if (contexts.some((c) => c.name === newName))
74746
+ return false;
74747
+ for (const c of contexts) {
74748
+ if (c.name === oldName)
74749
+ c.name = newName;
74750
+ }
74751
+ await saveContexts(contexts);
74752
+ return true;
74753
+ }
74430
74754
  async function setActiveContext(name) {
74431
74755
  const contexts = await loadContexts();
74432
74756
  if (!contexts.some((c) => c.name === name))
@@ -74448,6 +74772,25 @@ function defaultContextName(url) {
74448
74772
  function contextsPath() {
74449
74773
  return getContextsPath();
74450
74774
  }
74775
+ function getActiveDefaultProjectSync() {
74776
+ return getActiveContextSync()?.defaultProject;
74777
+ }
74778
+ async function setActiveDefaultProject(slug) {
74779
+ const contexts = await loadContexts();
74780
+ const active = pickActiveContext(contexts);
74781
+ if (!active)
74782
+ return false;
74783
+ const target = contexts.find((c) => c.name === active.name);
74784
+ if (!target)
74785
+ return false;
74786
+ if (slug) {
74787
+ target.defaultProject = slug;
74788
+ } else {
74789
+ delete target.defaultProject;
74790
+ }
74791
+ await saveContexts(contexts);
74792
+ return true;
74793
+ }
74451
74794
  function getActiveContextSync() {
74452
74795
  try {
74453
74796
  const path5 = getContextsPath();
@@ -75426,6 +75769,30 @@ async function removeAction(name) {
75426
75769
  info2(`Active context is now ${colors.bold(remaining.name)}.`);
75427
75770
  }
75428
75771
  }
75772
+ async function renameAction(oldName, newName) {
75773
+ if (oldName === newName) {
75774
+ info2("Nothing to do — old and new names are the same.");
75775
+ return;
75776
+ }
75777
+ const result = await renameContext(oldName, newName);
75778
+ if (!result) {
75779
+ const contexts = await listContexts();
75780
+ if (!contexts.some((c) => c.name === oldName)) {
75781
+ error2(`Context "${oldName}" not found.`);
75782
+ if (contexts.length > 0) {
75783
+ info2(`Available: ${contexts.map((c) => c.name).join(", ")}`);
75784
+ }
75785
+ } else {
75786
+ error2(`A context named "${newName}" already exists.`);
75787
+ }
75788
+ return;
75789
+ }
75790
+ const envContext = process.env.TEMPS_CONTEXT?.trim() || null;
75791
+ success2(`Renamed context "${oldName}" → "${newName}"`);
75792
+ if (envContext === oldName) {
75793
+ warning2(`${colors.bold("TEMPS_CONTEXT")}=${oldName} is set in your environment. ` + `Update it to "${newName}" for the change to take effect in this shell.`);
75794
+ }
75795
+ }
75429
75796
  async function currentAction(options) {
75430
75797
  const active = await getActiveContext();
75431
75798
  if (!active) {
@@ -75453,9 +75820,100 @@ function registerContextCommands(program2) {
75453
75820
  ctx.command("list").alias("ls").description("List all configured contexts").option("--json", "Output in JSON format").action(listAction);
75454
75821
  ctx.command("use <name>").alias("switch").description("Switch the active context").action(useAction);
75455
75822
  ctx.command("remove <name>").alias("rm").description("Remove a context (does NOT revoke the key on the server)").action(removeAction);
75823
+ ctx.command("rename <old-name> <new-name>").description("Rename a context").action(renameAction);
75456
75824
  ctx.command("current").description("Print the active context name").option("--json", "Output in JSON format with full details").action(currentAction);
75457
75825
  }
75458
75826
 
75827
+ // src/config/project-config.ts
75828
+ import { readFile as readFile4, writeFile as writeFile4, mkdir as mkdir4 } from "node:fs/promises";
75829
+ import { existsSync as existsSync3 } from "node:fs";
75830
+ import { join, dirname as dirname3 } from "node:path";
75831
+ var CONFIG_DIR = ".temps";
75832
+ var CONFIG_FILE = "config.json";
75833
+ var GITIGNORE_FILE = ".gitignore";
75834
+ function findProjectConfigDir(startDir) {
75835
+ let dir = startDir ?? process.cwd();
75836
+ while (true) {
75837
+ const configPath = join(dir, CONFIG_DIR, CONFIG_FILE);
75838
+ if (existsSync3(configPath)) {
75839
+ return join(dir, CONFIG_DIR);
75840
+ }
75841
+ const parent = dirname3(dir);
75842
+ if (parent === dir)
75843
+ break;
75844
+ dir = parent;
75845
+ }
75846
+ return null;
75847
+ }
75848
+ async function readProjectConfig() {
75849
+ const configDir = findProjectConfigDir();
75850
+ if (!configDir)
75851
+ return null;
75852
+ try {
75853
+ const configPath = join(configDir, CONFIG_FILE);
75854
+ const content = await readFile4(configPath, "utf-8");
75855
+ return JSON.parse(content);
75856
+ } catch {
75857
+ return null;
75858
+ }
75859
+ }
75860
+ async function writeProjectConfig(config2) {
75861
+ const configDir = join(process.cwd(), CONFIG_DIR);
75862
+ await mkdir4(configDir, { recursive: true });
75863
+ const configPath = join(configDir, CONFIG_FILE);
75864
+ await writeFile4(configPath, JSON.stringify(config2, null, 2) + `
75865
+ `, "utf-8");
75866
+ const gitignorePath = join(configDir, GITIGNORE_FILE);
75867
+ if (!existsSync3(gitignorePath)) {
75868
+ await writeFile4(gitignorePath, `*
75869
+ `, "utf-8");
75870
+ }
75871
+ return configPath;
75872
+ }
75873
+ function hasProjectConfig() {
75874
+ return findProjectConfigDir() !== null;
75875
+ }
75876
+
75877
+ // src/config/resolve-project.ts
75878
+ async function resolveProjectSlug(flagValue) {
75879
+ if (flagValue) {
75880
+ return { slug: flagValue, source: "flag" };
75881
+ }
75882
+ const localConfig = await readProjectConfig();
75883
+ if (localConfig?.projectSlug) {
75884
+ return { slug: localConfig.projectSlug, source: "local-config" };
75885
+ }
75886
+ const envProject = process.env.TEMPS_PROJECT;
75887
+ if (envProject) {
75888
+ return { slug: envProject, source: "env-var" };
75889
+ }
75890
+ const contextDefault = getActiveDefaultProjectSync();
75891
+ if (contextDefault) {
75892
+ return { slug: contextDefault, source: "context-default" };
75893
+ }
75894
+ const defaultProject = config.get("defaultProject");
75895
+ if (defaultProject) {
75896
+ return { slug: defaultProject, source: "global-config" };
75897
+ }
75898
+ return null;
75899
+ }
75900
+ async function setDefaultProject(slug) {
75901
+ const wroteToContext = await setActiveDefaultProject(slug);
75902
+ if (!wroteToContext) {
75903
+ config.set("defaultProject", slug);
75904
+ }
75905
+ }
75906
+ async function requireProjectSlug(flagValue) {
75907
+ const resolved = await resolveProjectSlug(flagValue);
75908
+ if (resolved)
75909
+ return resolved;
75910
+ throw new Error(`No project specified. You can:
75911
+ ` + ` • Pass --project <slug> flag
75912
+ ` + ` • Run "temps link" to link this directory to a project
75913
+ ` + ` • Set TEMPS_PROJECT environment variable
75914
+ ` + ' • Run "temps configure" to set a default project');
75915
+ }
75916
+
75459
75917
  // src/commands/configure.ts
75460
75918
  init_prompts();
75461
75919
  init_output();
@@ -75629,10 +76087,14 @@ function getConfigValue(key) {
75629
76087
  console.error(colors.muted(`Valid keys: ${validKeys.join(", ")}`));
75630
76088
  process.exit(1);
75631
76089
  }
76090
+ if (key === "defaultProject") {
76091
+ console.log(getActiveDefaultProjectSync() ?? config.get("defaultProject") ?? "");
76092
+ return;
76093
+ }
75632
76094
  const value = config.get(key);
75633
76095
  console.log(value ?? "");
75634
76096
  }
75635
- function setConfigValue(key, value) {
76097
+ async function setConfigValue(key, value) {
75636
76098
  const validKeys = [
75637
76099
  "apiUrl",
75638
76100
  "defaultProject",
@@ -75645,6 +76107,11 @@ function setConfigValue(key, value) {
75645
76107
  console.error(colors.muted(`Valid keys: ${validKeys.join(", ")}`));
75646
76108
  process.exit(1);
75647
76109
  }
76110
+ if (key === "defaultProject") {
76111
+ await setDefaultProject(value);
76112
+ success2(`Set ${key} = ${value}`);
76113
+ return;
76114
+ }
75648
76115
  let typedValue = value;
75649
76116
  if (key === "colorEnabled") {
75650
76117
  typedValue = value === "true" || value === "1";
@@ -75818,7 +76285,7 @@ init_output();
75818
76285
  init_sdk_gen();
75819
76286
 
75820
76287
  // src/lib/env-file.ts
75821
- import { existsSync as existsSync3, readFileSync as readFileSync3 } from "node:fs";
76288
+ import { existsSync as existsSync4, readFileSync as readFileSync3 } from "node:fs";
75822
76289
  import { resolve } from "node:path";
75823
76290
  function parseEnvFile(content) {
75824
76291
  const variables = {};
@@ -75844,7 +76311,7 @@ function parseEnvFile(content) {
75844
76311
  }
75845
76312
  function readEnvFile(filePath) {
75846
76313
  const resolved = resolve(filePath);
75847
- if (!existsSync3(resolved)) {
76314
+ if (!existsSync4(resolved)) {
75848
76315
  return null;
75849
76316
  }
75850
76317
  const content = readFileSync3(resolved, "utf-8");
@@ -75856,7 +76323,7 @@ function findEnvFiles(dir) {
75856
76323
  const found = [];
75857
76324
  for (const name of candidates) {
75858
76325
  const fullPath = resolve(cwd, name);
75859
- if (existsSync3(fullPath)) {
76326
+ if (existsSync4(fullPath)) {
75860
76327
  found.push(name);
75861
76328
  }
75862
76329
  }
@@ -76484,7 +76951,7 @@ async function create(options) {
76484
76951
  }
76485
76952
  newline();
76486
76953
  if (skipPrompts) {
76487
- config.set("defaultProject", project.slug);
76954
+ await setDefaultProject(project.slug);
76488
76955
  success2(`Default project set to "${project.slug}"`);
76489
76956
  } else {
76490
76957
  const setDefault = await promptConfirm({
@@ -76492,7 +76959,7 @@ async function create(options) {
76492
76959
  default: true
76493
76960
  });
76494
76961
  if (setDefault) {
76495
- config.set("defaultProject", project.slug);
76962
+ await setDefaultProject(project.slug);
76496
76963
  success2(`Default project set to "${project.slug}"`);
76497
76964
  }
76498
76965
  }
@@ -76592,7 +77059,7 @@ async function createManualProject(options, sourceType, skipPrompts) {
76592
77059
  }
76593
77060
  newline();
76594
77061
  if (skipPrompts) {
76595
- config.set("defaultProject", project.slug);
77062
+ await setDefaultProject(project.slug);
76596
77063
  success2(`Default project set to "${project.slug}"`);
76597
77064
  } else {
76598
77065
  const setDefault = await promptConfirm({
@@ -76600,7 +77067,7 @@ async function createManualProject(options, sourceType, skipPrompts) {
76600
77067
  default: true
76601
77068
  });
76602
77069
  if (setDefault) {
76603
- config.set("defaultProject", project.slug);
77070
+ await setDefaultProject(project.slug);
76604
77071
  success2(`Default project set to "${project.slug}"`);
76605
77072
  }
76606
77073
  }
@@ -76743,86 +77210,6 @@ async function configureEnvironmentVariables() {
76743
77210
  return envVars;
76744
77211
  }
76745
77212
 
76746
- // src/config/project-config.ts
76747
- import { readFile as readFile4, writeFile as writeFile4, mkdir as mkdir4 } from "node:fs/promises";
76748
- import { existsSync as existsSync4 } from "node:fs";
76749
- import { join, dirname as dirname3 } from "node:path";
76750
- var CONFIG_DIR = ".temps";
76751
- var CONFIG_FILE = "config.json";
76752
- var GITIGNORE_FILE = ".gitignore";
76753
- function findProjectConfigDir(startDir) {
76754
- let dir = startDir ?? process.cwd();
76755
- while (true) {
76756
- const configPath = join(dir, CONFIG_DIR, CONFIG_FILE);
76757
- if (existsSync4(configPath)) {
76758
- return join(dir, CONFIG_DIR);
76759
- }
76760
- const parent = dirname3(dir);
76761
- if (parent === dir)
76762
- break;
76763
- dir = parent;
76764
- }
76765
- return null;
76766
- }
76767
- async function readProjectConfig() {
76768
- const configDir = findProjectConfigDir();
76769
- if (!configDir)
76770
- return null;
76771
- try {
76772
- const configPath = join(configDir, CONFIG_FILE);
76773
- const content = await readFile4(configPath, "utf-8");
76774
- return JSON.parse(content);
76775
- } catch {
76776
- return null;
76777
- }
76778
- }
76779
- async function writeProjectConfig(config2) {
76780
- const configDir = join(process.cwd(), CONFIG_DIR);
76781
- await mkdir4(configDir, { recursive: true });
76782
- const configPath = join(configDir, CONFIG_FILE);
76783
- await writeFile4(configPath, JSON.stringify(config2, null, 2) + `
76784
- `, "utf-8");
76785
- const gitignorePath = join(configDir, GITIGNORE_FILE);
76786
- if (!existsSync4(gitignorePath)) {
76787
- await writeFile4(gitignorePath, `*
76788
- `, "utf-8");
76789
- }
76790
- return configPath;
76791
- }
76792
- function hasProjectConfig() {
76793
- return findProjectConfigDir() !== null;
76794
- }
76795
-
76796
- // src/config/resolve-project.ts
76797
- async function resolveProjectSlug(flagValue) {
76798
- if (flagValue) {
76799
- return { slug: flagValue, source: "flag" };
76800
- }
76801
- const localConfig = await readProjectConfig();
76802
- if (localConfig?.projectSlug) {
76803
- return { slug: localConfig.projectSlug, source: "local-config" };
76804
- }
76805
- const envProject = process.env.TEMPS_PROJECT;
76806
- if (envProject) {
76807
- return { slug: envProject, source: "env-var" };
76808
- }
76809
- const defaultProject = config.get("defaultProject");
76810
- if (defaultProject) {
76811
- return { slug: defaultProject, source: "global-config" };
76812
- }
76813
- return null;
76814
- }
76815
- async function requireProjectSlug(flagValue) {
76816
- const resolved = await resolveProjectSlug(flagValue);
76817
- if (resolved)
76818
- return resolved;
76819
- throw new Error(`No project specified. You can:
76820
- ` + ` • Pass --project <slug> flag
76821
- ` + ` • Run "temps link" to link this directory to a project
76822
- ` + ` • Set TEMPS_PROJECT environment variable
76823
- ` + ' • Run "temps configure" to set a default project');
76824
- }
76825
-
76826
77213
  // src/commands/projects/show.ts
76827
77214
  init_spinner();
76828
77215
  init_output();
@@ -76916,6 +77303,9 @@ async function remove(options) {
76916
77303
  }
76917
77304
  });
76918
77305
  success2(`Project "${projectIdOrName}" deleted`);
77306
+ if (getActiveDefaultProjectSync() === projectIdOrName) {
77307
+ await setDefaultProject(undefined);
77308
+ }
76919
77309
  if (config.get("defaultProject") === projectIdOrName) {
76920
77310
  config.set("defaultProject", undefined);
76921
77311
  }
@@ -82791,7 +83181,11 @@ async function deployLocalImage(options) {
82791
83181
  ` + `Image Tag: ${colors.bold(imageName)}` + (allBuildArgs.length ? `
82792
83182
  Build Args: ${colors.bold(allBuildArgs.join(", "))}` : ""), `${icons.package} Docker Build`);
82793
83183
  newline();
82794
- startSpinner("Building Docker image...");
83184
+ const quiet = isQuietMode();
83185
+ if (!quiet) {
83186
+ info2("Building Docker image...");
83187
+ newline();
83188
+ }
82795
83189
  try {
82796
83190
  await dockerBuild({
82797
83191
  dockerfile: resolvedDockerfile,
@@ -82799,16 +83193,20 @@ Build Args: ${colors.bold(allBuildArgs.join(", "))}` : ""), `${icons.package} Do
82799
83193
  tag: imageName,
82800
83194
  buildArgs: allBuildArgs,
82801
83195
  onOutput: (line) => {
82802
- const trimmed = line.trim();
82803
- if (trimmed) {
82804
- updateSpinner(`Building: ${trimmed.substring(0, 60)}${trimmed.length > 60 ? "..." : ""}`);
83196
+ const trimmed = line.trimEnd();
83197
+ if (trimmed && !quiet) {
83198
+ console.log(colors.dim(` ${trimmed}`));
82805
83199
  }
82806
83200
  }
82807
83201
  });
82808
- succeedSpinner(`Image built: ${imageName}`);
83202
+ if (!quiet)
83203
+ newline();
83204
+ success2(`Image built: ${imageName}`);
82809
83205
  didBuild = true;
82810
83206
  } catch (err) {
82811
- failSpinner("Docker build failed");
83207
+ if (!quiet)
83208
+ newline();
83209
+ warning2("Docker build failed");
82812
83210
  if (err instanceof Error) {
82813
83211
  warning2(err.message);
82814
83212
  }
@@ -82871,6 +83269,13 @@ ${colors.dim("(freshly built)")}` : ""), `${icons.rocket} Deploy Local Image`);
82871
83269
  if (options.tag) {
82872
83270
  queryParams.set("tag", options.tag);
82873
83271
  }
83272
+ const healthCheckPath = options.healthCheckPath?.trim();
83273
+ if (healthCheckPath) {
83274
+ if (!healthCheckPath.startsWith("/")) {
83275
+ throw new Error('--health-check-path must start with "/" (e.g. /api/healthz)');
83276
+ }
83277
+ queryParams.set("health_check_path", healthCheckPath);
83278
+ }
82874
83279
  const finalUrl = queryParams.toString() ? `${uploadUrl}?${queryParams.toString()}` : uploadUrl;
82875
83280
  const file = Bun.file(tempFilePath);
82876
83281
  const filename = `${imageName.replace(/[/:]/g, "-")}.tar`;
@@ -82965,6 +83370,7 @@ async function dockerBuild(options) {
82965
83370
  return new Promise((resolve3, reject2) => {
82966
83371
  const args = [
82967
83372
  "build",
83373
+ "--progress=plain",
82968
83374
  "-f",
82969
83375
  options.dockerfile,
82970
83376
  "-t",
@@ -82975,7 +83381,8 @@ async function dockerBuild(options) {
82975
83381
  }
82976
83382
  args.push(options.context);
82977
83383
  const docker = spawn3("docker", args, {
82978
- stdio: ["ignore", "pipe", "pipe"]
83384
+ stdio: ["ignore", "pipe", "pipe"],
83385
+ env: { ...process.env, BUILDKIT_PROGRESS: "plain" }
82979
83386
  });
82980
83387
  let stderr = "";
82981
83388
  docker.stdout.on("data", (chunk2) => {
@@ -83380,9 +83787,15 @@ async function deployStatic(options) {
83380
83787
  succeedSpinner(`Bundle uploaded: id=${bundle.id}`);
83381
83788
  startSpinner("Starting deployment...");
83382
83789
  const deployUrl = `${apiUrl}/projects/${projectData.id}/environments/${environmentId}/deploy/static`;
83790
+ const healthCheckPath = options.healthCheckPath?.trim();
83791
+ if (healthCheckPath && !healthCheckPath.startsWith("/")) {
83792
+ failSpinner('--health-check-path must start with "/" (e.g. /api/healthz)');
83793
+ return;
83794
+ }
83383
83795
  const deployBody = {
83384
83796
  static_bundle_id: bundle.id,
83385
- metadata: options.metadata ? JSON.parse(options.metadata) : undefined
83797
+ metadata: options.metadata ? JSON.parse(options.metadata) : undefined,
83798
+ ...healthCheckPath ? { health_check_path: healthCheckPath } : {}
83386
83799
  };
83387
83800
  const deployResponse = await fetch(deployUrl, {
83388
83801
  method: "POST",
@@ -83983,6 +84396,14 @@ async function deployImage(options) {
83983
84396
  return;
83984
84397
  }
83985
84398
  }
84399
+ if (options.healthCheckPath) {
84400
+ const p = options.healthCheckPath.trim();
84401
+ if (!p.startsWith("/")) {
84402
+ failSpinner('--health-check-path must start with "/" (e.g. /api/healthz)');
84403
+ return;
84404
+ }
84405
+ deployBody.health_check_path = p;
84406
+ }
83986
84407
  const deployResponse = await fetch(deployUrl, {
83987
84408
  method: "POST",
83988
84409
  headers: {
@@ -84553,9 +84974,9 @@ function registerDeployCommands(program2) {
84553
84974
  }
84554
84975
  return deploy(options);
84555
84976
  });
84556
- program2.command("deploy:static").alias("deploy-static").description("Deploy static files (tar.gz, zip, or directory)").requiredOption("--path <path>", "Path to static files archive or directory").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Target environment name", "production").option("--environment-id <id>", "Target environment ID").option("--no-wait", "Do not wait for deployment to complete").option("-y, --yes", "Skip confirmation prompts (for automation)").option("--metadata <json>", "Additional metadata (JSON format)").option("--timeout <seconds>", "Timeout in seconds for --wait", "300").action(deployStatic);
84557
- program2.command("deploy:image").alias("deploy-image").description("Deploy a pre-built Docker image").requiredOption("--image <image>", "Docker image reference (e.g., ghcr.io/org/app:v1.0)").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Target environment name", "production").option("--environment-id <id>", "Target environment ID").option("--no-wait", "Do not wait for deployment to complete").option("-y, --yes", "Skip confirmation prompts (for automation)").option("--metadata <json>", "Additional metadata (JSON format)").option("--timeout <seconds>", "Timeout in seconds for --wait", "300").action(deployImage);
84558
- program2.command("deploy:local-image").alias("deploy-local-image").description("Build and deploy a local Docker image (or deploy existing image with --image)").option("--image <image>", "Use existing local image instead of building (skips build)").option("-f, --dockerfile <path>", "Path to Dockerfile", "Dockerfile").option("-c, --context <path>", "Build context directory", ".").option("--build-arg <arg...>", "Build arguments (can be specified multiple times)").option("--no-build", "Skip building, requires --image").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Target environment name", "production").option("--environment-id <id>", "Target environment ID").option("-t, --tag <tag>", "Tag for the built/uploaded image").option("--no-wait", "Do not wait for deployment to complete").option("-y, --yes", "Skip confirmation prompts (for automation)").option("--metadata <json>", "Additional metadata (JSON format)").option("--timeout <seconds>", "Timeout in seconds for --wait", "600").action(deployLocalImage);
84977
+ program2.command("deploy:static").alias("deploy-static").description("Deploy static files (tar.gz, zip, or directory)").requiredOption("--path <path>", "Path to static files archive or directory").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Target environment name", "production").option("--environment-id <id>", "Target environment ID").option("--no-wait", "Do not wait for deployment to complete").option("-y, --yes", "Skip confirmation prompts (for automation)").option("--metadata <json>", "Additional metadata (JSON format)").option("--health-check-path <path>", 'HTTP health-check path (must start with "/", e.g. /api/healthz). Overrides .temps.yaml; also updates the uptime monitor.').option("--timeout <seconds>", "Timeout in seconds for --wait", "300").action(deployStatic);
84978
+ program2.command("deploy:image").alias("deploy-image").description("Deploy a pre-built Docker image").requiredOption("--image <image>", "Docker image reference (e.g., ghcr.io/org/app:v1.0)").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Target environment name", "production").option("--environment-id <id>", "Target environment ID").option("--no-wait", "Do not wait for deployment to complete").option("-y, --yes", "Skip confirmation prompts (for automation)").option("--metadata <json>", "Additional metadata (JSON format)").option("--health-check-path <path>", 'HTTP health-check path (must start with "/", e.g. /api/healthz). Overrides .temps.yaml; also updates the uptime monitor.').option("--timeout <seconds>", "Timeout in seconds for --wait", "300").action(deployImage);
84979
+ program2.command("deploy:local-image").alias("deploy-local-image").description("Build and deploy a local Docker image (or deploy existing image with --image)").option("--image <image>", "Use existing local image instead of building (skips build)").option("-f, --dockerfile <path>", "Path to Dockerfile", "Dockerfile").option("-c, --context <path>", "Build context directory", ".").option("--build-arg <arg...>", "Build arguments (can be specified multiple times)").option("--no-build", "Skip building, requires --image").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Target environment name", "production").option("--environment-id <id>", "Target environment ID").option("-t, --tag <tag>", "Tag for the built/uploaded image").option("--no-wait", "Do not wait for deployment to complete").option("-y, --yes", "Skip confirmation prompts (for automation)").option("--metadata <json>", "Additional metadata (JSON format)").option("--health-check-path <path>", 'HTTP health-check path (must start with "/", e.g. /api/healthz). Overrides .temps.yaml; also updates the uptime monitor.').option("--timeout <seconds>", "Timeout in seconds for --wait", "600").action(deployLocalImage);
84559
84980
  const deployments = program2.command("deployments").alias("deploys").description("Manage deployments");
84560
84981
  deployments.command("list").alias("ls").description("List deployments").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Filter by environment name (client-side)").option("--environment-id <id>", "Filter by environment ID (server-side)").option("-n, --limit <number>", "Limit results", "10").option("--page <n>", "Page number").option("--per-page <n>", "Items per page").option("--json", "Output in JSON format").action(list2);
84561
84982
  deployments.command("status").description("Show deployment status").option("-p, --project <project>", "Project slug or ID (required)").option("-d, --deployment-id <id>", "Deployment ID (required)").option("--json", "Output in JSON format").action(status);
@@ -86139,7 +86560,7 @@ init_output();
86139
86560
  function registerProvidersCommands(program2) {
86140
86561
  const providers = program2.command("providers").alias("provider").description("Manage Git providers");
86141
86562
  providers.command("list").alias("ls").description("List configured Git providers").option("--json", "Output in JSON format").action(listProviders);
86142
- providers.command("add").description("Add a new Git provider").option("-p, --provider <provider>", "Provider type (github, gitlab)").option("-n, --name <name>", "Provider name").option("-t, --token <token>", "Personal access token").option("--base-url <url>", "GitLab base URL (for self-hosted GitLab)").option("-y, --yes", "Skip confirmation prompts (for automation)").action(addProvider);
86563
+ providers.command("add").description("Add a new Git provider").option("-p, --provider <provider>", "Provider type (github, gitlab, bitbucket, gitea, generic)").option("-n, --name <name>", "Provider name").option("-t, --token <token>", "Personal access token (or Bitbucket access token / app password)").option("--base-url <url>", "Instance base URL (GitLab/Gitea self-hosted; required for gitea)").option("--username <username>", "Bitbucket username (selects app-password auth)").option("--password <password>", "Bitbucket app password (used with --username)").option("--clone-url <url>", "HTTPS clone URL (generic provider)").option("--token-username <username>", "HTTP Basic username for the token (generic; default x-access-token)").option("-y, --yes", "Skip confirmation prompts (for automation)").action(addProvider);
86143
86564
  providers.command("remove").alias("rm").description("Remove a Git provider").requiredOption("--id <id>", "Provider ID").option("-f, --force", "Skip confirmation").option("-y, --yes", "Skip confirmation prompts (alias for --force)").action(removeProvider);
86144
86565
  providers.command("show").description("Show Git provider details").requiredOption("--id <id>", "Provider ID").option("--json", "Output in JSON format").action(showProvider);
86145
86566
  providers.command("activate").description("Activate a Git provider").requiredOption("--id <id>", "Provider ID").action(activateProviderAction);
@@ -86147,7 +86568,7 @@ function registerProvidersCommands(program2) {
86147
86568
  providers.command("safe-delete").description("Safely delete a Git provider (checks dependencies first)").requiredOption("--id <id>", "Provider ID").option("-f, --force", "Skip confirmation").option("-y, --yes", "Skip confirmation prompts (alias for --force)").action(safeDeleteProviderAction);
86148
86569
  providers.command("deletion-check").description("Check if a Git provider can be safely deleted").requiredOption("--id <id>", "Provider ID").option("--json", "Output in JSON format").action(deletionCheckAction);
86149
86570
  const git = providers.command("git").description("Manage Git providers");
86150
- git.command("connect").description("Connect a Git provider (github, gitlab)").requiredOption("-p, --provider <provider>", "Provider type (github, gitlab)").option("-n, --name <name>", "Provider name").option("-t, --token <token>", "Personal access token").option("--base-url <url>", "GitLab base URL (for self-hosted GitLab)").option("-y, --yes", "Skip confirmation prompts (for automation)").action(connectGitProvider);
86571
+ git.command("connect").description("Connect a Git provider (github, gitlab, bitbucket, gitea, generic)").requiredOption("-p, --provider <provider>", "Provider type (github, gitlab, bitbucket, gitea, generic)").option("-n, --name <name>", "Provider name").option("-t, --token <token>", "Personal access token (or Bitbucket access token / app password)").option("--base-url <url>", "Instance base URL (GitLab/Gitea self-hosted; required for gitea)").option("--username <username>", "Bitbucket username (selects app-password auth)").option("--password <password>", "Bitbucket app password (used with --username)").option("--clone-url <url>", "HTTPS clone URL (generic provider)").option("--token-username <username>", "HTTP Basic username for the token (generic; default x-access-token)").option("-y, --yes", "Skip confirmation prompts (for automation)").action(connectGitProvider);
86151
86572
  git.command("repos").description("List available repositories").option("--id <id>", "Provider ID (optional, lists all if not provided)").option("--json", "Output in JSON format").option("--search <term>", "Search repositories by name").option("--page <n>", "Page number").option("--per-page <n>", "Items per page (max: 100)").option("--sort <field>", "Sort by field (name, created_at, updated_at, stars)").option("--direction <dir>", "Sort direction: asc or desc").option("--language <lang>", "Filter by programming language").option("--owner <owner>", "Filter by repository owner").action(listRepos);
86152
86573
  const connections = providers.command("connections").alias("conn").description("Manage Git provider connections");
86153
86574
  connections.command("list").alias("ls").description("List all Git connections").option("--json", "Output in JSON format").option("--page <n>", "Page number").option("--per-page <n>", "Items per page (default: 30, max: 100)").option("--sort <field>", "Sort by field (created_at, updated_at, account_name)").option("--direction <dir>", "Sort direction: asc or desc (default: desc)").action(listConnectionsAction);
@@ -86191,79 +86612,114 @@ async function listProviders(options) {
86191
86612
  printTable(providers, columns, { style: "minimal" });
86192
86613
  newline();
86193
86614
  }
86615
+ var SUPPORTED_PROVIDERS = ["github", "gitlab", "bitbucket", "gitea", "generic"];
86194
86616
  async function addProvider(options) {
86195
86617
  await requireAuth();
86196
86618
  await setupClient();
86197
- let provider;
86198
- let name;
86199
- let token;
86200
- let baseUrl = null;
86201
- const isAutomation = options.yes && options.provider && options.name && options.token;
86202
- if (isAutomation) {
86203
- provider = options.provider;
86204
- name = options.name;
86205
- token = options.token;
86206
- baseUrl = options.baseUrl || null;
86207
- if (provider !== "github" && provider !== "gitlab") {
86208
- warning2(`Invalid provider: ${provider}. Supported: github, gitlab`);
86209
- return;
86210
- }
86211
- } else {
86212
- provider = options.provider || await promptSelect({
86619
+ const interactive = !options.yes;
86620
+ let provider = options.provider;
86621
+ if (!provider && interactive) {
86622
+ provider = await promptSelect({
86213
86623
  message: "Git provider",
86214
86624
  choices: [
86215
86625
  { name: "GitHub", value: "github" },
86216
- { name: "GitLab", value: "gitlab" }
86626
+ { name: "GitLab", value: "gitlab" },
86627
+ { name: "Bitbucket", value: "bitbucket" },
86628
+ { name: "Gitea / Forgejo", value: "gitea" },
86629
+ { name: "Other Git Providers (generic HTTPS)", value: "generic" }
86217
86630
  ]
86218
86631
  });
86219
- if (provider !== "github" && provider !== "gitlab") {
86220
- warning2(`Invalid provider: ${provider}. Supported: github, gitlab`);
86221
- return;
86222
- }
86223
- info2(`
86224
- To connect ${provider}, you'll need to create a personal access token.`);
86225
- const tokenUrl = {
86226
- github: "https://github.com/settings/tokens/new",
86227
- gitlab: "https://gitlab.com/-/profile/personal_access_tokens"
86228
- };
86229
- info2(`Visit: ${colors.primary(tokenUrl[provider])}
86230
- `);
86231
- name = options.name || await promptText({
86232
- message: "Provider name",
86233
- default: `${provider}-connection`,
86234
- required: true
86235
- });
86236
- token = options.token || await promptPassword({
86237
- message: "Personal access token"
86238
- });
86239
- if (provider === "gitlab") {
86240
- baseUrl = options.baseUrl || await promptText({
86241
- message: "GitLab base URL (leave empty for gitlab.com)",
86242
- default: ""
86243
- }) || null;
86244
- }
86245
86632
  }
86633
+ if (!provider || !SUPPORTED_PROVIDERS.includes(provider)) {
86634
+ warning2(`Invalid provider: ${provider}. Supported: ${SUPPORTED_PROVIDERS.join(", ")}`);
86635
+ return;
86636
+ }
86637
+ const name = options.name || (interactive ? await promptText({ message: "Provider name", default: `${provider}-connection`, required: true }) : "");
86638
+ if (!name) {
86639
+ warning2("Provider name is required (use -n/--name)");
86640
+ return;
86641
+ }
86642
+ const getToken = async () => {
86643
+ const t = options.token || (interactive ? await promptPassword({ message: "Personal access token" }) : "");
86644
+ return t;
86645
+ };
86246
86646
  await withSpinner(`Connecting to ${provider}...`, async () => {
86247
86647
  if (provider === "github") {
86248
- const { error: error3 } = await createGithubPatProvider({
86249
- client,
86250
- body: { name, token }
86251
- });
86252
- if (error3) {
86648
+ const token = await getToken();
86649
+ if (!token)
86650
+ throw new Error("A token is required (use -t/--token)");
86651
+ const { error: error3 } = await createGithubPatProvider({ client, body: { name, token } });
86652
+ if (error3)
86253
86653
  throw new Error(getErrorMessage(error3));
86254
- }
86255
86654
  } else if (provider === "gitlab") {
86256
- const { error: error3 } = await createGitlabPatProvider({
86655
+ const token = await getToken();
86656
+ if (!token)
86657
+ throw new Error("A token is required (use -t/--token)");
86658
+ const baseUrl = options.baseUrl || (interactive ? await promptText({ message: "GitLab base URL (leave empty for gitlab.com)", default: "" }) || null : null);
86659
+ const { error: error3 } = await createGitlabPatProvider({ client, body: { name, token, base_url: baseUrl } });
86660
+ if (error3)
86661
+ throw new Error(getErrorMessage(error3));
86662
+ } else if (provider === "gitea") {
86663
+ const baseUrl = options.baseUrl || (interactive ? await promptText({ message: "Gitea instance URL (https://...)", required: true }) : "");
86664
+ if (!baseUrl)
86665
+ throw new Error("Gitea requires --base-url (the HTTPS instance URL)");
86666
+ const token = await getToken();
86667
+ if (!token)
86668
+ throw new Error("A token is required (use -t/--token)");
86669
+ const { error: error3 } = await createGiteaPatProvider({ client, body: { name, token, base_url: baseUrl } });
86670
+ if (error3)
86671
+ throw new Error(getErrorMessage(error3));
86672
+ } else if (provider === "bitbucket") {
86673
+ let auth;
86674
+ if (options.username) {
86675
+ const password = options.password || options.token || (interactive ? await promptPassword({ message: "Bitbucket app password" }) : "");
86676
+ if (!password)
86677
+ throw new Error("Bitbucket app password is required (use --password or -t/--token)");
86678
+ auth = { type: "app_password", username: options.username, password };
86679
+ } else if (options.token || !interactive) {
86680
+ if (!options.token)
86681
+ throw new Error("Bitbucket access token is required (use -t/--token), or --username for app-password auth");
86682
+ auth = { type: "access_token", token: options.token };
86683
+ } else {
86684
+ const method2 = await promptSelect({
86685
+ message: "Bitbucket authentication",
86686
+ choices: [
86687
+ { name: "Access token (recommended)", value: "access_token" },
86688
+ { name: "App password", value: "app_password" }
86689
+ ]
86690
+ });
86691
+ if (method2 === "app_password") {
86692
+ const username = await promptText({ message: "Atlassian username", required: true });
86693
+ const password = await promptPassword({ message: "App password" });
86694
+ auth = { type: "app_password", username, password };
86695
+ } else {
86696
+ const token = await promptPassword({ message: "Access token" });
86697
+ auth = { type: "access_token", token };
86698
+ }
86699
+ }
86700
+ const { error: error3 } = await createBitbucketProvider({ client, body: { name, auth } });
86701
+ if (error3)
86702
+ throw new Error(getErrorMessage(error3));
86703
+ } else if (provider === "generic") {
86704
+ const cloneUrl = options.cloneUrl || (interactive ? await promptText({ message: "HTTPS clone URL (https://...)", required: true }) : "");
86705
+ if (!cloneUrl)
86706
+ throw new Error("The generic provider requires --clone-url (an HTTPS clone URL)");
86707
+ let token = options.token ?? null;
86708
+ if (token === null && interactive) {
86709
+ token = await promptText({ message: "Access token (leave empty for a public repo)", default: "" }) || null;
86710
+ }
86711
+ const { error: error3 } = await createGenericProvider({
86257
86712
  client,
86258
86713
  body: {
86259
86714
  name,
86715
+ clone_url: cloneUrl,
86716
+ base_url: options.baseUrl ?? null,
86260
86717
  token,
86261
- base_url: baseUrl
86718
+ token_username: options.tokenUsername ?? null
86262
86719
  }
86263
86720
  });
86264
- if (error3) {
86721
+ if (error3)
86265
86722
  throw new Error(getErrorMessage(error3));
86266
- }
86267
86723
  }
86268
86724
  });
86269
86725
  success2(`${provider} connected successfully`);
@@ -86466,8 +86922,8 @@ async function deletionCheckAction(options) {
86466
86922
  newline();
86467
86923
  }
86468
86924
  async function connectGitProvider(options) {
86469
- if (options.provider !== "github" && options.provider !== "gitlab") {
86470
- warning2(`Unsupported provider: ${options.provider}. Supported: github, gitlab`);
86925
+ if (!SUPPORTED_PROVIDERS.includes(options.provider)) {
86926
+ warning2(`Unsupported provider: ${options.provider}. Supported: ${SUPPORTED_PROVIDERS.join(", ")}`);
86471
86927
  return;
86472
86928
  }
86473
86929
  await addProvider({
@@ -86475,6 +86931,10 @@ async function connectGitProvider(options) {
86475
86931
  name: options.name,
86476
86932
  token: options.token,
86477
86933
  baseUrl: options.baseUrl,
86934
+ username: options.username,
86935
+ password: options.password,
86936
+ cloneUrl: options.cloneUrl,
86937
+ tokenUsername: options.tokenUsername,
86478
86938
  yes: options.yes
86479
86939
  });
86480
86940
  }
@@ -90673,7 +91133,7 @@ var CHECK_INTERVALS = [
90673
91133
  function registerMonitorsCommands(program2) {
90674
91134
  const monitors = program2.command("monitors").alias("monitoring").description("Manage uptime monitors for status pages");
90675
91135
  monitors.command("list").alias("ls").description("List all monitors for a project").requiredOption("--project-id <id>", "Project ID").option("--json", "Output in JSON format").action(listMonitorsAction);
90676
- monitors.command("create").alias("add").description("Create a new monitor for a project").requiredOption("--project-id <id>", "Project ID").option("-n, --name <name>", "Monitor name").option("-t, --type <type>", "Monitor type (http, tcp, ping)").option("-i, --interval <seconds>", "Check interval in seconds (60, 300, 600, 900, 1800)").option("--environment-id <id>", "Environment ID (default: 0 for production)").option("-y, --yes", "Skip confirmation prompts (for automation)").action(createMonitorAction);
91136
+ monitors.command("create").alias("add").description("Create a new monitor for a project").requiredOption("--project-id <id>", "Project ID").option("-n, --name <name>", "Monitor name").option("-t, --type <type>", "Monitor type (http, tcp, ping)").option("-i, --interval <seconds>", "Check interval in seconds (60, 300, 600, 900, 1800)").option("--check-path <path>", 'HTTP health-check path (must start with "/", e.g. /api/healthz). Defaults to "/" for HTTP monitors.').option("--environment-id <id>", "Environment ID (default: 0 for production)").option("-y, --yes", "Skip confirmation prompts (for automation)").action(createMonitorAction);
90677
91137
  monitors.command("show").description("Show monitor details and current status").requiredOption("--id <id>", "Monitor ID").option("--json", "Output in JSON format").action(showMonitor);
90678
91138
  monitors.command("remove").alias("rm").description("Delete a monitor").requiredOption("--id <id>", "Monitor ID").option("-f, --force", "Skip confirmation").option("-y, --yes", "Skip confirmation prompts (alias for --force)").action(removeMonitor);
90679
91139
  monitors.command("status").description("Get current status — all monitors for a project, or a single monitor by ID").option("--id <id>", "Monitor ID (omit to show all monitors for the project)").option("-p, --project <slug>", "Project slug (auto-detected from .temps/config.json or TEMPS_PROJECT)").option("--json", "Output in JSON format").action(getMonitorStatusAction);
@@ -90765,6 +91225,10 @@ async function createMonitorAction(options) {
90765
91225
  });
90766
91226
  environmentId = options.environmentId ? parseInt(options.environmentId, 10) : 0;
90767
91227
  }
91228
+ const checkPath = options.checkPath?.trim();
91229
+ if (checkPath && !checkPath.startsWith("/")) {
91230
+ throw new Error(`--check-path must start with "/" (got "${checkPath}")`);
91231
+ }
90768
91232
  await withSpinner("Creating monitor...", async () => {
90769
91233
  const { error: error3 } = await createMonitor({
90770
91234
  client,
@@ -90773,7 +91237,8 @@ async function createMonitorAction(options) {
90773
91237
  name,
90774
91238
  monitor_type: monitorType,
90775
91239
  check_interval_seconds: checkInterval,
90776
- environment_id: environmentId
91240
+ environment_id: environmentId,
91241
+ ...checkPath ? { check_path: checkPath } : {}
90777
91242
  }
90778
91243
  });
90779
91244
  if (error3) {
@@ -103265,6 +103730,354 @@ function registerRevenueCommands(program2) {
103265
103730
  });
103266
103731
  }
103267
103732
 
103733
+ // src/commands/session-replay/index.ts
103734
+ init_source();
103735
+ init_sdk_gen();
103736
+ init_spinner();
103737
+ init_output();
103738
+ function formatDuration4(ms) {
103739
+ if (ms == null)
103740
+ return source_default.gray("—");
103741
+ const s = Math.round(ms / 1000);
103742
+ if (s < 60)
103743
+ return `${s}s`;
103744
+ const m = Math.floor(s / 60);
103745
+ const rem = s % 60;
103746
+ return rem > 0 ? `${m}m ${rem}s` : `${m}m`;
103747
+ }
103748
+ function deviceIcon(device) {
103749
+ if (!device)
103750
+ return "?";
103751
+ const d = device.toLowerCase();
103752
+ if (d.includes("mobile"))
103753
+ return "\uD83D\uDCF1";
103754
+ if (d.includes("tablet"))
103755
+ return "\uD83D\uDCDF";
103756
+ return "\uD83D\uDDA5";
103757
+ }
103758
+ function paginationFooter(page, perPage, total) {
103759
+ const totalPages = Math.ceil(total / perPage);
103760
+ if (totalPages > 1) {
103761
+ info2(`Page ${source_default.bold(page)} of ${source_default.bold(totalPages)} · ${source_default.bold(total)} total sessions`);
103762
+ if (page < totalPages) {
103763
+ info2(`Use ${source_default.cyan("--page " + (page + 1))} to see the next page`);
103764
+ }
103765
+ } else {
103766
+ info2(`${source_default.bold(total)} session${total !== 1 ? "s" : ""}`);
103767
+ }
103768
+ }
103769
+ async function listSessions(options) {
103770
+ await requireAuth();
103771
+ await setupClient();
103772
+ const resolved = await requireProjectSlug(options.project);
103773
+ if (resolved.source !== "flag") {
103774
+ info2(`Using project ${colors.bold(resolved.slug)} (from ${resolved.source})`);
103775
+ }
103776
+ const { data: projectData, error: projectError } = await getProjectBySlug({
103777
+ client,
103778
+ path: { slug: resolved.slug }
103779
+ });
103780
+ if (projectError || !projectData)
103781
+ throw new Error(`Project "${resolved.slug}" not found`);
103782
+ const projectId = projectData.id;
103783
+ const page = options.page ? parseInt(options.page, 10) : 1;
103784
+ const perPage = options.perPage ? parseInt(options.perPage, 10) : 25;
103785
+ const environmentId = options.environmentId ? parseInt(options.environmentId, 10) : undefined;
103786
+ const result2 = await withSpinner("Fetching session replays…", async () => {
103787
+ const { data, error: error3 } = await getProjectSessionReplays({
103788
+ client,
103789
+ query: {
103790
+ project_id: projectId,
103791
+ page,
103792
+ per_page: perPage,
103793
+ ...environmentId != null && { environment_id: environmentId }
103794
+ }
103795
+ });
103796
+ if (error3)
103797
+ throw new Error(getErrorMessage(error3));
103798
+ return data;
103799
+ });
103800
+ const sessions = result2?.sessions ?? [];
103801
+ const total = result2?.total_count ?? sessions.length;
103802
+ if (options.json) {
103803
+ json(result2);
103804
+ return;
103805
+ }
103806
+ if (sessions.length === 0) {
103807
+ info2("No session replays found.");
103808
+ return;
103809
+ }
103810
+ header(`Session Replays · ${resolved.slug}`);
103811
+ newline();
103812
+ const columns = [
103813
+ {
103814
+ header: "ID",
103815
+ accessor: (s) => s.session_replay_id.slice(0, 8),
103816
+ width: 10
103817
+ },
103818
+ {
103819
+ header: "Dev",
103820
+ accessor: (s) => deviceIcon(s.device_type),
103821
+ width: 5
103822
+ },
103823
+ {
103824
+ header: "Browser",
103825
+ accessor: (s) => [s.browser, s.browser_version].filter(Boolean).join(" ") || "—",
103826
+ width: 18
103827
+ },
103828
+ {
103829
+ header: "OS",
103830
+ accessor: (s) => s.operating_system ?? "—",
103831
+ width: 14
103832
+ },
103833
+ {
103834
+ header: "Duration",
103835
+ accessor: (s) => formatDuration4(s.duration),
103836
+ align: "right",
103837
+ width: 10
103838
+ },
103839
+ {
103840
+ header: "Country",
103841
+ accessor: (s) => s.visitor_country_code ?? "—",
103842
+ width: 8
103843
+ },
103844
+ {
103845
+ header: "URL",
103846
+ accessor: (s) => s.url ? s.url.replace(/^https?:\/\/[^/]+/, "") || "/" : "—",
103847
+ width: 28
103848
+ },
103849
+ {
103850
+ header: "Started",
103851
+ accessor: (s) => s.created_at ? formatRelativeTime(s.created_at) : "—",
103852
+ width: 14
103853
+ },
103854
+ {
103855
+ header: "Visitor",
103856
+ accessor: (s) => `#${s.visitor_id}`,
103857
+ width: 10
103858
+ }
103859
+ ];
103860
+ printTable(sessions, columns, { style: "minimal" });
103861
+ newline();
103862
+ paginationFooter(page, perPage, total);
103863
+ }
103864
+ async function listVisitorSessions(visitorId, options) {
103865
+ await requireAuth();
103866
+ await setupClient();
103867
+ const vid = parseInt(visitorId, 10);
103868
+ if (isNaN(vid))
103869
+ throw new Error("--visitor-id must be a number");
103870
+ const page = options.page ? parseInt(options.page, 10) : 1;
103871
+ const perPage = options.perPage ? parseInt(options.perPage, 10) : 25;
103872
+ const result2 = await withSpinner(`Fetching sessions for visitor #${vid}…`, async () => {
103873
+ const { data, error: error3 } = await getVisitorSessions({
103874
+ client,
103875
+ path: { visitor_id: vid },
103876
+ query: { page, per_page: perPage }
103877
+ });
103878
+ if (error3)
103879
+ throw new Error(getErrorMessage(error3));
103880
+ return data;
103881
+ });
103882
+ const sessions = result2?.sessions ?? [];
103883
+ const total = result2?.total_count ?? sessions.length;
103884
+ if (options.json) {
103885
+ json(result2);
103886
+ return;
103887
+ }
103888
+ if (sessions.length === 0) {
103889
+ info2(`No sessions found for visitor #${vid}.`);
103890
+ return;
103891
+ }
103892
+ header(`Sessions · Visitor #${vid}`);
103893
+ newline();
103894
+ const columns = [
103895
+ { header: "ID", accessor: (s) => s.session_replay_id.slice(0, 8), width: 10 },
103896
+ { header: "Dev", accessor: (s) => deviceIcon(s.device_type), width: 5 },
103897
+ { header: "Browser", accessor: (s) => s.browser ?? "—", width: 16 },
103898
+ { header: "Duration", accessor: (s) => formatDuration4(s.duration), align: "right", width: 10 },
103899
+ { header: "URL", accessor: (s) => s.url ? s.url.replace(/^https?:\/\/[^/]+/, "") || "/" : "—", width: 32 },
103900
+ { header: "Started", accessor: (s) => s.created_at ? formatRelativeTime(s.created_at) : "—", width: 14 }
103901
+ ];
103902
+ printTable(sessions, columns, { style: "minimal" });
103903
+ newline();
103904
+ paginationFooter(page, perPage, total);
103905
+ }
103906
+ async function showSession(visitorId, sessionId, options) {
103907
+ await requireAuth();
103908
+ await setupClient();
103909
+ const vid = parseInt(visitorId, 10);
103910
+ const sid = parseInt(sessionId, 10);
103911
+ if (isNaN(vid))
103912
+ throw new Error("visitor-id must be a number");
103913
+ if (isNaN(sid))
103914
+ throw new Error("session-id must be a number");
103915
+ const result2 = await withSpinner("Fetching session…", async () => {
103916
+ const { data, error: error3 } = await getSessionReplay({
103917
+ client,
103918
+ path: { visitor_id: vid, session_id: sid }
103919
+ });
103920
+ if (error3)
103921
+ throw new Error(getErrorMessage(error3));
103922
+ return data;
103923
+ });
103924
+ const s = result2?.session;
103925
+ if (!s)
103926
+ throw new Error("Session not found");
103927
+ if (options.json) {
103928
+ json(result2);
103929
+ return;
103930
+ }
103931
+ header(`Session ${s.session_replay_id}`);
103932
+ newline();
103933
+ keyValue("Session ID", s.session_replay_id);
103934
+ keyValue("Visitor ID", String(s.visitor_id));
103935
+ keyValue("Duration", formatDuration4(s.duration));
103936
+ keyValue("URL", s.url ?? "—");
103937
+ keyValue("Browser", [s.browser, s.browser_version].filter(Boolean).join(" ") || "—");
103938
+ keyValue("OS", [s.operating_system, s.operating_system_version].filter(Boolean).join(" ") || "—");
103939
+ keyValue("Device", s.device_type ?? "—");
103940
+ keyValue("Viewport", s.viewport_width && s.viewport_height ? `${s.viewport_width}×${s.viewport_height}` : "—");
103941
+ keyValue("Screen", s.screen_width && s.screen_height ? `${s.screen_width}×${s.screen_height}` : "—");
103942
+ keyValue("Language", s.language ?? "—");
103943
+ keyValue("Timezone", s.timezone ?? "—");
103944
+ keyValue("Country", [s.visitor_country, s.visitor_country_code ? `(${s.visitor_country_code})` : null].filter(Boolean).join(" ") || "—");
103945
+ keyValue("City", s.visitor_city ?? "—");
103946
+ keyValue("Region", s.visitor_region ?? "—");
103947
+ keyValue("Started", s.created_at ? formatRelativeTime(s.created_at) : "—");
103948
+ keyValue("First seen", formatRelativeTime(s.visitor_first_seen));
103949
+ keyValue("Last seen", formatRelativeTime(s.visitor_last_seen));
103950
+ }
103951
+ function eventTypeName(type) {
103952
+ const names = {
103953
+ 0: "DomContentLoaded",
103954
+ 1: "Load",
103955
+ 2: "FullSnapshot",
103956
+ 3: "IncrementalSnapshot",
103957
+ 4: "Meta",
103958
+ 5: "Custom",
103959
+ 6: "Plugin"
103960
+ };
103961
+ if (type == null)
103962
+ return "—";
103963
+ return names[type] ?? `Type${type}`;
103964
+ }
103965
+ async function downloadEvents(visitorId, sessionId, options) {
103966
+ await requireAuth();
103967
+ await setupClient();
103968
+ const vid = parseInt(visitorId, 10);
103969
+ const sid = parseInt(sessionId, 10);
103970
+ if (isNaN(vid))
103971
+ throw new Error("visitor-id must be a number");
103972
+ if (isNaN(sid))
103973
+ throw new Error("session-id must be a number");
103974
+ const result2 = await withSpinner("Fetching session events…", async () => {
103975
+ const { data, error: error3 } = await getSessionReplayEvents({
103976
+ client,
103977
+ path: { visitor_id: vid, session_id: sid }
103978
+ });
103979
+ if (error3)
103980
+ throw new Error(getErrorMessage(error3));
103981
+ return data;
103982
+ });
103983
+ const allEvents = result2?.events ?? [];
103984
+ const session = result2?.session;
103985
+ if (options.json) {
103986
+ json(result2);
103987
+ return;
103988
+ }
103989
+ if (options.output) {
103990
+ const { writeFileSync: writeFileSync5 } = await import("node:fs");
103991
+ const payload = JSON.stringify(result2, null, 2);
103992
+ writeFileSync5(options.output, payload, "utf8");
103993
+ success2(`Wrote ${allEvents.length} events to ${source_default.cyan(options.output)}`);
103994
+ return;
103995
+ }
103996
+ const pageSize = options.limit ? parseInt(options.limit, 10) : 50;
103997
+ const page = options.page ? parseInt(options.page, 10) : 1;
103998
+ const start = (page - 1) * pageSize;
103999
+ const events = allEvents.slice(start, start + pageSize);
104000
+ const totalPages = Math.ceil(allEvents.length / pageSize);
104001
+ header(`Events · Session ${session?.session_replay_id?.slice(0, 8) ?? sid}`);
104002
+ if (session) {
104003
+ newline();
104004
+ keyValue("URL", session.url ?? "—");
104005
+ keyValue("Duration", formatDuration4(session.duration));
104006
+ keyValue("Total events", String(allEvents.length));
104007
+ }
104008
+ newline();
104009
+ if (allEvents.length === 0) {
104010
+ info2("No events recorded for this session.");
104011
+ return;
104012
+ }
104013
+ let rowIndex = start;
104014
+ const columns = [
104015
+ { header: "#", accessor: () => String(++rowIndex), width: 5, align: "right" },
104016
+ { header: "ID", key: "id", width: 8 },
104017
+ { header: "Type", accessor: (e) => eventTypeName(e.event_type), width: 20 },
104018
+ {
104019
+ header: "Timestamp",
104020
+ accessor: (e) => {
104021
+ const d = new Date(e.timestamp);
104022
+ return isNaN(d.getTime()) ? String(e.timestamp) : d.toISOString().replace("T", " ").slice(0, 23);
104023
+ },
104024
+ width: 24
104025
+ },
104026
+ {
104027
+ header: "Data (preview)",
104028
+ accessor: (e) => {
104029
+ const s = JSON.stringify(e.data);
104030
+ return s.length > 60 ? s.slice(0, 57) + "…" : s;
104031
+ },
104032
+ width: 60
104033
+ }
104034
+ ];
104035
+ printTable(events, columns, { style: "minimal" });
104036
+ newline();
104037
+ if (totalPages > 1) {
104038
+ info2(`Page ${source_default.bold(page)} of ${source_default.bold(totalPages)} · ${source_default.bold(allEvents.length)} total events`);
104039
+ if (page < totalPages) {
104040
+ info2(`Use ${source_default.cyan("--page " + (page + 1))} to see the next page`);
104041
+ }
104042
+ newline();
104043
+ info2(`To download all events: ${source_default.cyan(`bunx @temps-sdk/cli session-replay events ${visitorId} ${sessionId} --output events.json`)}`);
104044
+ }
104045
+ }
104046
+ async function deleteSession(visitorId, sessionId, options) {
104047
+ await requireAuth();
104048
+ await setupClient();
104049
+ const vid = parseInt(visitorId, 10);
104050
+ if (isNaN(vid))
104051
+ throw new Error("visitor-id must be a number");
104052
+ if (!options.yes) {
104053
+ const { promptConfirm: promptConfirm3 } = await Promise.resolve().then(() => (init_prompts(), exports_prompts));
104054
+ const ok = await promptConfirm3({
104055
+ message: `Delete session ${source_default.cyan(sessionId)} for visitor #${vid}? This cannot be undone.`
104056
+ });
104057
+ if (!ok) {
104058
+ info2("Cancelled.");
104059
+ return;
104060
+ }
104061
+ }
104062
+ await withSpinner("Deleting session…", async () => {
104063
+ const { error: error3 } = await deleteSessionReplay({
104064
+ client,
104065
+ path: { visitor_id: vid, session_id: sessionId }
104066
+ });
104067
+ if (error3)
104068
+ throw new Error(getErrorMessage(error3));
104069
+ });
104070
+ success2(`Session ${source_default.cyan(sessionId)} deleted.`);
104071
+ }
104072
+ function registerSessionReplayCommands(program2) {
104073
+ const sr = program2.command("session-replay").aliases(["sessions", "replay"]).description("Manage session replay recordings");
104074
+ sr.command("list").aliases(["ls"]).description("List session replays for a project").option("-p, --project <project>", "Project slug or ID").option("--environment-id <id>", "Filter by environment ID").option("--page <n>", "Page number (default: 1)", "1").option("--per-page <n>", "Sessions per page (default: 25, max: 100)", "25").option("--json", "Output raw JSON").action(listSessions);
104075
+ sr.command("visitor <visitor-id>").description("List session replays for a specific visitor").option("--page <n>", "Page number (default: 1)", "1").option("--per-page <n>", "Sessions per page (default: 25)", "25").option("--json", "Output raw JSON").action(listVisitorSessions);
104076
+ sr.command("show <visitor-id> <session-id>").description("Show session metadata (use numeric session ID from list)").option("--json", "Output raw JSON").action(showSession);
104077
+ sr.command("events <visitor-id> <session-id>").description("Download or page through all rrweb events for a session").option("--page <n>", "Page of events to display (default: 1)", "1").option("--limit <n>", "Events per page (default: 50)", "50").option("--output <file>", "Write all events as JSON to a file (skips paged display)").option("--json", "Print all events as JSON to stdout").action(downloadEvents);
104078
+ sr.command("delete <visitor-id> <session-id>").aliases(["rm"]).description("Delete a session replay").option("-y, --yes", "Skip confirmation prompt").action(deleteSession);
104079
+ }
104080
+
103268
104081
  // src/commands/init/index.ts
103269
104082
  init_sdk_gen();
103270
104083
  init_prompts();
@@ -103619,6 +104432,24 @@ async function refinePythonPreset(dir) {
103619
104432
  }
103620
104433
  return { slug: "python", label: "Python", confidence: "low" };
103621
104434
  }
104435
+ var STATIC_DIR_CANDIDATES = ["dist", "build", "out", "public", "_site", "output"];
104436
+ function detectStaticDir(dir) {
104437
+ const projectDir = dir ?? process.cwd();
104438
+ for (const candidate of STATIC_DIR_CANDIDATES) {
104439
+ if (existsSync11(join5(projectDir, candidate, "index.html"))) {
104440
+ return candidate;
104441
+ }
104442
+ }
104443
+ for (const candidate of STATIC_DIR_CANDIDATES) {
104444
+ if (existsSync11(join5(projectDir, candidate))) {
104445
+ return candidate;
104446
+ }
104447
+ }
104448
+ if (existsSync11(join5(projectDir, "index.html"))) {
104449
+ return ".";
104450
+ }
104451
+ return null;
104452
+ }
103622
104453
  function detectGitRemote(dir) {
103623
104454
  try {
103624
104455
  const url = execSync2("git remote get-url origin", {
@@ -103798,7 +104629,8 @@ async function runSetupWizard(options) {
103798
104629
  required: true,
103799
104630
  validate: (v) => v.length >= 2 ? true : "Name must be at least 2 characters"
103800
104631
  }));
103801
- let isGitBased = !options.manual;
104632
+ let isGitBased = !options.manual && !options.static;
104633
+ let isStatic = !!options.static;
103802
104634
  let connectionId = null;
103803
104635
  let repository = null;
103804
104636
  let branch = gitBranch;
@@ -103807,7 +104639,12 @@ async function runSetupWizard(options) {
103807
104639
  let gitUrl = null;
103808
104640
  let presetSlug = detectedPreset?.slug ?? "dockerfile";
103809
104641
  let directory = "./";
103810
- if (options.manual) {
104642
+ const detectedStaticDir = options.staticDir ?? detectStaticDir() ?? undefined;
104643
+ if (options.static) {
104644
+ isStatic = true;
104645
+ isGitBased = false;
104646
+ info2("Static deployment mode selected");
104647
+ } else if (options.manual) {
103811
104648
  isGitBased = false;
103812
104649
  info2("Manual deployment mode selected");
103813
104650
  } else if (options.yes && gitRemote) {
@@ -103821,6 +104658,11 @@ async function runSetupWizard(options) {
103821
104658
  value: "git",
103822
104659
  description: gitRemote ? `Using ${gitRemote.owner}/${gitRemote.repo}` : "Requires a git connection"
103823
104660
  },
104661
+ {
104662
+ name: "Static (upload a pre-built folder)",
104663
+ value: "static",
104664
+ description: detectedStaticDir ? `Detected ./${detectedStaticDir}` : "Upload HTML/CSS/JS — no Docker, no git"
104665
+ },
103824
104666
  {
103825
104667
  name: "Manual (upload Docker images from CLI)",
103826
104668
  value: "manual",
@@ -103830,6 +104672,27 @@ async function runSetupWizard(options) {
103830
104672
  default: "git"
103831
104673
  });
103832
104674
  isGitBased = deployMethod === "git";
104675
+ isStatic = deployMethod === "static";
104676
+ }
104677
+ let staticDir = detectedStaticDir ?? "./";
104678
+ if (isStatic) {
104679
+ presetSlug = "dockerfile";
104680
+ if (options.staticDir) {
104681
+ staticDir = options.staticDir;
104682
+ } else if (!options.yes) {
104683
+ staticDir = await promptText({
104684
+ message: "Folder to upload (built static output)",
104685
+ default: detectedStaticDir ?? "dist",
104686
+ required: true
104687
+ });
104688
+ } else {
104689
+ staticDir = detectedStaticDir ?? "dist";
104690
+ }
104691
+ if (!existsSync12(resolve7(staticDir))) {
104692
+ warning2(`Folder not found: ${colors.bold(staticDir)}`);
104693
+ info2("Build your project first, then re-run, or pass --static-dir <path>.");
104694
+ return null;
104695
+ }
103833
104696
  }
103834
104697
  if (isGitBased) {
103835
104698
  const gitSetup = await setupGitConnection(gitRemote, options.yes);
@@ -103867,7 +104730,7 @@ async function runSetupWizard(options) {
103867
104730
  }
103868
104731
  }
103869
104732
  }
103870
- if (!isGitBased && !options.preset) {
104733
+ if (!isGitBased && !isStatic && !options.preset) {
103871
104734
  if (detectedPreset) {
103872
104735
  if (!options.yes) {
103873
104736
  const useDetected = await promptConfirm({
@@ -103896,14 +104759,15 @@ async function runSetupWizard(options) {
103896
104759
  }
103897
104760
  newline();
103898
104761
  const serviceNames = serviceIds.length > 0 ? `${serviceIds.length} service(s) linked` : "None";
104762
+ const deployLabel = isGitBased ? "Automatic (on push)" : isStatic ? "Static (folder upload)" : "Manual (CLI upload)";
103899
104763
  box([
103900
104764
  `Project: ${colors.bold(projectName)}`,
103901
- `Preset: ${colors.bold(presetSlug)}`,
103902
- `Directory: ${colors.bold(directory)}`,
104765
+ isStatic ? null : `Preset: ${colors.bold(presetSlug)}`,
104766
+ isStatic ? `Folder: ${colors.bold(staticDir)}` : `Directory: ${colors.bold(directory)}`,
103903
104767
  isGitBased && repoOwner && repoName ? `Repository: ${colors.bold(`${repoOwner}/${repoName}`)}` : null,
103904
- `Branch: ${colors.bold(branch)}`,
104768
+ isStatic ? null : `Branch: ${colors.bold(branch)}`,
103905
104769
  `Services: ${colors.bold(serviceNames)}`,
103906
- `Deploy: ${colors.bold(isGitBased ? "Automatic (on push)" : "Manual (CLI upload)")}`
104770
+ `Deploy: ${colors.bold(deployLabel)}`
103907
104771
  ].filter(Boolean).join(`
103908
104772
  `), `${icons.rocket} Deployment Preview`);
103909
104773
  newline();
@@ -103930,7 +104794,8 @@ async function runSetupWizard(options) {
103930
104794
  git_url: gitUrl,
103931
104795
  git_provider_connection_id: connectionId,
103932
104796
  automatic_deploy: isGitBased,
103933
- source_type: isGitBased ? "git" : "manual",
104797
+ source_type: isGitBased ? "git" : isStatic ? "static_files" : "manual",
104798
+ project_type: isStatic ? "static" : "docker",
103934
104799
  storage_service_ids: serviceIds
103935
104800
  }
103936
104801
  });
@@ -103953,7 +104818,21 @@ async function runSetupWizard(options) {
103953
104818
  keyValue("Dashboard", colors.primary(dashboardUrl));
103954
104819
  keyValue("Config", colors.muted(configPath));
103955
104820
  newline();
103956
- if (isGitBased) {
104821
+ if (isStatic) {
104822
+ info2(`Uploading ${colors.bold(staticDir)} and deploying...`);
104823
+ newline();
104824
+ try {
104825
+ await deployStatic({
104826
+ path: staticDir,
104827
+ project: project.slug,
104828
+ yes: true
104829
+ });
104830
+ } catch {
104831
+ newline();
104832
+ warning2("Static deploy failed. You can retry with:");
104833
+ info2(` ${colors.muted(`temps deploy:static -p ${project.slug} --path ${staticDir}`)}`);
104834
+ }
104835
+ } else if (isGitBased) {
103957
104836
  info2("Triggering first deployment...");
103958
104837
  newline();
103959
104838
  try {
@@ -104168,6 +105047,8 @@ async function up(projectArg, options) {
104168
105047
  preset: options.preset,
104169
105048
  branch: options.branch,
104170
105049
  manual: options.manual,
105050
+ static: options.static,
105051
+ staticDir: options.staticDir,
104171
105052
  noServices: options.noServices,
104172
105053
  yes: options.yes
104173
105054
  });
@@ -104184,18 +105065,32 @@ async function up(projectArg, options) {
104184
105065
  let project;
104185
105066
  let environments = [];
104186
105067
  try {
104187
- const { data, error: error4 } = await getProjectBySlug({
105068
+ const { data, error: error3 } = await getProjectBySlug({
104188
105069
  client,
104189
105070
  path: { slug: resolved.slug }
104190
105071
  });
104191
- if (error4 || !data) {
104192
- const rawApiUrl = config.get("apiUrl");
104193
- const baseUrl = client.getConfig().baseUrl ?? rawApiUrl;
104194
- failSpinner(`Project "${resolved.slug}" not found`);
104195
- info2(`API: ${colors.muted(`${baseUrl}/projects/by-slug/${resolved.slug}`)}`);
104196
- if (error4) {
104197
- info2(`Error: ${getErrorMessage(error4)}`);
105072
+ if (error3 || !data) {
105073
+ if (resolved.source === "flag") {
105074
+ const rawApiUrl = config.get("apiUrl");
105075
+ const baseUrl = client.getConfig().baseUrl ?? rawApiUrl;
105076
+ failSpinner(`Project "${resolved.slug}" not found`);
105077
+ info2(`API: ${colors.muted(`${baseUrl}/projects/by-slug/${resolved.slug}`)}`);
105078
+ if (error3) {
105079
+ info2(`Error: ${getErrorMessage(error3)}`);
105080
+ }
105081
+ return;
104198
105082
  }
105083
+ failSpinner(`No project "${resolved.slug}" on this server (from ${resolved.source})`);
105084
+ info2("Setting up a new project instead...");
105085
+ newline();
105086
+ const result2 = await runSetupWizard({
105087
+ name: options.name,
105088
+ preset: options.preset,
105089
+ branch: options.branch,
105090
+ manual: options.manual,
105091
+ noServices: options.noServices,
105092
+ yes: options.yes
105093
+ });
104199
105094
  return;
104200
105095
  }
104201
105096
  project = data;
@@ -104380,7 +105275,7 @@ async function up(projectArg, options) {
104380
105275
  }
104381
105276
  }
104382
105277
  function registerUpCommand(program2) {
104383
- program2.command("up [project]").description("Deploy the current project (runs setup wizard if not linked)").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Target environment name").option("-b, --branch <branch>", "Git branch to deploy (auto-detected from cwd)").option("-n, --name <name>", "Project name (for new projects)").option("--preset <preset>", "Framework preset slug (skip auto-detection)").option("--manual", "Use manual deployment mode (no git)").option("--no-services", "Skip external service setup").option("--no-wait", "Do not wait for deployment to complete").option("-y, --yes", "Skip confirmation prompts").action((projectArg, opts) => {
105278
+ program2.command("up [project]").description("Deploy the current project (runs setup wizard if not linked)").option("-p, --project <project>", "Project slug or ID").option("-e, --environment <env>", "Target environment name").option("-b, --branch <branch>", "Git branch to deploy (auto-detected from cwd)").option("-n, --name <name>", "Project name (for new projects)").option("--preset <preset>", "Framework preset slug (skip auto-detection)").option("--manual", "Use manual deployment mode (no git)").option("--static", "Deploy a pre-built static folder (no Docker, no git)").option("--static-dir <dir>", "Folder to upload for static deploys (auto-detected by default)").option("--no-services", "Skip external service setup").option("--no-wait", "Do not wait for deployment to complete").option("-y, --yes", "Skip confirmation prompts").action((projectArg, opts) => {
104384
105279
  if (projectArg && !opts.project) {
104385
105280
  opts.project = projectArg;
104386
105281
  }
@@ -104397,11 +105292,11 @@ async function status2(projectArg, options) {
104397
105292
  await setupClient();
104398
105293
  const resolved = await requireProjectSlug(projectArg ?? options.project);
104399
105294
  const projectData = await withSpinner("Fetching project status...", async () => {
104400
- const { data, error: error4 } = await getProjectBySlug({
105295
+ const { data, error: error3 } = await getProjectBySlug({
104401
105296
  client,
104402
105297
  path: { slug: resolved.slug }
104403
105298
  });
104404
- if (error4 || !data) {
105299
+ if (error3 || !data) {
104405
105300
  throw new Error(`Project "${resolved.slug}" not found`);
104406
105301
  }
104407
105302
  return data;
@@ -104699,11 +105594,11 @@ init_spinner();
104699
105594
  init_prompts();
104700
105595
  init_output();
104701
105596
  async function resolveProjectId8(slug) {
104702
- const { data, error: error4 } = await getProjectBySlug({
105597
+ const { data, error: error3 } = await getProjectBySlug({
104703
105598
  client,
104704
105599
  path: { slug }
104705
105600
  });
104706
- if (error4 || !data) {
105601
+ if (error3 || !data) {
104707
105602
  throw new Error(`Project "${slug}" not found`);
104708
105603
  }
104709
105604
  return data.id;
@@ -105062,12 +105957,12 @@ async function exec3(_command, options) {
105062
105957
  const targetEnv = options.environment ? environments.find((e) => e.name.toLowerCase() === options.environment.toLowerCase() || e.slug === options.environment) : environments[0];
105063
105958
  if (!targetEnv)
105064
105959
  return [];
105065
- const { data, error: error4 } = await listContainers({
105960
+ const { data, error: error3 } = await listContainers({
105066
105961
  client,
105067
105962
  path: { project_id: project.id, environment_id: targetEnv.id }
105068
105963
  });
105069
- if (error4)
105070
- throw new Error(getErrorMessage(error4));
105964
+ if (error3)
105965
+ throw new Error(getErrorMessage(error3));
105071
105966
  return data?.containers ?? [];
105072
105967
  });
105073
105968
  if (containers.length > 0) {
@@ -105758,6 +106653,7 @@ function createProgram() {
105758
106653
  registerSandboxCommands(program2);
105759
106654
  registerWorkflowCommands(program2);
105760
106655
  registerRevenueCommands(program2);
106656
+ registerSessionReplayCommands(program2);
105761
106657
  registerInitCommand(program2);
105762
106658
  registerLinkCommand(program2);
105763
106659
  registerUpCommand(program2);
@@ -106095,6 +106991,7 @@ function createProgram2() {
106095
106991
  registerSandboxCommands(program2);
106096
106992
  registerWorkflowCommands(program2);
106097
106993
  registerRevenueCommands(program2);
106994
+ registerSessionReplayCommands(program2);
106098
106995
  registerInitCommand(program2);
106099
106996
  registerLinkCommand(program2);
106100
106997
  registerUpCommand(program2);
@@ -106136,8 +107033,8 @@ async function run() {
106136
107033
  const program2 = createProgram2();
106137
107034
  try {
106138
107035
  await program2.parseAsync(process.argv);
106139
- } catch (error4) {
106140
- handleError(error4);
107036
+ } catch (error3) {
107037
+ handleError(error3);
106141
107038
  }
106142
107039
  }
106143
107040