@otto-code/client 0.5.1 → 0.5.2

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.
@@ -550,6 +550,8 @@ export interface CreateScheduleOptions {
550
550
  config: {
551
551
  provider: AgentProvider;
552
552
  cwd: string;
553
+ /** Personality binding by name, or the "@team-scheduler" sentinel. */
554
+ personality?: string;
553
555
  modeId?: string;
554
556
  model?: string;
555
557
  thinkingOptionId?: string;
@@ -576,6 +578,11 @@ export interface InspectScheduleOptions {
576
578
  }
577
579
  export interface UpdateScheduleNewAgentConfig {
578
580
  provider?: string;
581
+ /**
582
+ * Personality binding by name, or the "@team-scheduler" sentinel. Explicit
583
+ * null clears a stored binding; omission leaves it untouched.
584
+ */
585
+ personality?: string | null;
579
586
  model?: string | null;
580
587
  modeId?: string | null;
581
588
  thinkingOptionId?: string | null;
@@ -789,7 +796,9 @@ export declare class DaemonClient {
789
796
  sendAgentMessage(agentId: string, text: string, options?: SendMessageOptions): Promise<void>;
790
797
  sendMessage(agentId: string, text: string, options?: SendMessageOptions): Promise<void>;
791
798
  rewindAgent(agentId: string, messageId: string, mode: "conversation" | "files" | "both"): Promise<AgentRewindResponseMessage["payload"]>;
792
- cancelAgent(agentId: string): Promise<void>;
799
+ cancelAgent(agentId: string): Promise<{
800
+ cancelled?: boolean;
801
+ }>;
793
802
  setAgentMode(agentId: string, modeId: string): Promise<AgentProviderNotice | null>;
794
803
  setAgentModel(agentId: string, modelId: string | null): Promise<void>;
795
804
  setAgentFeature(agentId: string, featureId: string, value: unknown): Promise<void>;
@@ -1541,7 +1541,7 @@ export class DaemonClient {
1541
1541
  agentId,
1542
1542
  requestId,
1543
1543
  });
1544
- await this.sendRequest({
1544
+ const payload = await this.sendRequest({
1545
1545
  requestId,
1546
1546
  message,
1547
1547
  options: { skipQueue: true },
@@ -1555,6 +1555,8 @@ export class DaemonClient {
1555
1555
  return msg.payload;
1556
1556
  },
1557
1557
  });
1558
+ // Absent ⇒ old daemon that doesn't report whether a run was interrupted.
1559
+ return payload.cancelled !== undefined ? { cancelled: payload.cancelled } : {};
1558
1560
  }
1559
1561
  async setAgentMode(agentId, modeId) {
1560
1562
  const requestId = this.createRequestId();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto-code/client",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Otto client SDK package",
5
5
  "files": [
6
6
  "dist",
@@ -35,8 +35,8 @@
35
35
  "test": "vitest run"
36
36
  },
37
37
  "dependencies": {
38
- "@otto-code/protocol": "0.5.1",
39
- "@otto-code/relay": "0.5.1",
38
+ "@otto-code/protocol": "0.5.2",
39
+ "@otto-code/relay": "0.5.2",
40
40
  "zod": "^4.4.3"
41
41
  },
42
42
  "devDependencies": {