alink-cli 0.12.4 → 0.12.6
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 +47 -21
- package/dist/bin.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -45970,11 +45970,21 @@ const issueAssetUrl = fn("AssetAccess.issueAssetUrl")(function* (input) {
|
|
|
45970
45970
|
switch (input.resource._tag) {
|
|
45971
45971
|
case "workspace-file": {
|
|
45972
45972
|
if (!input.workspaceRoot) return yield* new AssetWorkspaceContextNotFoundError({ resource: input.resource });
|
|
45973
|
-
|
|
45973
|
+
let workspaceRoot = yield* workspacePaths.normalizeWorkspaceRoot(input.workspaceRoot).pipe(mapError((cause) => new AssetWorkspaceRootNormalizationError({
|
|
45974
45974
|
resource: input.resource,
|
|
45975
45975
|
cause
|
|
45976
45976
|
})));
|
|
45977
|
-
|
|
45977
|
+
let relativePath = path.isAbsolute(input.resource.path) ? path.relative(workspaceRoot, input.resource.path) : input.resource.path;
|
|
45978
|
+
const isImage = isWorkspaceImagePreviewPath(input.resource.path);
|
|
45979
|
+
if (isImage) {
|
|
45980
|
+
const imagePath = yield* optionOnNotFound(fileSystem.realPath(path.resolve(workspaceRoot, input.resource.path))).pipe(mapError((cause) => new AssetWorkspaceAssetInspectionError({
|
|
45981
|
+
resource: input.resource,
|
|
45982
|
+
cause
|
|
45983
|
+
})));
|
|
45984
|
+
if (isNone(imagePath)) return yield* new AssetWorkspaceAssetNotFoundError({ resource: input.resource });
|
|
45985
|
+
workspaceRoot = path.dirname(imagePath.value);
|
|
45986
|
+
relativePath = path.basename(imagePath.value);
|
|
45987
|
+
}
|
|
45978
45988
|
const resolved = yield* workspacePaths.resolveRelativePathWithinRoot({
|
|
45979
45989
|
workspaceRoot,
|
|
45980
45990
|
relativePath
|
|
@@ -45994,7 +46004,7 @@ const issueAssetUrl = fn("AssetAccess.issueAssetUrl")(function* (input) {
|
|
|
45994
46004
|
resource: input.resource,
|
|
45995
46005
|
cause
|
|
45996
46006
|
})));
|
|
45997
|
-
claims =
|
|
46007
|
+
claims = isImage ? {
|
|
45998
46008
|
version: 1,
|
|
45999
46009
|
kind: "workspace-file-exact",
|
|
46000
46010
|
workspaceRoot: canonicalWorkspaceRoot,
|
|
@@ -63037,7 +63047,8 @@ const ServerNotification__SpendControlLimitSnapshot = Struct({
|
|
|
63037
63047
|
const ServerNotification__SubAgentActivityKind = Literals([
|
|
63038
63048
|
"started",
|
|
63039
63049
|
"interacted",
|
|
63040
|
-
"interrupted"
|
|
63050
|
+
"interrupted",
|
|
63051
|
+
"completed"
|
|
63041
63052
|
]);
|
|
63042
63053
|
const ServerNotification__TerminalInteractionNotification = Struct({
|
|
63043
63054
|
itemId: String$1,
|
|
@@ -63924,7 +63935,8 @@ const V2ItemCompletedNotification__ReasoningEffort = String$1.annotate({ descrip
|
|
|
63924
63935
|
const V2ItemCompletedNotification__SubAgentActivityKind = Literals([
|
|
63925
63936
|
"started",
|
|
63926
63937
|
"interacted",
|
|
63927
|
-
"interrupted"
|
|
63938
|
+
"interrupted",
|
|
63939
|
+
"completed"
|
|
63928
63940
|
]);
|
|
63929
63941
|
const V2ItemCompletedNotification__TextElement = Struct({
|
|
63930
63942
|
byteRange: Struct({
|
|
@@ -64108,7 +64120,8 @@ const V2ItemStartedNotification__ReasoningEffort = String$1.annotate({ descripti
|
|
|
64108
64120
|
const V2ItemStartedNotification__SubAgentActivityKind = Literals([
|
|
64109
64121
|
"started",
|
|
64110
64122
|
"interacted",
|
|
64111
|
-
"interrupted"
|
|
64123
|
+
"interrupted",
|
|
64124
|
+
"completed"
|
|
64112
64125
|
]);
|
|
64113
64126
|
const V2ItemStartedNotification__TextElement = Struct({
|
|
64114
64127
|
byteRange: Struct({
|
|
@@ -64603,7 +64616,8 @@ const V2ReviewStartResponse__ReasoningEffort = String$1.annotate({ description:
|
|
|
64603
64616
|
const V2ReviewStartResponse__SubAgentActivityKind = Literals([
|
|
64604
64617
|
"started",
|
|
64605
64618
|
"interacted",
|
|
64606
|
-
"interrupted"
|
|
64619
|
+
"interrupted",
|
|
64620
|
+
"completed"
|
|
64607
64621
|
]);
|
|
64608
64622
|
const V2ReviewStartResponse__TextElement = Struct({
|
|
64609
64623
|
byteRange: Struct({
|
|
@@ -64788,7 +64802,8 @@ const V2ThreadForkResponse__ReasoningEffort = String$1.annotate({ description: "
|
|
|
64788
64802
|
const V2ThreadForkResponse__SubAgentActivityKind = Literals([
|
|
64789
64803
|
"started",
|
|
64790
64804
|
"interacted",
|
|
64791
|
-
"interrupted"
|
|
64805
|
+
"interrupted",
|
|
64806
|
+
"completed"
|
|
64792
64807
|
]);
|
|
64793
64808
|
const V2ThreadForkResponse__TextElement = Struct({
|
|
64794
64809
|
byteRange: Struct({
|
|
@@ -64970,7 +64985,8 @@ const V2ThreadListResponse__ReasoningEffort = String$1.annotate({ description: "
|
|
|
64970
64985
|
const V2ThreadListResponse__SubAgentActivityKind = Literals([
|
|
64971
64986
|
"started",
|
|
64972
64987
|
"interacted",
|
|
64973
|
-
"interrupted"
|
|
64988
|
+
"interrupted",
|
|
64989
|
+
"completed"
|
|
64974
64990
|
]);
|
|
64975
64991
|
const V2ThreadListResponse__TextElement = Struct({
|
|
64976
64992
|
byteRange: Struct({
|
|
@@ -65106,7 +65122,8 @@ const V2ThreadMetadataUpdateResponse__ReasoningEffort = String$1.annotate({ desc
|
|
|
65106
65122
|
const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Literals([
|
|
65107
65123
|
"started",
|
|
65108
65124
|
"interacted",
|
|
65109
|
-
"interrupted"
|
|
65125
|
+
"interrupted",
|
|
65126
|
+
"completed"
|
|
65110
65127
|
]);
|
|
65111
65128
|
const V2ThreadMetadataUpdateResponse__TextElement = Struct({
|
|
65112
65129
|
byteRange: Struct({
|
|
@@ -65237,7 +65254,8 @@ const V2ThreadReadResponse__ReasoningEffort = String$1.annotate({ description: "
|
|
|
65237
65254
|
const V2ThreadReadResponse__SubAgentActivityKind = Literals([
|
|
65238
65255
|
"started",
|
|
65239
65256
|
"interacted",
|
|
65240
|
-
"interrupted"
|
|
65257
|
+
"interrupted",
|
|
65258
|
+
"completed"
|
|
65241
65259
|
]);
|
|
65242
65260
|
const V2ThreadReadResponse__TextElement = Struct({
|
|
65243
65261
|
byteRange: Struct({
|
|
@@ -65479,7 +65497,8 @@ const V2ThreadResumeResponse__ReasoningEffort = String$1.annotate({ description:
|
|
|
65479
65497
|
const V2ThreadResumeResponse__SubAgentActivityKind = Literals([
|
|
65480
65498
|
"started",
|
|
65481
65499
|
"interacted",
|
|
65482
|
-
"interrupted"
|
|
65500
|
+
"interrupted",
|
|
65501
|
+
"completed"
|
|
65483
65502
|
]);
|
|
65484
65503
|
const V2ThreadResumeResponse__TextElement = Struct({
|
|
65485
65504
|
byteRange: Struct({
|
|
@@ -65610,7 +65629,8 @@ const V2ThreadRollbackResponse__ReasoningEffort = String$1.annotate({ descriptio
|
|
|
65610
65629
|
const V2ThreadRollbackResponse__SubAgentActivityKind = Literals([
|
|
65611
65630
|
"started",
|
|
65612
65631
|
"interacted",
|
|
65613
|
-
"interrupted"
|
|
65632
|
+
"interrupted",
|
|
65633
|
+
"completed"
|
|
65614
65634
|
]);
|
|
65615
65635
|
const V2ThreadRollbackResponse__TextElement = Struct({
|
|
65616
65636
|
byteRange: Struct({
|
|
@@ -65774,7 +65794,8 @@ const V2ThreadStartedNotification__ReasoningEffort = String$1.annotate({ descrip
|
|
|
65774
65794
|
const V2ThreadStartedNotification__SubAgentActivityKind = Literals([
|
|
65775
65795
|
"started",
|
|
65776
65796
|
"interacted",
|
|
65777
|
-
"interrupted"
|
|
65797
|
+
"interrupted",
|
|
65798
|
+
"completed"
|
|
65778
65799
|
]);
|
|
65779
65800
|
const V2ThreadStartedNotification__TextElement = Struct({
|
|
65780
65801
|
byteRange: Struct({
|
|
@@ -65952,7 +65973,8 @@ const V2ThreadStartResponse__ReasoningEffort = String$1.annotate({ description:
|
|
|
65952
65973
|
const V2ThreadStartResponse__SubAgentActivityKind = Literals([
|
|
65953
65974
|
"started",
|
|
65954
65975
|
"interacted",
|
|
65955
|
-
"interrupted"
|
|
65976
|
+
"interrupted",
|
|
65977
|
+
"completed"
|
|
65956
65978
|
]);
|
|
65957
65979
|
const V2ThreadStartResponse__TextElement = Struct({
|
|
65958
65980
|
byteRange: Struct({
|
|
@@ -66095,7 +66117,8 @@ const V2ThreadUnarchiveResponse__ReasoningEffort = String$1.annotate({ descripti
|
|
|
66095
66117
|
const V2ThreadUnarchiveResponse__SubAgentActivityKind = Literals([
|
|
66096
66118
|
"started",
|
|
66097
66119
|
"interacted",
|
|
66098
|
-
"interrupted"
|
|
66120
|
+
"interrupted",
|
|
66121
|
+
"completed"
|
|
66099
66122
|
]);
|
|
66100
66123
|
const V2ThreadUnarchiveResponse__TextElement = Struct({
|
|
66101
66124
|
byteRange: Struct({
|
|
@@ -66225,7 +66248,8 @@ const V2TurnCompletedNotification__ReasoningEffort = String$1.annotate({ descrip
|
|
|
66225
66248
|
const V2TurnCompletedNotification__SubAgentActivityKind = Literals([
|
|
66226
66249
|
"started",
|
|
66227
66250
|
"interacted",
|
|
66228
|
-
"interrupted"
|
|
66251
|
+
"interrupted",
|
|
66252
|
+
"completed"
|
|
66229
66253
|
]);
|
|
66230
66254
|
const V2TurnCompletedNotification__TextElement = Struct({
|
|
66231
66255
|
byteRange: Struct({
|
|
@@ -66352,7 +66376,8 @@ const V2TurnStartedNotification__ReasoningEffort = String$1.annotate({ descripti
|
|
|
66352
66376
|
const V2TurnStartedNotification__SubAgentActivityKind = Literals([
|
|
66353
66377
|
"started",
|
|
66354
66378
|
"interacted",
|
|
66355
|
-
"interrupted"
|
|
66379
|
+
"interrupted",
|
|
66380
|
+
"completed"
|
|
66356
66381
|
]);
|
|
66357
66382
|
const V2TurnStartedNotification__TextElement = Struct({
|
|
66358
66383
|
byteRange: Struct({
|
|
@@ -66518,7 +66543,8 @@ const V2TurnStartResponse__ReasoningEffort = String$1.annotate({ description: "A
|
|
|
66518
66543
|
const V2TurnStartResponse__SubAgentActivityKind = Literals([
|
|
66519
66544
|
"started",
|
|
66520
66545
|
"interacted",
|
|
66521
|
-
"interrupted"
|
|
66546
|
+
"interrupted",
|
|
66547
|
+
"completed"
|
|
66522
66548
|
]);
|
|
66523
66549
|
const V2TurnStartResponse__TextElement = Struct({
|
|
66524
66550
|
byteRange: Struct({
|
|
@@ -81719,12 +81745,12 @@ function mapCollabAgentEvent(event, canonicalThreadId) {
|
|
|
81719
81745
|
}];
|
|
81720
81746
|
case "collabAgent/activity": {
|
|
81721
81747
|
const activityKind = typeof payload.activityKind === "string" ? payload.activityKind : "";
|
|
81722
|
-
if (activityKind === "interrupted") return [{
|
|
81748
|
+
if (activityKind === "interrupted" || activityKind === "completed") return [{
|
|
81723
81749
|
...base,
|
|
81724
81750
|
type: "task.updated",
|
|
81725
81751
|
payload: {
|
|
81726
81752
|
taskId,
|
|
81727
|
-
status: "interrupted",
|
|
81753
|
+
status: activityKind === "completed" ? "idle" : "interrupted",
|
|
81728
81754
|
...statusLinkage
|
|
81729
81755
|
}
|
|
81730
81756
|
}];
|