@opencode/schema 0.0.0-dev-19659 → 0.0.0-dev-19661
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/shell.d.ts +1 -1
- package/dist/shell.js +5 -3
- package/dist/vcs.d.ts +1 -0
- package/dist/vcs.js +1 -0
- package/package.json +1 -1
package/dist/shell.d.ts
CHANGED
|
@@ -360,7 +360,7 @@ export declare const Event: {
|
|
|
360
360
|
export declare const CreateInput: Schema.Struct<{
|
|
361
361
|
readonly command: Schema.String;
|
|
362
362
|
readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
363
|
-
readonly timeout: Schema.Int
|
|
363
|
+
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
364
364
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
365
365
|
}>;
|
|
366
366
|
export interface CreateInput extends Schema.Schema.Type<typeof CreateInput> {
|
package/dist/shell.js
CHANGED
|
@@ -14,8 +14,10 @@ export const ID = IDSchema.pipe(statics((schema) => {
|
|
|
14
14
|
}));
|
|
15
15
|
export const Status = Schema.Literals(["running", "exited", "timeout", "killed"]);
|
|
16
16
|
export const Time = Schema.Struct({
|
|
17
|
-
started: Schema.Finite,
|
|
18
|
-
completed: optional(Schema.Finite)
|
|
17
|
+
started: Schema.Finite.annotate({ description: "Start time in milliseconds since the Unix epoch" }),
|
|
18
|
+
completed: optional(Schema.Finite).annotate({
|
|
19
|
+
description: "Completion time in milliseconds since the Unix epoch",
|
|
20
|
+
}),
|
|
19
21
|
});
|
|
20
22
|
// Opaque caller-supplied tags echoed back on Info and events. The Shell service never interprets
|
|
21
23
|
// these; callers (e.g. ShellTool stores the originating session ID) use them to filter or correlate.
|
|
@@ -41,7 +43,7 @@ export const Event = { Created, Exited, Deleted, Definitions: inventory(Created,
|
|
|
41
43
|
export const CreateInput = Schema.Struct({
|
|
42
44
|
command: Schema.String,
|
|
43
45
|
cwd: optional(Schema.String),
|
|
44
|
-
timeout: NonNegativeInt,
|
|
46
|
+
timeout: optional(NonNegativeInt),
|
|
45
47
|
metadata: optional(Metadata),
|
|
46
48
|
});
|
|
47
49
|
export const OutputInput = Schema.Struct({
|
package/dist/vcs.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const Branch: Schema.Struct<{
|
|
|
7
7
|
export interface Branch extends Schema.Schema.Type<typeof Branch> {
|
|
8
8
|
}
|
|
9
9
|
export declare const Info: Schema.Struct<{
|
|
10
|
+
readonly provider: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10
11
|
readonly branch: Schema.Struct<{
|
|
11
12
|
readonly current: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12
13
|
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
package/dist/vcs.js
CHANGED
|
@@ -6,6 +6,7 @@ export const Branch = Schema.Struct({
|
|
|
6
6
|
default: optional(Schema.String),
|
|
7
7
|
}).annotate({ identifier: "Vcs.Branch" });
|
|
8
8
|
export const Info = Schema.Struct({
|
|
9
|
+
provider: optional(Schema.String),
|
|
9
10
|
branch: Branch,
|
|
10
11
|
}).annotate({ identifier: "Vcs.Info" });
|
|
11
12
|
export const BranchList = Schema.Array(Schema.String).annotate({ identifier: "Vcs.BranchList" });
|