alchemylab-opencode 1.0.8 → 1.0.10

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 (34) hide show
  1. package/dist/{chunk-B3FN2B2N.js → chunk-3PZZ2D23.js} +7 -3
  2. package/dist/chunk-3PZZ2D23.js.map +7 -0
  3. package/dist/{chunk-LU5XVQUD.js → chunk-EGZMJTLE.js} +7 -7
  4. package/dist/{chunk-LU5XVQUD.js.map → chunk-EGZMJTLE.js.map} +2 -2
  5. package/dist/{chunk-23UYOGZG.js → chunk-ORHZOVWK.js} +6 -6
  6. package/dist/{chunk-TASPMBUL.js → chunk-SV5NEV33.js} +5 -5
  7. package/dist/{chunk-SM6WZDN6.js → chunk-UKQIL5XA.js} +18 -12
  8. package/dist/chunk-UKQIL5XA.js.map +7 -0
  9. package/dist/{chunk-GSE2T5UY.js → chunk-ZFHDPNFZ.js} +4 -4
  10. package/dist/{mcp-XFGN3FWW.js → mcp-66BBNSWA.js} +3 -3
  11. package/dist/{registry-W4MBVBYD.js → registry-YVL3V6Z6.js} +4 -4
  12. package/dist/{run-73HUV4H3.js → run-65PIGE2A.js} +7 -7
  13. package/dist/{run-service-LHEVFBIU.js → run-service-AYATGPA6.js} +2 -2
  14. package/dist/run.js +1 -1
  15. package/dist/serve.js +1 -1
  16. package/dist/{server-2CPOG3LS.js → server-KCG3B4WQ.js} +7 -7
  17. package/dist/{session-M6HOZ56B.js → session-BR5MTI3X.js} +4 -4
  18. package/dist/{share-next-QRBVSD37.js → share-next-EPYQDJ32.js} +5 -5
  19. package/dist/{worktree-3GUHT2P7.js → worktree-PIVTZBUE.js} +6 -6
  20. package/package.json +1 -1
  21. package/packages/opencode/migration/20260409000000_add_session_metadata/migration.sql +1 -0
  22. package/dist/chunk-B3FN2B2N.js.map +0 -7
  23. package/dist/chunk-SM6WZDN6.js.map +0 -7
  24. /package/dist/{chunk-23UYOGZG.js.map → chunk-ORHZOVWK.js.map} +0 -0
  25. /package/dist/{chunk-TASPMBUL.js.map → chunk-SV5NEV33.js.map} +0 -0
  26. /package/dist/{chunk-GSE2T5UY.js.map → chunk-ZFHDPNFZ.js.map} +0 -0
  27. /package/dist/{mcp-XFGN3FWW.js.map → mcp-66BBNSWA.js.map} +0 -0
  28. /package/dist/{registry-W4MBVBYD.js.map → registry-YVL3V6Z6.js.map} +0 -0
  29. /package/dist/{run-73HUV4H3.js.map → run-65PIGE2A.js.map} +0 -0
  30. /package/dist/{run-service-LHEVFBIU.js.map → run-service-AYATGPA6.js.map} +0 -0
  31. /package/dist/{server-2CPOG3LS.js.map → server-KCG3B4WQ.js.map} +0 -0
  32. /package/dist/{session-M6HOZ56B.js.map → session-BR5MTI3X.js.map} +0 -0
  33. /package/dist/{share-next-QRBVSD37.js.map → share-next-EPYQDJ32.js.map} +0 -0
  34. /package/dist/{worktree-3GUHT2P7.js.map → worktree-PIVTZBUE.js.map} +0 -0
@@ -14,7 +14,7 @@ import {
14
14
  Vcs,
15
15
  WorkspaceInfo,
16
16
  Worktree
17
- } from "./chunk-TASPMBUL.js";
17
+ } from "./chunk-SV5NEV33.js";
18
18
  import {
19
19
  toOpenAPISchema
20
20
  } from "./chunk-3AF5MXLF.js";
@@ -48,7 +48,7 @@ import {
48
48
  ToolRegistry,
49
49
  WorkspaceID,
50
50
  fn
51
- } from "./chunk-SM6WZDN6.js";
51
+ } from "./chunk-UKQIL5XA.js";
52
52
  import {
53
53
  Account,
54
54
  AccountID,
@@ -60,7 +60,7 @@ import {
60
60
  ModelsDev,
61
61
  OrgID,
62
62
  TuiEvent
63
- } from "./chunk-LU5XVQUD.js";
63
+ } from "./chunk-EGZMJTLE.js";
64
64
  import {
65
65
  BusEvent,
66
66
  Database,
@@ -82,7 +82,7 @@ import {
82
82
  db_exports,
83
83
  lazy,
84
84
  makeRuntime
85
- } from "./chunk-B3FN2B2N.js";
85
+ } from "./chunk-3PZZ2D23.js";
86
86
  import {
87
87
  Identifier,
88
88
  MessageID,
@@ -626,7 +626,7 @@ import { createNodeWebSocket as createNodeWebSocket2 } from "@hono/node-ws";
626
626
 
627
627
  // packages/opencode/src/control-plane/adaptors/index.ts
628
628
  var ADAPTORS = {
629
- worktree: lazy(async () => (await import("./worktree-3GUHT2P7.js")).WorktreeAdaptor)
629
+ worktree: lazy(async () => (await import("./worktree-PIVTZBUE.js")).WorktreeAdaptor)
630
630
  };
631
631
  function getAdaptor(type) {
632
632
  return ADAPTORS[type]();
@@ -5524,4 +5524,4 @@ var Server;
5524
5524
  export {
5525
5525
  Server
5526
5526
  };
5527
- //# sourceMappingURL=chunk-23UYOGZG.js.map
5527
+ //# sourceMappingURL=chunk-ORHZOVWK.js.map
@@ -11,7 +11,7 @@ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) =
11
11
 
12
12
  import {
13
13
  ShareNext
14
- } from "./chunk-GSE2T5UY.js";
14
+ } from "./chunk-ZFHDPNFZ.js";
15
15
  import {
16
16
  Command,
17
17
  File,
@@ -23,11 +23,11 @@ import {
23
23
  Slug,
24
24
  Snapshot,
25
25
  WorkspaceID
26
- } from "./chunk-SM6WZDN6.js";
26
+ } from "./chunk-UKQIL5XA.js";
27
27
  import {
28
28
  Bus,
29
29
  errorMessage
30
- } from "./chunk-LU5XVQUD.js";
30
+ } from "./chunk-EGZMJTLE.js";
31
31
  import {
32
32
  AppFileSystem,
33
33
  BusEvent,
@@ -44,7 +44,7 @@ import {
44
44
  db_exports,
45
45
  defaultLayer,
46
46
  makeRuntime
47
- } from "./chunk-B3FN2B2N.js";
47
+ } from "./chunk-3PZZ2D23.js";
48
48
 
49
49
  // packages/opencode/src/worktree/index.ts
50
50
  import z2 from "zod";
@@ -725,4 +725,4 @@ export {
725
725
  Worktree,
726
726
  WorkspaceInfo
727
727
  };
728
- //# sourceMappingURL=chunk-TASPMBUL.js.map
728
+ //# sourceMappingURL=chunk-SV5NEV33.js.map
@@ -36,7 +36,7 @@ import {
36
36
  spawn,
37
37
  withTimeout,
38
38
  withTransientReadRetry
39
- } from "./chunk-LU5XVQUD.js";
39
+ } from "./chunk-EGZMJTLE.js";
40
40
  import {
41
41
  AppFileSystem,
42
42
  BusEvent,
@@ -64,7 +64,7 @@ import {
64
64
  makeRuntime,
65
65
  runPromiseExit,
66
66
  which
67
- } from "./chunk-B3FN2B2N.js";
67
+ } from "./chunk-3PZZ2D23.js";
68
68
  import {
69
69
  Identifier,
70
70
  MessageID,
@@ -6776,7 +6776,7 @@ var Plugin;
6776
6776
  const state = yield* InstanceState.make(
6777
6777
  Effect11.fn("Plugin.state")(function* (ctx) {
6778
6778
  const hooks = [];
6779
- const { Server } = yield* Effect11.promise(() => import("./server-2CPOG3LS.js"));
6779
+ const { Server } = yield* Effect11.promise(() => import("./server-KCG3B4WQ.js"));
6780
6780
  const client2 = createOpencodeClient({
6781
6781
  baseUrl: "http://localhost:4096",
6782
6782
  directory: ctx.directory,
@@ -12742,7 +12742,7 @@ var Skill;
12742
12742
  Effect15.catch(
12743
12743
  Effect15.fnUntraced(function* (err) {
12744
12744
  const message = ConfigMarkdown.FrontmatterError.isInstance(err) ? err.data.message : `Failed to parse skill ${match}`;
12745
- const { Session: Session3 } = yield* Effect15.promise(() => import("./session-M6HOZ56B.js"));
12745
+ const { Session: Session3 } = yield* Effect15.promise(() => import("./session-BR5MTI3X.js"));
12746
12746
  yield* bus.publish(Session3.Event.Error, { error: new NamedError.Unknown({ message }).toObject() });
12747
12747
  log5.error("failed to load skill", { skill: match, err });
12748
12748
  return void 0;
@@ -16353,7 +16353,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
16353
16353
  item.execute = (args, opts) => Effect26.runPromise(
16354
16354
  Effect26.gen(function* () {
16355
16355
  const ctx = context(args, opts);
16356
- const mcpModule = yield* Effect26.promise(() => import("./mcp-XFGN3FWW.js"));
16356
+ const mcpModule = yield* Effect26.promise(() => import("./mcp-66BBNSWA.js"));
16357
16357
  mcpModule.MCP.currentToolContext = { sessionId: ctx.sessionID, messageId: ctx.messageID };
16358
16358
  yield* plugin.trigger(
16359
16359
  "tool.execute.before",
@@ -17671,6 +17671,7 @@ var Session;
17671
17671
  summary,
17672
17672
  share: share2,
17673
17673
  revert,
17674
+ metadata: row.metadata ?? void 0,
17674
17675
  permission: row.permission ?? void 0,
17675
17676
  time: {
17676
17677
  created: row.time_created,
@@ -17697,6 +17698,7 @@ var Session;
17697
17698
  summary_files: info.summary?.files,
17698
17699
  summary_diffs: info.summary?.diffs,
17699
17700
  revert: info.revert ?? null,
17701
+ metadata: info.metadata ?? null,
17700
17702
  permission: info.permission,
17701
17703
  time_created: info.time.created,
17702
17704
  time_updated: info.time.updated,
@@ -17738,6 +17740,7 @@ var Session;
17738
17740
  compacting: z39.number().optional(),
17739
17741
  archived: z39.number().optional()
17740
17742
  }),
17743
+ metadata: z39.record(z39.string(), z39.unknown()).optional(),
17741
17744
  permission: Permission.Ruleset.optional(),
17742
17745
  revert: z39.object({
17743
17746
  messageID: MessageID.zod,
@@ -17880,6 +17883,7 @@ var Session;
17880
17883
  workspaceID: input.workspaceID,
17881
17884
  parentID: input.parentID,
17882
17885
  title: input.title ?? createDefaultTitle(!!input.parentID),
17886
+ metadata: input.metadata,
17883
17887
  permission: input.permission,
17884
17888
  time: {
17885
17889
  created: Date.now(),
@@ -17909,7 +17913,7 @@ var Session;
17909
17913
  const cfg = yield* config.get();
17910
17914
  if (cfg.share === "disabled") throw new Error("Sharing is disabled in configuration");
17911
17915
  const result = yield* Effect27.promise(async () => {
17912
- const { ShareNext } = await import("./share-next-QRBVSD37.js");
17916
+ const { ShareNext } = await import("./share-next-EPYQDJ32.js");
17913
17917
  return ShareNext.create(id);
17914
17918
  });
17915
17919
  yield* Effect27.sync(() => SyncEvent.run(Session3.Event.Updated, { sessionID: id, info: { share: { url: result.url } } }));
@@ -17917,7 +17921,7 @@ var Session;
17917
17921
  });
17918
17922
  const unshare2 = Effect27.fn("Session.unshare")(function* (id) {
17919
17923
  yield* Effect27.promise(async () => {
17920
- const { ShareNext } = await import("./share-next-QRBVSD37.js");
17924
+ const { ShareNext } = await import("./share-next-EPYQDJ32.js");
17921
17925
  await ShareNext.remove(id);
17922
17926
  });
17923
17927
  yield* Effect27.sync(() => SyncEvent.run(Session3.Event.Updated, { sessionID: id, info: { share: { url: null } } }));
@@ -17966,7 +17970,8 @@ var Session;
17966
17970
  directory,
17967
17971
  title: input?.title,
17968
17972
  permission: input?.permission,
17969
- workspaceID: input?.workspaceID
17973
+ workspaceID: input?.workspaceID,
17974
+ metadata: input?.metadata
17970
17975
  });
17971
17976
  });
17972
17977
  const fork2 = Effect27.fn("Session.fork")(function* (input) {
@@ -18101,7 +18106,8 @@ var Session;
18101
18106
  parentID: SessionID.zod.optional(),
18102
18107
  title: z39.string().optional(),
18103
18108
  permission: Session3.Info.shape.permission,
18104
- workspaceID: WorkspaceID.zod.optional()
18109
+ workspaceID: WorkspaceID.zod.optional(),
18110
+ metadata: z39.record(z39.string(), z39.unknown()).optional()
18105
18111
  }).optional(),
18106
18112
  (input) => runPromise((svc) => svc.create(input))
18107
18113
  );
@@ -21211,11 +21217,11 @@ Expected payload format:
21211
21217
  [{"tool": "tool_name", "parameters": {...}}, {...}]`;
21212
21218
  },
21213
21219
  async execute(params, ctx) {
21214
- const { Session: Session3 } = await import("./session-M6HOZ56B.js");
21220
+ const { Session: Session3 } = await import("./session-BR5MTI3X.js");
21215
21221
  const { PartID: PartID2 } = await import("./schema-32EBFLEO.js");
21216
21222
  const toolCalls = params.tool_calls.slice(0, 25);
21217
21223
  const discardedCalls = params.tool_calls.slice(25);
21218
- const { ToolRegistry: ToolRegistry2 } = await import("./registry-W4MBVBYD.js");
21224
+ const { ToolRegistry: ToolRegistry2 } = await import("./registry-YVL3V6Z6.js");
21219
21225
  const availableTools = await ToolRegistry2.tools({ modelID: ModelID.make(""), providerID: ProviderID.make("") });
21220
21226
  const toolMap = new Map(availableTools.map((t) => [t.id, t]));
21221
21227
  const executeCall = async (call) => {
@@ -23728,4 +23734,4 @@ export {
23728
23734
  Session,
23729
23735
  Plugin
23730
23736
  };
23731
- //# sourceMappingURL=chunk-SM6WZDN6.js.map
23737
+ //# sourceMappingURL=chunk-UKQIL5XA.js.map