alchemylab-opencode 1.0.4 → 1.0.5

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.
Files changed (53) hide show
  1. package/build.mjs +11 -1
  2. package/dist/{chunk-KMHCMDYS.js → chunk-ANDTK76Q.js} +14 -4
  3. package/dist/{chunk-KMHCMDYS.js.map → chunk-ANDTK76Q.js.map} +1 -1
  4. package/dist/{chunk-CMAI7CAJ.js → chunk-B3FN2B2N.js} +14 -4
  5. package/dist/{chunk-CMAI7CAJ.js.map → chunk-B3FN2B2N.js.map} +1 -1
  6. package/dist/chunk-BI5OUHTQ.js +31 -0
  7. package/dist/{chunk-P44FI4UK.js.map → chunk-BI5OUHTQ.js.map} +1 -1
  8. package/dist/{chunk-FPPWDLO7.js → chunk-CR6IREZA.js} +12 -2
  9. package/dist/{chunk-FPPWDLO7.js.map → chunk-CR6IREZA.js.map} +1 -1
  10. package/dist/{chunk-K4ME3WTI.js → chunk-CYXMV3J3.js} +18 -8
  11. package/dist/{chunk-K4ME3WTI.js.map → chunk-CYXMV3J3.js.map} +1 -1
  12. package/dist/{chunk-NBI23JB4.js → chunk-DSPC5QIG.js} +24 -14
  13. package/dist/{chunk-NBI23JB4.js.map → chunk-DSPC5QIG.js.map} +1 -1
  14. package/dist/{chunk-7JG6KCBC.js → chunk-HORZKFCR.js} +11 -1
  15. package/dist/{chunk-SM4I7RU4.js → chunk-MCWTARFP.js} +15 -5
  16. package/dist/{chunk-SM4I7RU4.js.map → chunk-MCWTARFP.js.map} +1 -1
  17. package/dist/{chunk-WCK3PNT7.js → chunk-UWZSRZHA.js} +20 -10
  18. package/dist/{chunk-WCK3PNT7.js.map → chunk-UWZSRZHA.js.map} +1 -1
  19. package/dist/mcp-VAU4RMWH.js +22 -0
  20. package/dist/pty.node-RHOAUGH6.js +40 -0
  21. package/dist/{pty.node-IR7ZMJYY.js.map → pty.node-RHOAUGH6.js.map} +1 -1
  22. package/dist/registry-PYMN6L3G.js +23 -0
  23. package/dist/{run-HRWKT4NL.js → run-YFVCQJQM.js} +20 -10
  24. package/dist/{run-HRWKT4NL.js.map → run-YFVCQJQM.js.map} +1 -1
  25. package/dist/run-service-LHEVFBIU.js +22 -0
  26. package/dist/run.js +11 -1
  27. package/dist/run.js.map +1 -1
  28. package/dist/schema-32EBFLEO.js +24 -0
  29. package/dist/serve.js +11 -1
  30. package/dist/serve.js.map +1 -1
  31. package/dist/server-K3UGWASP.js +26 -0
  32. package/dist/session-HJFWTM7C.js +23 -0
  33. package/dist/share-next-55VCIMUH.js +24 -0
  34. package/dist/{worktree-E5I74P2A.js → worktree-6GGDLADY.js} +19 -9
  35. package/dist/{worktree-E5I74P2A.js.map → worktree-6GGDLADY.js.map} +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunk-P44FI4UK.js +0 -21
  38. package/dist/mcp-6ID7DRNS.js +0 -12
  39. package/dist/pty.node-IR7ZMJYY.js +0 -30
  40. package/dist/registry-O4THPVFS.js +0 -13
  41. package/dist/run-service-23VXHTA6.js +0 -12
  42. package/dist/schema-YARWYUAH.js +0 -14
  43. package/dist/server-MHSLBRNZ.js +0 -16
  44. package/dist/session-3UEFY5NC.js +0 -13
  45. package/dist/share-next-Q5WQ2ELY.js +0 -14
  46. /package/dist/{chunk-7JG6KCBC.js.map → chunk-HORZKFCR.js.map} +0 -0
  47. /package/dist/{mcp-6ID7DRNS.js.map → mcp-VAU4RMWH.js.map} +0 -0
  48. /package/dist/{registry-O4THPVFS.js.map → registry-PYMN6L3G.js.map} +0 -0
  49. /package/dist/{run-service-23VXHTA6.js.map → run-service-LHEVFBIU.js.map} +0 -0
  50. /package/dist/{schema-YARWYUAH.js.map → schema-32EBFLEO.js.map} +0 -0
  51. /package/dist/{server-MHSLBRNZ.js.map → server-K3UGWASP.js.map} +0 -0
  52. /package/dist/{session-3UEFY5NC.js.map → session-HJFWTM7C.js.map} +0 -0
  53. /package/dist/{share-next-Q5WQ2ELY.js.map → share-next-55VCIMUH.js.map} +0 -0
@@ -1,4 +1,14 @@
1
1
  // Built by esbuild from opencode-server source
2
+ if (typeof globalThis.Bun === 'undefined') {
3
+ globalThis.Bun = {
4
+ version: '0.0.0-node-compat',
5
+ stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
+ which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
+ };
8
+ }
9
+ if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
+ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
+
2
12
  import {
3
13
  Auth,
4
14
  Bus,
@@ -26,7 +36,7 @@ import {
26
36
  spawn,
27
37
  withTimeout,
28
38
  withTransientReadRetry
29
- } from "./chunk-K4ME3WTI.js";
39
+ } from "./chunk-CYXMV3J3.js";
30
40
  import {
31
41
  AppFileSystem,
32
42
  BusEvent,
@@ -54,22 +64,22 @@ import {
54
64
  makeRuntime,
55
65
  runPromiseExit,
56
66
  which
57
- } from "./chunk-CMAI7CAJ.js";
67
+ } from "./chunk-B3FN2B2N.js";
58
68
  import {
59
69
  Identifier,
60
70
  MessageID,
61
71
  PartID,
62
72
  SessionID
63
- } from "./chunk-FPPWDLO7.js";
73
+ } from "./chunk-CR6IREZA.js";
64
74
  import {
65
75
  Newtype,
66
76
  withStatics
67
- } from "./chunk-P44FI4UK.js";
77
+ } from "./chunk-BI5OUHTQ.js";
68
78
  import {
69
79
  __callDispose,
70
80
  __export,
71
81
  __using
72
- } from "./chunk-7JG6KCBC.js";
82
+ } from "./chunk-HORZKFCR.js";
73
83
 
74
84
  // packages/opencode/src/tool/plan.ts
75
85
  import z40 from "zod";
@@ -6766,7 +6776,7 @@ var Plugin;
6766
6776
  const state = yield* InstanceState.make(
6767
6777
  Effect11.fn("Plugin.state")(function* (ctx) {
6768
6778
  const hooks = [];
6769
- const { Server } = yield* Effect11.promise(() => import("./server-MHSLBRNZ.js"));
6779
+ const { Server } = yield* Effect11.promise(() => import("./server-K3UGWASP.js"));
6770
6780
  const client2 = createOpencodeClient({
6771
6781
  baseUrl: "http://localhost:4096",
6772
6782
  directory: ctx.directory,
@@ -12732,7 +12742,7 @@ var Skill;
12732
12742
  Effect15.catch(
12733
12743
  Effect15.fnUntraced(function* (err) {
12734
12744
  const message = ConfigMarkdown.FrontmatterError.isInstance(err) ? err.data.message : `Failed to parse skill ${match}`;
12735
- const { Session: Session3 } = yield* Effect15.promise(() => import("./session-3UEFY5NC.js"));
12745
+ const { Session: Session3 } = yield* Effect15.promise(() => import("./session-HJFWTM7C.js"));
12736
12746
  yield* bus.publish(Session3.Event.Error, { error: new NamedError.Unknown({ message }).toObject() });
12737
12747
  log5.error("failed to load skill", { skill: match, err });
12738
12748
  return void 0;
@@ -16343,7 +16353,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
16343
16353
  item.execute = (args, opts) => Effect26.runPromise(
16344
16354
  Effect26.gen(function* () {
16345
16355
  const ctx = context(args, opts);
16346
- const mcpModule = yield* Effect26.promise(() => import("./mcp-6ID7DRNS.js"));
16356
+ const mcpModule = yield* Effect26.promise(() => import("./mcp-VAU4RMWH.js"));
16347
16357
  mcpModule.MCP.currentToolContext = { sessionId: ctx.sessionID, messageId: ctx.messageID };
16348
16358
  yield* plugin.trigger(
16349
16359
  "tool.execute.before",
@@ -17899,7 +17909,7 @@ var Session;
17899
17909
  const cfg = yield* config.get();
17900
17910
  if (cfg.share === "disabled") throw new Error("Sharing is disabled in configuration");
17901
17911
  const result = yield* Effect27.promise(async () => {
17902
- const { ShareNext } = await import("./share-next-Q5WQ2ELY.js");
17912
+ const { ShareNext } = await import("./share-next-55VCIMUH.js");
17903
17913
  return ShareNext.create(id);
17904
17914
  });
17905
17915
  yield* Effect27.sync(() => SyncEvent.run(Session3.Event.Updated, { sessionID: id, info: { share: { url: result.url } } }));
@@ -17907,7 +17917,7 @@ var Session;
17907
17917
  });
17908
17918
  const unshare2 = Effect27.fn("Session.unshare")(function* (id) {
17909
17919
  yield* Effect27.promise(async () => {
17910
- const { ShareNext } = await import("./share-next-Q5WQ2ELY.js");
17920
+ const { ShareNext } = await import("./share-next-55VCIMUH.js");
17911
17921
  await ShareNext.remove(id);
17912
17922
  });
17913
17923
  yield* Effect27.sync(() => SyncEvent.run(Session3.Event.Updated, { sessionID: id, info: { share: { url: null } } }));
@@ -21201,11 +21211,11 @@ Expected payload format:
21201
21211
  [{"tool": "tool_name", "parameters": {...}}, {...}]`;
21202
21212
  },
21203
21213
  async execute(params, ctx) {
21204
- const { Session: Session3 } = await import("./session-3UEFY5NC.js");
21205
- const { PartID: PartID2 } = await import("./schema-YARWYUAH.js");
21214
+ const { Session: Session3 } = await import("./session-HJFWTM7C.js");
21215
+ const { PartID: PartID2 } = await import("./schema-32EBFLEO.js");
21206
21216
  const toolCalls = params.tool_calls.slice(0, 25);
21207
21217
  const discardedCalls = params.tool_calls.slice(25);
21208
- const { ToolRegistry: ToolRegistry2 } = await import("./registry-O4THPVFS.js");
21218
+ const { ToolRegistry: ToolRegistry2 } = await import("./registry-PYMN6L3G.js");
21209
21219
  const availableTools = await ToolRegistry2.tools({ modelID: ModelID.make(""), providerID: ProviderID.make("") });
21210
21220
  const toolMap = new Map(availableTools.map((t) => [t.id, t]));
21211
21221
  const executeCall = async (call) => {
@@ -23718,4 +23728,4 @@ export {
23718
23728
  Session,
23719
23729
  Plugin
23720
23730
  };
23721
- //# sourceMappingURL=chunk-NBI23JB4.js.map
23731
+ //# sourceMappingURL=chunk-DSPC5QIG.js.map