everything-dev 1.35.3 → 1.35.4

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.
@@ -281,8 +281,8 @@ declare const PublishOptionsSchema: z.ZodObject<{
281
281
  dryRun: z.ZodDefault<z.ZodBoolean>;
282
282
  packages: z.ZodDefault<z.ZodString>;
283
283
  network: z.ZodOptional<z.ZodEnum<{
284
- testnet: "testnet";
285
284
  mainnet: "mainnet";
285
+ testnet: "testnet";
286
286
  }>>;
287
287
  privateKey: z.ZodOptional<z.ZodString>;
288
288
  env: z.ZodDefault<z.ZodEnum<{
@@ -311,8 +311,8 @@ declare const DeployOptionsSchema: z.ZodObject<{
311
311
  dryRun: z.ZodDefault<z.ZodBoolean>;
312
312
  packages: z.ZodDefault<z.ZodString>;
313
313
  network: z.ZodOptional<z.ZodEnum<{
314
- testnet: "testnet";
315
314
  mainnet: "mainnet";
315
+ testnet: "testnet";
316
316
  }>>;
317
317
  privateKey: z.ZodOptional<z.ZodString>;
318
318
  service: z.ZodOptional<z.ZodString>;
@@ -342,8 +342,8 @@ declare const KeyPublishResultSchema: z.ZodObject<{
342
342
  }>;
343
343
  account: z.ZodString;
344
344
  network: z.ZodEnum<{
345
- testnet: "testnet";
346
345
  mainnet: "mainnet";
346
+ testnet: "testnet";
347
347
  }>;
348
348
  contract: z.ZodString;
349
349
  allowance: z.ZodString;
@@ -353,20 +353,20 @@ declare const KeyPublishResultSchema: z.ZodObject<{
353
353
  error: z.ZodOptional<z.ZodString>;
354
354
  }, z.core.$strip>;
355
355
  declare const OverrideSectionSchema: z.ZodEnum<{
356
- plugins: "plugins";
357
356
  ui: "ui";
358
- host: "host";
359
357
  api: "api";
358
+ plugins: "plugins";
359
+ host: "host";
360
360
  }>;
361
361
  declare const RuntimeOverrideTargetBaseSchema: z.ZodEnum<{
362
- plugins: "plugins";
363
362
  ui: "ui";
364
363
  api: "api";
364
+ plugins: "plugins";
365
365
  }>;
366
366
  declare const RuntimeOverrideTargetSchema: z.ZodUnion<readonly [z.ZodEnum<{
367
- plugins: "plugins";
368
367
  ui: "ui";
369
368
  api: "api";
369
+ plugins: "plugins";
370
370
  }>, z.ZodString]>;
371
371
  declare const InitOptionsSchema: z.ZodObject<{
372
372
  extends: z.ZodOptional<z.ZodString>;
@@ -376,10 +376,10 @@ declare const InitOptionsSchema: z.ZodObject<{
376
376
  source: z.ZodOptional<z.ZodString>;
377
377
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
378
378
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
379
- plugins: "plugins";
380
379
  ui: "ui";
381
- host: "host";
382
380
  api: "api";
381
+ plugins: "plugins";
382
+ host: "host";
383
383
  }>>>;
384
384
  noInteractive: z.ZodDefault<z.ZodBoolean>;
385
385
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -400,10 +400,10 @@ declare const InitResultSchema: z.ZodObject<{
400
400
  extends: z.ZodString;
401
401
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
402
402
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
403
- plugins: "plugins";
404
403
  ui: "ui";
405
- host: "host";
406
404
  api: "api";
405
+ plugins: "plugins";
406
+ host: "host";
407
407
  }>>>;
408
408
  filesCopied: z.ZodNumber;
409
409
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -489,8 +489,8 @@ declare const StatusResultSchema: z.ZodObject<{
489
489
  }, z.core.$strip>;
490
490
  declare const TypesGenOptionsSchema: z.ZodObject<{
491
491
  env: z.ZodOptional<z.ZodEnum<{
492
- production: "production";
493
492
  development: "development";
493
+ production: "production";
494
494
  }>>;
495
495
  dryRun: z.ZodDefault<z.ZodBoolean>;
496
496
  }, z.core.$strip>;
@@ -781,8 +781,8 @@ declare const bosContract: {
781
781
  dryRun: z.ZodDefault<z.ZodBoolean>;
782
782
  packages: z.ZodDefault<z.ZodString>;
783
783
  network: z.ZodOptional<z.ZodEnum<{
784
- testnet: "testnet";
785
784
  mainnet: "mainnet";
785
+ testnet: "testnet";
786
786
  }>>;
787
787
  privateKey: z.ZodOptional<z.ZodString>;
788
788
  env: z.ZodDefault<z.ZodEnum<{
@@ -810,8 +810,8 @@ declare const bosContract: {
810
810
  dryRun: z.ZodDefault<z.ZodBoolean>;
811
811
  packages: z.ZodDefault<z.ZodString>;
812
812
  network: z.ZodOptional<z.ZodEnum<{
813
- testnet: "testnet";
814
813
  mainnet: "mainnet";
814
+ testnet: "testnet";
815
815
  }>>;
816
816
  privateKey: z.ZodOptional<z.ZodString>;
817
817
  service: z.ZodOptional<z.ZodString>;
@@ -839,8 +839,8 @@ declare const bosContract: {
839
839
  }>;
840
840
  account: z.ZodString;
841
841
  network: z.ZodEnum<{
842
- testnet: "testnet";
843
842
  mainnet: "mainnet";
843
+ testnet: "testnet";
844
844
  }>;
845
845
  contract: z.ZodString;
846
846
  allowance: z.ZodString;
@@ -857,10 +857,10 @@ declare const bosContract: {
857
857
  source: z.ZodOptional<z.ZodString>;
858
858
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
859
859
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
860
- plugins: "plugins";
861
860
  ui: "ui";
862
- host: "host";
863
861
  api: "api";
862
+ plugins: "plugins";
863
+ host: "host";
864
864
  }>>>;
865
865
  noInteractive: z.ZodDefault<z.ZodBoolean>;
866
866
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -876,10 +876,10 @@ declare const bosContract: {
876
876
  extends: z.ZodString;
877
877
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
878
878
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
879
- plugins: "plugins";
880
879
  ui: "ui";
881
- host: "host";
882
880
  api: "api";
881
+ plugins: "plugins";
882
+ host: "host";
883
883
  }>>>;
884
884
  filesCopied: z.ZodNumber;
885
885
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -963,8 +963,8 @@ declare const bosContract: {
963
963
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
964
964
  typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
965
965
  env: z.ZodOptional<z.ZodEnum<{
966
- production: "production";
967
966
  development: "development";
967
+ production: "production";
968
968
  }>>;
969
969
  dryRun: z.ZodDefault<z.ZodBoolean>;
970
970
  }, z.core.$strip>, z.ZodObject<{
@@ -281,8 +281,8 @@ declare const PublishOptionsSchema: z.ZodObject<{
281
281
  dryRun: z.ZodDefault<z.ZodBoolean>;
282
282
  packages: z.ZodDefault<z.ZodString>;
283
283
  network: z.ZodOptional<z.ZodEnum<{
284
- testnet: "testnet";
285
284
  mainnet: "mainnet";
285
+ testnet: "testnet";
286
286
  }>>;
287
287
  privateKey: z.ZodOptional<z.ZodString>;
288
288
  env: z.ZodDefault<z.ZodEnum<{
@@ -311,8 +311,8 @@ declare const DeployOptionsSchema: z.ZodObject<{
311
311
  dryRun: z.ZodDefault<z.ZodBoolean>;
312
312
  packages: z.ZodDefault<z.ZodString>;
313
313
  network: z.ZodOptional<z.ZodEnum<{
314
- testnet: "testnet";
315
314
  mainnet: "mainnet";
315
+ testnet: "testnet";
316
316
  }>>;
317
317
  privateKey: z.ZodOptional<z.ZodString>;
318
318
  service: z.ZodOptional<z.ZodString>;
@@ -342,8 +342,8 @@ declare const KeyPublishResultSchema: z.ZodObject<{
342
342
  }>;
343
343
  account: z.ZodString;
344
344
  network: z.ZodEnum<{
345
- testnet: "testnet";
346
345
  mainnet: "mainnet";
346
+ testnet: "testnet";
347
347
  }>;
348
348
  contract: z.ZodString;
349
349
  allowance: z.ZodString;
@@ -353,20 +353,20 @@ declare const KeyPublishResultSchema: z.ZodObject<{
353
353
  error: z.ZodOptional<z.ZodString>;
354
354
  }, z.core.$strip>;
355
355
  declare const OverrideSectionSchema: z.ZodEnum<{
356
- plugins: "plugins";
357
356
  ui: "ui";
358
- host: "host";
359
357
  api: "api";
358
+ plugins: "plugins";
359
+ host: "host";
360
360
  }>;
361
361
  declare const RuntimeOverrideTargetBaseSchema: z.ZodEnum<{
362
- plugins: "plugins";
363
362
  ui: "ui";
364
363
  api: "api";
364
+ plugins: "plugins";
365
365
  }>;
366
366
  declare const RuntimeOverrideTargetSchema: z.ZodUnion<readonly [z.ZodEnum<{
367
- plugins: "plugins";
368
367
  ui: "ui";
369
368
  api: "api";
369
+ plugins: "plugins";
370
370
  }>, z.ZodString]>;
371
371
  declare const InitOptionsSchema: z.ZodObject<{
372
372
  extends: z.ZodOptional<z.ZodString>;
@@ -376,10 +376,10 @@ declare const InitOptionsSchema: z.ZodObject<{
376
376
  source: z.ZodOptional<z.ZodString>;
377
377
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
378
378
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
379
- plugins: "plugins";
380
379
  ui: "ui";
381
- host: "host";
382
380
  api: "api";
381
+ plugins: "plugins";
382
+ host: "host";
383
383
  }>>>;
384
384
  noInteractive: z.ZodDefault<z.ZodBoolean>;
385
385
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -400,10 +400,10 @@ declare const InitResultSchema: z.ZodObject<{
400
400
  extends: z.ZodString;
401
401
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
402
402
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
403
- plugins: "plugins";
404
403
  ui: "ui";
405
- host: "host";
406
404
  api: "api";
405
+ plugins: "plugins";
406
+ host: "host";
407
407
  }>>>;
408
408
  filesCopied: z.ZodNumber;
409
409
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -489,8 +489,8 @@ declare const StatusResultSchema: z.ZodObject<{
489
489
  }, z.core.$strip>;
490
490
  declare const TypesGenOptionsSchema: z.ZodObject<{
491
491
  env: z.ZodOptional<z.ZodEnum<{
492
- production: "production";
493
492
  development: "development";
493
+ production: "production";
494
494
  }>>;
495
495
  dryRun: z.ZodDefault<z.ZodBoolean>;
496
496
  }, z.core.$strip>;
@@ -781,8 +781,8 @@ declare const bosContract: {
781
781
  dryRun: z.ZodDefault<z.ZodBoolean>;
782
782
  packages: z.ZodDefault<z.ZodString>;
783
783
  network: z.ZodOptional<z.ZodEnum<{
784
- testnet: "testnet";
785
784
  mainnet: "mainnet";
785
+ testnet: "testnet";
786
786
  }>>;
787
787
  privateKey: z.ZodOptional<z.ZodString>;
788
788
  env: z.ZodDefault<z.ZodEnum<{
@@ -810,8 +810,8 @@ declare const bosContract: {
810
810
  dryRun: z.ZodDefault<z.ZodBoolean>;
811
811
  packages: z.ZodDefault<z.ZodString>;
812
812
  network: z.ZodOptional<z.ZodEnum<{
813
- testnet: "testnet";
814
813
  mainnet: "mainnet";
814
+ testnet: "testnet";
815
815
  }>>;
816
816
  privateKey: z.ZodOptional<z.ZodString>;
817
817
  service: z.ZodOptional<z.ZodString>;
@@ -839,8 +839,8 @@ declare const bosContract: {
839
839
  }>;
840
840
  account: z.ZodString;
841
841
  network: z.ZodEnum<{
842
- testnet: "testnet";
843
842
  mainnet: "mainnet";
843
+ testnet: "testnet";
844
844
  }>;
845
845
  contract: z.ZodString;
846
846
  allowance: z.ZodString;
@@ -857,10 +857,10 @@ declare const bosContract: {
857
857
  source: z.ZodOptional<z.ZodString>;
858
858
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
859
859
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
860
- plugins: "plugins";
861
860
  ui: "ui";
862
- host: "host";
863
861
  api: "api";
862
+ plugins: "plugins";
863
+ host: "host";
864
864
  }>>>;
865
865
  noInteractive: z.ZodDefault<z.ZodBoolean>;
866
866
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -876,10 +876,10 @@ declare const bosContract: {
876
876
  extends: z.ZodString;
877
877
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
878
878
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
879
- plugins: "plugins";
880
879
  ui: "ui";
881
- host: "host";
882
880
  api: "api";
881
+ plugins: "plugins";
882
+ host: "host";
883
883
  }>>>;
884
884
  filesCopied: z.ZodNumber;
885
885
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -963,8 +963,8 @@ declare const bosContract: {
963
963
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
964
964
  typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
965
965
  env: z.ZodOptional<z.ZodEnum<{
966
- production: "production";
967
966
  development: "development";
967
+ production: "production";
968
968
  }>>;
969
969
  dryRun: z.ZodDefault<z.ZodBoolean>;
970
970
  }, z.core.$strip>, z.ZodObject<{
package/dist/plugin.cjs CHANGED
@@ -1316,10 +1316,6 @@ async function publishToFastKv(input) {
1316
1316
  const network = input.network ?? require_network.getNetworkIdForAccount(account);
1317
1317
  const registryUrl = require_fastkv.buildRegistryConfigUrlForNetwork(network, account, gateway);
1318
1318
  const targets = selectWorkspaceTargets(input.packages, bosConfig);
1319
- let publishConfig = isStaging ? {
1320
- ...bosConfig,
1321
- domain: gateway
1322
- } : bosConfig;
1323
1319
  let built;
1324
1320
  let skipped;
1325
1321
  if (dryRun) return {
@@ -1351,12 +1347,14 @@ async function publishToFastKv(input) {
1351
1347
  error: "Failed to reload bos.config.json after build"
1352
1348
  };
1353
1349
  bosConfig = refreshed.config;
1354
- publishConfig = isStaging ? {
1355
- ...refreshed.config,
1356
- domain: gateway
1357
- } : refreshed.config;
1358
1350
  }
1359
- const registryEntries = { [`apps/${account}/${gateway}/bos.config.json`]: JSON.stringify(publishConfig) };
1351
+ const rawConfigPath = (0, node_path.join)(configDir, "bos.config.json");
1352
+ const rawConfig = JSON.parse((0, node_fs.readFileSync)(rawConfigPath, "utf-8"));
1353
+ const publishPayload = isStaging ? {
1354
+ ...rawConfig,
1355
+ domain: gateway
1356
+ } : rawConfig;
1357
+ const registryEntries = { [`apps/${account}/${gateway}/bos.config.json`]: JSON.stringify(publishPayload) };
1360
1358
  const payload = JSON.stringify(registryEntries);
1361
1359
  const argsBase64 = Buffer.from(payload).toString("base64");
1362
1360
  const privateKey = input.privateKey || node_process.default.env.NEAR_PRIVATE_KEY || node_process.default.env.BOS_NEAR_PRIVATE_KEY;
@@ -1399,7 +1397,7 @@ async function publishToFastKv(input) {
1399
1397
  await waitForPublishedConfig({
1400
1398
  account,
1401
1399
  gateway,
1402
- publishConfig
1400
+ publishConfig: publishPayload
1403
1401
  });
1404
1402
  return {
1405
1403
  status: "published",
@@ -1407,7 +1405,7 @@ async function publishToFastKv(input) {
1407
1405
  txHash,
1408
1406
  built,
1409
1407
  skipped,
1410
- publishConfig
1408
+ publishConfig: publishPayload
1411
1409
  };
1412
1410
  } catch (error) {
1413
1411
  return {