@usecontextlayer/ctxs 0.5.11 → 0.5.12

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]="e80413c9-3000-584e-9bcf-799375152efc")}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]="5c7d24a4-d399-5f99-8377-0191907d0cde")}catch(e){}}();
4
4
  import { createRequire } from "node:module";
5
5
  import * as Sentry from "@sentry/node";
6
6
  import * as fs$2 from "node:fs/promises";
@@ -65,7 +65,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
65
65
 
66
66
  //#endregion
67
67
  //#region package.json
68
- var version$2 = "0.5.11";
68
+ var version$2 = "0.5.12";
69
69
 
70
70
  //#endregion
71
71
  //#region sentry.ts
@@ -1604,11 +1604,11 @@ const nanoid$1 = /^[a-zA-Z0-9_-]{21}$/;
1604
1604
  /** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
1605
1605
  const duration$1$1 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
1606
1606
  /** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
1607
- const guid$1 = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
1607
+ const guid$2 = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
1608
1608
  /** Returns a regex for validating an RFC 9562/4122 UUID.
1609
1609
  *
1610
1610
  * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
1611
- const uuid$2 = (version) => {
1611
+ const uuid$1 = (version) => {
1612
1612
  if (!version) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
1613
1613
  return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
1614
1614
  };
@@ -2012,7 +2012,7 @@ const $ZodStringFormat$1 = /*@__PURE__*/ $constructor$1("$ZodStringFormat", (ins
2012
2012
  $ZodString$1.init(inst, def);
2013
2013
  });
2014
2014
  const $ZodGUID$1 = /*@__PURE__*/ $constructor$1("$ZodGUID", (inst, def) => {
2015
- def.pattern ?? (def.pattern = guid$1);
2015
+ def.pattern ?? (def.pattern = guid$2);
2016
2016
  $ZodStringFormat$1.init(inst, def);
2017
2017
  });
2018
2018
  const $ZodUUID$1 = /*@__PURE__*/ $constructor$1("$ZodUUID", (inst, def) => {
@@ -2028,8 +2028,8 @@ const $ZodUUID$1 = /*@__PURE__*/ $constructor$1("$ZodUUID", (inst, def) => {
2028
2028
  v8: 8
2029
2029
  }[def.version];
2030
2030
  if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
2031
- def.pattern ?? (def.pattern = uuid$2(v));
2032
- } else def.pattern ?? (def.pattern = uuid$2());
2031
+ def.pattern ?? (def.pattern = uuid$1(v));
2032
+ } else def.pattern ?? (def.pattern = uuid$1());
2033
2033
  $ZodStringFormat$1.init(inst, def);
2034
2034
  });
2035
2035
  const $ZodEmail$1 = /*@__PURE__*/ $constructor$1("$ZodEmail", (inst, def) => {
@@ -8533,11 +8533,11 @@ const nanoid = /^[a-zA-Z0-9_-]{21}$/;
8533
8533
  /** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
8534
8534
  const duration$1 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
8535
8535
  /** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
8536
- const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
8536
+ const guid$1 = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
8537
8537
  /** Returns a regex for validating an RFC 9562/4122 UUID.
8538
8538
  *
8539
8539
  * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
8540
- const uuid$1 = (version) => {
8540
+ const uuid = (version) => {
8541
8541
  if (!version) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
8542
8542
  return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
8543
8543
  };
@@ -9095,7 +9095,7 @@ const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, d
9095
9095
  $ZodString.init(inst, def);
9096
9096
  });
9097
9097
  const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
9098
- def.pattern ?? (def.pattern = guid);
9098
+ def.pattern ?? (def.pattern = guid$1);
9099
9099
  $ZodStringFormat.init(inst, def);
9100
9100
  });
9101
9101
  const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
@@ -9111,8 +9111,8 @@ const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
9111
9111
  v8: 8
9112
9112
  }[def.version];
9113
9113
  if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
9114
- def.pattern ?? (def.pattern = uuid$1(v));
9115
- } else def.pattern ?? (def.pattern = uuid$1());
9114
+ def.pattern ?? (def.pattern = uuid(v));
9115
+ } else def.pattern ?? (def.pattern = uuid());
9116
9116
  $ZodStringFormat.init(inst, def);
9117
9117
  });
9118
9118
  const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
@@ -11960,13 +11960,13 @@ const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
11960
11960
  $ZodGUID.init(inst, def);
11961
11961
  ZodStringFormat.init(inst, def);
11962
11962
  });
11963
+ function guid(params) {
11964
+ return _guid(ZodGUID, params);
11965
+ }
11963
11966
  const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
11964
11967
  $ZodUUID.init(inst, def);
11965
11968
  ZodStringFormat.init(inst, def);
11966
11969
  });
11967
- function uuid(params) {
11968
- return _uuid(ZodUUID, params);
11969
- }
11970
11970
  const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
11971
11971
  $ZodURL.init(inst, def);
11972
11972
  ZodStringFormat.init(inst, def);
@@ -56249,7 +56249,7 @@ function createScheduleApiClient(config) {
56249
56249
  }
56250
56250
  };
56251
56251
  }
56252
- const SERVER_VERSION = "0.5.11";
56252
+ const SERVER_VERSION = "0.5.12";
56253
56253
  const guidDescription = "GUID from the synced Postgres tables";
56254
56254
  const labelDescription = "Human-readable label rendered on the approval card";
56255
56255
  function scheduleApiFromRequest(requestInfo) {
@@ -56322,10 +56322,10 @@ function createMcpServer(options = {}) {
56322
56322
  server.registerTool("create_task", {
56323
56323
  description: "Create a task on a Premium Planner (Project for the web) board, in a specific bucket. Read project_id and bucket_id from the synced msdyn_projects / msdyn_projectbuckets tables; the *_name fields must carry the matching names for the human approving this action.",
56324
56324
  inputSchema: {
56325
- bucket_id: uuid().describe(`${guidDescription} (msdyn_projectbucketid)`),
56325
+ bucket_id: guid().describe(`${guidDescription} (msdyn_projectbucketid)`),
56326
56326
  bucket_name: string$1().min(1).describe(labelDescription),
56327
56327
  name: string$1().min(1).describe("The new task's name"),
56328
- project_id: uuid().describe(`${guidDescription} (msdyn_projectid)`),
56328
+ project_id: guid().describe(`${guidDescription} (msdyn_projectid)`),
56329
56329
  project_name: string$1().min(1).describe(labelDescription)
56330
56330
  }
56331
56331
  }, async ({ bucket_id, name, project_id }, extra) => {
@@ -56355,12 +56355,12 @@ function createMcpServer(options = {}) {
56355
56355
  server.registerTool("update_task", {
56356
56356
  description: "Rename a task and/or move it to another bucket on a Premium Planner (Project for the web) board. Read the GUIDs from the synced msdyn_* tables; the *_name fields must carry the matching names for the human approving this action. Provide new_name, bucket_id+bucket_name, or both.",
56357
56357
  inputSchema: {
56358
- bucket_id: uuid().optional().describe(`Move the task to this bucket — ${guidDescription} (msdyn_projectbucketid)`),
56358
+ bucket_id: guid().optional().describe(`Move the task to this bucket — ${guidDescription} (msdyn_projectbucketid)`),
56359
56359
  bucket_name: string$1().min(1).optional().describe(labelDescription),
56360
56360
  new_name: string$1().min(1).optional().describe("Rename the task to this"),
56361
- project_id: uuid().describe(`The task's project — ${guidDescription} (msdyn_projectid)`),
56361
+ project_id: guid().describe(`The task's project — ${guidDescription} (msdyn_projectid)`),
56362
56362
  project_name: string$1().min(1).describe(labelDescription),
56363
- task_id: uuid().describe(`${guidDescription} (msdyn_projecttaskid)`),
56363
+ task_id: guid().describe(`${guidDescription} (msdyn_projecttaskid)`),
56364
56364
  task_name: string$1().min(1).describe(`The task's CURRENT name — ${labelDescription}`)
56365
56365
  }
56366
56366
  }, async ({ bucket_id, bucket_name, new_name, project_id, task_id, task_name }, extra) => {
@@ -83715,7 +83715,7 @@ function osUsername() {
83715
83715
  }
83716
83716
 
83717
83717
  //#endregion
83718
- //#region ../slate-bridge/dist/goldens-BlwT0koM.mjs
83718
+ //#region ../slate-bridge/dist/goldens-BLyGFV35.mjs
83719
83719
  const nonEmptyStringSchema = string$1().trim().min(1);
83720
83720
  const portSchema = number$1().int().min(0).max(65535).default(7777);
83721
83721
  const envSchema = object$2({
@@ -83724,7 +83724,7 @@ const envSchema = object$2({
83724
83724
  CTX_PLATFORM_URL: url().default("http://127.0.0.1:3010").transform((url) => url.replace(/\/+$/, "")),
83725
83725
  CTX_WEB_URL: url().default("http://localhost:3000").transform((url) => url.replace(/\/+$/, "")),
83726
83726
  CTXS_BRIDGE_PORT: portSchema,
83727
- CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.11"),
83727
+ CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.12"),
83728
83728
  CTXS_CLAUDE_MODEL: nonEmptyStringSchema.default("opus"),
83729
83729
  CTXS_HOST_CLAUDE_JSON_PATH: nonEmptyStringSchema.default(() => path.join(os.homedir(), ".claude.json")),
83730
83730
  NODE_ENV: _enum([
@@ -88761,4 +88761,4 @@ runCli().catch((error) => {
88761
88761
  //#endregion
88762
88762
  export { createProgram, runCli };
88763
88763
  //# sourceMappingURL=cli.mjs.map
88764
- //# debugId=e80413c9-3000-584e-9bcf-799375152efc
88764
+ //# debugId=5c7d24a4-d399-5f99-8377-0191907d0cde