@seekrit/cli 0.18.0 → 0.19.0
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.js
CHANGED
|
@@ -96,26 +96,40 @@ const ENTITLEMENT_KEYS = Object.keys({
|
|
|
96
96
|
metric: "monthly_resolves"
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region ../../packages/core/src/plans.ts
|
|
101
|
+
const PLAN_FAMILIES = {
|
|
100
102
|
free: {
|
|
101
103
|
id: "free",
|
|
102
104
|
name: "Free",
|
|
103
105
|
description: "Get started with the essentials.",
|
|
104
|
-
current: 1
|
|
106
|
+
current: 1,
|
|
107
|
+
hidden: false
|
|
108
|
+
},
|
|
109
|
+
team: {
|
|
110
|
+
id: "team",
|
|
111
|
+
name: "Team",
|
|
112
|
+
description: "For small teams collaborating on secrets.",
|
|
113
|
+
current: 1,
|
|
114
|
+
hidden: false
|
|
105
115
|
},
|
|
106
116
|
pro: {
|
|
107
117
|
id: "pro",
|
|
108
118
|
name: "Pro",
|
|
109
119
|
description: "For teams running secrets in production.",
|
|
110
|
-
current: 1
|
|
120
|
+
current: 1,
|
|
121
|
+
hidden: true
|
|
111
122
|
},
|
|
112
123
|
enterprise: {
|
|
113
124
|
id: "enterprise",
|
|
114
125
|
name: "Enterprise",
|
|
115
126
|
description: "Unlimited scale with advanced governance.",
|
|
116
|
-
current: 1
|
|
127
|
+
current: 1,
|
|
128
|
+
hidden: false
|
|
117
129
|
}
|
|
118
|
-
}
|
|
130
|
+
};
|
|
131
|
+
const PLAN_FAMILY_IDS = Object.keys(PLAN_FAMILIES);
|
|
132
|
+
PLAN_FAMILY_IDS.filter((family) => !PLAN_FAMILIES[family].hidden);
|
|
119
133
|
//#endregion
|
|
120
134
|
//#region ../../packages/core/src/billing.ts
|
|
121
135
|
/**
|
|
@@ -665,6 +679,7 @@ z.object({
|
|
|
665
679
|
z.object({ name: nameSchema });
|
|
666
680
|
z.object({ name: nameSchema });
|
|
667
681
|
z.object({ name: nameSchema });
|
|
682
|
+
z.object({ required: z.boolean() });
|
|
668
683
|
z.object({
|
|
669
684
|
email: emailSchema,
|
|
670
685
|
role: inviteRoleSchema.default("member")
|
|
@@ -1961,7 +1976,7 @@ function isServiceToken(value) {
|
|
|
1961
1976
|
}
|
|
1962
1977
|
//#endregion
|
|
1963
1978
|
//#region package.json
|
|
1964
|
-
var version = "0.
|
|
1979
|
+
var version = "0.19.0";
|
|
1965
1980
|
//#endregion
|
|
1966
1981
|
//#region ../../packages/api-client/src/index.ts
|
|
1967
1982
|
var SeekritApiError = class extends Error {
|
|
@@ -2038,6 +2053,17 @@ var SeekritClient = class {
|
|
|
2038
2053
|
listMembers(orgId) {
|
|
2039
2054
|
return this.request("GET", `/v1/orgs/${orgId}/members`);
|
|
2040
2055
|
}
|
|
2056
|
+
/**
|
|
2057
|
+
* The org-wide "require a second factor for all members" policy. `configured`
|
|
2058
|
+
* is false when the identity provider isn't wired up (local dev), in which
|
|
2059
|
+
* case the toggle is inert.
|
|
2060
|
+
*/
|
|
2061
|
+
getMfaPolicy(orgId) {
|
|
2062
|
+
return this.request("GET", `/v1/orgs/${orgId}/mfa-policy`);
|
|
2063
|
+
}
|
|
2064
|
+
setMfaPolicy(orgId, input) {
|
|
2065
|
+
return this.request("PATCH", `/v1/orgs/${orgId}/mfa-policy`, input);
|
|
2066
|
+
}
|
|
2041
2067
|
listInvites(orgId) {
|
|
2042
2068
|
return this.request("GET", `/v1/orgs/${orgId}/invites`);
|
|
2043
2069
|
}
|
|
@@ -4589,7 +4615,7 @@ registerMongoCommands(program);
|
|
|
4589
4615
|
registerKmsCommands(program);
|
|
4590
4616
|
registerRecoveryCommands(program);
|
|
4591
4617
|
program.command("mcp").description("run an MCP server over stdio so AI agents can drive seekrit").action(async () => {
|
|
4592
|
-
const { runMcpServer } = await import("./mcp-
|
|
4618
|
+
const { runMcpServer } = await import("./mcp-DR_Ghb4w.js");
|
|
4593
4619
|
await runMcpServer();
|
|
4594
4620
|
});
|
|
4595
4621
|
program.command("audit").description("show the org audit trail").option("--org <slug>").option("--limit <n>", "entries to fetch", "50").action(async (options) => {
|
|
@@ -115,11 +115,11 @@ async function resolveTargetEnv(ctx, o) {
|
|
|
115
115
|
}
|
|
116
116
|
return resolveEnvTarget(ctx, o);
|
|
117
117
|
}
|
|
118
|
-
async function runMcpServer() {
|
|
118
|
+
async function runMcpServer(options = {}) {
|
|
119
119
|
setFailThrows(true);
|
|
120
120
|
const server = new McpServer({
|
|
121
121
|
name: "seekrit",
|
|
122
|
-
version
|
|
122
|
+
version: options.version ?? version
|
|
123
123
|
});
|
|
124
124
|
/** Register a tool whose handler returns data (serialized) or throws (→ isError). */
|
|
125
125
|
const tool = (name, description, shape, handler) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seekrit/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "End-to-end encrypted secrets manager CLI — inject decrypted secrets into any command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"bin": {
|
|
10
10
|
"seekrit": "./dist/index.js"
|
|
11
11
|
},
|
|
12
|
+
"exports": {
|
|
13
|
+
"./mcp": "./src/mcp.ts"
|
|
14
|
+
},
|
|
12
15
|
"files": [
|
|
13
16
|
"dist"
|
|
14
17
|
],
|
|
@@ -24,8 +27,8 @@
|
|
|
24
27
|
"@types/node": "^26.1.0",
|
|
25
28
|
"tsdown": "^0.22.3",
|
|
26
29
|
"@seekrit/api-client": "0.0.1",
|
|
27
|
-
"@seekrit/
|
|
28
|
-
"@seekrit/
|
|
30
|
+
"@seekrit/crypto": "0.0.1",
|
|
31
|
+
"@seekrit/core": "0.0.1"
|
|
29
32
|
},
|
|
30
33
|
"scripts": {
|
|
31
34
|
"build": "tsdown",
|