kimaki 0.10.0 → 0.10.1

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.
@@ -950,7 +950,7 @@ export class ThreadSessionRuntime {
950
950
  continue;
951
951
  }
952
952
  const subscribeResult = await errore.tryAsync(() => {
953
- return client.global.event({ signal });
953
+ return client.event.subscribe({ directory: this.sdkDirectory }, { signal });
954
954
  });
955
955
  if (subscribeResult instanceof Error) {
956
956
  if (isAbortError(subscribeResult)) {
@@ -970,15 +970,7 @@ export class ThreadSessionRuntime {
970
970
  // parts that arrived while we were disconnected.
971
971
  await this.bootstrapSentPartIds();
972
972
  const iterResult = await errore.tryAsync(async () => {
973
- for await (const rawEvent of events) {
974
- const event = (rawEvent &&
975
- typeof rawEvent === 'object' &&
976
- 'payload' in rawEvent
977
- ? rawEvent.payload
978
- : rawEvent); // GlobalEvent includes Sync* variants (SyncEventMessageUpdated, SyncEventSessionCreated, etc.) that aren't in Event. We don't handle those, so this cast is safe.
979
- if (!event || typeof event !== 'object' || !('type' in event)) {
980
- continue;
981
- }
973
+ for await (const event of events) {
982
974
  // Each event is dispatched through the serialized action queue
983
975
  // to prevent interleaving mutations from concurrent events.
984
976
  await this.dispatchAction(() => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "kimaki",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.10.0",
5
+ "version": "0.10.1",
6
6
  "repository": "https://github.com/remorses/kimaki",
7
7
  "bin": "bin.js",
8
8
  "files": [
@@ -24,8 +24,8 @@
24
24
  "lintcn": "^0.7.1",
25
25
  "tsx": "^4.20.5",
26
26
  "undici": "^8.0.2",
27
- "db": "^0.0.0",
28
27
  "discord-digital-twin": "^0.1.0",
28
+ "db": "^0.0.0",
29
29
  "opencode-cached-provider": "^0.0.1",
30
30
  "opencode-deterministic-provider": "^0.0.1"
31
31
  },
@@ -52,6 +52,7 @@
52
52
  "libsql": "^0.5.22",
53
53
  "marked": "^17.0.5",
54
54
  "mime": "^4.1.0",
55
+ "opencode-ai": "1.14.41",
55
56
  "opusscript": "^0.0.8",
56
57
  "picocolors": "^1.1.1",
57
58
  "pretty-ms": "^9.3.0",
@@ -63,8 +64,8 @@
63
64
  "zod": "^4.3.6",
64
65
  "zustand": "^5.0.11",
65
66
  "errore": "^0.14.1",
66
- "libsqlproxy": "^0.1.0",
67
67
  "opencode-injection-guard": "^0.2.1",
68
+ "libsqlproxy": "^0.1.0",
68
69
  "traforo": "^0.5.0"
69
70
  },
70
71
  "optionalDependencies": {
@@ -1397,7 +1397,10 @@ export class ThreadSessionRuntime {
1397
1397
  continue
1398
1398
  }
1399
1399
  const subscribeResult = await errore.tryAsync(() => {
1400
- return client.global.event({ signal })
1400
+ return client.event.subscribe(
1401
+ { directory: this.sdkDirectory },
1402
+ { signal },
1403
+ )
1401
1404
  })
1402
1405
 
1403
1406
  if (subscribeResult instanceof Error) {
@@ -1427,17 +1430,7 @@ export class ThreadSessionRuntime {
1427
1430
  await this.bootstrapSentPartIds()
1428
1431
 
1429
1432
  const iterResult = await errore.tryAsync(async () => {
1430
- for await (const rawEvent of events) {
1431
- const event = (
1432
- rawEvent &&
1433
- typeof rawEvent === 'object' &&
1434
- 'payload' in rawEvent
1435
- ? rawEvent.payload
1436
- : rawEvent
1437
- ) as OpenCodeEvent // GlobalEvent includes Sync* variants (SyncEventMessageUpdated, SyncEventSessionCreated, etc.) that aren't in Event. We don't handle those, so this cast is safe.
1438
- if (!event || typeof event !== 'object' || !('type' in event)) {
1439
- continue
1440
- }
1433
+ for await (const event of events) {
1441
1434
  // Each event is dispatched through the serialized action queue
1442
1435
  // to prevent interleaving mutations from concurrent events.
1443
1436
  await this.dispatchAction(() => {