@usecontextlayer/ctxb 0.5.25 → 0.5.27
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 +25 -15
- package/dist/cli.mjs.map +1 -1
- package/package.json +5 -5
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]="
|
|
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]="97545e72-9df8-5413-be4f-f694afe486e0")}catch(e){}}();
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as Sentry from "@sentry/node";
|
|
6
6
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -4456,7 +4456,7 @@ function normalizedKey(event) {
|
|
|
4456
4456
|
|
|
4457
4457
|
//#endregion
|
|
4458
4458
|
//#region package.json
|
|
4459
|
-
var version = "0.5.
|
|
4459
|
+
var version = "0.5.27";
|
|
4460
4460
|
|
|
4461
4461
|
//#endregion
|
|
4462
4462
|
//#region sentry.ts
|
|
@@ -11227,8 +11227,24 @@ const UpdateBindingInput = object({
|
|
|
11227
11227
|
enabled: boolean().optional(),
|
|
11228
11228
|
models: BindingModels.optionalNullable()
|
|
11229
11229
|
});
|
|
11230
|
+
const BindingAuthResourceApiKey = object({});
|
|
11231
|
+
const BindingAuthResourceAuthenticatedAccount = object({
|
|
11232
|
+
accountId: property("account_id", string()),
|
|
11233
|
+
providerId: property("provider_id", string())
|
|
11234
|
+
});
|
|
11235
|
+
const BindingAuthResourceClientCredentials = object({ clientId: property("client_id", string()) });
|
|
11236
|
+
const BindingAuthResourceNone = object({});
|
|
11237
|
+
const BindingAuthResource = union("type", {
|
|
11238
|
+
api_key: BindingAuthResourceApiKey,
|
|
11239
|
+
authenticated_account: BindingAuthResourceAuthenticatedAccount,
|
|
11240
|
+
client_credentials: BindingAuthResourceClientCredentials,
|
|
11241
|
+
none: BindingAuthResourceNone
|
|
11242
|
+
}).transform({
|
|
11243
|
+
transform: (value) => value,
|
|
11244
|
+
untransform: (value) => value
|
|
11245
|
+
});
|
|
11230
11246
|
const Binding = object({
|
|
11231
|
-
auth:
|
|
11247
|
+
auth: BindingAuthResource,
|
|
11232
11248
|
authType: property("auth_type", string()),
|
|
11233
11249
|
baseId: property("base_id", string()),
|
|
11234
11250
|
bindingId: property("binding_id", string()),
|
|
@@ -19444,12 +19460,11 @@ async function buildDagsterToolInvocation(tool, passthroughArgs, paths) {
|
|
|
19444
19460
|
}
|
|
19445
19461
|
}
|
|
19446
19462
|
}
|
|
19447
|
-
async function runDagsterTool(tool, passthroughArgs, paths
|
|
19463
|
+
async function runDagsterTool(tool, passthroughArgs, paths) {
|
|
19448
19464
|
const invocation = await buildDagsterToolInvocation(tool, passthroughArgs, paths);
|
|
19449
|
-
const stdio = options?.stdio ?? "inherit";
|
|
19450
19465
|
const dagsterEnv = await buildDagsterEnv(paths, { requireDatabaseUrl: !DAGSTER_TOOLS_WITHOUT_DATABASE_URL.has(tool) });
|
|
19451
19466
|
const cwd = invocation.cwd ?? void 0;
|
|
19452
|
-
|
|
19467
|
+
return { exitCode: (invocation.localCoreProjectPath ? await execa("uv", [
|
|
19453
19468
|
"run",
|
|
19454
19469
|
"--project",
|
|
19455
19470
|
invocation.localCoreProjectPath,
|
|
@@ -19461,7 +19476,7 @@ async function runDagsterTool(tool, passthroughArgs, paths, options) {
|
|
|
19461
19476
|
cwd,
|
|
19462
19477
|
env: dagsterEnv,
|
|
19463
19478
|
reject: false,
|
|
19464
|
-
stdio
|
|
19479
|
+
stdio: "inherit"
|
|
19465
19480
|
}) : await execa("uvx", [
|
|
19466
19481
|
"--python",
|
|
19467
19482
|
CONTEXTBASE_CORE_PYTHON_VERSION,
|
|
@@ -19475,13 +19490,8 @@ async function runDagsterTool(tool, passthroughArgs, paths, options) {
|
|
|
19475
19490
|
cwd,
|
|
19476
19491
|
env: dagsterEnv,
|
|
19477
19492
|
reject: false,
|
|
19478
|
-
stdio
|
|
19479
|
-
});
|
|
19480
|
-
return {
|
|
19481
|
-
exitCode: dagsterResult.exitCode ?? 1,
|
|
19482
|
-
stderr: dagsterResult.stderr ?? "",
|
|
19483
|
-
stdout: dagsterResult.stdout ?? ""
|
|
19484
|
-
};
|
|
19493
|
+
stdio: "inherit"
|
|
19494
|
+
})).exitCode ?? 1 };
|
|
19485
19495
|
}
|
|
19486
19496
|
async function runDagsterCommand(tool, passthroughArgsInput, paths) {
|
|
19487
19497
|
const dagsterInvocationResult = await runDagsterTool(tool, passthroughArgsInput ?? [], paths);
|
|
@@ -28643,4 +28653,4 @@ runCli().catch((error) => {
|
|
|
28643
28653
|
//#endregion
|
|
28644
28654
|
export { createProgram, runCli };
|
|
28645
28655
|
//# sourceMappingURL=cli.mjs.map
|
|
28646
|
-
//# debugId=
|
|
28656
|
+
//# debugId=97545e72-9df8-5413-be4f-f694afe486e0
|