@usecontextlayer/ctxs 0.5.6 → 0.5.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]="3dbc3cff-70da-5d01-b6fc-a83d63e0c3f3")}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]="a525501b-8c62-5a9e-a76f-b82b01d56d75")}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";
@@ -60,7 +60,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
60
60
 
61
61
  //#endregion
62
62
  //#region package.json
63
- var version$2 = "0.5.6";
63
+ var version$2 = "0.5.7";
64
64
 
65
65
  //#endregion
66
66
  //#region sentry.ts
@@ -4630,12 +4630,32 @@ function superRefine$1(fn, params) {
4630
4630
  }
4631
4631
  `${JSON.stringify({ render: {
4632
4632
  elements: {
4633
+ ask: {
4634
+ children: ["askLabel"],
4635
+ on: { press: {
4636
+ action: "openChat",
4637
+ params: {
4638
+ autoSend: false,
4639
+ content: { $template: "What should I know about @output/${path}?" }
4640
+ }
4641
+ } },
4642
+ props: { className: null },
4643
+ type: "Pressable"
4644
+ },
4645
+ askLabel: {
4646
+ props: { text: "Ask about this doc" },
4647
+ type: "Text"
4648
+ },
4633
4649
  body: {
4634
4650
  props: { text: { $item: "body" } },
4635
4651
  type: "Text"
4636
4652
  },
4637
4653
  card: {
4638
- children: ["body"],
4654
+ children: [
4655
+ "body",
4656
+ "draft",
4657
+ "ask"
4658
+ ],
4639
4659
  props: { title: { $item: "title" } },
4640
4660
  type: "Card"
4641
4661
  },
@@ -4651,6 +4671,22 @@ function superRefine$1(fn, params) {
4651
4671
  statePath: "/items"
4652
4672
  },
4653
4673
  type: "Stack"
4674
+ },
4675
+ draft: {
4676
+ children: ["draftLabel"],
4677
+ on: { press: {
4678
+ action: "openChat",
4679
+ params: {
4680
+ autoSend: true,
4681
+ content: { $template: "Draft a reply to @output/${path}" }
4682
+ }
4683
+ } },
4684
+ props: { className: null },
4685
+ type: "Pressable"
4686
+ },
4687
+ draftLabel: {
4688
+ props: { text: "Draft reply" },
4689
+ type: "Text"
4654
4690
  }
4655
4691
  },
4656
4692
  root: "detail"
@@ -15576,12 +15612,32 @@ const INBOX_CONTENT_TREE = {
15576
15612
  `,
15577
15613
  "output/types/action.render-spec.json": `${JSON.stringify({ render: {
15578
15614
  elements: {
15615
+ ask: {
15616
+ children: ["askLabel"],
15617
+ on: { press: {
15618
+ action: "openChat",
15619
+ params: {
15620
+ autoSend: false,
15621
+ content: { $template: "What should I know about @output/${path}?" }
15622
+ }
15623
+ } },
15624
+ props: { className: null },
15625
+ type: "Pressable"
15626
+ },
15627
+ askLabel: {
15628
+ props: { text: "Ask about this doc" },
15629
+ type: "Text"
15630
+ },
15579
15631
  body: {
15580
15632
  props: { text: { $item: "body" } },
15581
15633
  type: "Text"
15582
15634
  },
15583
15635
  card: {
15584
- children: ["body"],
15636
+ children: [
15637
+ "body",
15638
+ "draft",
15639
+ "ask"
15640
+ ],
15585
15641
  props: { title: { $item: "title" } },
15586
15642
  type: "Card"
15587
15643
  },
@@ -15597,6 +15653,22 @@ const INBOX_CONTENT_TREE = {
15597
15653
  statePath: "/items"
15598
15654
  },
15599
15655
  type: "Stack"
15656
+ },
15657
+ draft: {
15658
+ children: ["draftLabel"],
15659
+ on: { press: {
15660
+ action: "openChat",
15661
+ params: {
15662
+ autoSend: true,
15663
+ content: { $template: "Draft a reply to @output/${path}" }
15664
+ }
15665
+ } },
15666
+ props: { className: null },
15667
+ type: "Pressable"
15668
+ },
15669
+ draftLabel: {
15670
+ props: { text: "Draft reply" },
15671
+ type: "Text"
15600
15672
  }
15601
15673
  },
15602
15674
  root: "detail"
@@ -43222,7 +43294,7 @@ function osUsername() {
43222
43294
  }
43223
43295
 
43224
43296
  //#endregion
43225
- //#region ../slate-bridge/dist/goldens-C7JkwekQ.mjs
43297
+ //#region ../slate-bridge/dist/goldens-bnwfOrjq.mjs
43226
43298
  const nonEmptyStringSchema = string().trim().min(1);
43227
43299
  const portSchema = number().int().min(0).max(65535).default(7777);
43228
43300
  const envSchema = object({
@@ -43231,7 +43303,7 @@ const envSchema = object({
43231
43303
  CTX_PLATFORM_URL: url().default("http://127.0.0.1:3010").transform((url) => url.replace(/\/+$/, "")),
43232
43304
  CTX_WEB_URL: url().default("http://localhost:3000").transform((url) => url.replace(/\/+$/, "")),
43233
43305
  CTXS_BRIDGE_PORT: portSchema,
43234
- CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.6"),
43306
+ CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.7"),
43235
43307
  CTXS_CLAUDE_MODEL: nonEmptyStringSchema.default("opus"),
43236
43308
  CTXS_HOST_CLAUDE_JSON_PATH: nonEmptyStringSchema.default(() => path.join(os.homedir(), ".claude.json")),
43237
43309
  NODE_ENV: _enum([
@@ -48081,4 +48153,4 @@ runCli().catch((error) => {
48081
48153
  //#endregion
48082
48154
  export { createProgram, runCli };
48083
48155
  //# sourceMappingURL=cli.mjs.map
48084
- //# debugId=3dbc3cff-70da-5d01-b6fc-a83d63e0c3f3
48156
+ //# debugId=a525501b-8c62-5a9e-a76f-b82b01d56d75