@meetkai/mka1 0.54.70 → 0.54.72
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 +24 -20
- package/bin/mcp-server.js.map +15 -15
- package/dist/commonjs/funcs/reposCreate.d.ts +5 -5
- package/dist/commonjs/funcs/reposCreate.js +5 -5
- package/dist/commonjs/funcs/reposDelete.d.ts +2 -2
- package/dist/commonjs/funcs/reposDelete.js +2 -2
- package/dist/commonjs/funcs/reposList.d.ts +1 -1
- package/dist/commonjs/funcs/reposList.js +1 -1
- package/dist/commonjs/funcs/reposUpdate.d.ts +3 -3
- package/dist/commonjs/funcs/reposUpdate.js +3 -3
- 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/mcp-server/tools/reposCreate.js +5 -5
- package/dist/commonjs/mcp-server/tools/reposDelete.js +2 -2
- package/dist/commonjs/mcp-server/tools/reposList.js +1 -1
- package/dist/commonjs/mcp-server/tools/reposUpdate.js +3 -3
- package/dist/commonjs/models/components/createdby.d.ts +2 -0
- package/dist/commonjs/models/components/createdby.d.ts.map +1 -1
- package/dist/commonjs/models/components/createdby.js +4 -0
- package/dist/commonjs/models/components/createdby.js.map +1 -1
- package/dist/commonjs/models/components/repo.d.ts +1 -1
- package/dist/commonjs/react-query/reposCreate.d.ts +5 -5
- package/dist/commonjs/react-query/reposCreate.js +5 -5
- package/dist/commonjs/react-query/reposDelete.d.ts +2 -2
- package/dist/commonjs/react-query/reposDelete.js +2 -2
- package/dist/commonjs/react-query/reposList.d.ts +2 -2
- package/dist/commonjs/react-query/reposList.js +2 -2
- package/dist/commonjs/react-query/reposUpdate.d.ts +3 -3
- package/dist/commonjs/react-query/reposUpdate.js +3 -3
- package/dist/commonjs/sdk/repos.d.ts +11 -11
- package/dist/commonjs/sdk/repos.js +11 -11
- package/dist/esm/funcs/reposCreate.d.ts +5 -5
- package/dist/esm/funcs/reposCreate.js +5 -5
- package/dist/esm/funcs/reposDelete.d.ts +2 -2
- package/dist/esm/funcs/reposDelete.js +2 -2
- package/dist/esm/funcs/reposList.d.ts +1 -1
- package/dist/esm/funcs/reposList.js +1 -1
- package/dist/esm/funcs/reposUpdate.d.ts +3 -3
- package/dist/esm/funcs/reposUpdate.js +3 -3
- 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/mcp-server/tools/reposCreate.js +5 -5
- package/dist/esm/mcp-server/tools/reposDelete.js +2 -2
- package/dist/esm/mcp-server/tools/reposList.js +1 -1
- package/dist/esm/mcp-server/tools/reposUpdate.js +3 -3
- package/dist/esm/models/components/createdby.d.ts +2 -0
- package/dist/esm/models/components/createdby.d.ts.map +1 -1
- package/dist/esm/models/components/createdby.js +4 -0
- package/dist/esm/models/components/createdby.js.map +1 -1
- package/dist/esm/models/components/repo.d.ts +1 -1
- package/dist/esm/react-query/reposCreate.d.ts +5 -5
- package/dist/esm/react-query/reposCreate.js +5 -5
- package/dist/esm/react-query/reposDelete.d.ts +2 -2
- package/dist/esm/react-query/reposDelete.js +2 -2
- package/dist/esm/react-query/reposList.d.ts +2 -2
- package/dist/esm/react-query/reposList.js +2 -2
- package/dist/esm/react-query/reposUpdate.d.ts +3 -3
- package/dist/esm/react-query/reposUpdate.js +3 -3
- package/dist/esm/sdk/repos.d.ts +11 -11
- package/dist/esm/sdk/repos.js +11 -11
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/reposCreate.ts +5 -5
- package/src/funcs/reposDelete.ts +2 -2
- package/src/funcs/reposList.ts +1 -1
- package/src/funcs/reposUpdate.ts +3 -3
- 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/mcp-server/tools/reposCreate.ts +5 -5
- package/src/mcp-server/tools/reposDelete.ts +2 -2
- package/src/mcp-server/tools/reposList.ts +1 -1
- package/src/mcp-server/tools/reposUpdate.ts +3 -3
- package/src/models/components/createdby.ts +6 -0
- package/src/models/components/repo.ts +1 -1
- package/src/react-query/reposCreate.ts +5 -5
- package/src/react-query/reposDelete.ts +2 -2
- package/src/react-query/reposList.ts +2 -2
- package/src/react-query/reposUpdate.ts +3 -3
- package/src/sdk/repos.ts +11 -11
|
@@ -14,8 +14,8 @@ export const tool$reposDelete: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "repos-delete",
|
|
15
15
|
description: `Delete a repository
|
|
16
16
|
|
|
17
|
-
Removes a repository; org owner/admin only. The
|
|
18
|
-
authoritative; the
|
|
17
|
+
Removes a repository; org owner/admin only. The deletion is
|
|
18
|
+
authoritative; the contents are cleaned up best-effort.
|
|
19
19
|
`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
@@ -15,7 +15,7 @@ export const tool$reposList: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List the caller's org's repositories
|
|
16
16
|
|
|
17
17
|
Returns every repository in the caller's org (org owner/admin only).
|
|
18
|
-
|
|
18
|
+
Read-only. With \`kind\`, only repositories of that kind; an untyped
|
|
19
19
|
(legacy, \`kind: null\`) repository appears in the unfiltered listing
|
|
20
20
|
only.
|
|
21
21
|
`,
|
|
@@ -15,15 +15,15 @@ export const tool$reposUpdate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Update a repository's labels
|
|
16
16
|
|
|
17
17
|
Applies a label-only update (name/description/kind); org owner/admin
|
|
18
|
-
only. The repository id is stable, so a rename
|
|
19
|
-
|
|
18
|
+
only. The repository id is stable, so a rename touches no contents.
|
|
19
|
+
Omitted fields are left unchanged.
|
|
20
20
|
|
|
21
21
|
\`kind\` is the ONE way a repository's kind changes after creation (the
|
|
22
22
|
protocol planes never change it): it types a legacy \`kind: null\`
|
|
23
23
|
repository and corrects a wrong kind. \`repo\`, \`model\` and \`dataset\`
|
|
24
24
|
convert freely and any repository may become \`image\`; a repository
|
|
25
25
|
whose container images are still named by a tag can be given no
|
|
26
|
-
other kind — leaving \`image\`, or typing a legacy \`null\`
|
|
26
|
+
other kind — leaving \`image\`, or typing a legacy \`null\` repository as
|
|
27
27
|
anything else, is refused with \`409 kind_has_content\` (list and
|
|
28
28
|
delete the tags through this API first). A switch away from \`image\`
|
|
29
29
|
collects every image no tag reaches before it is judged, so an image
|
|
@@ -13,6 +13,7 @@ export type CreatedBy = {
|
|
|
13
13
|
teamId: string | null;
|
|
14
14
|
apiKeyId: string | null;
|
|
15
15
|
delegationId: string | null;
|
|
16
|
+
externalUserId: string | null;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
/** @internal */
|
|
@@ -25,12 +26,14 @@ export const CreatedBy$inboundSchema: z.ZodType<
|
|
|
25
26
|
team_id: z.nullable(z.string()),
|
|
26
27
|
api_key_id: z.nullable(z.string()),
|
|
27
28
|
delegation_id: z.nullable(z.string()),
|
|
29
|
+
external_user_id: z.nullable(z.string()),
|
|
28
30
|
}).transform((v) => {
|
|
29
31
|
return remap$(v, {
|
|
30
32
|
"user_id": "userId",
|
|
31
33
|
"team_id": "teamId",
|
|
32
34
|
"api_key_id": "apiKeyId",
|
|
33
35
|
"delegation_id": "delegationId",
|
|
36
|
+
"external_user_id": "externalUserId",
|
|
34
37
|
});
|
|
35
38
|
});
|
|
36
39
|
/** @internal */
|
|
@@ -39,6 +42,7 @@ export type CreatedBy$Outbound = {
|
|
|
39
42
|
team_id: string | null;
|
|
40
43
|
api_key_id: string | null;
|
|
41
44
|
delegation_id: string | null;
|
|
45
|
+
external_user_id: string | null;
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
/** @internal */
|
|
@@ -51,12 +55,14 @@ export const CreatedBy$outboundSchema: z.ZodType<
|
|
|
51
55
|
teamId: z.nullable(z.string()),
|
|
52
56
|
apiKeyId: z.nullable(z.string()),
|
|
53
57
|
delegationId: z.nullable(z.string()),
|
|
58
|
+
externalUserId: z.nullable(z.string()),
|
|
54
59
|
}).transform((v) => {
|
|
55
60
|
return remap$(v, {
|
|
56
61
|
userId: "user_id",
|
|
57
62
|
teamId: "team_id",
|
|
58
63
|
apiKeyId: "api_key_id",
|
|
59
64
|
delegationId: "delegation_id",
|
|
65
|
+
externalUserId: "external_user_id",
|
|
60
66
|
});
|
|
61
67
|
});
|
|
62
68
|
|
|
@@ -22,7 +22,7 @@ export type Repo = {
|
|
|
22
22
|
* (the API, `git push`, the HF client, the OCI registry). It is the
|
|
23
23
|
* same id the platform session and mk-authentication's members
|
|
24
24
|
* directory use, so a name is one directory lookup away. `null`
|
|
25
|
-
* for a
|
|
25
|
+
* for a repository that records no user id; never an empty string.
|
|
26
26
|
*/
|
|
27
27
|
creator: string | null;
|
|
28
28
|
description: string;
|
|
@@ -50,11 +50,11 @@ export type ReposCreateMutationError =
|
|
|
50
50
|
* Create a repository
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Provisions a repository (org owner/admin only)
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
53
|
+
* Provisions a repository (org owner/admin only); a failed provision is
|
|
54
|
+
* rolled back best-effort (see the `502`). The repository belongs to the
|
|
55
|
+
* caller's org. `kind` says what it will hold and defaults to `repo` (a
|
|
56
|
+
* plain git repository); it decides which protocol planes answer for the
|
|
57
|
+
* name (see the `Repo` schema).
|
|
58
58
|
*/
|
|
59
59
|
export function useReposCreateMutation(
|
|
60
60
|
options?: MutationHookOptions<
|
|
@@ -49,8 +49,8 @@ export type ReposDeleteMutationError =
|
|
|
49
49
|
* Delete a repository
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Removes a repository; org owner/admin only. The
|
|
53
|
-
* authoritative; the
|
|
52
|
+
* Removes a repository; org owner/admin only. The deletion is
|
|
53
|
+
* authoritative; the contents are cleaned up best-effort.
|
|
54
54
|
*/
|
|
55
55
|
export function useReposDeleteMutation(
|
|
56
56
|
options?: MutationHookOptions<
|
|
@@ -58,7 +58,7 @@ export type ReposListQueryError =
|
|
|
58
58
|
*
|
|
59
59
|
* @remarks
|
|
60
60
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
61
|
-
*
|
|
61
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
62
62
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
63
63
|
* only.
|
|
64
64
|
*/
|
|
@@ -82,7 +82,7 @@ export function useReposList(
|
|
|
82
82
|
*
|
|
83
83
|
* @remarks
|
|
84
84
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
85
|
-
*
|
|
85
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
86
86
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
87
87
|
* only.
|
|
88
88
|
*/
|
|
@@ -51,15 +51,15 @@ export type ReposUpdateMutationError =
|
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
53
|
* Applies a label-only update (name/description/kind); org owner/admin
|
|
54
|
-
* only. The repository id is stable, so a rename
|
|
55
|
-
*
|
|
54
|
+
* only. The repository id is stable, so a rename touches no contents.
|
|
55
|
+
* Omitted fields are left unchanged.
|
|
56
56
|
*
|
|
57
57
|
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
58
58
|
* protocol planes never change it): it types a legacy `kind: null`
|
|
59
59
|
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
60
60
|
* convert freely and any repository may become `image`; a repository
|
|
61
61
|
* whose container images are still named by a tag can be given no
|
|
62
|
-
* other kind — leaving `image`, or typing a legacy `null`
|
|
62
|
+
* other kind — leaving `image`, or typing a legacy `null` repository as
|
|
63
63
|
* anything else, is refused with `409 kind_has_content` (list and
|
|
64
64
|
* delete the tags through this API first). A switch away from `image`
|
|
65
65
|
* collects every image no tag reaches before it is judged, so an image
|
package/src/sdk/repos.ts
CHANGED
|
@@ -24,7 +24,7 @@ export class Repos extends ClientSDK {
|
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
26
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
27
|
-
*
|
|
27
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
28
28
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
29
29
|
* only.
|
|
30
30
|
*/
|
|
@@ -43,11 +43,11 @@ export class Repos extends ClientSDK {
|
|
|
43
43
|
* Create a repository
|
|
44
44
|
*
|
|
45
45
|
* @remarks
|
|
46
|
-
* Provisions a repository (org owner/admin only)
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
46
|
+
* Provisions a repository (org owner/admin only); a failed provision is
|
|
47
|
+
* rolled back best-effort (see the `502`). The repository belongs to the
|
|
48
|
+
* caller's org. `kind` says what it will hold and defaults to `repo` (a
|
|
49
|
+
* plain git repository); it decides which protocol planes answer for the
|
|
50
|
+
* name (see the `Repo` schema).
|
|
51
51
|
*/
|
|
52
52
|
async create(
|
|
53
53
|
request: operations.CreateRepoRequest,
|
|
@@ -64,8 +64,8 @@ export class Repos extends ClientSDK {
|
|
|
64
64
|
* Delete a repository
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
|
-
* Removes a repository; org owner/admin only. The
|
|
68
|
-
* authoritative; the
|
|
67
|
+
* Removes a repository; org owner/admin only. The deletion is
|
|
68
|
+
* authoritative; the contents are cleaned up best-effort.
|
|
69
69
|
*/
|
|
70
70
|
async delete(
|
|
71
71
|
request: operations.DeleteRepoRequest,
|
|
@@ -101,15 +101,15 @@ export class Repos extends ClientSDK {
|
|
|
101
101
|
*
|
|
102
102
|
* @remarks
|
|
103
103
|
* Applies a label-only update (name/description/kind); org owner/admin
|
|
104
|
-
* only. The repository id is stable, so a rename
|
|
105
|
-
*
|
|
104
|
+
* only. The repository id is stable, so a rename touches no contents.
|
|
105
|
+
* Omitted fields are left unchanged.
|
|
106
106
|
*
|
|
107
107
|
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
108
108
|
* protocol planes never change it): it types a legacy `kind: null`
|
|
109
109
|
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
110
110
|
* convert freely and any repository may become `image`; a repository
|
|
111
111
|
* whose container images are still named by a tag can be given no
|
|
112
|
-
* other kind — leaving `image`, or typing a legacy `null`
|
|
112
|
+
* other kind — leaving `image`, or typing a legacy `null` repository as
|
|
113
113
|
* anything else, is refused with `409 kind_has_content` (list and
|
|
114
114
|
* delete the tags through this API first). A switch away from `image`
|
|
115
115
|
* collects every image no tag reaches before it is judged, so an image
|