@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.
Files changed (84) hide show
  1. package/bin/mcp-server.js +24 -20
  2. package/bin/mcp-server.js.map +15 -15
  3. package/dist/commonjs/funcs/reposCreate.d.ts +5 -5
  4. package/dist/commonjs/funcs/reposCreate.js +5 -5
  5. package/dist/commonjs/funcs/reposDelete.d.ts +2 -2
  6. package/dist/commonjs/funcs/reposDelete.js +2 -2
  7. package/dist/commonjs/funcs/reposList.d.ts +1 -1
  8. package/dist/commonjs/funcs/reposList.js +1 -1
  9. package/dist/commonjs/funcs/reposUpdate.d.ts +3 -3
  10. package/dist/commonjs/funcs/reposUpdate.js +3 -3
  11. package/dist/commonjs/lib/config.d.ts +2 -2
  12. package/dist/commonjs/lib/config.js +2 -2
  13. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  14. package/dist/commonjs/mcp-server/server.js +1 -1
  15. package/dist/commonjs/mcp-server/tools/reposCreate.js +5 -5
  16. package/dist/commonjs/mcp-server/tools/reposDelete.js +2 -2
  17. package/dist/commonjs/mcp-server/tools/reposList.js +1 -1
  18. package/dist/commonjs/mcp-server/tools/reposUpdate.js +3 -3
  19. package/dist/commonjs/models/components/createdby.d.ts +2 -0
  20. package/dist/commonjs/models/components/createdby.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/createdby.js +4 -0
  22. package/dist/commonjs/models/components/createdby.js.map +1 -1
  23. package/dist/commonjs/models/components/repo.d.ts +1 -1
  24. package/dist/commonjs/react-query/reposCreate.d.ts +5 -5
  25. package/dist/commonjs/react-query/reposCreate.js +5 -5
  26. package/dist/commonjs/react-query/reposDelete.d.ts +2 -2
  27. package/dist/commonjs/react-query/reposDelete.js +2 -2
  28. package/dist/commonjs/react-query/reposList.d.ts +2 -2
  29. package/dist/commonjs/react-query/reposList.js +2 -2
  30. package/dist/commonjs/react-query/reposUpdate.d.ts +3 -3
  31. package/dist/commonjs/react-query/reposUpdate.js +3 -3
  32. package/dist/commonjs/sdk/repos.d.ts +11 -11
  33. package/dist/commonjs/sdk/repos.js +11 -11
  34. package/dist/esm/funcs/reposCreate.d.ts +5 -5
  35. package/dist/esm/funcs/reposCreate.js +5 -5
  36. package/dist/esm/funcs/reposDelete.d.ts +2 -2
  37. package/dist/esm/funcs/reposDelete.js +2 -2
  38. package/dist/esm/funcs/reposList.d.ts +1 -1
  39. package/dist/esm/funcs/reposList.js +1 -1
  40. package/dist/esm/funcs/reposUpdate.d.ts +3 -3
  41. package/dist/esm/funcs/reposUpdate.js +3 -3
  42. package/dist/esm/lib/config.d.ts +2 -2
  43. package/dist/esm/lib/config.js +2 -2
  44. package/dist/esm/mcp-server/mcp-server.js +1 -1
  45. package/dist/esm/mcp-server/server.js +1 -1
  46. package/dist/esm/mcp-server/tools/reposCreate.js +5 -5
  47. package/dist/esm/mcp-server/tools/reposDelete.js +2 -2
  48. package/dist/esm/mcp-server/tools/reposList.js +1 -1
  49. package/dist/esm/mcp-server/tools/reposUpdate.js +3 -3
  50. package/dist/esm/models/components/createdby.d.ts +2 -0
  51. package/dist/esm/models/components/createdby.d.ts.map +1 -1
  52. package/dist/esm/models/components/createdby.js +4 -0
  53. package/dist/esm/models/components/createdby.js.map +1 -1
  54. package/dist/esm/models/components/repo.d.ts +1 -1
  55. package/dist/esm/react-query/reposCreate.d.ts +5 -5
  56. package/dist/esm/react-query/reposCreate.js +5 -5
  57. package/dist/esm/react-query/reposDelete.d.ts +2 -2
  58. package/dist/esm/react-query/reposDelete.js +2 -2
  59. package/dist/esm/react-query/reposList.d.ts +2 -2
  60. package/dist/esm/react-query/reposList.js +2 -2
  61. package/dist/esm/react-query/reposUpdate.d.ts +3 -3
  62. package/dist/esm/react-query/reposUpdate.js +3 -3
  63. package/dist/esm/sdk/repos.d.ts +11 -11
  64. package/dist/esm/sdk/repos.js +11 -11
  65. package/jsr.json +1 -1
  66. package/package.json +1 -1
  67. package/src/funcs/reposCreate.ts +5 -5
  68. package/src/funcs/reposDelete.ts +2 -2
  69. package/src/funcs/reposList.ts +1 -1
  70. package/src/funcs/reposUpdate.ts +3 -3
  71. package/src/lib/config.ts +2 -2
  72. package/src/mcp-server/mcp-server.ts +1 -1
  73. package/src/mcp-server/server.ts +1 -1
  74. package/src/mcp-server/tools/reposCreate.ts +5 -5
  75. package/src/mcp-server/tools/reposDelete.ts +2 -2
  76. package/src/mcp-server/tools/reposList.ts +1 -1
  77. package/src/mcp-server/tools/reposUpdate.ts +3 -3
  78. package/src/models/components/createdby.ts +6 -0
  79. package/src/models/components/repo.ts +1 -1
  80. package/src/react-query/reposCreate.ts +5 -5
  81. package/src/react-query/reposDelete.ts +2 -2
  82. package/src/react-query/reposList.ts +2 -2
  83. package/src/react-query/reposUpdate.ts +3 -3
  84. 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 DB delete is
18
- authoritative; the Gitea teardown is best-effort cleanup.
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
- Pure DB read. With \`kind\`, only repositories of that kind; an untyped
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 is a one-row DB update
19
- — no Gitea write. Omitted fields are left unchanged.
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\` row as
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 row that records no user id; never an empty string.
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): DB insert
54
- * (authoritative) → Gitea create (rolled back on failure). The repository
55
- * belongs to the caller's org. `kind` says what it will hold and defaults
56
- * to `repo` (a plain git repository); it decides which protocol planes
57
- * answer for the name (see the `Repo` schema).
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 DB delete is
53
- * authoritative; the Gitea teardown is best-effort cleanup.
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
- * Pure DB read. With `kind`, only repositories of that kind; an untyped
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
- * Pure DB read. With `kind`, only repositories of that kind; an untyped
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 is a one-row DB update
55
- * — no Gitea write. Omitted fields are left unchanged.
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` row as
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
- * Pure DB read. With `kind`, only repositories of that kind; an untyped
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): DB insert
47
- * (authoritative) → Gitea create (rolled back on failure). The repository
48
- * belongs to the caller's org. `kind` says what it will hold and defaults
49
- * to `repo` (a plain git repository); it decides which protocol planes
50
- * answer for the name (see the `Repo` schema).
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 DB delete is
68
- * authoritative; the Gitea teardown is best-effort cleanup.
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 is a one-row DB update
105
- * — no Gitea write. Omitted fields are left unchanged.
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` row as
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