@dreamboard-games/cli 0.1.30-alpha.32 → 0.1.30-alpha.33

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.
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  titleFromSlug,
48
48
  toDreamboardApiError,
49
49
  waitForCompiledResultJobSdk
50
- } from "./chunk-DWWMZBFB.js";
50
+ } from "./chunk-E67GR2SL.js";
51
51
  import {
52
52
  applyWorkspaceCodegen,
53
53
  collectLocalFiles,
@@ -81,7 +81,7 @@ import {
81
81
  updateProjectLocalMaintainerRegistry,
82
82
  updateProjectState,
83
83
  writeSnapshot
84
- } from "./chunk-TRF7IPXK.js";
84
+ } from "./chunk-BN5UBK47.js";
85
85
  import {
86
86
  getActiveCredentialBackendName,
87
87
  getGlobalAuthPath,
@@ -4113,11 +4113,7 @@ var dev_default = defineCommand({
4113
4113
  },
4114
4114
  async run({ args }) {
4115
4115
  const parsedArgs = parseDevCommandArgs(args);
4116
- const { projectRoot, projectConfig, config } = await resolveProjectContext(
4117
- parsedArgs,
4118
- { requireAuth: false }
4119
- );
4120
- await configureClient(config);
4116
+ const { projectRoot, projectConfig, config } = await resolveProjectContext(parsedArgs);
4121
4117
  const remoteProject = await resolveRemoteProject({
4122
4118
  projectRoot,
4123
4119
  projectConfig,
@@ -4125,10 +4121,14 @@ var dev_default = defineCommand({
4125
4121
  });
4126
4122
  const effectiveProjectConfig = remoteProject.projectConfig;
4127
4123
  const effectiveAuthToken = resolveLocalHarnessAccessToken(config) ?? (await createUserSessionManager(config).resolveApiToken())?.token ?? config.authToken;
4124
+ const authenticatedConfig = {
4125
+ ...config,
4126
+ authToken: effectiveAuthToken
4127
+ };
4128
4128
  const devCompile = await ensureDevCompiledResult({
4129
4129
  projectRoot,
4130
4130
  projectConfig: effectiveProjectConfig,
4131
- config,
4131
+ config: authenticatedConfig,
4132
4132
  env: parsedArgs.env ?? "local",
4133
4133
  debug: parsedArgs.debug
4134
4134
  });
@@ -4251,7 +4251,7 @@ var dev_default = defineCommand({
4251
4251
  }
4252
4252
  }
4253
4253
  },
4254
- createCliDevHostPlatform(config)
4254
+ createCliDevHostPlatform(authenticatedConfig)
4255
4255
  );
4256
4256
  clearPreflightOutput();
4257
4257
  console.log(