@work-shape/catalyst-cli 0.8.0-rc.32 → 0.8.0-rc.33
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/index.d.ts +206 -2
- package/dist/index.js +81 -8
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,12 @@ interface AgentConfig {
|
|
|
65
65
|
modelReasoningEfforts?: Record<string, ReasoningEffortConfig>;
|
|
66
66
|
maxSteps?: number;
|
|
67
67
|
toolNames: string[];
|
|
68
|
+
/**
|
|
69
|
+
* Whether a run its person starts in their own private chat is offered the tools of the MCP
|
|
70
|
+
* servers that person added for themselves, in the group "Deine MCP-Server" (PMCP-4). Unset
|
|
71
|
+
* is on; `false` keeps outside tools away from an agent whose instructions must not meet them.
|
|
72
|
+
*/
|
|
73
|
+
ownServers?: boolean;
|
|
68
74
|
/**
|
|
69
75
|
* The other agents this agent may start as subagents with `run_agent`, besides itself. Each
|
|
70
76
|
* is started only where the person may use it in the conversation's workspace.
|
|
@@ -4187,6 +4193,7 @@ declare const agentOperations: {
|
|
|
4187
4193
|
userId: zod.ZodString;
|
|
4188
4194
|
displayLabel: zod.ZodString;
|
|
4189
4195
|
addedAt: zod.ZodISODateTime;
|
|
4196
|
+
deactivated: zod.ZodOptional<zod.ZodLiteral<true>>;
|
|
4190
4197
|
}, zod_v4_core.$strip>>;
|
|
4191
4198
|
createdByDisplayLabel: zod.ZodOptional<zod.ZodString>;
|
|
4192
4199
|
}, zod_v4_core.$strip>;
|
|
@@ -13162,6 +13169,14 @@ declare const connectionOperations: {
|
|
|
13162
13169
|
}>;
|
|
13163
13170
|
version: z.ZodNumber;
|
|
13164
13171
|
}, z.core.$strip>>;
|
|
13172
|
+
ownServer: z.ZodOptional<z.ZodObject<{
|
|
13173
|
+
host: z.ZodString;
|
|
13174
|
+
enabled: z.ZodBoolean;
|
|
13175
|
+
tools: z.ZodNumber;
|
|
13176
|
+
}, z.core.$strip>>;
|
|
13177
|
+
}, z.core.$strip>>;
|
|
13178
|
+
ownServers: z.ZodOptional<z.ZodObject<{
|
|
13179
|
+
mayAdd: z.ZodBoolean;
|
|
13165
13180
|
}, z.core.$strip>>;
|
|
13166
13181
|
}, z.core.$strip>;
|
|
13167
13182
|
};
|
|
@@ -16994,6 +17009,7 @@ declare const conversationOperations: {
|
|
|
16994
17009
|
userId: z.ZodString;
|
|
16995
17010
|
displayLabel: z.ZodString;
|
|
16996
17011
|
addedAt: z.ZodISODateTime;
|
|
17012
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
16997
17013
|
}, z.core.$strip>>;
|
|
16998
17014
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
16999
17015
|
latestMessageAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -17028,6 +17044,86 @@ declare const conversationOperations: {
|
|
|
17028
17044
|
readonly errors: readonly ["NOT_FOUND"];
|
|
17029
17045
|
readonly rateClass: "read";
|
|
17030
17046
|
}>;
|
|
17047
|
+
readonly "conversations.shared_from_outside.list": Operation<{
|
|
17048
|
+
readonly id: "conversations.shared_from_outside.list";
|
|
17049
|
+
readonly method: "GET";
|
|
17050
|
+
readonly path: "/api/v1/conversations/shared-from-outside";
|
|
17051
|
+
readonly summary: "List the chats shared with the caller from workspaces they are no member of";
|
|
17052
|
+
readonly tag: "Conversations";
|
|
17053
|
+
readonly auth: "user";
|
|
17054
|
+
readonly scope: "conversation:read";
|
|
17055
|
+
readonly requires: readonly [];
|
|
17056
|
+
readonly effect: "reading";
|
|
17057
|
+
readonly query: z.ZodObject<{
|
|
17058
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
17059
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
17060
|
+
query: z.ZodOptional<z.ZodString>;
|
|
17061
|
+
}, z.core.$strip>;
|
|
17062
|
+
readonly response: {
|
|
17063
|
+
readonly kind: "page";
|
|
17064
|
+
readonly schema: z.ZodObject<{
|
|
17065
|
+
items: z.ZodArray<z.ZodObject<{
|
|
17066
|
+
id: z.ZodString;
|
|
17067
|
+
clientInstanceId: z.ZodString;
|
|
17068
|
+
collaborationWorkspaceId: z.ZodString;
|
|
17069
|
+
createdByUserId: z.ZodString;
|
|
17070
|
+
createdByExternalUserId: z.ZodString;
|
|
17071
|
+
visibility: z.ZodEnum<{
|
|
17072
|
+
workspace: "workspace";
|
|
17073
|
+
private: "private";
|
|
17074
|
+
}>;
|
|
17075
|
+
title: z.ZodString;
|
|
17076
|
+
status: z.ZodString;
|
|
17077
|
+
createdAt: z.ZodISODateTime;
|
|
17078
|
+
updatedAt: z.ZodISODateTime;
|
|
17079
|
+
retainedUntil: z.ZodISODateTime;
|
|
17080
|
+
deletedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
17081
|
+
subject: z.ZodOptional<z.ZodObject<{
|
|
17082
|
+
kind: z.ZodString;
|
|
17083
|
+
name: z.ZodString;
|
|
17084
|
+
}, z.core.$strip>>;
|
|
17085
|
+
creationTarget: z.ZodOptional<z.ZodLiteral<"instance">>;
|
|
17086
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
17087
|
+
people: z.ZodArray<z.ZodObject<{
|
|
17088
|
+
userId: z.ZodString;
|
|
17089
|
+
displayLabel: z.ZodString;
|
|
17090
|
+
addedAt: z.ZodISODateTime;
|
|
17091
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17092
|
+
}, z.core.$strip>>;
|
|
17093
|
+
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
17094
|
+
latestMessageAt: z.ZodOptional<z.ZodISODateTime>;
|
|
17095
|
+
activeRun: z.ZodOptional<z.ZodObject<{
|
|
17096
|
+
id: z.ZodString;
|
|
17097
|
+
conversationId: z.ZodString;
|
|
17098
|
+
ownerUserId: z.ZodOptional<z.ZodString>;
|
|
17099
|
+
inputMessageId: z.ZodOptional<z.ZodString>;
|
|
17100
|
+
agentName: z.ZodString;
|
|
17101
|
+
status: z.ZodEnum<{
|
|
17102
|
+
failed: "failed";
|
|
17103
|
+
running: "running";
|
|
17104
|
+
queued: "queued";
|
|
17105
|
+
cancelled: "cancelled";
|
|
17106
|
+
waiting_for_decision: "waiting_for_decision";
|
|
17107
|
+
waiting_for_subagents: "waiting_for_subagents";
|
|
17108
|
+
cancelling: "cancelling";
|
|
17109
|
+
completed: "completed";
|
|
17110
|
+
}>;
|
|
17111
|
+
startedAt: z.ZodISODateTime;
|
|
17112
|
+
updatedAt: z.ZodISODateTime;
|
|
17113
|
+
lastSequence: z.ZodNumber;
|
|
17114
|
+
}, z.core.$strip>>;
|
|
17115
|
+
unread: z.ZodOptional<z.ZodBoolean>;
|
|
17116
|
+
lastViewedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
17117
|
+
workspaceName: z.ZodString;
|
|
17118
|
+
}, z.core.$strip>>;
|
|
17119
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
17120
|
+
}, z.core.$strip>;
|
|
17121
|
+
readonly order: readonly string[];
|
|
17122
|
+
readonly descending: boolean;
|
|
17123
|
+
};
|
|
17124
|
+
readonly errors: readonly [];
|
|
17125
|
+
readonly rateClass: "read";
|
|
17126
|
+
}>;
|
|
17031
17127
|
readonly "conversations.create": Operation<{
|
|
17032
17128
|
readonly id: "conversations.create";
|
|
17033
17129
|
readonly method: "POST";
|
|
@@ -17082,6 +17178,7 @@ declare const conversationOperations: {
|
|
|
17082
17178
|
userId: z.ZodString;
|
|
17083
17179
|
displayLabel: z.ZodString;
|
|
17084
17180
|
addedAt: z.ZodISODateTime;
|
|
17181
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17085
17182
|
}, z.core.$strip>>;
|
|
17086
17183
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
17087
17184
|
}, z.core.$strip>;
|
|
@@ -17130,6 +17227,7 @@ declare const conversationOperations: {
|
|
|
17130
17227
|
userId: z.ZodString;
|
|
17131
17228
|
displayLabel: z.ZodString;
|
|
17132
17229
|
addedAt: z.ZodISODateTime;
|
|
17230
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17133
17231
|
}, z.core.$strip>>;
|
|
17134
17232
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
17135
17233
|
}, z.core.$strip>;
|
|
@@ -17180,6 +17278,7 @@ declare const conversationOperations: {
|
|
|
17180
17278
|
userId: z.ZodString;
|
|
17181
17279
|
displayLabel: z.ZodString;
|
|
17182
17280
|
addedAt: z.ZodISODateTime;
|
|
17281
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17183
17282
|
}, z.core.$strip>>;
|
|
17184
17283
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
17185
17284
|
}, z.core.$strip>;
|
|
@@ -17528,6 +17627,7 @@ declare const conversationOperations: {
|
|
|
17528
17627
|
userId: z.ZodString;
|
|
17529
17628
|
displayLabel: z.ZodString;
|
|
17530
17629
|
addedAt: z.ZodISODateTime;
|
|
17630
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17531
17631
|
}, z.core.$strip>>;
|
|
17532
17632
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
17533
17633
|
}, z.core.$strip>;
|
|
@@ -17576,6 +17676,7 @@ declare const conversationOperations: {
|
|
|
17576
17676
|
userId: z.ZodString;
|
|
17577
17677
|
displayLabel: z.ZodString;
|
|
17578
17678
|
addedAt: z.ZodISODateTime;
|
|
17679
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17579
17680
|
}, z.core.$strip>>;
|
|
17580
17681
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
17581
17682
|
}, z.core.$strip>;
|
|
@@ -17608,7 +17709,7 @@ declare const conversationOperations: {
|
|
|
17608
17709
|
readonly id: "conversations.share_candidates";
|
|
17609
17710
|
readonly method: "GET";
|
|
17610
17711
|
readonly path: "/api/v1/conversations/:conversationId/share-candidates";
|
|
17611
|
-
readonly summary: "The
|
|
17712
|
+
readonly summary: "The people of the instance the chat's creator may name, preselected or searched";
|
|
17612
17713
|
readonly tag: "Conversations";
|
|
17613
17714
|
readonly auth: "user";
|
|
17614
17715
|
readonly scope: "conversation:read";
|
|
@@ -17626,10 +17727,106 @@ declare const conversationOperations: {
|
|
|
17626
17727
|
displayLabel: z.ZodString;
|
|
17627
17728
|
email: z.ZodOptional<z.ZodString>;
|
|
17628
17729
|
hasAccess: z.ZodBoolean;
|
|
17730
|
+
member: z.ZodBoolean;
|
|
17629
17731
|
}, z.core.$strip>>;
|
|
17630
17732
|
}, z.core.$strip>;
|
|
17631
17733
|
};
|
|
17632
|
-
readonly errors: readonly ["NOT_FOUND", "FORBIDDEN"];
|
|
17734
|
+
readonly errors: readonly ["NOT_FOUND", "FORBIDDEN", "RATE_LIMITED"];
|
|
17735
|
+
readonly rateClass: "read";
|
|
17736
|
+
}>;
|
|
17737
|
+
readonly "conversations.reader_offer.get": Operation<{
|
|
17738
|
+
readonly id: "conversations.reader_offer.get";
|
|
17739
|
+
readonly method: "GET";
|
|
17740
|
+
readonly path: "/api/v1/conversations/:conversationId/reader-offer";
|
|
17741
|
+
readonly summary: "What the caller is offered in a chat they read: its workspace, and their agents";
|
|
17742
|
+
readonly tag: "Conversations";
|
|
17743
|
+
readonly auth: "user";
|
|
17744
|
+
readonly scope: "conversation:read";
|
|
17745
|
+
readonly requires: readonly [];
|
|
17746
|
+
readonly effect: "reading";
|
|
17747
|
+
readonly query: z.ZodObject<{
|
|
17748
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
17749
|
+
}, z.core.$strip>;
|
|
17750
|
+
readonly response: {
|
|
17751
|
+
readonly kind: "json";
|
|
17752
|
+
readonly schema: z.ZodObject<{
|
|
17753
|
+
workspace: z.ZodObject<{
|
|
17754
|
+
id: z.ZodString;
|
|
17755
|
+
name: z.ZodString;
|
|
17756
|
+
}, z.core.$strip>;
|
|
17757
|
+
outside: z.ZodBoolean;
|
|
17758
|
+
defaultAgentName: z.ZodOptional<z.ZodString>;
|
|
17759
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
17760
|
+
name: z.ZodString;
|
|
17761
|
+
displayName: z.ZodString;
|
|
17762
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17763
|
+
defaultModelBindingId: z.ZodOptional<z.ZodString>;
|
|
17764
|
+
selectableModels: z.ZodArray<z.ZodObject<{
|
|
17765
|
+
bindingId: z.ZodOptional<z.ZodString>;
|
|
17766
|
+
model: z.ZodString;
|
|
17767
|
+
compactThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
17768
|
+
label: z.ZodOptional<z.ZodString>;
|
|
17769
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
17770
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17771
|
+
region: z.ZodOptional<z.ZodString>;
|
|
17772
|
+
personalDataBlocked: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17773
|
+
usageTier: z.ZodOptional<z.ZodEnum<{
|
|
17774
|
+
low: "low";
|
|
17775
|
+
high: "high";
|
|
17776
|
+
very_low: "very_low";
|
|
17777
|
+
moderate: "moderate";
|
|
17778
|
+
elevated: "elevated";
|
|
17779
|
+
very_high: "very_high";
|
|
17780
|
+
}>>;
|
|
17781
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
17782
|
+
none: "none";
|
|
17783
|
+
low: "low";
|
|
17784
|
+
medium: "medium";
|
|
17785
|
+
high: "high";
|
|
17786
|
+
xhigh: "xhigh";
|
|
17787
|
+
max: "max";
|
|
17788
|
+
}>>;
|
|
17789
|
+
selectableReasoningEfforts: z.ZodArray<z.ZodEnum<{
|
|
17790
|
+
none: "none";
|
|
17791
|
+
low: "low";
|
|
17792
|
+
medium: "medium";
|
|
17793
|
+
high: "high";
|
|
17794
|
+
xhigh: "xhigh";
|
|
17795
|
+
max: "max";
|
|
17796
|
+
}>>;
|
|
17797
|
+
}, z.core.$strip>>;
|
|
17798
|
+
compactThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
17799
|
+
buildsAssets: z.ZodOptional<z.ZodBoolean>;
|
|
17800
|
+
welcomeMessage: z.ZodOptional<z.ZodString>;
|
|
17801
|
+
welcomeSubtitle: z.ZodOptional<z.ZodString>;
|
|
17802
|
+
initialPrompts: z.ZodArray<z.ZodObject<{
|
|
17803
|
+
title: z.ZodString;
|
|
17804
|
+
prompt: z.ZodString;
|
|
17805
|
+
}, z.core.$strip>>;
|
|
17806
|
+
starters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17807
|
+
skillName: z.ZodString;
|
|
17808
|
+
title: z.ZodString;
|
|
17809
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
17810
|
+
prompt: z.ZodString;
|
|
17811
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
17812
|
+
}, z.core.$strip>>>;
|
|
17813
|
+
connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17814
|
+
name: z.ZodString;
|
|
17815
|
+
title: z.ZodString;
|
|
17816
|
+
service: z.ZodOptional<z.ZodString>;
|
|
17817
|
+
connectorType: z.ZodOptional<z.ZodString>;
|
|
17818
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
17819
|
+
toolName: z.ZodString;
|
|
17820
|
+
effect: z.ZodEnum<{
|
|
17821
|
+
reading: "reading";
|
|
17822
|
+
changing: "changing";
|
|
17823
|
+
}>;
|
|
17824
|
+
}, z.core.$strip>>;
|
|
17825
|
+
}, z.core.$strip>>>;
|
|
17826
|
+
}, z.core.$strip>>;
|
|
17827
|
+
}, z.core.$strip>;
|
|
17828
|
+
};
|
|
17829
|
+
readonly errors: readonly ["NOT_FOUND"];
|
|
17633
17830
|
readonly rateClass: "read";
|
|
17634
17831
|
}>;
|
|
17635
17832
|
readonly "conversations.thread.get": Operation<{
|
|
@@ -17711,6 +17908,7 @@ declare const conversationOperations: {
|
|
|
17711
17908
|
userId: z.ZodString;
|
|
17712
17909
|
displayLabel: z.ZodString;
|
|
17713
17910
|
addedAt: z.ZodISODateTime;
|
|
17911
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
17714
17912
|
}, z.core.$strip>>;
|
|
17715
17913
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
17716
17914
|
}, z.core.$strip>;
|
|
@@ -19126,6 +19324,7 @@ declare const conversationOperations: {
|
|
|
19126
19324
|
userId: z.ZodString;
|
|
19127
19325
|
displayLabel: z.ZodString;
|
|
19128
19326
|
addedAt: z.ZodISODateTime;
|
|
19327
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
19129
19328
|
}, z.core.$strip>>;
|
|
19130
19329
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
19131
19330
|
}, z.core.$strip>;
|
|
@@ -19417,6 +19616,7 @@ declare const conversationOperations: {
|
|
|
19417
19616
|
userId: z.ZodString;
|
|
19418
19617
|
displayLabel: z.ZodString;
|
|
19419
19618
|
addedAt: z.ZodISODateTime;
|
|
19619
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
19420
19620
|
}, z.core.$strip>>;
|
|
19421
19621
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
19422
19622
|
}, z.core.$strip>;
|
|
@@ -20377,6 +20577,7 @@ declare const conversationOperations: {
|
|
|
20377
20577
|
userId: z.ZodString;
|
|
20378
20578
|
displayLabel: z.ZodString;
|
|
20379
20579
|
addedAt: z.ZodISODateTime;
|
|
20580
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
20380
20581
|
}, z.core.$strip>>;
|
|
20381
20582
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
20382
20583
|
}, z.core.$strip>;
|
|
@@ -20668,6 +20869,7 @@ declare const conversationOperations: {
|
|
|
20668
20869
|
userId: z.ZodString;
|
|
20669
20870
|
displayLabel: z.ZodString;
|
|
20670
20871
|
addedAt: z.ZodISODateTime;
|
|
20872
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
20671
20873
|
}, z.core.$strip>>;
|
|
20672
20874
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
20673
20875
|
}, z.core.$strip>;
|
|
@@ -21881,6 +22083,7 @@ declare const conversationOperations: {
|
|
|
21881
22083
|
userId: z.ZodString;
|
|
21882
22084
|
displayLabel: z.ZodString;
|
|
21883
22085
|
addedAt: z.ZodISODateTime;
|
|
22086
|
+
deactivated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
21884
22087
|
}, z.core.$strip>>;
|
|
21885
22088
|
createdByDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
21886
22089
|
}, z.core.$strip>;
|
|
@@ -31524,6 +31727,7 @@ declare const projectOperations: {
|
|
|
31524
31727
|
userId: zod.ZodString;
|
|
31525
31728
|
displayLabel: zod.ZodString;
|
|
31526
31729
|
addedAt: zod.ZodISODateTime;
|
|
31730
|
+
deactivated: zod.ZodOptional<zod.ZodLiteral<true>>;
|
|
31527
31731
|
}, zod_v4_core.$strip>>;
|
|
31528
31732
|
createdByDisplayLabel: zod.ZodOptional<zod.ZodString>;
|
|
31529
31733
|
}, zod_v4_core.$strip>;
|
package/dist/index.js
CHANGED
|
@@ -1041,6 +1041,11 @@ var agentConfigSchema = z.object({
|
|
|
1041
1041
|
modelReasoningEfforts: z.record(z.string().min(1), z.enum(REASONING_EFFORTS)).optional(),
|
|
1042
1042
|
maxSteps: z.number().int().positive().optional(),
|
|
1043
1043
|
toolNames: z.array(z.string().min(1)).default([]),
|
|
1044
|
+
/**
|
|
1045
|
+
* Whether a run its person starts in their own private chat is offered the tools of the MCP
|
|
1046
|
+
* servers that person added for themselves (PMCP-4). Unset is on.
|
|
1047
|
+
*/
|
|
1048
|
+
ownServers: z.boolean().optional(),
|
|
1044
1049
|
/**
|
|
1045
1050
|
* The agents this agent may start as subagents through `run_agent`, beside itself. Only an
|
|
1046
1051
|
* agent whose `toolNames` lists `run_agent` starts any.
|
|
@@ -2830,7 +2835,7 @@ import { z as z68 } from "zod";
|
|
|
2830
2835
|
// ../api-contract/package.json
|
|
2831
2836
|
var package_default = {
|
|
2832
2837
|
name: "@work-shape/catalyst-api-contract",
|
|
2833
|
-
version: "0.8.0-rc.
|
|
2838
|
+
version: "0.8.0-rc.33",
|
|
2834
2839
|
license: "MIT",
|
|
2835
2840
|
repository: {
|
|
2836
2841
|
type: "git",
|
|
@@ -5630,7 +5635,12 @@ var conversationCreationTargetSchema = z33.literal("instance");
|
|
|
5630
5635
|
var conversationPersonSchema = z33.object({
|
|
5631
5636
|
userId: z33.string(),
|
|
5632
5637
|
displayLabel: z33.string(),
|
|
5633
|
-
addedAt: timestampSchema
|
|
5638
|
+
addedAt: timestampSchema,
|
|
5639
|
+
/**
|
|
5640
|
+
* Deactivated, or their deletion was requested: they read nothing while they cannot sign in,
|
|
5641
|
+
* and the panel shows them so, with Remove (CHAT-SHARE-6b).
|
|
5642
|
+
*/
|
|
5643
|
+
deactivated: z33.literal(true).optional()
|
|
5634
5644
|
});
|
|
5635
5645
|
var conversationSchema = z33.object({
|
|
5636
5646
|
id: z33.string(),
|
|
@@ -5672,7 +5682,11 @@ var conversationPersonRemovedSchema = z33.object({
|
|
|
5672
5682
|
var SHARE_CANDIDATES_QUERY_MAX_CHARS = 200;
|
|
5673
5683
|
var SHARE_CANDIDATES_LIMIT_MAX = 50;
|
|
5674
5684
|
var shareCandidatesQuerySchema = z33.object({
|
|
5675
|
-
/**
|
|
5685
|
+
/**
|
|
5686
|
+
* A prefix of a name or of a word of it, or an email. Among the people offered, a prefix of
|
|
5687
|
+
* an email matches too. From two letters a name prefix also finds active people of the
|
|
5688
|
+
* instance, and an email the person whose whole address it is (CHAT-SHARE-6).
|
|
5689
|
+
*/
|
|
5676
5690
|
query: z33.string().trim().min(1).max(SHARE_CANDIDATES_QUERY_MAX_CHARS).optional(),
|
|
5677
5691
|
limit: z33.coerce.number().int().min(1).max(SHARE_CANDIDATES_LIMIT_MAX).default(5)
|
|
5678
5692
|
});
|
|
@@ -5680,7 +5694,15 @@ var conversationShareCandidateSchema = z33.object({
|
|
|
5680
5694
|
userId: z33.string(),
|
|
5681
5695
|
displayLabel: z33.string(),
|
|
5682
5696
|
email: z33.string().optional(),
|
|
5683
|
-
hasAccess: z33.boolean()
|
|
5697
|
+
hasAccess: z33.boolean(),
|
|
5698
|
+
member: z33.boolean()
|
|
5699
|
+
});
|
|
5700
|
+
var conversationReaderOfferSchema = z33.object({
|
|
5701
|
+
workspace: z33.object({ id: z33.string(), name: z33.string() }),
|
|
5702
|
+
outside: z33.boolean(),
|
|
5703
|
+
defaultAgentName: z33.string().optional(),
|
|
5704
|
+
/** As `workspaces.agents.list` lists them: those the caller's own turns here may run. */
|
|
5705
|
+
agents: safeConfigSchema.shape.agents
|
|
5684
5706
|
});
|
|
5685
5707
|
var conversationShareCandidatesSchema = z33.object({
|
|
5686
5708
|
candidates: z33.array(conversationShareCandidateSchema)
|
|
@@ -6495,6 +6517,9 @@ var conversationListItemSchema = conversationSchema.extend({
|
|
|
6495
6517
|
unread: z33.boolean().optional(),
|
|
6496
6518
|
lastViewedAt: timestampSchema.optional()
|
|
6497
6519
|
});
|
|
6520
|
+
var sharedFromOutsideListItemSchema = conversationListItemSchema.extend({
|
|
6521
|
+
workspaceName: z33.string()
|
|
6522
|
+
});
|
|
6498
6523
|
var conversationUserStateSchema = z33.object({
|
|
6499
6524
|
clientInstanceId: z33.string(),
|
|
6500
6525
|
conversationId: z33.string(),
|
|
@@ -9304,9 +9329,24 @@ var personalConnectionsSchema = z44.object({
|
|
|
9304
9329
|
name: z44.string(),
|
|
9305
9330
|
title: z44.string(),
|
|
9306
9331
|
service: z44.string().optional(),
|
|
9307
|
-
catalogue: z44.object({ entry: z44.string(), part: z44.enum(CATALOGUE_PARTS), version: z44.number().int() }).optional()
|
|
9332
|
+
catalogue: z44.object({ entry: z44.string(), part: z44.enum(CATALOGUE_PARTS), version: z44.number().int() }).optional(),
|
|
9333
|
+
/**
|
|
9334
|
+
* Only on an MCP server the caller added for themselves (PMCP), which is listed to its
|
|
9335
|
+
* owner alone, also while it is switched off: its host, whether it is on, and how many
|
|
9336
|
+
* tools its owner accepted.
|
|
9337
|
+
*/
|
|
9338
|
+
ownServer: z44.object({
|
|
9339
|
+
host: z44.string(),
|
|
9340
|
+
enabled: z44.boolean(),
|
|
9341
|
+
tools: z44.number().int().nonnegative()
|
|
9342
|
+
}).optional()
|
|
9308
9343
|
})
|
|
9309
|
-
)
|
|
9344
|
+
),
|
|
9345
|
+
/**
|
|
9346
|
+
* Whether the caller may add an MCP server for themselves: the operator's switch is on, they
|
|
9347
|
+
* hold `connection.add_own`, and they are signed in to the instance in a first-party session.
|
|
9348
|
+
*/
|
|
9349
|
+
ownServers: z44.object({ mayAdd: z44.boolean() }).optional()
|
|
9310
9350
|
});
|
|
9311
9351
|
var connectionPeopleSchema = z44.object({
|
|
9312
9352
|
people: z44.array(
|
|
@@ -10331,6 +10371,24 @@ var conversationOperations = {
|
|
|
10331
10371
|
errors: ["NOT_FOUND"],
|
|
10332
10372
|
rateClass: "read"
|
|
10333
10373
|
}),
|
|
10374
|
+
"conversations.shared_from_outside.list": defineOperation({
|
|
10375
|
+
id: "conversations.shared_from_outside.list",
|
|
10376
|
+
method: "GET",
|
|
10377
|
+
path: "/api/v1/conversations/shared-from-outside",
|
|
10378
|
+
summary: "List the chats shared with the caller from workspaces they are no member of",
|
|
10379
|
+
tag: "Conversations",
|
|
10380
|
+
auth: "user",
|
|
10381
|
+
scope: "conversation:read",
|
|
10382
|
+
requires: [],
|
|
10383
|
+
effect: "reading",
|
|
10384
|
+
query: listQuerySchema.extend({
|
|
10385
|
+
/** Keeps the chats whose title contains this text, without regard to case. */
|
|
10386
|
+
query: z47.string().trim().min(1).max(CONVERSATION_TITLE_QUERY_MAX_CHARS).optional()
|
|
10387
|
+
}),
|
|
10388
|
+
response: page(sharedFromOutsideListItemSchema, ["updatedAt", "id"], true),
|
|
10389
|
+
errors: [],
|
|
10390
|
+
rateClass: "read"
|
|
10391
|
+
}),
|
|
10334
10392
|
"conversations.create": defineOperation({
|
|
10335
10393
|
id: "conversations.create",
|
|
10336
10394
|
method: "POST",
|
|
@@ -10442,7 +10500,7 @@ var conversationOperations = {
|
|
|
10442
10500
|
id: "conversations.share_candidates",
|
|
10443
10501
|
method: "GET",
|
|
10444
10502
|
path: "/api/v1/conversations/:conversationId/share-candidates",
|
|
10445
|
-
summary: "The
|
|
10503
|
+
summary: "The people of the instance the chat's creator may name, preselected or searched",
|
|
10446
10504
|
tag: "Conversations",
|
|
10447
10505
|
auth: "user",
|
|
10448
10506
|
scope: "conversation:read",
|
|
@@ -10450,7 +10508,22 @@ var conversationOperations = {
|
|
|
10450
10508
|
effect: "reading",
|
|
10451
10509
|
query: shareCandidatesQuerySchema,
|
|
10452
10510
|
response: json(conversationShareCandidatesSchema),
|
|
10453
|
-
errors: ["NOT_FOUND", "FORBIDDEN"],
|
|
10511
|
+
errors: ["NOT_FOUND", "FORBIDDEN", "RATE_LIMITED"],
|
|
10512
|
+
rateClass: "read"
|
|
10513
|
+
}),
|
|
10514
|
+
"conversations.reader_offer.get": defineOperation({
|
|
10515
|
+
id: "conversations.reader_offer.get",
|
|
10516
|
+
method: "GET",
|
|
10517
|
+
path: "/api/v1/conversations/:conversationId/reader-offer",
|
|
10518
|
+
summary: "What the caller is offered in a chat they read: its workspace, and their agents",
|
|
10519
|
+
tag: "Conversations",
|
|
10520
|
+
auth: "user",
|
|
10521
|
+
scope: "conversation:read",
|
|
10522
|
+
requires: [],
|
|
10523
|
+
effect: "reading",
|
|
10524
|
+
query: z47.object({ locale: z47.string().optional() }),
|
|
10525
|
+
response: json(conversationReaderOfferSchema),
|
|
10526
|
+
errors: ["NOT_FOUND"],
|
|
10454
10527
|
rateClass: "read"
|
|
10455
10528
|
}),
|
|
10456
10529
|
"conversations.thread.get": defineOperation({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@work-shape/catalyst-cli",
|
|
3
|
-
"version": "0.8.0-rc.
|
|
3
|
+
"version": "0.8.0-rc.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@types/node": "^24.13.1",
|
|
41
41
|
"tsup": "^8.5.1",
|
|
42
42
|
"typescript": "^6.0.3",
|
|
43
|
-
"@work-shape/catalyst-api-client": "0.8.0-rc.
|
|
44
|
-
"@work-shape/catalyst-asset-schemas": "0.8.0-rc.
|
|
45
|
-
"@work-shape/catalyst-api-contract": "0.8.0-rc.
|
|
43
|
+
"@work-shape/catalyst-api-client": "0.8.0-rc.33",
|
|
44
|
+
"@work-shape/catalyst-asset-schemas": "0.8.0-rc.33",
|
|
45
|
+
"@work-shape/catalyst-api-contract": "0.8.0-rc.33"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup",
|