@work-shape/catalyst-cli 0.8.0-rc.33 → 0.8.0-rc.35
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 +90 -4
- package/dist/index.js +81 -4
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -13149,8 +13149,8 @@ declare const connectionOperations: {
|
|
|
13149
13149
|
readonly schema: z.ZodObject<{
|
|
13150
13150
|
connections: z.ZodArray<z.ZodObject<{
|
|
13151
13151
|
state: z.ZodEnum<{
|
|
13152
|
-
connected: "connected";
|
|
13153
13152
|
needs_reconnect: "needs_reconnect";
|
|
13153
|
+
connected: "connected";
|
|
13154
13154
|
revoked: "revoked";
|
|
13155
13155
|
not_connected: "not_connected";
|
|
13156
13156
|
}>;
|
|
@@ -13174,9 +13174,49 @@ declare const connectionOperations: {
|
|
|
13174
13174
|
enabled: z.ZodBoolean;
|
|
13175
13175
|
tools: z.ZodNumber;
|
|
13176
13176
|
}, z.core.$strip>>;
|
|
13177
|
+
token: z.ZodOptional<z.ZodObject<{
|
|
13178
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
13179
|
+
}, z.core.$strip>>;
|
|
13177
13180
|
}, z.core.$strip>>;
|
|
13178
13181
|
ownServers: z.ZodOptional<z.ZodObject<{
|
|
13179
13182
|
mayAdd: z.ZodBoolean;
|
|
13183
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13184
|
+
id: z.ZodString;
|
|
13185
|
+
version: z.ZodNumber;
|
|
13186
|
+
service: z.ZodString;
|
|
13187
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
13188
|
+
en: z.ZodOptional<z.ZodString>;
|
|
13189
|
+
de: z.ZodOptional<z.ZodString>;
|
|
13190
|
+
}, z.core.$strict>]>;
|
|
13191
|
+
description: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
13192
|
+
en: z.ZodOptional<z.ZodString>;
|
|
13193
|
+
de: z.ZodOptional<z.ZodString>;
|
|
13194
|
+
}, z.core.$strict>]>;
|
|
13195
|
+
mark: z.ZodObject<{
|
|
13196
|
+
color: z.ZodOptional<z.ZodString>;
|
|
13197
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
13198
|
+
}, z.core.$strip>;
|
|
13199
|
+
url: z.ZodString;
|
|
13200
|
+
signIn: z.ZodEnum<{
|
|
13201
|
+
oauth: "oauth";
|
|
13202
|
+
token: "token";
|
|
13203
|
+
}>;
|
|
13204
|
+
token: z.ZodOptional<z.ZodObject<{
|
|
13205
|
+
help: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
13206
|
+
en: z.ZodOptional<z.ZodString>;
|
|
13207
|
+
de: z.ZodOptional<z.ZodString>;
|
|
13208
|
+
}, z.core.$strict>]>;
|
|
13209
|
+
link: z.ZodOptional<z.ZodString>;
|
|
13210
|
+
header: z.ZodOptional<z.ZodString>;
|
|
13211
|
+
}, z.core.$strip>>;
|
|
13212
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
13213
|
+
name: z.ZodString;
|
|
13214
|
+
effect: z.ZodEnum<{
|
|
13215
|
+
reading: "reading";
|
|
13216
|
+
changing: "changing";
|
|
13217
|
+
}>;
|
|
13218
|
+
}, z.core.$strip>>;
|
|
13219
|
+
}, z.core.$strip>>>;
|
|
13180
13220
|
}, z.core.$strip>>;
|
|
13181
13221
|
}, z.core.$strip>;
|
|
13182
13222
|
};
|
|
@@ -13202,8 +13242,8 @@ declare const connectionOperations: {
|
|
|
13202
13242
|
readonly schema: z.ZodObject<{
|
|
13203
13243
|
people: z.ZodArray<z.ZodObject<{
|
|
13204
13244
|
state: z.ZodEnum<{
|
|
13205
|
-
connected: "connected";
|
|
13206
13245
|
needs_reconnect: "needs_reconnect";
|
|
13246
|
+
connected: "connected";
|
|
13207
13247
|
revoked: "revoked";
|
|
13208
13248
|
not_connected: "not_connected";
|
|
13209
13249
|
}>;
|
|
@@ -13556,8 +13596,8 @@ declare const connectionOperations: {
|
|
|
13556
13596
|
discoveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
13557
13597
|
binding: z.ZodOptional<z.ZodObject<{
|
|
13558
13598
|
state: z.ZodEnum<{
|
|
13559
|
-
connected: "connected";
|
|
13560
13599
|
needs_reconnect: "needs_reconnect";
|
|
13600
|
+
connected: "connected";
|
|
13561
13601
|
revoked: "revoked";
|
|
13562
13602
|
}>;
|
|
13563
13603
|
account: z.ZodOptional<z.ZodString>;
|
|
@@ -13591,6 +13631,19 @@ declare const connectionOperations: {
|
|
|
13591
13631
|
setBy: z.ZodOptional<z.ZodString>;
|
|
13592
13632
|
takesEndpoint: z.ZodBoolean;
|
|
13593
13633
|
}, z.core.$strip>>;
|
|
13634
|
+
ownToken: z.ZodOptional<z.ZodObject<{
|
|
13635
|
+
state: z.ZodEnum<{
|
|
13636
|
+
set: "set";
|
|
13637
|
+
not_set: "not_set";
|
|
13638
|
+
needs_reconnect: "needs_reconnect";
|
|
13639
|
+
}>;
|
|
13640
|
+
scheme: z.ZodEnum<{
|
|
13641
|
+
bearer: "bearer";
|
|
13642
|
+
header: "header";
|
|
13643
|
+
}>;
|
|
13644
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
13645
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
13646
|
+
}, z.core.$strip>>;
|
|
13594
13647
|
}, z.core.$strip>;
|
|
13595
13648
|
};
|
|
13596
13649
|
readonly errors: readonly ["NOT_FOUND"];
|
|
@@ -13882,6 +13935,36 @@ declare const connectionOperations: {
|
|
|
13882
13935
|
readonly response: readonly ["Operation-Run-Id", "Idempotent-Replayed"];
|
|
13883
13936
|
};
|
|
13884
13937
|
}>;
|
|
13938
|
+
readonly "connections.set_own_secret": Operation<{
|
|
13939
|
+
readonly id: "connections.set_own_secret";
|
|
13940
|
+
readonly method: "PUT";
|
|
13941
|
+
readonly path: "/api/v1/connections/:name/own-secret";
|
|
13942
|
+
readonly summary: "Set or replace the caller's own token for a personal MCP Connection that takes one. The value is never answered";
|
|
13943
|
+
readonly tag: "Connections";
|
|
13944
|
+
readonly auth: "user";
|
|
13945
|
+
readonly scope: "config_assets:write";
|
|
13946
|
+
readonly requires: readonly [];
|
|
13947
|
+
readonly effect: "changing";
|
|
13948
|
+
readonly secret: true;
|
|
13949
|
+
readonly body: z.ZodObject<{
|
|
13950
|
+
value: z.ZodString;
|
|
13951
|
+
expectedVersion: z.ZodNullable<z.ZodNumber>;
|
|
13952
|
+
}, z.core.$strip>;
|
|
13953
|
+
readonly response: {
|
|
13954
|
+
readonly kind: "json";
|
|
13955
|
+
readonly schema: z.ZodObject<{
|
|
13956
|
+
state: z.ZodLiteral<"set">;
|
|
13957
|
+
version: z.ZodNumber;
|
|
13958
|
+
}, z.core.$strip>;
|
|
13959
|
+
};
|
|
13960
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"];
|
|
13961
|
+
readonly rateClass: "write";
|
|
13962
|
+
} & {
|
|
13963
|
+
readonly headers: {
|
|
13964
|
+
readonly request: readonly ["Idempotency-Key"];
|
|
13965
|
+
readonly response: readonly ["Operation-Run-Id", "Idempotent-Replayed"];
|
|
13966
|
+
};
|
|
13967
|
+
}>;
|
|
13885
13968
|
readonly "connections.remove_test_credential": Operation<{
|
|
13886
13969
|
readonly id: "connections.remove_test_credential";
|
|
13887
13970
|
readonly method: "DELETE";
|
|
@@ -27129,6 +27212,7 @@ declare const knowledgeOperations: {
|
|
|
27129
27212
|
processingWaiting: z.ZodOptional<z.ZodBoolean>;
|
|
27130
27213
|
embedding: z.ZodOptional<z.ZodType<KnowledgeEmbeddingStateResponse, unknown, z.core.$ZodTypeInternals<KnowledgeEmbeddingStateResponse, unknown>>>;
|
|
27131
27214
|
documentFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27215
|
+
maxFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
27132
27216
|
id: z.ZodString;
|
|
27133
27217
|
name: z.ZodString;
|
|
27134
27218
|
status: z.ZodEnum<{
|
|
@@ -27191,6 +27275,7 @@ declare const knowledgeOperations: {
|
|
|
27191
27275
|
processingWaiting: z.ZodOptional<z.ZodBoolean>;
|
|
27192
27276
|
embedding: z.ZodOptional<z.ZodType<KnowledgeEmbeddingStateResponse, unknown, z.core.$ZodTypeInternals<KnowledgeEmbeddingStateResponse, unknown>>>;
|
|
27193
27277
|
documentFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27278
|
+
maxFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
27194
27279
|
id: z.ZodString;
|
|
27195
27280
|
name: z.ZodString;
|
|
27196
27281
|
status: z.ZodEnum<{
|
|
@@ -28551,6 +28636,7 @@ declare const knowledgeOperations: {
|
|
|
28551
28636
|
text: z.ZodString;
|
|
28552
28637
|
score: z.ZodNumber;
|
|
28553
28638
|
originLink: z.ZodOptional<z.ZodString>;
|
|
28639
|
+
path: z.ZodOptional<z.ZodString>;
|
|
28554
28640
|
statedAt: z.ZodOptional<z.ZodString>;
|
|
28555
28641
|
retrievedAt: z.ZodOptional<z.ZodString>;
|
|
28556
28642
|
}, z.core.$strip>>;
|
|
@@ -33277,9 +33363,9 @@ declare const referenceOperations: {
|
|
|
33277
33363
|
parameters: zod.ZodArray<zod.ZodObject<{
|
|
33278
33364
|
name: zod.ZodString;
|
|
33279
33365
|
in: zod.ZodEnum<{
|
|
33366
|
+
header: "header";
|
|
33280
33367
|
path: "path";
|
|
33281
33368
|
query: "query";
|
|
33282
|
-
header: "header";
|
|
33283
33369
|
}>;
|
|
33284
33370
|
description: zod.ZodOptional<zod.ZodString>;
|
|
33285
33371
|
required: zod.ZodBoolean;
|
package/dist/index.js
CHANGED
|
@@ -590,6 +590,9 @@ var CONNECTION_OPERATION_STATUSES = [
|
|
|
590
590
|
];
|
|
591
591
|
var CONNECTION_SECRET_STATES = ["set", "not_set", "unreadable"];
|
|
592
592
|
var CONNECTION_TEST_CREDENTIAL_STATES = ["not_set", "set", "stale"];
|
|
593
|
+
var CONNECTION_OWN_TOKEN_STATES = ["set", "not_set", "needs_reconnect"];
|
|
594
|
+
var CONNECTION_OWN_TOKEN_SCHEMES = ["bearer", "header"];
|
|
595
|
+
var OWN_SERVER_SIGN_INS = ["oauth", "token"];
|
|
593
596
|
var CONNECTOR_TEST_STATUSES = [
|
|
594
597
|
"ready",
|
|
595
598
|
"unauthorized",
|
|
@@ -636,6 +639,7 @@ var KNOWLEDGE_EMBEDDING_STATES = [
|
|
|
636
639
|
];
|
|
637
640
|
var KNOWLEDGE_DOCUMENT_STATES = ["pending", "indexed", "failed"];
|
|
638
641
|
var KNOWLEDGE_FILE_MAX_BYTES = 25 * 1024 * 1024;
|
|
642
|
+
var KNOWLEDGE_FILE_MAX_BYTES_CEILING = 256 * 1024 * 1024;
|
|
639
643
|
var KNOWLEDGE_DOCUMENT_FAILURE_CODES = [
|
|
640
644
|
// The extractor does not read the file's format.
|
|
641
645
|
"knowledge_file_format_unsupported",
|
|
@@ -2835,7 +2839,7 @@ import { z as z68 } from "zod";
|
|
|
2835
2839
|
// ../api-contract/package.json
|
|
2836
2840
|
var package_default = {
|
|
2837
2841
|
name: "@work-shape/catalyst-api-contract",
|
|
2838
|
-
version: "0.8.0-rc.
|
|
2842
|
+
version: "0.8.0-rc.35",
|
|
2839
2843
|
license: "MIT",
|
|
2840
2844
|
repository: {
|
|
2841
2845
|
type: "git",
|
|
@@ -9040,6 +9044,12 @@ var connectionTestCredentialSchema = z44.object({
|
|
|
9040
9044
|
/** The Connection's type takes an address of the test credential's own. */
|
|
9041
9045
|
takesEndpoint: z44.boolean()
|
|
9042
9046
|
});
|
|
9047
|
+
var connectionOwnTokenSchema = z44.object({
|
|
9048
|
+
state: z44.enum(CONNECTION_OWN_TOKEN_STATES),
|
|
9049
|
+
scheme: z44.enum(CONNECTION_OWN_TOKEN_SCHEMES),
|
|
9050
|
+
since: timestampSchema.optional(),
|
|
9051
|
+
version: z44.number().int().positive().optional()
|
|
9052
|
+
});
|
|
9043
9053
|
var connectionDetailSchema = z44.object({
|
|
9044
9054
|
name: z44.string(),
|
|
9045
9055
|
health: z44.enum(CONNECTION_HEALTH_STATES),
|
|
@@ -9072,7 +9082,9 @@ var connectionDetailSchema = z44.object({
|
|
|
9072
9082
|
/** Only for a Connection whose auth scheme is `oauth`. */
|
|
9073
9083
|
oauth: connectionOAuthSchema.optional(),
|
|
9074
9084
|
/** Only for a shared Connection that takes a test credential, or where one is stored. */
|
|
9075
|
-
testCredential: connectionTestCredentialSchema.optional()
|
|
9085
|
+
testCredential: connectionTestCredentialSchema.optional(),
|
|
9086
|
+
/** Only for a personal MCP Connection that takes each person's own token: the reader's. */
|
|
9087
|
+
ownToken: connectionOwnTokenSchema.optional()
|
|
9076
9088
|
});
|
|
9077
9089
|
var connectionOAuthStartSchema = z44.object({
|
|
9078
9090
|
/** The sign-in, for `connections.oauth_sign_in`. It proves nothing and opens nothing. */
|
|
@@ -9270,6 +9282,14 @@ var connectionTestCredentialWriteSchema = connectionSecretWriteSchema.extend({
|
|
|
9270
9282
|
endpoint: z44.string().url().max(2048).optional(),
|
|
9271
9283
|
account: z44.string().trim().min(1).max(TEST_CREDENTIAL_ACCOUNT_MAX_CHARS).optional()
|
|
9272
9284
|
});
|
|
9285
|
+
var connectionOwnSecretWriteSchema = z44.object({
|
|
9286
|
+
value: z44.string().min(1).max(SECRET_VALUE_MAX_CHARS),
|
|
9287
|
+
expectedVersion: z44.number().int().positive().nullable()
|
|
9288
|
+
});
|
|
9289
|
+
var connectionOwnSecretSetSchema = z44.object({
|
|
9290
|
+
state: z44.literal("set"),
|
|
9291
|
+
version: z44.number().int().positive()
|
|
9292
|
+
});
|
|
9273
9293
|
var connectionTestCredentialSetSchema = z44.object({
|
|
9274
9294
|
state: z44.literal("set"),
|
|
9275
9295
|
version: z44.number().int().positive()
|
|
@@ -9339,14 +9359,43 @@ var personalConnectionsSchema = z44.object({
|
|
|
9339
9359
|
host: z44.string(),
|
|
9340
9360
|
enabled: z44.boolean(),
|
|
9341
9361
|
tools: z44.number().int().nonnegative()
|
|
9342
|
-
}).optional()
|
|
9362
|
+
}).optional(),
|
|
9363
|
+
/**
|
|
9364
|
+
* Where each person pastes their own token instead of signing in (PMCP-6): the version
|
|
9365
|
+
* of the caller's token, for replacing it. Its state is the row's `state`.
|
|
9366
|
+
*/
|
|
9367
|
+
token: z44.object({ version: z44.number().int().positive().optional() }).optional()
|
|
9343
9368
|
})
|
|
9344
9369
|
),
|
|
9345
9370
|
/**
|
|
9346
9371
|
* Whether the caller may add an MCP server for themselves: the operator's switch is on, they
|
|
9347
9372
|
* hold `connection.add_own`, and they are signed in to the instance in a first-party session.
|
|
9348
9373
|
*/
|
|
9349
|
-
ownServers: z44.object({
|
|
9374
|
+
ownServers: z44.object({
|
|
9375
|
+
mayAdd: z44.boolean(),
|
|
9376
|
+
/**
|
|
9377
|
+
* The catalogue entries a person adds as their own server (PMCP-CAT), listed while they may
|
|
9378
|
+
* add one: a tile each on the add screen. No credential, client or scope.
|
|
9379
|
+
*/
|
|
9380
|
+
entries: z44.array(
|
|
9381
|
+
z44.object({
|
|
9382
|
+
id: z44.string(),
|
|
9383
|
+
version: z44.number().int(),
|
|
9384
|
+
service: z44.string(),
|
|
9385
|
+
title: localizedTextSchema,
|
|
9386
|
+
description: localizedTextSchema,
|
|
9387
|
+
mark: z44.object({ color: z44.string().optional(), logo: z44.string().optional() }),
|
|
9388
|
+
url: z44.string(),
|
|
9389
|
+
signIn: z44.enum(OWN_SERVER_SIGN_INS),
|
|
9390
|
+
token: z44.object({
|
|
9391
|
+
help: localizedTextSchema,
|
|
9392
|
+
link: z44.string().optional(),
|
|
9393
|
+
header: z44.string().optional()
|
|
9394
|
+
}).optional(),
|
|
9395
|
+
tools: z44.array(z44.object({ name: z44.string(), effect: connectionOperationEffectSchema }))
|
|
9396
|
+
})
|
|
9397
|
+
).optional()
|
|
9398
|
+
}).optional()
|
|
9350
9399
|
});
|
|
9351
9400
|
var connectionPeopleSchema = z44.object({
|
|
9352
9401
|
people: z44.array(
|
|
@@ -9516,6 +9565,24 @@ var connectionOperations = {
|
|
|
9516
9565
|
errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
|
|
9517
9566
|
rateClass: "write"
|
|
9518
9567
|
}),
|
|
9568
|
+
"connections.set_own_secret": defineRegisteredOperation({
|
|
9569
|
+
id: "connections.set_own_secret",
|
|
9570
|
+
method: "PUT",
|
|
9571
|
+
path: "/api/v1/connections/:name/own-secret",
|
|
9572
|
+
summary: "Set or replace the caller's own token for a personal MCP Connection that takes one. The value is never answered",
|
|
9573
|
+
tag: "Connections",
|
|
9574
|
+
// A person in their first-party session alone (refused in the route for anything else).
|
|
9575
|
+
auth: "user",
|
|
9576
|
+
scope: "config_assets:write",
|
|
9577
|
+
requires: [],
|
|
9578
|
+
effect: "changing",
|
|
9579
|
+
// The call carries a secret. The run keeps no answer and the call never waits.
|
|
9580
|
+
secret: true,
|
|
9581
|
+
body: connectionOwnSecretWriteSchema,
|
|
9582
|
+
response: json(connectionOwnSecretSetSchema),
|
|
9583
|
+
errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
|
|
9584
|
+
rateClass: "write"
|
|
9585
|
+
}),
|
|
9519
9586
|
"connections.remove_test_credential": defineRegisteredOperation({
|
|
9520
9587
|
id: "connections.remove_test_credential",
|
|
9521
9588
|
method: "DELETE",
|
|
@@ -11866,6 +11933,11 @@ var knowledgeStateResponseSchema = z57.object({
|
|
|
11866
11933
|
* `markdown`, with document processing also `pdf`, `docx`, `xlsx` and `pptx`. Omitted for a structured one.
|
|
11867
11934
|
*/
|
|
11868
11935
|
documentFormats: z57.array(z57.string()).optional(),
|
|
11936
|
+
/**
|
|
11937
|
+
* The largest file in bytes such a Knowledge Base takes on this instance, as
|
|
11938
|
+
* `knowledge.maxFileBytes` sets it. Omitted for a structured one.
|
|
11939
|
+
*/
|
|
11940
|
+
maxFileBytes: z57.number().int().optional(),
|
|
11869
11941
|
/** The id of the Knowledge Base's asset. */
|
|
11870
11942
|
id: z57.string(),
|
|
11871
11943
|
/** The id operations and routes name the Knowledge Base by. */
|
|
@@ -12004,6 +12076,11 @@ var knowledgeSearchResponseSchema = z57.object({
|
|
|
12004
12076
|
/** Reciprocal rank fusion of the lists in `signals`: compare it only within one Knowledge Base. */
|
|
12005
12077
|
score: z57.number(),
|
|
12006
12078
|
originLink: z57.string().optional(),
|
|
12079
|
+
/**
|
|
12080
|
+
* The path of a synced or Workflow-fed document below its source's boundary, folders and
|
|
12081
|
+
* file name, such as `/Projekte/Nord/Angebot.pdf`. None for a file added by hand.
|
|
12082
|
+
*/
|
|
12083
|
+
path: z57.string().optional(),
|
|
12007
12084
|
/**
|
|
12008
12085
|
* The date a synced document states of its own version, such as the "Stand" of a web
|
|
12009
12086
|
* page. An ISO date-time in UTC; none where the document states no date.
|
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.35",
|
|
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-
|
|
45
|
-
"@work-shape/catalyst-
|
|
43
|
+
"@work-shape/catalyst-api-client": "0.8.0-rc.35",
|
|
44
|
+
"@work-shape/catalyst-api-contract": "0.8.0-rc.35",
|
|
45
|
+
"@work-shape/catalyst-asset-schemas": "0.8.0-rc.35"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup",
|