@usecontextlayer/ctxe 0.5.20 → 0.5.22

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]="3f5dfa13-7817-555b-9c03-964aa0f42c2a")}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]="370adb78-6fae-50f8-8eb8-ac78184ceb09")}catch(e){}}();
4
4
  import { createRequire } from "node:module";
5
5
  import * as Sentry from "@sentry/node";
6
6
  import { mkdir, readFile, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
@@ -4349,7 +4349,7 @@ function normalizedKey(event) {
4349
4349
 
4350
4350
  //#endregion
4351
4351
  //#region package.json
4352
- var version$1 = "0.5.20";
4352
+ var version$1 = "0.5.22";
4353
4353
 
4354
4354
  //#endregion
4355
4355
  //#region sentry.ts
@@ -8540,7 +8540,7 @@ function superRefine(fn, params) {
8540
8540
  elements: {
8541
8541
  freshness: {
8542
8542
  props: {
8543
- text: { $concat: ["Updated ", { $relativeDate: {
8543
+ text: { $concat: ["Updated ", { $relativeDay: {
8544
8544
  now: { $state: "/now" },
8545
8545
  value: { $maxBy: {
8546
8546
  field: "last_updated",
@@ -8626,9 +8626,9 @@ function superRefine(fn, params) {
8626
8626
  }, null, " ")}`;
8627
8627
  string$4().min(1, "a doc path must be non-empty").refine((docPath) => !docPath.startsWith("/"), { message: "a doc path must be root-relative, not absolute" }).refine((docPath) => !docPath.split("/").includes(".."), { message: "a doc path must not contain a '..' segment" });
8628
8628
  strictObject({
8629
- params: record$1(string$4().min(1), strictObject({ default: string$4().min(1) })).optional(),
8630
- render: unknown$2().refine((value) => value !== void 0, "render is required")
8631
- }).extend({ defaultWorkspaceView: boolean$2().optional() });
8629
+ params: record$1(string$4().min(1), strictObject({ default: string$4().min(1) })).optional().describe("URL search params this surface accepts, each with its default. Resolution is `URL value ?? default`; the default is stripped back out of the URL, and an undeclared URL key is ignored. What a value MEANS — which are legal, what each expands to — is the loader's job, in JS."),
8630
+ render: unknown$2().describe("The render tree a @json-render Spec. Its elements name the components and directives published under `components` and `directives` in this artifact, and those contracts govern what each element may carry. This envelope does not constrain the tree's contents.")
8631
+ }).extend({ defaultWorkspaceView: boolean$2().optional().describe("Marks this view as the one a workspace opens to when no view is named in the URL. The rule spans the workspace, not this file: EXACTLY ONE of a workspace's views must set true, and both zero and several fail loud when the workspace is opened. `false` means what omitting the key means — this view is not the landing one.") });
8632
8632
  const segmentSchema = string$4().min(1, "a repoId segment must be non-empty").refine((s) => s !== "." && s !== ".." && !s.includes("/"), { message: "a repoId segment must not be '.'/'..' or contain '/'" });
8633
8633
  const sessionMetaSchema = object$2({
8634
8634
  created: string$4().nullable(),
@@ -44513,4 +44513,4 @@ runCli().catch((error) => {
44513
44513
  //#endregion
44514
44514
  export { createProgram, resolveRepoContext, resolveRuntimePaths, runCli };
44515
44515
  //# sourceMappingURL=cli.mjs.map
44516
- //# debugId=3f5dfa13-7817-555b-9c03-964aa0f42c2a
44516
+ //# debugId=370adb78-6fae-50f8-8eb8-ac78184ceb09