@zyro-sec/sdk 1.0.2 → 1.0.4

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.
@@ -1,252 +1,252 @@
1
- #!/usr/bin/env bun
2
-
3
- import { $ } from "bun"
4
- import { mkdtemp, rm } from "node:fs/promises"
5
- import { tmpdir } from "node:os"
6
- import { join } from "node:path"
7
- import { fileURLToPath } from "node:url"
8
-
9
- const root = fileURLToPath(new URL("../../..", import.meta.url))
10
- const names = [
11
- "schema",
12
- "codemode",
13
- "ai",
14
- "util",
15
- "protocol",
16
- "client",
17
- "plugin",
18
- "plugin-browser",
19
- "core",
20
- "simulation",
21
- "server",
22
- "sdk",
23
- ]
24
- const temporary = await mkdtemp(join(tmpdir(), "opencode-sdk-package-"))
25
- const archives = new Map<string, string>()
26
-
27
- try {
28
- for (const name of names) {
29
- const directory = join(root, "packages", name)
30
- await $`bun run build`.cwd(directory)
31
- const original = await Bun.file(join(directory, "package.json")).text()
32
- // oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- package manifests are validated by their package builds.
33
- const pkg = JSON.parse(original) as {
34
- name: string
35
- dependencies?: Record<string, string>
36
- exports?: Record<string, string | { types: string; import: string }>
37
- imports?: Record<string, Record<string, string>>
38
- }
39
- const archive = join(temporary, `${name}.tgz`)
40
-
41
- if (pkg.dependencies) {
42
- const unpacked = Object.entries(pkg.dependencies)
43
- .filter(([dependency, version]) => version.startsWith("workspace:") && !archives.has(dependency))
44
- .map(([dependency]) => dependency)
45
- if (unpacked.length > 0)
46
- throw new Error(`${pkg.name} has unpacked workspace dependencies: ${unpacked.join(", ")}`)
47
- pkg.dependencies = Object.fromEntries(
48
- Object.entries(pkg.dependencies).map(([dependency, version]) => {
49
- const local = archives.get(dependency)
50
- return [dependency, local ? `file:${local}` : version]
51
- }),
52
- )
53
- }
54
- if (pkg.exports) {
55
- pkg.exports = Object.fromEntries(
56
- Object.entries(pkg.exports).map(([key, value]) => {
57
- if (typeof value !== "string") return [key, value]
58
- return [key, { types: output(name, value, true), import: output(name, value) }]
59
- }),
60
- )
61
- }
62
- if (pkg.imports) {
63
- pkg.imports = Object.fromEntries(
64
- Object.entries(pkg.imports).map(([key, conditions]) => [
65
- key,
66
- Object.fromEntries(
67
- Object.entries(conditions).map(([condition, value]) => [
68
- condition,
69
- output(name, value, condition === "types"),
70
- ]),
71
- ),
72
- ]),
73
- )
74
- }
75
-
76
- await Bun.write(join(directory, "package.json"), JSON.stringify(pkg, null, 2) + "\n")
77
- try {
78
- await $`bun pm pack --filename ${archive} --ignore-scripts --quiet`.cwd(directory)
79
- } finally {
80
- await Bun.write(join(directory, "package.json"), original)
81
- }
82
- archives.set(pkg.name, archive)
83
- }
84
-
85
- const consumer = join(temporary, "consumer")
86
- await Bun.write(
87
- join(consumer, "package.json"),
88
- JSON.stringify({ name: "opencode-sdk-consumer", private: true, type: "module" }),
89
- )
90
- await Promise.all([
91
- Bun.write(
92
- join(consumer, "wrangler.jsonc"),
93
- JSON.stringify({
94
- name: "opencode-sdk-packed-consumer",
95
- main: "worker.js",
96
- compatibility_date: "2026-07-15",
97
- compatibility_flags: ["nodejs_compat"],
98
- durable_objects: { bindings: [{ name: "OPENCODE", class_name: "OpenCodeDO" }] },
99
- migrations: [{ tag: "v1", new_sqlite_classes: ["OpenCodeDO"] }],
100
- }),
101
- ),
102
- Bun.write(
103
- join(consumer, "worker.js"),
104
- `import { bodyDigest } from "@zyro-sec/core/models-dev"
105
- import { OpenCodeWorkerd } from "@zyro-sec/sdk/workerd"
106
-
107
- export class OpenCodeDO {
108
- constructor(state) {
109
- this.configurations = 0
110
- this.opencode = state.blockConcurrencyWhile(() => OpenCodeWorkerd.create({
111
- storage: state.storage,
112
- app: { version: "packed-workerd" },
113
- models: { fetch: false },
114
- instances: {
115
- key: session => String(session.metadata.thread),
116
- configure: key => {
117
- this.configurations++
118
- return {
119
- plugins: [{
120
- id: "packed-instance",
121
- async setup(ctx) {
122
- if (ctx.app.version !== "packed-workerd" || ctx.location.directory !== "/workspace") {
123
- throw new Error("Selected instance did not inherit the host configuration")
124
- }
125
- await ctx.session.hook("prompt", event => {
126
- event.prompt.text += ":" + key
127
- })
128
- },
129
- }],
130
- }
131
- },
132
- },
133
- }))
134
- }
135
-
136
- async fetch() {
137
- if (bodyDigest("packed-workerd") !== "5fc174bf63e8dd108ebb6c53d85e7bbc4525b2f4c1c43280364cdbfd9b37aaf5") {
138
- throw new Error("Packed workerd SHA-256 mismatch")
139
- }
140
- const opencode = await this.opencode
141
- const sessions = await Promise.all([1, 2].map(() => opencode.sessions.create({
142
- location: { directory: "/workspace" },
143
- metadata: { thread: "packed-thread" },
144
- })))
145
- const admitted = await Promise.all(sessions.map(session => opencode.sessions.prompt({
146
- sessionID: session.id,
147
- text: "Packed prompt",
148
- resume: false,
149
- })))
150
- if (this.configurations !== 1 || admitted.some(item => item.payload.text !== "Packed prompt:packed-thread")) {
151
- throw new Error("Packed instance configuration did not share or prepare prompts correctly")
152
- }
153
- await opencode.alarm()
154
- return Response.json(await opencode.server.info())
155
- }
156
-
157
- async alarm() {
158
- const opencode = await this.opencode
159
- await opencode.alarm()
160
- }
161
- }
162
-
163
- export default {
164
- fetch(request, env) {
165
- return env.OPENCODE.get(env.OPENCODE.idFromName("packed-consumer")).fetch(request)
166
- },
167
- }
168
- `,
169
- ),
170
- Bun.write(
171
- join(consumer, "boot.mjs"),
172
- `import { Miniflare } from "miniflare"
173
- import { fileURLToPath } from "node:url"
174
-
175
- const miniflare = new Miniflare({
176
- compatibilityDate: "2026-07-15",
177
- compatibilityFlags: ["nodejs_compat"],
178
- modules: true,
179
- scriptPath: fileURLToPath(new URL("./dist/worker.js", import.meta.url)),
180
- durableObjects: { OPENCODE: { className: "OpenCodeDO", useSQLite: true } },
181
- })
182
-
183
- try {
184
- const response = await miniflare.dispatchFetch("http://opencode.local/health")
185
- if (response.status !== 200) throw new Error(
186
- "Packed workerd health returned " + response.status + ": " + await response.text(),
187
- )
188
- const body = await response.json()
189
- if (body.version !== "packed-workerd" || body.pid !== 1 || !Array.isArray(body.urls)) {
190
- throw new Error("Unexpected packed workerd health: " + JSON.stringify(body))
191
- }
192
- } finally {
193
- await miniflare.dispose()
194
- }
195
- `,
196
- ),
197
- Bun.write(
198
- join(consumer, "imports.mjs"),
199
- `const modules = await Promise.all([
200
- import("@zyro-sec/sdk"),
201
- import("@zyro-sec/sdk/effect"),
202
- import("@zyro-sec/sdk/workerd"),
203
- import("@zyro-sec/sdk/workerd/effect"),
204
- ])
205
-
206
- for (const module of modules) {
207
- const api = module.OpenCode ?? module.OpenCodeWorkerd
208
- if (typeof api?.create !== "function") throw new Error("Packed SDK entrypoint is missing create()")
209
- }
210
- `,
211
- ),
212
- ])
213
-
214
- const sdk = archives.get("@zyro-sec/sdk")
215
- if (!sdk) throw new Error("Packed SDK archive was not created")
216
- await $`npm install --ignore-scripts --no-audit --no-fund --package-lock=false ${sdk} wrangler@4.110.0`.cwd(consumer)
217
- const runtimes = (await $`npm ls effect --all --parseable`.cwd(consumer).text()).trim().split("\n")
218
- if (runtimes.length !== 1) {
219
- throw new Error(`Packed SDK consumer resolved multiple Effect runtimes:\n${runtimes.join("\n")}`)
220
- }
221
- await $`bun imports.mjs`.cwd(consumer)
222
- await $`node imports.mjs`.cwd(consumer)
223
- await $`bun --conditions=workerd imports.mjs`.cwd(consumer)
224
- await $`node_modules/.bin/wrangler deploy --dry-run --config wrangler.jsonc --outdir dist`.cwd(consumer)
225
-
226
- const transpiler = new Bun.Transpiler({ loader: "js" })
227
- const bundled = await Bun.file(join(consumer, "dist/worker.js")).text()
228
- // Quoted strings are skipped: an error message naming `Bun.write` isn't a reference to the global.
229
- const code = bundled.replace(/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/g, '""')
230
- const bunGlobals = Array.from(new Set(code.match(/\bBun\.[A-Za-z_$][\w$]*/g) ?? []))
231
- if (bunGlobals.length > 0) throw new Error(`Packed workerd bundle references Bun globals: ${bunGlobals.join(", ")}`)
232
- const leaked = [
233
- ...transpiler
234
- .scanImports(bundled)
235
- .filter((imported) => imported.kind !== "dynamic-import")
236
- .map((imported) => imported.path),
237
- ...Array.from(bundled.matchAll(/\brequire\(\s*["']([^"']+)["']\s*\)/g), (match) => match[1]),
238
- ].filter((specifier) => specifier === "bun" || specifier.startsWith("bun:"))
239
- if (leaked.length > 0) throw new Error(`Packed workerd bundle statically imports Bun builtins: ${leaked.join(", ")}`)
240
-
241
- // Boot in workerd to catch eager Node initializers; lazy createRequire calls
242
- // in native-only code are valid and must not fail a bundle-wide text check.
243
- await $`node boot.mjs`.cwd(consumer)
244
- console.log("packed SDK consumer OK")
245
- } finally {
246
- await rm(temporary, { recursive: true, force: true })
247
- }
248
-
249
- function output(name: string, value: string, types = false) {
250
- const root = name === "core" && types ? "./dist/types/" : "./dist/"
251
- return value.replace("./src/", root).replace(/\.ts$/, types ? ".d.ts" : ".js")
252
- }
1
+ #!/usr/bin/env bun
2
+
3
+ import { $ } from "bun"
4
+ import { mkdtemp, rm } from "node:fs/promises"
5
+ import { tmpdir } from "node:os"
6
+ import { join } from "node:path"
7
+ import { fileURLToPath } from "node:url"
8
+
9
+ const root = fileURLToPath(new URL("../../..", import.meta.url))
10
+ const names = [
11
+ "schema",
12
+ "codemode",
13
+ "ai",
14
+ "util",
15
+ "protocol",
16
+ "client",
17
+ "plugin",
18
+ "plugin-browser",
19
+ "core",
20
+ "simulation",
21
+ "server",
22
+ "sdk",
23
+ ]
24
+ const temporary = await mkdtemp(join(tmpdir(), "opencode-sdk-package-"))
25
+ const archives = new Map<string, string>()
26
+
27
+ try {
28
+ for (const name of names) {
29
+ const directory = join(root, "packages", name)
30
+ await $`bun run build`.cwd(directory)
31
+ const original = await Bun.file(join(directory, "package.json")).text()
32
+ // oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- package manifests are validated by their package builds.
33
+ const pkg = JSON.parse(original) as {
34
+ name: string
35
+ dependencies?: Record<string, string>
36
+ exports?: Record<string, string | { types: string; import: string }>
37
+ imports?: Record<string, Record<string, string>>
38
+ }
39
+ const archive = join(temporary, `${name}.tgz`)
40
+
41
+ if (pkg.dependencies) {
42
+ const unpacked = Object.entries(pkg.dependencies)
43
+ .filter(([dependency, version]) => version.startsWith("workspace:") && !archives.has(dependency))
44
+ .map(([dependency]) => dependency)
45
+ if (unpacked.length > 0)
46
+ throw new Error(`${pkg.name} has unpacked workspace dependencies: ${unpacked.join(", ")}`)
47
+ pkg.dependencies = Object.fromEntries(
48
+ Object.entries(pkg.dependencies).map(([dependency, version]) => {
49
+ const local = archives.get(dependency)
50
+ return [dependency, local ? `file:${local}` : version]
51
+ }),
52
+ )
53
+ }
54
+ if (pkg.exports) {
55
+ pkg.exports = Object.fromEntries(
56
+ Object.entries(pkg.exports).map(([key, value]) => {
57
+ if (typeof value !== "string") return [key, value]
58
+ return [key, { types: output(name, value, true), import: output(name, value) }]
59
+ }),
60
+ )
61
+ }
62
+ if (pkg.imports) {
63
+ pkg.imports = Object.fromEntries(
64
+ Object.entries(pkg.imports).map(([key, conditions]) => [
65
+ key,
66
+ Object.fromEntries(
67
+ Object.entries(conditions).map(([condition, value]) => [
68
+ condition,
69
+ output(name, value, condition === "types"),
70
+ ]),
71
+ ),
72
+ ]),
73
+ )
74
+ }
75
+
76
+ await Bun.write(join(directory, "package.json"), JSON.stringify(pkg, null, 2) + "\n")
77
+ try {
78
+ await $`bun pm pack --filename ${archive} --ignore-scripts --quiet`.cwd(directory)
79
+ } finally {
80
+ await Bun.write(join(directory, "package.json"), original)
81
+ }
82
+ archives.set(pkg.name, archive)
83
+ }
84
+
85
+ const consumer = join(temporary, "consumer")
86
+ await Bun.write(
87
+ join(consumer, "package.json"),
88
+ JSON.stringify({ name: "opencode-sdk-consumer", private: true, type: "module" }),
89
+ )
90
+ await Promise.all([
91
+ Bun.write(
92
+ join(consumer, "wrangler.jsonc"),
93
+ JSON.stringify({
94
+ name: "opencode-sdk-packed-consumer",
95
+ main: "worker.js",
96
+ compatibility_date: "2026-07-15",
97
+ compatibility_flags: ["nodejs_compat"],
98
+ durable_objects: { bindings: [{ name: "OPENCODE", class_name: "OpenCodeDO" }] },
99
+ migrations: [{ tag: "v1", new_sqlite_classes: ["OpenCodeDO"] }],
100
+ }),
101
+ ),
102
+ Bun.write(
103
+ join(consumer, "worker.js"),
104
+ `import { bodyDigest } from "@zyro-sec/core/models-dev"
105
+ import { OpenCodeWorkerd } from "@zyro-sec/sdk/workerd"
106
+
107
+ export class OpenCodeDO {
108
+ constructor(state) {
109
+ this.configurations = 0
110
+ this.opencode = state.blockConcurrencyWhile(() => OpenCodeWorkerd.create({
111
+ storage: state.storage,
112
+ app: { version: "packed-workerd" },
113
+ models: { fetch: false },
114
+ instances: {
115
+ key: session => String(session.metadata.thread),
116
+ configure: key => {
117
+ this.configurations++
118
+ return {
119
+ plugins: [{
120
+ id: "packed-instance",
121
+ async setup(ctx) {
122
+ if (ctx.app.version !== "packed-workerd" || ctx.location.directory !== "/workspace") {
123
+ throw new Error("Selected instance did not inherit the host configuration")
124
+ }
125
+ await ctx.session.hook("prompt", event => {
126
+ event.prompt.text += ":" + key
127
+ })
128
+ },
129
+ }],
130
+ }
131
+ },
132
+ },
133
+ }))
134
+ }
135
+
136
+ async fetch() {
137
+ if (bodyDigest("packed-workerd") !== "5fc174bf63e8dd108ebb6c53d85e7bbc4525b2f4c1c43280364cdbfd9b37aaf5") {
138
+ throw new Error("Packed workerd SHA-256 mismatch")
139
+ }
140
+ const opencode = await this.opencode
141
+ const sessions = await Promise.all([1, 2].map(() => opencode.sessions.create({
142
+ location: { directory: "/workspace" },
143
+ metadata: { thread: "packed-thread" },
144
+ })))
145
+ const admitted = await Promise.all(sessions.map(session => opencode.sessions.prompt({
146
+ sessionID: session.id,
147
+ text: "Packed prompt",
148
+ resume: false,
149
+ })))
150
+ if (this.configurations !== 1 || admitted.some(item => item.payload.text !== "Packed prompt:packed-thread")) {
151
+ throw new Error("Packed instance configuration did not share or prepare prompts correctly")
152
+ }
153
+ await opencode.alarm()
154
+ return Response.json(await opencode.server.info())
155
+ }
156
+
157
+ async alarm() {
158
+ const opencode = await this.opencode
159
+ await opencode.alarm()
160
+ }
161
+ }
162
+
163
+ export default {
164
+ fetch(request, env) {
165
+ return env.OPENCODE.get(env.OPENCODE.idFromName("packed-consumer")).fetch(request)
166
+ },
167
+ }
168
+ `,
169
+ ),
170
+ Bun.write(
171
+ join(consumer, "boot.mjs"),
172
+ `import { Miniflare } from "miniflare"
173
+ import { fileURLToPath } from "node:url"
174
+
175
+ const miniflare = new Miniflare({
176
+ compatibilityDate: "2026-07-15",
177
+ compatibilityFlags: ["nodejs_compat"],
178
+ modules: true,
179
+ scriptPath: fileURLToPath(new URL("./dist/worker.js", import.meta.url)),
180
+ durableObjects: { OPENCODE: { className: "OpenCodeDO", useSQLite: true } },
181
+ })
182
+
183
+ try {
184
+ const response = await miniflare.dispatchFetch("http://opencode.local/health")
185
+ if (response.status !== 200) throw new Error(
186
+ "Packed workerd health returned " + response.status + ": " + await response.text(),
187
+ )
188
+ const body = await response.json()
189
+ if (body.version !== "packed-workerd" || body.pid !== 1 || !Array.isArray(body.urls)) {
190
+ throw new Error("Unexpected packed workerd health: " + JSON.stringify(body))
191
+ }
192
+ } finally {
193
+ await miniflare.dispose()
194
+ }
195
+ `,
196
+ ),
197
+ Bun.write(
198
+ join(consumer, "imports.mjs"),
199
+ `const modules = await Promise.all([
200
+ import("@zyro-sec/sdk"),
201
+ import("@zyro-sec/sdk/effect"),
202
+ import("@zyro-sec/sdk/workerd"),
203
+ import("@zyro-sec/sdk/workerd/effect"),
204
+ ])
205
+
206
+ for (const module of modules) {
207
+ const api = module.OpenCode ?? module.OpenCodeWorkerd
208
+ if (typeof api?.create !== "function") throw new Error("Packed SDK entrypoint is missing create()")
209
+ }
210
+ `,
211
+ ),
212
+ ])
213
+
214
+ const sdk = archives.get("@zyro-sec/sdk")
215
+ if (!sdk) throw new Error("Packed SDK archive was not created")
216
+ await $`npm install --ignore-scripts --no-audit --no-fund --package-lock=false ${sdk} wrangler@4.110.0`.cwd(consumer)
217
+ const runtimes = (await $`npm ls effect --all --parseable`.cwd(consumer).text()).trim().split("\n")
218
+ if (runtimes.length !== 1) {
219
+ throw new Error(`Packed SDK consumer resolved multiple Effect runtimes:\n${runtimes.join("\n")}`)
220
+ }
221
+ await $`bun imports.mjs`.cwd(consumer)
222
+ await $`node imports.mjs`.cwd(consumer)
223
+ await $`bun --conditions=workerd imports.mjs`.cwd(consumer)
224
+ await $`node_modules/.bin/wrangler deploy --dry-run --config wrangler.jsonc --outdir dist`.cwd(consumer)
225
+
226
+ const transpiler = new Bun.Transpiler({ loader: "js" })
227
+ const bundled = await Bun.file(join(consumer, "dist/worker.js")).text()
228
+ // Quoted strings are skipped: an error message naming `Bun.write` isn't a reference to the global.
229
+ const code = bundled.replace(/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/g, '""')
230
+ const bunGlobals = Array.from(new Set(code.match(/\bBun\.[A-Za-z_$][\w$]*/g) ?? []))
231
+ if (bunGlobals.length > 0) throw new Error(`Packed workerd bundle references Bun globals: ${bunGlobals.join(", ")}`)
232
+ const leaked = [
233
+ ...transpiler
234
+ .scanImports(bundled)
235
+ .filter((imported) => imported.kind !== "dynamic-import")
236
+ .map((imported) => imported.path),
237
+ ...Array.from(bundled.matchAll(/\brequire\(\s*["']([^"']+)["']\s*\)/g), (match) => match[1]),
238
+ ].filter((specifier) => specifier === "bun" || specifier.startsWith("bun:"))
239
+ if (leaked.length > 0) throw new Error(`Packed workerd bundle statically imports Bun builtins: ${leaked.join(", ")}`)
240
+
241
+ // Boot in workerd to catch eager Node initializers; lazy createRequire calls
242
+ // in native-only code are valid and must not fail a bundle-wide text check.
243
+ await $`node boot.mjs`.cwd(consumer)
244
+ console.log("packed SDK consumer OK")
245
+ } finally {
246
+ await rm(temporary, { recursive: true, force: true })
247
+ }
248
+
249
+ function output(name: string, value: string, types = false) {
250
+ const root = name === "core" && types ? "./dist/types/" : "./dist/"
251
+ return value.replace("./src/", root).replace(/\.ts$/, types ? ".d.ts" : ".js")
252
+ }
package/src/contracts.ts CHANGED
@@ -1,26 +1,26 @@
1
- export { Agent } from "@zyro-sec/schema/agent"
2
- export { Command } from "@zyro-sec/schema/command"
3
- export { Config } from "@zyro-sec/schema/config"
4
- export { Credential } from "@zyro-sec/schema/credential"
5
- export { Event } from "@zyro-sec/schema/event"
6
- export { FileSystem } from "@zyro-sec/schema/filesystem"
7
- export { Integration } from "@zyro-sec/schema/integration"
8
- export { Location } from "@zyro-sec/schema/location"
9
- export { Model } from "@zyro-sec/schema/model"
10
- export { Permission } from "@zyro-sec/schema/permission"
11
- export { PermissionSaved } from "@zyro-sec/schema/permission-saved"
12
- export { Project } from "@zyro-sec/schema/project"
13
- export { Worktree } from "@zyro-sec/schema/worktree"
14
- export { Prompt } from "@zyro-sec/schema/prompt"
15
- export { PromptInput } from "@zyro-sec/schema/prompt-input"
16
- export { Provider } from "@zyro-sec/schema/provider"
17
- export { Pty } from "@zyro-sec/schema/pty"
18
- export { Question } from "@zyro-sec/schema/question"
19
- export { Reference } from "@zyro-sec/schema/reference"
20
- export { WebSearch } from "@zyro-sec/schema/websearch"
21
- export { AbsolutePath, RelativePath } from "@zyro-sec/schema/schema"
22
- export { Session } from "@zyro-sec/schema/session"
23
- export { SessionInbox } from "@zyro-sec/schema/session-inbox"
24
- export { SessionMessage } from "@zyro-sec/schema/session-message"
25
- export { Skill } from "@zyro-sec/schema/skill"
26
- export { Workspace } from "@zyro-sec/schema/workspace"
1
+ export { Agent } from "@zyro-sec/schema/agent"
2
+ export { Command } from "@zyro-sec/schema/command"
3
+ export { Config } from "@zyro-sec/schema/config"
4
+ export { Credential } from "@zyro-sec/schema/credential"
5
+ export { Event } from "@zyro-sec/schema/event"
6
+ export { FileSystem } from "@zyro-sec/schema/filesystem"
7
+ export { Integration } from "@zyro-sec/schema/integration"
8
+ export { Location } from "@zyro-sec/schema/location"
9
+ export { Model } from "@zyro-sec/schema/model"
10
+ export { Permission } from "@zyro-sec/schema/permission"
11
+ export { PermissionSaved } from "@zyro-sec/schema/permission-saved"
12
+ export { Project } from "@zyro-sec/schema/project"
13
+ export { Worktree } from "@zyro-sec/schema/worktree"
14
+ export { Prompt } from "@zyro-sec/schema/prompt"
15
+ export { PromptInput } from "@zyro-sec/schema/prompt-input"
16
+ export { Provider } from "@zyro-sec/schema/provider"
17
+ export { Pty } from "@zyro-sec/schema/pty"
18
+ export { Question } from "@zyro-sec/schema/question"
19
+ export { Reference } from "@zyro-sec/schema/reference"
20
+ export { WebSearch } from "@zyro-sec/schema/websearch"
21
+ export { AbsolutePath, RelativePath } from "@zyro-sec/schema/schema"
22
+ export { Session } from "@zyro-sec/schema/session"
23
+ export { SessionInbox } from "@zyro-sec/schema/session-inbox"
24
+ export { SessionMessage } from "@zyro-sec/schema/session-message"
25
+ export { Skill } from "@zyro-sec/schema/skill"
26
+ export { Workspace } from "@zyro-sec/schema/workspace"
@@ -1,11 +1,11 @@
1
- export * as OpenCode from "./opencode"
2
- export * as Tool from "./tool"
3
- export { EnvironmentDriver } from "@zyro-sec/core/environment/driver"
4
- export { EnvironmentFiles } from "@zyro-sec/core/environment/files"
5
- export { Identity } from "@zyro-sec/core/machine/identity"
6
- export { WorkerClient } from "@zyro-sec/core/machine/worker-client"
7
- export { WorkspaceDriver } from "@zyro-sec/core/workspace/driver"
8
-
9
- export { ClientError } from "@zyro-sec/client/effect"
10
- export type { OpenCodeEvent } from "@zyro-sec/client/effect"
11
- export * from "../contracts"
1
+ export * as OpenCode from "./opencode"
2
+ export * as Tool from "./tool"
3
+ export { EnvironmentDriver } from "@zyro-sec/core/environment/driver"
4
+ export { EnvironmentFiles } from "@zyro-sec/core/environment/files"
5
+ export { Identity } from "@zyro-sec/core/machine/identity"
6
+ export { WorkerClient } from "@zyro-sec/core/machine/worker-client"
7
+ export { WorkspaceDriver } from "@zyro-sec/core/workspace/driver"
8
+
9
+ export { ClientError } from "@zyro-sec/client/effect"
10
+ export type { OpenCodeEvent } from "@zyro-sec/client/effect"
11
+ export * from "../contracts"