New:Socket for Asana Is Now Available.Learn more
Sign In

@opencode-ai/schema

Package Overview
Dependencies
Maintainers
2
Versions
1274
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-dev-18082
to
0.0.0-dev-18083
+64
-14
dist/session-stats.d.ts

@@ -56,2 +56,39 @@ export * as SessionStats from "./session-stats.js";

export type ToolUsage = typeof ToolUsage.Type;
export declare const ToolMode: Schema.Literals<readonly ["none", "summary", "detail"]>;
export type ToolMode = typeof ToolMode.Type;
export declare const ToolTotals: Schema.Struct<{
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
}>;
export type ToolTotals = typeof ToolTotals.Type;
export declare const Tools: Schema.Union<readonly [Schema.Struct<{
readonly mode: Schema.Literal<"none">;
}>, Schema.Struct<{
readonly mode: Schema.Literal<"summary">;
readonly totals: Schema.Struct<{
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
}>;
}>, Schema.Struct<{
readonly mode: Schema.Literal<"detail">;
readonly totals: Schema.Struct<{
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
}>;
readonly usage: Schema.$Array<Schema.Struct<{
readonly name: Schema.String;
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
readonly durationP50: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
}>>;
}>]>;
export type Tools = typeof Tools.Type;
export declare const Info: Schema.Struct<{

@@ -78,8 +115,29 @@ readonly range: Schema.Struct<{

};
readonly tools: Schema.Struct<{
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
}>;
readonly tools: Schema.Union<readonly [Schema.Struct<{
readonly mode: Schema.Literal<"none">;
}>, Schema.Struct<{
readonly mode: Schema.Literal<"summary">;
readonly totals: Schema.Struct<{
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
}>;
}>, Schema.Struct<{
readonly mode: Schema.Literal<"detail">;
readonly totals: Schema.Struct<{
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
}>;
readonly usage: Schema.$Array<Schema.Struct<{
readonly name: Schema.String;
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
readonly durationP50: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
}>>;
}>]>;
readonly activeDays: Schema.Int;

@@ -129,11 +187,3 @@ readonly streak: Schema.Int;

}>>;
readonly toolUsage: Schema.$Array<Schema.Struct<{
readonly name: Schema.String;
readonly calls: Schema.Int;
readonly succeeded: Schema.Int;
readonly failed: Schema.Int;
readonly unfinished: Schema.Int;
readonly durationP50: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
}>>;
}>;
export type Info = typeof Info.Type;
+13
-7

@@ -25,2 +25,14 @@ export * as SessionStats from "./session-stats.js";

}).annotate({ identifier: "SessionStats.ToolUsage" });
export const ToolMode = Schema.Literals(["none", "summary", "detail"]);
export const ToolTotals = Schema.Struct({
calls: NonNegativeInt,
succeeded: NonNegativeInt,
failed: NonNegativeInt,
unfinished: NonNegativeInt,
}).annotate({ identifier: "SessionStats.ToolTotals" });
export const Tools = Schema.Union([
Schema.Struct({ mode: Schema.Literal("none") }),
Schema.Struct({ mode: Schema.Literal("summary"), totals: ToolTotals }),
Schema.Struct({ mode: Schema.Literal("detail"), totals: ToolTotals, usage: Schema.Array(ToolUsage) }),
]).annotate({ identifier: "SessionStats.Tools" });
export const Info = Schema.Struct({

@@ -37,8 +49,3 @@ range: Schema.Struct({

cost: Money.USD,
tools: Schema.Struct({
calls: NonNegativeInt,
succeeded: NonNegativeInt,
failed: NonNegativeInt,
unfinished: NonNegativeInt,
}),
tools: Tools,
activeDays: NonNegativeInt,

@@ -48,3 +55,2 @@ streak: NonNegativeInt,

models: Schema.Array(ModelUsage),
toolUsage: Schema.Array(ToolUsage),
}).annotate({ identifier: "SessionStats.Info" });
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/schema",
"version": "0.0.0-dev-18082",
"version": "0.0.0-dev-18083",
"type": "module",

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