@usecontextlayer/ctxb 0.4.5 → 0.4.7

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/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="92b8bfbe-4527-5c07-9172-519bd4e46d03")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ef079c22-d6b0-5302-9831-a7cf8d1b8bd9")}catch(e){}}();
4
4
  import { createRequire } from "node:module";
5
5
  import * as Sentry from "@sentry/node";
6
6
  import path, { posix, sep, win32 } from "node:path";
@@ -63,7 +63,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
63
63
 
64
64
  //#endregion
65
65
  //#region package.json
66
- var version$2 = "0.4.5";
66
+ var version$2 = "0.4.7";
67
67
 
68
68
  //#endregion
69
69
  //#region sentry.ts
@@ -23954,7 +23954,11 @@ const CORE_PACKAGE_FALLBACK_REF = `contextbase-core==${version$2}`;
23954
23954
  const REPO_ROOT_TO_CORE_PROJECT_RELATIVE_PATH = path.join("projects", "core");
23955
23955
  const DG_PYTHON_PURELIB_SNIPPET = "import sysconfig; print(sysconfig.get_path('purelib'))";
23956
23956
  const CONTEXTBASE_CORE_PYTHON_VERSION = "3.12";
23957
- const DAGSTER_TOOLS_WITHOUT_DATABASE_URL = new Set(["dagster-graphql", "dagster-webserver"]);
23957
+ const DAGSTER_TOOLS_WITHOUT_DATABASE_URL = new Set([
23958
+ "dagster",
23959
+ "dagster-graphql",
23960
+ "dagster-webserver"
23961
+ ]);
23958
23962
  async function buildDagsterEnv(paths, options) {
23959
23963
  const dagsterEnv = {
23960
23964
  ...envVars,
@@ -24036,6 +24040,14 @@ async function resolveDgPackagedTargetPath(coreRef, paths) {
24036
24040
  async function buildDagsterToolInvocation(tool, passthroughArgs, paths) {
24037
24041
  const coreRefResolution = await resolveCoreRef();
24038
24042
  switch (tool) {
24043
+ case "dagster": return {
24044
+ coreRef: coreRefResolution.coreRef,
24045
+ cwd: null,
24046
+ finalArgs: [...passthroughArgs],
24047
+ localCoreProjectPath: coreRefResolution.localCoreProjectPath,
24048
+ toolBinary: "dagster",
24049
+ toolPkg: "dagster"
24050
+ };
24039
24051
  case "dagster-webserver": {
24040
24052
  const userOverride = hasAnyFlag(passthroughArgs, DAGSTER_BASE_LOCATION_FLAGS);
24041
24053
  if (userOverride) warnLocationFlagOverride(tool, passthroughArgs, DAGSTER_DEFAULT_LOAD_ARGS);
@@ -34051,12 +34063,14 @@ function createProgram() {
34051
34063
  startControlPlane();
34052
34064
  });
34053
34065
  const DAGSTER_PASSTHROUGH_DESCRIPTIONS = {
34066
+ dagster: "Passthrough to the dagster CLI via uv/uvx (e.g. `dagster instance migrate`). Operates on the instance storage under DAGSTER_HOME=<project-root>/.base/dagster; args pass through verbatim with no load-arg injection.",
34054
34067
  "dagster-daemon": "Passthrough to dagster-daemon via uv/uvx. For `dagster-daemon run`, injects `-m core.definitions -a defs` load args unless you supply -m/-f/-w/--workspace/--grpc-*. Sets DAGSTER_HOME to <project-root>/.base/dagster.",
34055
34068
  "dagster-graphql": "Passthrough to dagster-graphql via uv/uvx. Injects `-m core.definitions -a defs` load args unless you supply -m/-f/-w/--workspace/--grpc-*/--remote. Sets DAGSTER_HOME to <project-root>/.base/dagster; use -t <query> and -o <file> for scripted queries.",
34056
34069
  "dagster-webserver": "Passthrough to dagster-webserver via uv/uvx. Injects `-m core.definitions -a defs` unless overridden by -m/-f/-w/--workspace/--grpc-*. Sets DAGSTER_HOME to <project-root>/.base/dagster. Runs until killed.",
34057
34070
  dg: "Passthrough to dg (dagster-dg-cli) via uv/uvx. Injects --target-path pointing at the contextbase-core project (local projects/core or packaged install) so asset defs load without a workspace. CTXB_CORE_PACKAGE_REF overrides the core package ref."
34058
34071
  };
34059
34072
  for (const dagsterTool of [
34073
+ "dagster",
34060
34074
  "dg",
34061
34075
  "dagster-daemon",
34062
34076
  "dagster-graphql",
@@ -34086,4 +34100,4 @@ runCli().catch((error) => {
34086
34100
  //#endregion
34087
34101
  export { createProgram, runCli };
34088
34102
  //# sourceMappingURL=cli.mjs.map
34089
- //# debugId=92b8bfbe-4527-5c07-9172-519bd4e46d03
34103
+ //# debugId=ef079c22-d6b0-5302-9831-a7cf8d1b8bd9