@dreamboard-games/cli 0.1.30-alpha.32 → 0.1.30-alpha.34
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/agent-verifier/agent-workspace-verifier.mjs +92 -4
- package/dist/agent-verifier/agent-workspace-verifier.mjs.map +1 -1
- package/dist/agent-verifier/{chunk-3SPDNMLA.mjs → chunk-PVSCO7C2.mjs} +4 -4
- package/dist/agent-verifier/{chunk-3SPDNMLA.mjs.map → chunk-PVSCO7C2.mjs.map} +1 -1
- package/dist/agent-verifier/{materialize-workspace-J2S4XIIC.mjs → materialize-workspace-NX7NUNKW.mjs} +2 -2
- package/dist/agent-verifier/{static-scaffold-56QBCO6P.mjs → static-scaffold-RJ6E6GQM.mjs} +2 -2
- package/dist/authoring-compatibility-internal.js +1 -1
- package/dist/{chunk-TRF7IPXK.js → chunk-N2FO3VSD.js} +4 -4
- package/dist/{chunk-TRF7IPXK.js.map → chunk-N2FO3VSD.js.map} +1 -1
- package/dist/{chunk-DWWMZBFB.js → chunk-N6VGYN4E.js} +93 -5
- package/dist/chunk-N6VGYN4E.js.map +1 -0
- package/dist/index.js +14 -15
- package/dist/index.js.map +1 -1
- package/dist/internal.js +2 -2
- package/package.json +1 -1
- package/release/authoring-release-set.json +3 -3
- package/dist/chunk-DWWMZBFB.js.map +0 -1
- /package/dist/agent-verifier/{materialize-workspace-J2S4XIIC.mjs.map → materialize-workspace-NX7NUNKW.mjs.map} +0 -0
- /package/dist/agent-verifier/{static-scaffold-56QBCO6P.mjs.map → static-scaffold-RJ6E6GQM.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
titleFromSlug,
|
|
48
48
|
toDreamboardApiError,
|
|
49
49
|
waitForCompiledResultJobSdk
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-N6VGYN4E.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-
|
|
84
|
+
} from "./chunk-N2FO3VSD.js";
|
|
85
85
|
import {
|
|
86
86
|
getActiveCredentialBackendName,
|
|
87
87
|
getGlobalAuthPath,
|
|
@@ -2979,12 +2979,10 @@ import { pathToFileURL } from "url";
|
|
|
2979
2979
|
async function loadProjectDevHost(projectRoot) {
|
|
2980
2980
|
const requireFromProject = createRequire(path.join(projectRoot, "package.json"));
|
|
2981
2981
|
let packageJsonPath;
|
|
2982
|
-
let entryPath;
|
|
2983
2982
|
try {
|
|
2984
2983
|
packageJsonPath = requireFromProject.resolve(
|
|
2985
2984
|
"@dreamboard-games/dev-host/package.json"
|
|
2986
2985
|
);
|
|
2987
|
-
entryPath = requireFromProject.resolve("@dreamboard-games/dev-host");
|
|
2988
2986
|
} catch (error) {
|
|
2989
2987
|
throw new Error(
|
|
2990
2988
|
"Install @dreamboard-games/dev-host in this workspace before running dreamboard dev or browser tests.",
|
|
@@ -2992,15 +2990,16 @@ async function loadProjectDevHost(projectRoot) {
|
|
|
2992
2990
|
);
|
|
2993
2991
|
}
|
|
2994
2992
|
const packageRoot = path.dirname(packageJsonPath);
|
|
2993
|
+
const packageJson = requireFromProject(packageJsonPath);
|
|
2994
|
+
if (packageJson.name !== "@dreamboard-games/dev-host" || typeof packageJson.version !== "string" || packageJson.version.length === 0) {
|
|
2995
|
+
throw new Error("Installed @dreamboard-games/dev-host metadata is invalid.");
|
|
2996
|
+
}
|
|
2997
|
+
const entryPath = path.resolve(packageRoot, packageJson.main ?? "dist/index.js");
|
|
2995
2998
|
if (!isPathInside(packageRoot, entryPath)) {
|
|
2996
2999
|
throw new Error(
|
|
2997
3000
|
"@dreamboard-games/dev-host resolved outside its installed package."
|
|
2998
3001
|
);
|
|
2999
3002
|
}
|
|
3000
|
-
const packageJson = requireFromProject(packageJsonPath);
|
|
3001
|
-
if (packageJson.name !== "@dreamboard-games/dev-host" || typeof packageJson.version !== "string" || packageJson.version.length === 0) {
|
|
3002
|
-
throw new Error("Installed @dreamboard-games/dev-host metadata is invalid.");
|
|
3003
|
-
}
|
|
3004
3003
|
const loaded = await import(pathToFileURL(entryPath).href);
|
|
3005
3004
|
if (loaded.protocolVersion !== 1 || typeof loaded.start !== "function") {
|
|
3006
3005
|
throw new Error(
|
|
@@ -4113,11 +4112,7 @@ var dev_default = defineCommand({
|
|
|
4113
4112
|
},
|
|
4114
4113
|
async run({ args }) {
|
|
4115
4114
|
const parsedArgs = parseDevCommandArgs(args);
|
|
4116
|
-
const { projectRoot, projectConfig, config } = await resolveProjectContext(
|
|
4117
|
-
parsedArgs,
|
|
4118
|
-
{ requireAuth: false }
|
|
4119
|
-
);
|
|
4120
|
-
await configureClient(config);
|
|
4115
|
+
const { projectRoot, projectConfig, config } = await resolveProjectContext(parsedArgs);
|
|
4121
4116
|
const remoteProject = await resolveRemoteProject({
|
|
4122
4117
|
projectRoot,
|
|
4123
4118
|
projectConfig,
|
|
@@ -4125,10 +4120,14 @@ var dev_default = defineCommand({
|
|
|
4125
4120
|
});
|
|
4126
4121
|
const effectiveProjectConfig = remoteProject.projectConfig;
|
|
4127
4122
|
const effectiveAuthToken = resolveLocalHarnessAccessToken(config) ?? (await createUserSessionManager(config).resolveApiToken())?.token ?? config.authToken;
|
|
4123
|
+
const authenticatedConfig = {
|
|
4124
|
+
...config,
|
|
4125
|
+
authToken: effectiveAuthToken
|
|
4126
|
+
};
|
|
4128
4127
|
const devCompile = await ensureDevCompiledResult({
|
|
4129
4128
|
projectRoot,
|
|
4130
4129
|
projectConfig: effectiveProjectConfig,
|
|
4131
|
-
config,
|
|
4130
|
+
config: authenticatedConfig,
|
|
4132
4131
|
env: parsedArgs.env ?? "local",
|
|
4133
4132
|
debug: parsedArgs.debug
|
|
4134
4133
|
});
|
|
@@ -4251,7 +4250,7 @@ var dev_default = defineCommand({
|
|
|
4251
4250
|
}
|
|
4252
4251
|
}
|
|
4253
4252
|
},
|
|
4254
|
-
createCliDevHostPlatform(
|
|
4253
|
+
createCliDevHostPlatform(authenticatedConfig)
|
|
4255
4254
|
);
|
|
4256
4255
|
clearPreflightOutput();
|
|
4257
4256
|
console.log(
|