@opencode-ai/client 0.0.0-dev-19017 → 0.0.0-dev-19019

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.
@@ -443,7 +443,7 @@ export function createData(config) {
443
443
  .location.get({ location: locationQuery(defaultLocation()) })
444
444
  .then((location) => {
445
445
  const key = locationKey(location);
446
- setStore("location", key, { ...store.location[key], info: location });
446
+ setStore("location", key, { info: location });
447
447
  })
448
448
  .catch((error) => console.error("Failed to preload location", error));
449
449
  void result.location.vcs.sync().catch((error) => console.error("Failed to preload VCS info", error));
@@ -994,7 +994,6 @@ export function createData(config) {
994
994
  return;
995
995
  }
996
996
  setStore("location", key, (data) => ({
997
- ...data,
998
997
  integration: data?.integration?.map((integration) => {
999
998
  if (integration.id !== event.data.integrationID)
1000
999
  return integration;
@@ -1036,7 +1035,6 @@ export function createData(config) {
1036
1035
  break;
1037
1036
  case "vcs.branch.updated":
1038
1037
  setStore("location", locationKey(location), (data) => ({
1039
- ...data,
1040
1038
  vcs: {
1041
1039
  branch: {
1042
1040
  ...data?.vcs?.branch,
@@ -1055,7 +1053,6 @@ export function createData(config) {
1055
1053
  break;
1056
1054
  case "shell.created":
1057
1055
  setStore("location", locationKey(location), (data) => ({
1058
- ...data,
1059
1056
  shell: {
1060
1057
  ...data?.shell,
1061
1058
  [event.data.info.id]: { ...event.data.info, location },
@@ -1065,7 +1062,6 @@ export function createData(config) {
1065
1062
  case "shell.exited":
1066
1063
  case "shell.deleted":
1067
1064
  setStore("location", locationKey(location), (data) => ({
1068
- ...data,
1069
1065
  shell: Object.fromEntries(Object.entries(data?.shell ?? {}).filter(([id]) => id !== event.data.id)),
1070
1066
  }));
1071
1067
  break;
@@ -1666,10 +1662,7 @@ export function createData(config) {
1666
1662
  const input = { location: locationQuery(ref ?? defaultLocation()) };
1667
1663
  const providers = await api().websearch.providers(input);
1668
1664
  const key = locationKey(providers.location);
1669
- setStore("location", key, {
1670
- ...store.location[key],
1671
- websearch: providers.data,
1672
- });
1665
+ setStore("location", key, { websearch: providers.data });
1673
1666
  },
1674
1667
  },
1675
1668
  skill: locationResource("skill", (location) => api().skill.list({ location })),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/client",
4
- "version": "0.0.0-dev-19017",
4
+ "version": "0.0.0-dev-19019",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -57,8 +57,8 @@
57
57
  "typecheck": "tsgo --noEmit"
58
58
  },
59
59
  "dependencies": {
60
- "@opencode-ai/schema": "0.0.0-dev-19017",
61
- "@opencode-ai/protocol": "0.0.0-dev-19017"
60
+ "@opencode-ai/schema": "0.0.0-dev-19019",
61
+ "@opencode-ai/protocol": "0.0.0-dev-19019"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.112",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.112",
77
- "@opencode-ai/httpapi-codegen": "0.0.0-dev-19017",
77
+ "@opencode-ai/httpapi-codegen": "0.0.0-dev-19019",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.3.13",
80
80
  "@typescript/native-preview": "7.0.0-dev.20251207.1",