@opencode-ai/schema 0.0.0-next-14708 → 0.0.0-next-14709

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.
@@ -0,0 +1,15 @@
1
+ export * as SessionContextEntry from "./session-context-entry.js";
2
+ import { Schema } from "effect";
3
+ /**
4
+ * Slash-free client-facing key for one API-managed context entry. The server
5
+ * derives the namespaced SystemContext key as `api/<key>`, keeping the
6
+ * `api/*` namespace enforced by construction.
7
+ */
8
+ export declare const Key: Schema.String;
9
+ export type Key = typeof Key.Type;
10
+ export declare const Info: Schema.Struct<{
11
+ readonly key: Schema.String;
12
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
13
+ }>;
14
+ export interface Info extends Schema.Schema.Type<typeof Info> {
15
+ }
@@ -0,0 +1,15 @@
1
+ export * as SessionContextEntry from "./session-context-entry.js";
2
+ import { Schema } from "effect";
3
+ /**
4
+ * Slash-free client-facing key for one API-managed context entry. The server
5
+ * derives the namespaced SystemContext key as `api/<key>`, keeping the
6
+ * `api/*` namespace enforced by construction.
7
+ */
8
+ export const Key = Schema.String.check(Schema.isPattern(/^[a-z0-9][a-z0-9._-]*$/)).annotate({
9
+ identifier: "SessionContextEntry.Key",
10
+ description: "Context entry key (lowercase alphanumerics plus . _ -)",
11
+ });
12
+ export const Info = Schema.Struct({
13
+ key: Key,
14
+ value: Schema.Json.annotate({ description: "JSON value attached to the session's system context" }),
15
+ }).annotate({ identifier: "SessionContextEntry.Info" });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/schema",
4
- "version": "0.0.0-next-14708",
4
+ "version": "0.0.0-next-14709",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {