@diagonal-hq/cli 0.39.1 → 0.40.0

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.
@@ -4,12 +4,12 @@ import {
4
4
  frontMatterUidInsertion,
5
5
  readDefinitionUid,
6
6
  require_dist
7
- } from "./cli-chunk-T6442V5V.mjs";
7
+ } from "./cli-chunk-54QINYR3.mjs";
8
8
  import {
9
9
  SourceError,
10
10
  characterCount,
11
11
  diagnosticFromError
12
- } from "./cli-chunk-F2J44UIS.mjs";
12
+ } from "./cli-chunk-IUOUDHT2.mjs";
13
13
  import {
14
14
  diagnostic,
15
15
  diagnosticAt,
@@ -11,20 +11,20 @@ import {
11
11
  isAppSpecifier,
12
12
  resolveAppSpecifier,
13
13
  scriptSdkRuntimeFiles
14
- } from "./cli-chunk-HWHRAOWD.mjs";
14
+ } from "./cli-chunk-HPW7VRU3.mjs";
15
15
  import {
16
16
  PROFILES
17
17
  } from "./cli-chunk-WPC3DBHX.mjs";
18
- import "./cli-chunk-T6442V5V.mjs";
18
+ import "./cli-chunk-54QINYR3.mjs";
19
19
  import {
20
20
  GENERATED_ASSETS_PATH
21
- } from "./cli-chunk-YIPLFIKL.mjs";
21
+ } from "./cli-chunk-7RZQ5V7O.mjs";
22
22
  import {
23
23
  SourceError,
24
24
  childNodes,
25
25
  diagnosticFromError,
26
26
  parseSource
27
- } from "./cli-chunk-F2J44UIS.mjs";
27
+ } from "./cli-chunk-IUOUDHT2.mjs";
28
28
  import {
29
29
  AUTHORING_MODULE,
30
30
  diagnostic,
package/dist/cli.mjs CHANGED
@@ -613,7 +613,7 @@ async function checkSources() {
613
613
  if (existsSync4(DATA_FILE) && existsSync4(SDK_FILE)) {
614
614
  return { dataFile: DATA_FILE, sdkFile: SDK_FILE };
615
615
  }
616
- const { checkData, scriptSdk } = await import("./cli-check-data-7DVTIPG6.mjs");
616
+ const { checkData, scriptSdk } = await import("./cli-check-data-QLLM357X.mjs");
617
617
  return { data: checkData(), sdk: scriptSdk() };
618
618
  }
619
619
  function isScriptTestPath(path) {
@@ -633,8 +633,8 @@ function holdsSkills(root, plan) {
633
633
  async function checkCheckout(root, options) {
634
634
  const sources = await checkSources();
635
635
  const plan = composePackages(root);
636
- const testRunner = async () => (await import("./cli-workflows-CK5ZVNYR.mjs")).runBuildTests;
637
- const skillReader = async () => (await import("./cli-skill-file-TEJUXCJB.mjs")).skillFrontMatter;
636
+ const testRunner = async () => (await import("./cli-workflows-F2P2BFXZ.mjs")).runBuildTests;
637
+ const skillReader = async () => (await import("./cli-skill-file-JUXNBWMU.mjs")).skillFrontMatter;
638
638
  const finish = (checkoutRoot, buildPlan, answer, runTests2) => {
639
639
  const run = hasScriptTests(answer) ? runTests2(checkoutRoot, answer.tests) : null;
640
640
  const diagnostics = finishedDiagnostics(withTestDiagnostics(answer, run), buildPlan);
@@ -719,9 +719,9 @@ async function main(argv, io) {
719
719
  case "assets": {
720
720
  const [subcommand, ...assetArgs] = args;
721
721
  if (subcommand === "upload")
722
- return (await import("./cli-assets-cli-VQBXYEIZ.mjs")).uploadAsset(assetArgs, io);
722
+ return (await import("./cli-assets-cli-L67BFKVC.mjs")).uploadAsset(assetArgs, io);
723
723
  if (subcommand === "list")
724
- return (await import("./cli-assets-cli-VQBXYEIZ.mjs")).listAssets(assetArgs, io);
724
+ return (await import("./cli-assets-cli-L67BFKVC.mjs")).listAssets(assetArgs, io);
725
725
  io.stderr.write(`${ASSETS_UPLOAD_USAGE}
726
726
  ${ASSETS_LIST_USAGE}
727
727
  `);
package/dist/index.d.ts CHANGED
@@ -116,6 +116,13 @@ export type ConfigDefinition = {
116
116
  * capability. A bare slug is accepted with a build warning.
117
117
  */
118
118
  staffResource?: { resource: ResourceReference } | ResourceReference;
119
+ /**
120
+ * The `navigation/*.ts` menu that `@app/generated/navigation` exports as
121
+ * `defaultMenu`, as `Menus.<Name>.uid` from `@app/generated/navigation`. A
122
+ * sign-in without a login redirect lands on the first page of this menu that
123
+ * the visitor can open. The Navigation screen sets it.
124
+ */
125
+ defaultMenu?: string;
119
126
  } & ConfigDomains<DomainDeclarations>;
120
127
 
121
128
  /** One domain of `domains`, such as `{}` or `{ fallback: 'primary' }`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.39.1",
3
+ "version": "0.40.0",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -51,8 +51,8 @@
51
51
  "bun": "1.4.4"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-ha99248df50a2",
55
- "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-ha99248df50a2",
56
- "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-ha99248df50a2"
54
+ "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-h470cc3c437fa",
55
+ "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-h470cc3c437fa",
56
+ "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-h470cc3c437fa"
57
57
  }
58
58
  }