alink-cli 0.12.4 → 0.12.5

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.
package/dist/bin.mjs CHANGED
@@ -63037,7 +63037,8 @@ const ServerNotification__SpendControlLimitSnapshot = Struct({
63037
63037
  const ServerNotification__SubAgentActivityKind = Literals([
63038
63038
  "started",
63039
63039
  "interacted",
63040
- "interrupted"
63040
+ "interrupted",
63041
+ "completed"
63041
63042
  ]);
63042
63043
  const ServerNotification__TerminalInteractionNotification = Struct({
63043
63044
  itemId: String$1,
@@ -63924,7 +63925,8 @@ const V2ItemCompletedNotification__ReasoningEffort = String$1.annotate({ descrip
63924
63925
  const V2ItemCompletedNotification__SubAgentActivityKind = Literals([
63925
63926
  "started",
63926
63927
  "interacted",
63927
- "interrupted"
63928
+ "interrupted",
63929
+ "completed"
63928
63930
  ]);
63929
63931
  const V2ItemCompletedNotification__TextElement = Struct({
63930
63932
  byteRange: Struct({
@@ -64108,7 +64110,8 @@ const V2ItemStartedNotification__ReasoningEffort = String$1.annotate({ descripti
64108
64110
  const V2ItemStartedNotification__SubAgentActivityKind = Literals([
64109
64111
  "started",
64110
64112
  "interacted",
64111
- "interrupted"
64113
+ "interrupted",
64114
+ "completed"
64112
64115
  ]);
64113
64116
  const V2ItemStartedNotification__TextElement = Struct({
64114
64117
  byteRange: Struct({
@@ -64603,7 +64606,8 @@ const V2ReviewStartResponse__ReasoningEffort = String$1.annotate({ description:
64603
64606
  const V2ReviewStartResponse__SubAgentActivityKind = Literals([
64604
64607
  "started",
64605
64608
  "interacted",
64606
- "interrupted"
64609
+ "interrupted",
64610
+ "completed"
64607
64611
  ]);
64608
64612
  const V2ReviewStartResponse__TextElement = Struct({
64609
64613
  byteRange: Struct({
@@ -64788,7 +64792,8 @@ const V2ThreadForkResponse__ReasoningEffort = String$1.annotate({ description: "
64788
64792
  const V2ThreadForkResponse__SubAgentActivityKind = Literals([
64789
64793
  "started",
64790
64794
  "interacted",
64791
- "interrupted"
64795
+ "interrupted",
64796
+ "completed"
64792
64797
  ]);
64793
64798
  const V2ThreadForkResponse__TextElement = Struct({
64794
64799
  byteRange: Struct({
@@ -64970,7 +64975,8 @@ const V2ThreadListResponse__ReasoningEffort = String$1.annotate({ description: "
64970
64975
  const V2ThreadListResponse__SubAgentActivityKind = Literals([
64971
64976
  "started",
64972
64977
  "interacted",
64973
- "interrupted"
64978
+ "interrupted",
64979
+ "completed"
64974
64980
  ]);
64975
64981
  const V2ThreadListResponse__TextElement = Struct({
64976
64982
  byteRange: Struct({
@@ -65106,7 +65112,8 @@ const V2ThreadMetadataUpdateResponse__ReasoningEffort = String$1.annotate({ desc
65106
65112
  const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Literals([
65107
65113
  "started",
65108
65114
  "interacted",
65109
- "interrupted"
65115
+ "interrupted",
65116
+ "completed"
65110
65117
  ]);
65111
65118
  const V2ThreadMetadataUpdateResponse__TextElement = Struct({
65112
65119
  byteRange: Struct({
@@ -65237,7 +65244,8 @@ const V2ThreadReadResponse__ReasoningEffort = String$1.annotate({ description: "
65237
65244
  const V2ThreadReadResponse__SubAgentActivityKind = Literals([
65238
65245
  "started",
65239
65246
  "interacted",
65240
- "interrupted"
65247
+ "interrupted",
65248
+ "completed"
65241
65249
  ]);
65242
65250
  const V2ThreadReadResponse__TextElement = Struct({
65243
65251
  byteRange: Struct({
@@ -65479,7 +65487,8 @@ const V2ThreadResumeResponse__ReasoningEffort = String$1.annotate({ description:
65479
65487
  const V2ThreadResumeResponse__SubAgentActivityKind = Literals([
65480
65488
  "started",
65481
65489
  "interacted",
65482
- "interrupted"
65490
+ "interrupted",
65491
+ "completed"
65483
65492
  ]);
65484
65493
  const V2ThreadResumeResponse__TextElement = Struct({
65485
65494
  byteRange: Struct({
@@ -65610,7 +65619,8 @@ const V2ThreadRollbackResponse__ReasoningEffort = String$1.annotate({ descriptio
65610
65619
  const V2ThreadRollbackResponse__SubAgentActivityKind = Literals([
65611
65620
  "started",
65612
65621
  "interacted",
65613
- "interrupted"
65622
+ "interrupted",
65623
+ "completed"
65614
65624
  ]);
65615
65625
  const V2ThreadRollbackResponse__TextElement = Struct({
65616
65626
  byteRange: Struct({
@@ -65774,7 +65784,8 @@ const V2ThreadStartedNotification__ReasoningEffort = String$1.annotate({ descrip
65774
65784
  const V2ThreadStartedNotification__SubAgentActivityKind = Literals([
65775
65785
  "started",
65776
65786
  "interacted",
65777
- "interrupted"
65787
+ "interrupted",
65788
+ "completed"
65778
65789
  ]);
65779
65790
  const V2ThreadStartedNotification__TextElement = Struct({
65780
65791
  byteRange: Struct({
@@ -65952,7 +65963,8 @@ const V2ThreadStartResponse__ReasoningEffort = String$1.annotate({ description:
65952
65963
  const V2ThreadStartResponse__SubAgentActivityKind = Literals([
65953
65964
  "started",
65954
65965
  "interacted",
65955
- "interrupted"
65966
+ "interrupted",
65967
+ "completed"
65956
65968
  ]);
65957
65969
  const V2ThreadStartResponse__TextElement = Struct({
65958
65970
  byteRange: Struct({
@@ -66095,7 +66107,8 @@ const V2ThreadUnarchiveResponse__ReasoningEffort = String$1.annotate({ descripti
66095
66107
  const V2ThreadUnarchiveResponse__SubAgentActivityKind = Literals([
66096
66108
  "started",
66097
66109
  "interacted",
66098
- "interrupted"
66110
+ "interrupted",
66111
+ "completed"
66099
66112
  ]);
66100
66113
  const V2ThreadUnarchiveResponse__TextElement = Struct({
66101
66114
  byteRange: Struct({
@@ -66225,7 +66238,8 @@ const V2TurnCompletedNotification__ReasoningEffort = String$1.annotate({ descrip
66225
66238
  const V2TurnCompletedNotification__SubAgentActivityKind = Literals([
66226
66239
  "started",
66227
66240
  "interacted",
66228
- "interrupted"
66241
+ "interrupted",
66242
+ "completed"
66229
66243
  ]);
66230
66244
  const V2TurnCompletedNotification__TextElement = Struct({
66231
66245
  byteRange: Struct({
@@ -66352,7 +66366,8 @@ const V2TurnStartedNotification__ReasoningEffort = String$1.annotate({ descripti
66352
66366
  const V2TurnStartedNotification__SubAgentActivityKind = Literals([
66353
66367
  "started",
66354
66368
  "interacted",
66355
- "interrupted"
66369
+ "interrupted",
66370
+ "completed"
66356
66371
  ]);
66357
66372
  const V2TurnStartedNotification__TextElement = Struct({
66358
66373
  byteRange: Struct({
@@ -66518,7 +66533,8 @@ const V2TurnStartResponse__ReasoningEffort = String$1.annotate({ description: "A
66518
66533
  const V2TurnStartResponse__SubAgentActivityKind = Literals([
66519
66534
  "started",
66520
66535
  "interacted",
66521
- "interrupted"
66536
+ "interrupted",
66537
+ "completed"
66522
66538
  ]);
66523
66539
  const V2TurnStartResponse__TextElement = Struct({
66524
66540
  byteRange: Struct({
@@ -81719,12 +81735,12 @@ function mapCollabAgentEvent(event, canonicalThreadId) {
81719
81735
  }];
81720
81736
  case "collabAgent/activity": {
81721
81737
  const activityKind = typeof payload.activityKind === "string" ? payload.activityKind : "";
81722
- if (activityKind === "interrupted") return [{
81738
+ if (activityKind === "interrupted" || activityKind === "completed") return [{
81723
81739
  ...base,
81724
81740
  type: "task.updated",
81725
81741
  payload: {
81726
81742
  taskId,
81727
- status: "interrupted",
81743
+ status: activityKind === "completed" ? "idle" : "interrupted",
81728
81744
  ...statusLinkage
81729
81745
  }
81730
81746
  }];