New:Socket for Asana Is Now Available.Learn more
Get Started

@opencode-ai/schema

Package Overview
Dependencies
Maintainers
2
Versions
1588
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/schema - npm Package Compare versions

Comparing version
0.0.0-next-14989
to
0.0.0-next-14993
+15
dist/instruction-entry.d.ts
export * as InstructionEntry from "./instruction-entry.js";
import { Schema } from "effect";
/**
* Slash-free client-facing key for one API-managed instruction entry. The server
* derives the namespaced Instructions key as `api/<key>`, keeping the
* `api/*` namespace enforced by construction.
*/
export declare const Key: Schema.String;
export type Key = typeof Key.Type;
export declare const Info: Schema.Struct<{
readonly key: Schema.String;
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
}>;
export interface Info extends Schema.Schema.Type<typeof Info> {
}
export * as InstructionEntry from "./instruction-entry.js";
import { Schema } from "effect";
/**
* Slash-free client-facing key for one API-managed instruction entry. The server
* derives the namespaced Instructions key as `api/<key>`, keeping the
* `api/*` namespace enforced by construction.
*/
export const Key = Schema.String.check(Schema.isPattern(/^[a-z0-9][a-z0-9._-]*$/)).annotate({
identifier: "InstructionEntry.Key",
description: "Instruction entry key (lowercase alphanumerics plus . _ -)",
});
export const Info = Schema.Struct({
key: Key,
value: Schema.Json.annotate({ description: "JSON value attached to the session's instructions" }),
}).annotate({ identifier: "InstructionEntry.Info" });
+3
-3

@@ -108,4 +108,4 @@ export * as SessionEvent from "./session-event.js";

});
export const ContextUpdated = Event.durable({
type: "session.context.updated",
export const InstructionsUpdated = Event.durable({
type: "session.instructions.updated",
...options,

@@ -419,3 +419,3 @@ schema: {

})(RevertEvent || (RevertEvent = {}));
export const Definitions = Event.inventory(AgentSelected, ModelSelected, Moved, Renamed, Forked, PromptPromoted, PromptAdmitted, ExecutionSettled, ContextUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, Retried, Compaction.Started, Compaction.Delta, Compaction.Ended, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
export const Definitions = Event.inventory(AgentSelected, ModelSelected, Moved, Renamed, Forked, PromptPromoted, PromptAdmitted, ExecutionSettled, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, Retried, Compaction.Started, Compaction.Delta, Compaction.Ended, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"));

@@ -422,0 +422,0 @@ export const Durable = Schema.Union(DurableDefinitions, { mode: "oneOf" })

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/schema",
"version": "0.0.0-next-14989",
"version": "0.0.0-next-14993",
"type": "module",

@@ -6,0 +6,0 @@ "license": "MIT",

export * as SessionContextEntry from "./session-context-entry.js";
import { Schema } from "effect";
/**
* Slash-free client-facing key for one API-managed context entry. The server
* derives the namespaced SystemContext key as `api/<key>`, keeping the
* `api/*` namespace enforced by construction.
*/
export declare const Key: Schema.String;
export type Key = typeof Key.Type;
export declare const Info: Schema.Struct<{
readonly key: Schema.String;
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
}>;
export interface Info extends Schema.Schema.Type<typeof Info> {
}
export * as SessionContextEntry from "./session-context-entry.js";
import { Schema } from "effect";
/**
* Slash-free client-facing key for one API-managed context entry. The server
* derives the namespaced SystemContext key as `api/<key>`, keeping the
* `api/*` namespace enforced by construction.
*/
export const Key = Schema.String.check(Schema.isPattern(/^[a-z0-9][a-z0-9._-]*$/)).annotate({
identifier: "SessionContextEntry.Key",
description: "Context entry key (lowercase alphanumerics plus . _ -)",
});
export const Info = Schema.Struct({
key: Key,
value: Schema.Json.annotate({ description: "JSON value attached to the session's system context" }),
}).annotate({ identifier: "SessionContextEntry.Info" });

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display