@kyo-so/cli 0.4.0 → 0.4.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.
@@ -4,4 +4,4 @@ export declare const DEFAULT_MAX_DIFF_BYTES = 300000;
4
4
  export declare const RAW_OUTPUT_MAX_CHARS = 16384;
5
5
  export declare const TRACE_DIR = ".kyoso/traces";
6
6
  export declare const KYOSO_CHILD_AGENT = "KYOSO_CHILD_AGENT";
7
- export declare const KYOSO_VERSION = "0.4.0";
7
+ export declare const KYOSO_VERSION = "0.4.1";
package/dist/index.js CHANGED
@@ -186738,8 +186738,13 @@ var startActiveSession = Symbol("startActiveSession");
186738
186738
 
186739
186739
  class AcpContext {
186740
186740
  cx;
186741
- constructor(cx) {
186741
+ currentRequestId;
186742
+ constructor(cx, currentRequestId) {
186742
186743
  this.cx = cx;
186744
+ this.currentRequestId = currentRequestId;
186745
+ }
186746
+ get requestId() {
186747
+ return this.currentRequestId;
186743
186748
  }
186744
186749
  get connectionContext() {
186745
186750
  return this.cx;
@@ -186756,11 +186761,11 @@ class AcpContext {
186756
186761
  }
186757
186762
 
186758
186763
  class AgentContext extends AcpContext {
186759
- constructor(cx) {
186760
- super(cx);
186764
+ constructor(cx, requestId) {
186765
+ super(cx, requestId);
186761
186766
  }
186762
- static create(cx) {
186763
- return new AgentContext(cx);
186767
+ static create(cx, requestId) {
186768
+ return new AgentContext(cx, requestId);
186764
186769
  }
186765
186770
  request(method, params, options) {
186766
186771
  const spec = clientRequestSpecsByMethod[method];
@@ -186772,11 +186777,11 @@ class AgentContext extends AcpContext {
186772
186777
  }
186773
186778
 
186774
186779
  class ClientContext extends AcpContext {
186775
- constructor(cx) {
186776
- super(cx);
186780
+ constructor(cx, requestId) {
186781
+ super(cx, requestId);
186777
186782
  }
186778
- static create(cx) {
186779
- return new ClientContext(cx);
186783
+ static create(cx, requestId) {
186784
+ return new ClientContext(cx, requestId);
186780
186785
  }
186781
186786
  [startActiveSession](params, options) {
186782
186787
  return this.sendRequest(AGENT_METHODS.session_new, params, (response) => this.attachSession(response), options);
@@ -187077,7 +187082,7 @@ function notificationSpec(method, params) {
187077
187082
  }
187078
187083
  function registerAppRequest(builder, spec, context, handler) {
187079
187084
  builder.onReceiveRequest(spec.method, (params) => parseParams(spec.params, params), async (params, responder, cx) => {
187080
- const response = await handler(context(params, cx, responder.signal));
187085
+ const response = await handler(context(params, cx, responder.signal, responder.id));
187081
187086
  await responder.respond(spec.mapResponse ? spec.mapResponse(response) : response);
187082
187087
  });
187083
187088
  }
@@ -187141,14 +187146,30 @@ var agentRequestSpecsByMethod = specsByMethod(agentRequestSpecs);
187141
187146
  var agentNotificationSpecsByMethod = specsByMethod(agentNotificationSpecs);
187142
187147
  var clientRequestSpecsByMethod = specsByMethod(clientRequestSpecs);
187143
187148
  var clientNotificationSpecsByMethod = specsByMethod(clientNotificationSpecs);
187144
- function agentHandlerContext(params, client, signal) {
187149
+ function agentRequestContext(params, client, signal, requestId) {
187150
+ return {
187151
+ params,
187152
+ requestId,
187153
+ signal,
187154
+ client
187155
+ };
187156
+ }
187157
+ function agentNotificationContext(params, client, signal) {
187145
187158
  return {
187146
187159
  params,
187147
187160
  signal,
187148
187161
  client
187149
187162
  };
187150
187163
  }
187151
- function clientHandlerContext(params, agent, signal) {
187164
+ function clientRequestContext(params, agent, signal, requestId) {
187165
+ return {
187166
+ params,
187167
+ requestId,
187168
+ signal,
187169
+ agent
187170
+ };
187171
+ }
187172
+ function clientNotificationContext(params, agent, signal) {
187152
187173
  return {
187153
187174
  params,
187154
187175
  signal,
@@ -187260,11 +187281,11 @@ class AgentApp {
187260
187281
  return this.notification(spec, handlerOrParams);
187261
187282
  }
187262
187283
  request(spec, handler) {
187263
- registerAppRequest(this.builder, spec, (params, cx, signal) => agentHandlerContext(params, AgentContext.create(cx), signal), handler);
187284
+ registerAppRequest(this.builder, spec, (params, cx, signal, requestId) => agentRequestContext(params, AgentContext.create(cx, requestId), signal, requestId), handler);
187264
187285
  return this;
187265
187286
  }
187266
187287
  notification(spec, handler) {
187267
- registerAppNotification(this.builder, spec, (params, cx, signal) => agentHandlerContext(params, AgentContext.create(cx), signal), handler);
187288
+ registerAppNotification(this.builder, spec, (params, cx, signal) => agentNotificationContext(params, AgentContext.create(cx), signal), handler);
187268
187289
  return this;
187269
187290
  }
187270
187291
  connectConnection(target, options = {}) {
@@ -187353,11 +187374,11 @@ class ClientApp {
187353
187374
  return this.notification(spec, handlerOrParams);
187354
187375
  }
187355
187376
  request(spec, handler) {
187356
- registerAppRequest(this.builder, spec, (params, cx, signal) => clientHandlerContext(params, ClientContext.create(cx), signal), handler);
187377
+ registerAppRequest(this.builder, spec, (params, cx, signal, requestId) => clientRequestContext(params, ClientContext.create(cx, requestId), signal, requestId), handler);
187357
187378
  return this;
187358
187379
  }
187359
187380
  notification(spec, handler) {
187360
- registerAppNotification(this.builder, spec, (params, cx, signal) => clientHandlerContext(params, ClientContext.create(cx), signal), handler);
187381
+ registerAppNotification(this.builder, spec, (params, cx, signal) => clientNotificationContext(params, ClientContext.create(cx), signal), handler);
187361
187382
  return this;
187362
187383
  }
187363
187384
  connectConnection(target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyo-so/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Kyo-so: MCP-native, ACP-powered multi-agent review gates for AI coding workflows.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "repository": {
@@ -32,6 +32,7 @@
32
32
  ".agents/skills/kyoso-review",
33
33
  "examples",
34
34
  "README.md",
35
+ "CHANGELOG.md",
35
36
  "LICENSE"
36
37
  ],
37
38
  "scripts": {
@@ -46,13 +47,13 @@
46
47
  "prepack": "bun run build"
47
48
  },
48
49
  "dependencies": {
49
- "@agentclientprotocol/sdk": "1.0.0",
50
- "@modelcontextprotocol/server": "2.0.0-alpha.3",
50
+ "@agentclientprotocol/sdk": "1.1.0",
51
+ "@modelcontextprotocol/server": "2.0.0-beta.2",
51
52
  "typescript": "6.0.3",
52
53
  "zod": "4.4.3"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@types/bun": "1.3.14",
56
- "prettier": "3.9.1"
57
+ "prettier": "3.9.4"
57
58
  }
58
59
  }