@work-shape/catalyst-cli 0.8.0-rc.33 → 0.8.0-rc.34
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 +87 -4
- package/dist/index.js +70 -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";
|
|
@@ -33277,9 +33360,9 @@ declare const referenceOperations: {
|
|
|
33277
33360
|
parameters: zod.ZodArray<zod.ZodObject<{
|
|
33278
33361
|
name: zod.ZodString;
|
|
33279
33362
|
in: zod.ZodEnum<{
|
|
33363
|
+
header: "header";
|
|
33280
33364
|
path: "path";
|
|
33281
33365
|
query: "query";
|
|
33282
|
-
header: "header";
|
|
33283
33366
|
}>;
|
|
33284
33367
|
description: zod.ZodOptional<zod.ZodString>;
|
|
33285
33368
|
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",
|
|
@@ -2835,7 +2838,7 @@ import { z as z68 } from "zod";
|
|
|
2835
2838
|
// ../api-contract/package.json
|
|
2836
2839
|
var package_default = {
|
|
2837
2840
|
name: "@work-shape/catalyst-api-contract",
|
|
2838
|
-
version: "0.8.0-rc.
|
|
2841
|
+
version: "0.8.0-rc.34",
|
|
2839
2842
|
license: "MIT",
|
|
2840
2843
|
repository: {
|
|
2841
2844
|
type: "git",
|
|
@@ -9040,6 +9043,12 @@ var connectionTestCredentialSchema = z44.object({
|
|
|
9040
9043
|
/** The Connection's type takes an address of the test credential's own. */
|
|
9041
9044
|
takesEndpoint: z44.boolean()
|
|
9042
9045
|
});
|
|
9046
|
+
var connectionOwnTokenSchema = z44.object({
|
|
9047
|
+
state: z44.enum(CONNECTION_OWN_TOKEN_STATES),
|
|
9048
|
+
scheme: z44.enum(CONNECTION_OWN_TOKEN_SCHEMES),
|
|
9049
|
+
since: timestampSchema.optional(),
|
|
9050
|
+
version: z44.number().int().positive().optional()
|
|
9051
|
+
});
|
|
9043
9052
|
var connectionDetailSchema = z44.object({
|
|
9044
9053
|
name: z44.string(),
|
|
9045
9054
|
health: z44.enum(CONNECTION_HEALTH_STATES),
|
|
@@ -9072,7 +9081,9 @@ var connectionDetailSchema = z44.object({
|
|
|
9072
9081
|
/** Only for a Connection whose auth scheme is `oauth`. */
|
|
9073
9082
|
oauth: connectionOAuthSchema.optional(),
|
|
9074
9083
|
/** Only for a shared Connection that takes a test credential, or where one is stored. */
|
|
9075
|
-
testCredential: connectionTestCredentialSchema.optional()
|
|
9084
|
+
testCredential: connectionTestCredentialSchema.optional(),
|
|
9085
|
+
/** Only for a personal MCP Connection that takes each person's own token: the reader's. */
|
|
9086
|
+
ownToken: connectionOwnTokenSchema.optional()
|
|
9076
9087
|
});
|
|
9077
9088
|
var connectionOAuthStartSchema = z44.object({
|
|
9078
9089
|
/** The sign-in, for `connections.oauth_sign_in`. It proves nothing and opens nothing. */
|
|
@@ -9270,6 +9281,14 @@ var connectionTestCredentialWriteSchema = connectionSecretWriteSchema.extend({
|
|
|
9270
9281
|
endpoint: z44.string().url().max(2048).optional(),
|
|
9271
9282
|
account: z44.string().trim().min(1).max(TEST_CREDENTIAL_ACCOUNT_MAX_CHARS).optional()
|
|
9272
9283
|
});
|
|
9284
|
+
var connectionOwnSecretWriteSchema = z44.object({
|
|
9285
|
+
value: z44.string().min(1).max(SECRET_VALUE_MAX_CHARS),
|
|
9286
|
+
expectedVersion: z44.number().int().positive().nullable()
|
|
9287
|
+
});
|
|
9288
|
+
var connectionOwnSecretSetSchema = z44.object({
|
|
9289
|
+
state: z44.literal("set"),
|
|
9290
|
+
version: z44.number().int().positive()
|
|
9291
|
+
});
|
|
9273
9292
|
var connectionTestCredentialSetSchema = z44.object({
|
|
9274
9293
|
state: z44.literal("set"),
|
|
9275
9294
|
version: z44.number().int().positive()
|
|
@@ -9339,14 +9358,43 @@ var personalConnectionsSchema = z44.object({
|
|
|
9339
9358
|
host: z44.string(),
|
|
9340
9359
|
enabled: z44.boolean(),
|
|
9341
9360
|
tools: z44.number().int().nonnegative()
|
|
9342
|
-
}).optional()
|
|
9361
|
+
}).optional(),
|
|
9362
|
+
/**
|
|
9363
|
+
* Where each person pastes their own token instead of signing in (PMCP-6): the version
|
|
9364
|
+
* of the caller's token, for replacing it. Its state is the row's `state`.
|
|
9365
|
+
*/
|
|
9366
|
+
token: z44.object({ version: z44.number().int().positive().optional() }).optional()
|
|
9343
9367
|
})
|
|
9344
9368
|
),
|
|
9345
9369
|
/**
|
|
9346
9370
|
* Whether the caller may add an MCP server for themselves: the operator's switch is on, they
|
|
9347
9371
|
* hold `connection.add_own`, and they are signed in to the instance in a first-party session.
|
|
9348
9372
|
*/
|
|
9349
|
-
ownServers: z44.object({
|
|
9373
|
+
ownServers: z44.object({
|
|
9374
|
+
mayAdd: z44.boolean(),
|
|
9375
|
+
/**
|
|
9376
|
+
* The catalogue entries a person adds as their own server (PMCP-CAT), listed while they may
|
|
9377
|
+
* add one: a tile each on the add screen. No credential, client or scope.
|
|
9378
|
+
*/
|
|
9379
|
+
entries: z44.array(
|
|
9380
|
+
z44.object({
|
|
9381
|
+
id: z44.string(),
|
|
9382
|
+
version: z44.number().int(),
|
|
9383
|
+
service: z44.string(),
|
|
9384
|
+
title: localizedTextSchema,
|
|
9385
|
+
description: localizedTextSchema,
|
|
9386
|
+
mark: z44.object({ color: z44.string().optional(), logo: z44.string().optional() }),
|
|
9387
|
+
url: z44.string(),
|
|
9388
|
+
signIn: z44.enum(OWN_SERVER_SIGN_INS),
|
|
9389
|
+
token: z44.object({
|
|
9390
|
+
help: localizedTextSchema,
|
|
9391
|
+
link: z44.string().optional(),
|
|
9392
|
+
header: z44.string().optional()
|
|
9393
|
+
}).optional(),
|
|
9394
|
+
tools: z44.array(z44.object({ name: z44.string(), effect: connectionOperationEffectSchema }))
|
|
9395
|
+
})
|
|
9396
|
+
).optional()
|
|
9397
|
+
}).optional()
|
|
9350
9398
|
});
|
|
9351
9399
|
var connectionPeopleSchema = z44.object({
|
|
9352
9400
|
people: z44.array(
|
|
@@ -9516,6 +9564,24 @@ var connectionOperations = {
|
|
|
9516
9564
|
errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
|
|
9517
9565
|
rateClass: "write"
|
|
9518
9566
|
}),
|
|
9567
|
+
"connections.set_own_secret": defineRegisteredOperation({
|
|
9568
|
+
id: "connections.set_own_secret",
|
|
9569
|
+
method: "PUT",
|
|
9570
|
+
path: "/api/v1/connections/:name/own-secret",
|
|
9571
|
+
summary: "Set or replace the caller's own token for a personal MCP Connection that takes one. The value is never answered",
|
|
9572
|
+
tag: "Connections",
|
|
9573
|
+
// A person in their first-party session alone (refused in the route for anything else).
|
|
9574
|
+
auth: "user",
|
|
9575
|
+
scope: "config_assets:write",
|
|
9576
|
+
requires: [],
|
|
9577
|
+
effect: "changing",
|
|
9578
|
+
// The call carries a secret. The run keeps no answer and the call never waits.
|
|
9579
|
+
secret: true,
|
|
9580
|
+
body: connectionOwnSecretWriteSchema,
|
|
9581
|
+
response: json(connectionOwnSecretSetSchema),
|
|
9582
|
+
errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
|
|
9583
|
+
rateClass: "write"
|
|
9584
|
+
}),
|
|
9519
9585
|
"connections.remove_test_credential": defineRegisteredOperation({
|
|
9520
9586
|
id: "connections.remove_test_credential",
|
|
9521
9587
|
method: "DELETE",
|
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.34",
|
|
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.34",
|
|
44
|
+
"@work-shape/catalyst-api-contract": "0.8.0-rc.34",
|
|
45
|
+
"@work-shape/catalyst-asset-schemas": "0.8.0-rc.34"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup",
|