@meetkai/mka1 0.54.47 → 0.54.48
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/bin/mcp-server.js +38 -9
- package/bin/mcp-server.js.map +11 -10
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/environmentmodel.d.ts +13 -0
- package/dist/commonjs/models/components/environmentmodel.d.ts.map +1 -1
- package/dist/commonjs/models/components/environmentmodel.js +5 -0
- package/dist/commonjs/models/components/environmentmodel.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/networkaccess.d.ts +33 -0
- package/dist/commonjs/models/components/networkaccess.d.ts.map +1 -0
- package/dist/commonjs/models/components/networkaccess.js +60 -0
- package/dist/commonjs/models/components/networkaccess.js.map +1 -0
- package/dist/commonjs/models/components/saveenvironmentrequest.d.ts +3 -0
- package/dist/commonjs/models/components/saveenvironmentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/saveenvironmentrequest.js +5 -0
- package/dist/commonjs/models/components/saveenvironmentrequest.js.map +1 -1
- package/dist/commonjs/models/components/sessionrecord.d.ts +3 -0
- package/dist/commonjs/models/components/sessionrecord.d.ts.map +1 -1
- package/dist/commonjs/models/components/sessionrecord.js +6 -0
- package/dist/commonjs/models/components/sessionrecord.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/environmentmodel.d.ts +13 -0
- package/dist/esm/models/components/environmentmodel.d.ts.map +1 -1
- package/dist/esm/models/components/environmentmodel.js +5 -0
- package/dist/esm/models/components/environmentmodel.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/networkaccess.d.ts +33 -0
- package/dist/esm/models/components/networkaccess.d.ts.map +1 -0
- package/dist/esm/models/components/networkaccess.js +24 -0
- package/dist/esm/models/components/networkaccess.js.map +1 -0
- package/dist/esm/models/components/saveenvironmentrequest.d.ts +3 -0
- package/dist/esm/models/components/saveenvironmentrequest.d.ts.map +1 -1
- package/dist/esm/models/components/saveenvironmentrequest.js +5 -0
- package/dist/esm/models/components/saveenvironmentrequest.js.map +1 -1
- package/dist/esm/models/components/sessionrecord.d.ts +3 -0
- package/dist/esm/models/components/sessionrecord.d.ts.map +1 -1
- package/dist/esm/models/components/sessionrecord.js +6 -0
- package/dist/esm/models/components/sessionrecord.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/environmentmodel.ts +21 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/networkaccess.ts +42 -0
- package/src/models/components/saveenvironmentrequest.ts +11 -0
- package/src/models/components/sessionrecord.ts +12 -0
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.54.
|
|
68
|
+
sdkVersion: "0.54.48",
|
|
69
69
|
genVersion: "2.938.0",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.48 2.938.0 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -13,6 +13,11 @@ import {
|
|
|
13
13
|
EnvironmentRepositoryModel$Outbound,
|
|
14
14
|
EnvironmentRepositoryModel$outboundSchema,
|
|
15
15
|
} from "./environmentrepositorymodel.js";
|
|
16
|
+
import {
|
|
17
|
+
NetworkAccess,
|
|
18
|
+
NetworkAccess$inboundSchema,
|
|
19
|
+
NetworkAccess$outboundSchema,
|
|
20
|
+
} from "./networkaccess.js";
|
|
16
21
|
|
|
17
22
|
export type EnvironmentModel = {
|
|
18
23
|
environmentId: number;
|
|
@@ -20,6 +25,17 @@ export type EnvironmentModel = {
|
|
|
20
25
|
environmentVariables: { [k: string]: string };
|
|
21
26
|
setupScript?: string | null | undefined;
|
|
22
27
|
repositories: Array<EnvironmentRepositoryModel>;
|
|
28
|
+
/**
|
|
29
|
+
* How much of the internet a Coding Harness guest reaches through the proxy.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
*
|
|
33
|
+
* Ordered: each level includes the one before it. The model broker and the
|
|
34
|
+
* ``mka1-github`` push/PR tool reach the runner directly, and the
|
|
35
|
+
* Environment's repositories are cloned on the host before boot, so all of
|
|
36
|
+
* them work at every level, including ``none``.
|
|
37
|
+
*/
|
|
38
|
+
networkAccess: NetworkAccess;
|
|
23
39
|
createdByUserId: string;
|
|
24
40
|
createdAt: Date;
|
|
25
41
|
updatedAt: Date;
|
|
@@ -36,6 +52,7 @@ export const EnvironmentModel$inboundSchema: z.ZodType<
|
|
|
36
52
|
environment_variables: z.record(z.string()),
|
|
37
53
|
setup_script: z.nullable(z.string()).optional(),
|
|
38
54
|
repositories: z.array(EnvironmentRepositoryModel$inboundSchema),
|
|
55
|
+
network_access: NetworkAccess$inboundSchema,
|
|
39
56
|
created_by_user_id: z.string(),
|
|
40
57
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
41
58
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -44,6 +61,7 @@ export const EnvironmentModel$inboundSchema: z.ZodType<
|
|
|
44
61
|
"environment_id": "environmentId",
|
|
45
62
|
"environment_variables": "environmentVariables",
|
|
46
63
|
"setup_script": "setupScript",
|
|
64
|
+
"network_access": "networkAccess",
|
|
47
65
|
"created_by_user_id": "createdByUserId",
|
|
48
66
|
"created_at": "createdAt",
|
|
49
67
|
"updated_at": "updatedAt",
|
|
@@ -56,6 +74,7 @@ export type EnvironmentModel$Outbound = {
|
|
|
56
74
|
environment_variables: { [k: string]: string };
|
|
57
75
|
setup_script?: string | null | undefined;
|
|
58
76
|
repositories: Array<EnvironmentRepositoryModel$Outbound>;
|
|
77
|
+
network_access: string;
|
|
59
78
|
created_by_user_id: string;
|
|
60
79
|
created_at: string;
|
|
61
80
|
updated_at: string;
|
|
@@ -72,6 +91,7 @@ export const EnvironmentModel$outboundSchema: z.ZodType<
|
|
|
72
91
|
environmentVariables: z.record(z.string()),
|
|
73
92
|
setupScript: z.nullable(z.string()).optional(),
|
|
74
93
|
repositories: z.array(EnvironmentRepositoryModel$outboundSchema),
|
|
94
|
+
networkAccess: NetworkAccess$outboundSchema,
|
|
75
95
|
createdByUserId: z.string(),
|
|
76
96
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
77
97
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
@@ -80,6 +100,7 @@ export const EnvironmentModel$outboundSchema: z.ZodType<
|
|
|
80
100
|
environmentId: "environment_id",
|
|
81
101
|
environmentVariables: "environment_variables",
|
|
82
102
|
setupScript: "setup_script",
|
|
103
|
+
networkAccess: "network_access",
|
|
83
104
|
createdByUserId: "created_by_user_id",
|
|
84
105
|
createdAt: "created_at",
|
|
85
106
|
updatedAt: "updated_at",
|
|
@@ -447,6 +447,7 @@ export * from "./modelpricerow.js";
|
|
|
447
447
|
export * from "./modelquote.js";
|
|
448
448
|
export * from "./modifyvectorstorerequest.js";
|
|
449
449
|
export * from "./moveaction.js";
|
|
450
|
+
export * from "./networkaccess.js";
|
|
450
451
|
export * from "./openaichatcompletion.js";
|
|
451
452
|
export * from "./openaichatcompletionchoice.js";
|
|
452
453
|
export * from "./openaichatcompletionchunk.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* How much of the internet a Coding Harness guest reaches through the proxy.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
*
|
|
13
|
+
* Ordered: each level includes the one before it. The model broker and the
|
|
14
|
+
* ``mka1-github`` push/PR tool reach the runner directly, and the
|
|
15
|
+
* Environment's repositories are cloned on the host before boot, so all of
|
|
16
|
+
* them work at every level, including ``none``.
|
|
17
|
+
*/
|
|
18
|
+
export const NetworkAccess = {
|
|
19
|
+
None: "none",
|
|
20
|
+
PackageManagers: "package_managers",
|
|
21
|
+
Full: "full",
|
|
22
|
+
} as const;
|
|
23
|
+
/**
|
|
24
|
+
* How much of the internet a Coding Harness guest reaches through the proxy.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
*
|
|
28
|
+
* Ordered: each level includes the one before it. The model broker and the
|
|
29
|
+
* ``mka1-github`` push/PR tool reach the runner directly, and the
|
|
30
|
+
* Environment's repositories are cloned on the host before boot, so all of
|
|
31
|
+
* them work at every level, including ``none``.
|
|
32
|
+
*/
|
|
33
|
+
export type NetworkAccess = ClosedEnum<typeof NetworkAccess>;
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const NetworkAccess$inboundSchema: z.ZodNativeEnum<
|
|
37
|
+
typeof NetworkAccess
|
|
38
|
+
> = z.nativeEnum(NetworkAccess);
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const NetworkAccess$outboundSchema: z.ZodNativeEnum<
|
|
41
|
+
typeof NetworkAccess
|
|
42
|
+
> = NetworkAccess$inboundSchema;
|
|
@@ -13,12 +13,18 @@ import {
|
|
|
13
13
|
EnvironmentRepositoryModel$Outbound,
|
|
14
14
|
EnvironmentRepositoryModel$outboundSchema,
|
|
15
15
|
} from "./environmentrepositorymodel.js";
|
|
16
|
+
import {
|
|
17
|
+
NetworkAccess,
|
|
18
|
+
NetworkAccess$inboundSchema,
|
|
19
|
+
NetworkAccess$outboundSchema,
|
|
20
|
+
} from "./networkaccess.js";
|
|
16
21
|
|
|
17
22
|
export type SaveEnvironmentRequest = {
|
|
18
23
|
name: string;
|
|
19
24
|
environmentVariables?: { [k: string]: string } | undefined;
|
|
20
25
|
setupScript?: string | null | undefined;
|
|
21
26
|
repositories?: Array<EnvironmentRepositoryModel> | undefined;
|
|
27
|
+
networkAccess?: NetworkAccess | null | undefined;
|
|
22
28
|
};
|
|
23
29
|
|
|
24
30
|
/** @internal */
|
|
@@ -31,10 +37,12 @@ export const SaveEnvironmentRequest$inboundSchema: z.ZodType<
|
|
|
31
37
|
environment_variables: z.record(z.string()).optional(),
|
|
32
38
|
setup_script: z.nullable(z.string()).optional(),
|
|
33
39
|
repositories: z.array(EnvironmentRepositoryModel$inboundSchema).optional(),
|
|
40
|
+
network_access: z.nullable(NetworkAccess$inboundSchema).optional(),
|
|
34
41
|
}).transform((v) => {
|
|
35
42
|
return remap$(v, {
|
|
36
43
|
"environment_variables": "environmentVariables",
|
|
37
44
|
"setup_script": "setupScript",
|
|
45
|
+
"network_access": "networkAccess",
|
|
38
46
|
});
|
|
39
47
|
});
|
|
40
48
|
/** @internal */
|
|
@@ -43,6 +51,7 @@ export type SaveEnvironmentRequest$Outbound = {
|
|
|
43
51
|
environment_variables?: { [k: string]: string } | undefined;
|
|
44
52
|
setup_script?: string | null | undefined;
|
|
45
53
|
repositories?: Array<EnvironmentRepositoryModel$Outbound> | undefined;
|
|
54
|
+
network_access?: string | null | undefined;
|
|
46
55
|
};
|
|
47
56
|
|
|
48
57
|
/** @internal */
|
|
@@ -55,10 +64,12 @@ export const SaveEnvironmentRequest$outboundSchema: z.ZodType<
|
|
|
55
64
|
environmentVariables: z.record(z.string()).optional(),
|
|
56
65
|
setupScript: z.nullable(z.string()).optional(),
|
|
57
66
|
repositories: z.array(EnvironmentRepositoryModel$outboundSchema).optional(),
|
|
67
|
+
networkAccess: z.nullable(NetworkAccess$outboundSchema).optional(),
|
|
58
68
|
}).transform((v) => {
|
|
59
69
|
return remap$(v, {
|
|
60
70
|
environmentVariables: "environment_variables",
|
|
61
71
|
setupScript: "setup_script",
|
|
72
|
+
networkAccess: "network_access",
|
|
62
73
|
});
|
|
63
74
|
});
|
|
64
75
|
|
|
@@ -24,6 +24,11 @@ import {
|
|
|
24
24
|
MemoryMount$Outbound,
|
|
25
25
|
MemoryMount$outboundSchema,
|
|
26
26
|
} from "./memorymount.js";
|
|
27
|
+
import {
|
|
28
|
+
NetworkAccess,
|
|
29
|
+
NetworkAccess$inboundSchema,
|
|
30
|
+
NetworkAccess$outboundSchema,
|
|
31
|
+
} from "./networkaccess.js";
|
|
27
32
|
import {
|
|
28
33
|
SandboxFeature,
|
|
29
34
|
SandboxFeature$inboundSchema,
|
|
@@ -64,6 +69,7 @@ export type SessionRecord = {
|
|
|
64
69
|
githubRepositoryManifestVersion?: number | null | undefined;
|
|
65
70
|
environmentId?: number | null | undefined;
|
|
66
71
|
environmentSetupStatus?: string | null | undefined;
|
|
72
|
+
environmentNetworkAccess?: NetworkAccess | null | undefined;
|
|
67
73
|
ttlSeconds?: number | undefined;
|
|
68
74
|
workspaceExpiresAt?: Date | null | undefined;
|
|
69
75
|
lastUserActivityAt?: Date | null | undefined;
|
|
@@ -103,6 +109,8 @@ export const SessionRecord$inboundSchema: z.ZodType<
|
|
|
103
109
|
github_repository_manifest_version: z.nullable(z.number().int()).optional(),
|
|
104
110
|
environment_id: z.nullable(z.number().int()).optional(),
|
|
105
111
|
environment_setup_status: z.nullable(z.string()).optional(),
|
|
112
|
+
environment_network_access: z.nullable(NetworkAccess$inboundSchema)
|
|
113
|
+
.optional(),
|
|
106
114
|
ttl_seconds: z.number().int().default(600),
|
|
107
115
|
workspace_expires_at: z.nullable(
|
|
108
116
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -149,6 +157,7 @@ export const SessionRecord$inboundSchema: z.ZodType<
|
|
|
149
157
|
"github_repository_manifest_version": "githubRepositoryManifestVersion",
|
|
150
158
|
"environment_id": "environmentId",
|
|
151
159
|
"environment_setup_status": "environmentSetupStatus",
|
|
160
|
+
"environment_network_access": "environmentNetworkAccess",
|
|
152
161
|
"ttl_seconds": "ttlSeconds",
|
|
153
162
|
"workspace_expires_at": "workspaceExpiresAt",
|
|
154
163
|
"last_user_activity_at": "lastUserActivityAt",
|
|
@@ -183,6 +192,7 @@ export type SessionRecord$Outbound = {
|
|
|
183
192
|
github_repository_manifest_version?: number | null | undefined;
|
|
184
193
|
environment_id?: number | null | undefined;
|
|
185
194
|
environment_setup_status?: string | null | undefined;
|
|
195
|
+
environment_network_access?: string | null | undefined;
|
|
186
196
|
ttl_seconds: number;
|
|
187
197
|
workspace_expires_at?: string | null | undefined;
|
|
188
198
|
last_user_activity_at?: string | null | undefined;
|
|
@@ -222,6 +232,7 @@ export const SessionRecord$outboundSchema: z.ZodType<
|
|
|
222
232
|
githubRepositoryManifestVersion: z.nullable(z.number().int()).optional(),
|
|
223
233
|
environmentId: z.nullable(z.number().int()).optional(),
|
|
224
234
|
environmentSetupStatus: z.nullable(z.string()).optional(),
|
|
235
|
+
environmentNetworkAccess: z.nullable(NetworkAccess$outboundSchema).optional(),
|
|
225
236
|
ttlSeconds: z.number().int().default(600),
|
|
226
237
|
workspaceExpiresAt: z.nullable(z.date().transform(v => v.toISOString()))
|
|
227
238
|
.optional(),
|
|
@@ -260,6 +271,7 @@ export const SessionRecord$outboundSchema: z.ZodType<
|
|
|
260
271
|
githubRepositoryManifestVersion: "github_repository_manifest_version",
|
|
261
272
|
environmentId: "environment_id",
|
|
262
273
|
environmentSetupStatus: "environment_setup_status",
|
|
274
|
+
environmentNetworkAccess: "environment_network_access",
|
|
263
275
|
ttlSeconds: "ttl_seconds",
|
|
264
276
|
workspaceExpiresAt: "workspace_expires_at",
|
|
265
277
|
lastUserActivityAt: "last_user_activity_at",
|