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

@opencode-ai/protocol

Package Overview
Dependencies
Maintainers
2
Versions
1615
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/protocol - npm Package Compare versions

Comparing version
0.0.0-next-15219
to
0.0.0-next-15228.2
+17
-28
dist/groups/agent.d.ts

@@ -78,33 +78,22 @@ import { Agent } from "@opencode-ai/schema/agent";

empty: (id: Agent.ID) => {
readonly id: string & import("effect/Brand").Brand<"Agent.ID">;
readonly name: string & import("effect/Brand").Brand<"Agent.Name">;
readonly request: {
readonly settings: {
readonly [x: string]: Schema.Json;
};
readonly headers: {
readonly [x: string]: string;
};
readonly body: {
readonly [x: string]: Schema.Json;
};
id: string & import("effect/Brand").Brand<"Agent.ID">;
name: string & import("effect/Brand").Brand<"Agent.Name">;
request: {
settings: {};
headers: {};
body: {};
};
readonly mode: "primary" | "subagent" | "all";
readonly hidden: boolean;
readonly permissions: readonly {
readonly action: string;
readonly resource: string;
readonly effect: "allow" | "deny" | "ask";
}[];
readonly model?: {
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
} | undefined;
readonly system?: string | undefined;
readonly description?: string | undefined;
readonly color?: string | undefined;
readonly steps?: number | undefined;
mode: "all";
hidden: false;
permissions: ({
action: string;
resource: string;
effect: "allow";
} | {
action: string;
resource: string;
effect: "ask";
})[];
};
}>;
}>>, HttpApiEndpoint.Json<never>, never, never>, false>;

@@ -81,56 +81,22 @@ import { Model } from "@opencode-ai/schema/model";

empty: (providerID: import("@opencode-ai/schema/provider").ID, id: Model.ID) => {
readonly capabilities: {
readonly tools: boolean;
readonly input: readonly string[];
readonly output: readonly string[];
id: string & import("effect/Brand").Brand<"Model.ID">;
modelID: string & import("effect/Brand").Brand<"Model.ID">;
providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
name: string & import("effect/Brand").Brand<"Model.ID">;
capabilities: {
tools: false;
input: never[];
output: never[];
};
readonly variants: readonly {
readonly id: string & import("effect/Brand").Brand<"Model.VariantID">;
readonly settings?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly headers?: {
readonly [x: string]: string;
} | undefined;
readonly body?: {
readonly [x: string]: Schema.Json;
} | undefined;
}[];
readonly time: {
readonly released: number;
variants: never[];
time: {
released: number;
};
readonly cost: readonly {
readonly input: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
readonly output: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
readonly cache: {
readonly read: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
readonly write: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
};
readonly tier?: {
readonly type: "context";
readonly size: number;
} | undefined;
}[];
readonly status: "alpha" | "beta" | "deprecated" | "active";
readonly enabled: boolean;
readonly limit: {
readonly context: number;
readonly output: number;
readonly input?: number | undefined;
cost: never[];
status: "active";
enabled: true;
limit: {
context: number;
output: number;
};
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly modelID: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly name: string;
readonly settings?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly headers?: {
readonly [x: string]: string;
} | undefined;
readonly body?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly family?: (string & import("effect/Brand").Brand<"Model.Family">) | undefined;
readonly package?: string | undefined;
};

@@ -213,58 +179,24 @@ }>;

empty: (providerID: import("@opencode-ai/schema/provider").ID, id: Model.ID) => {
readonly capabilities: {
readonly tools: boolean;
readonly input: readonly string[];
readonly output: readonly string[];
id: string & import("effect/Brand").Brand<"Model.ID">;
modelID: string & import("effect/Brand").Brand<"Model.ID">;
providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
name: string & import("effect/Brand").Brand<"Model.ID">;
capabilities: {
tools: false;
input: never[];
output: never[];
};
readonly variants: readonly {
readonly id: string & import("effect/Brand").Brand<"Model.VariantID">;
readonly settings?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly headers?: {
readonly [x: string]: string;
} | undefined;
readonly body?: {
readonly [x: string]: Schema.Json;
} | undefined;
}[];
readonly time: {
readonly released: number;
variants: never[];
time: {
released: number;
};
readonly cost: readonly {
readonly input: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
readonly output: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
readonly cache: {
readonly read: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
readonly write: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
};
readonly tier?: {
readonly type: "context";
readonly size: number;
} | undefined;
}[];
readonly status: "alpha" | "beta" | "deprecated" | "active";
readonly enabled: boolean;
readonly limit: {
readonly context: number;
readonly output: number;
readonly input?: number | undefined;
cost: never[];
status: "active";
enabled: true;
limit: {
context: number;
output: number;
};
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly modelID: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly name: string;
readonly settings?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly headers?: {
readonly [x: string]: string;
} | undefined;
readonly body?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly family?: (string & import("effect/Brand").Brand<"Model.Family">) | undefined;
readonly package?: string | undefined;
};
}>;
}>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never>, false>;

@@ -35,18 +35,3 @@ import { Provider } from "@opencode-ai/schema/provider";

}> & {
empty: (id: Provider.ID) => {
readonly id: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly name: string;
readonly package: string;
readonly settings?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly headers?: {
readonly [x: string]: string;
} | undefined;
readonly body?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
readonly disabled?: boolean | undefined;
};
empty: (id: Provider.ID) => Provider.Info;
}>;

@@ -96,19 +81,4 @@ }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"provider.get", "GET", "/api/provider/:providerID", HttpApiEndpoint.StringTree<Schema.Struct<{

}> & {
empty: (id: Provider.ID) => {
readonly id: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly name: string;
readonly package: string;
readonly settings?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly headers?: {
readonly [x: string]: string;
} | undefined;
readonly body?: {
readonly [x: string]: Schema.Json;
} | undefined;
readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
readonly disabled?: boolean | undefined;
};
empty: (id: Provider.ID) => Provider.Info;
};
}>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError | typeof ProviderNotFoundError>, never, never>, false>;
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/protocol",
"version": "0.0.0-next-15219",
"version": "0.0.0-next-15228.2",
"type": "module",

@@ -29,3 +29,3 @@ "license": "MIT",

"dependencies": {
"@opencode-ai/schema": "0.0.0-next-15219",
"@opencode-ai/schema": "0.0.0-next-15228.2",
"effect": "4.0.0-beta.83"

@@ -32,0 +32,0 @@ },