@agentuity/core 2.0.7 → 2.0.8

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 (106) hide show
  1. package/dist/services/coder/api-reference.d.ts +4 -0
  2. package/dist/services/coder/api-reference.d.ts.map +1 -0
  3. package/dist/services/coder/api-reference.js +199 -0
  4. package/dist/services/coder/api-reference.js.map +1 -0
  5. package/dist/services/coder/client.d.ts +128 -0
  6. package/dist/services/coder/client.d.ts.map +1 -0
  7. package/dist/services/coder/client.js +265 -0
  8. package/dist/services/coder/client.js.map +1 -0
  9. package/dist/services/coder/discover.d.ts +13 -0
  10. package/dist/services/coder/discover.d.ts.map +1 -0
  11. package/dist/services/coder/discover.js +18 -0
  12. package/dist/services/coder/discover.js.map +1 -0
  13. package/dist/services/coder/github.d.ts +13 -0
  14. package/dist/services/coder/github.d.ts.map +1 -0
  15. package/dist/services/coder/github.js +15 -0
  16. package/dist/services/coder/github.js.map +1 -0
  17. package/dist/services/coder/index.d.ts +19 -0
  18. package/dist/services/coder/index.d.ts.map +1 -0
  19. package/dist/services/coder/index.js +13 -0
  20. package/dist/services/coder/index.js.map +1 -0
  21. package/dist/services/coder/loop-state.d.ts +10 -0
  22. package/dist/services/coder/loop-state.d.ts.map +1 -0
  23. package/dist/services/coder/loop-state.js +13 -0
  24. package/dist/services/coder/loop-state.js.map +1 -0
  25. package/dist/services/coder/session-data.d.ts +28 -0
  26. package/dist/services/coder/session-data.d.ts.map +1 -0
  27. package/dist/services/coder/session-data.js +28 -0
  28. package/dist/services/coder/session-data.js.map +1 -0
  29. package/dist/services/coder/sessions.d.ts +155 -0
  30. package/dist/services/coder/sessions.d.ts.map +1 -0
  31. package/dist/services/coder/sessions.js +125 -0
  32. package/dist/services/coder/sessions.js.map +1 -0
  33. package/dist/services/coder/skills.d.ts +17 -0
  34. package/dist/services/coder/skills.d.ts.map +1 -0
  35. package/dist/services/coder/skills.js +43 -0
  36. package/dist/services/coder/skills.js.map +1 -0
  37. package/dist/services/coder/types.d.ts +1066 -0
  38. package/dist/services/coder/types.d.ts.map +1 -0
  39. package/dist/services/coder/types.js +573 -0
  40. package/dist/services/coder/types.js.map +1 -0
  41. package/dist/services/coder/users.d.ts +12 -0
  42. package/dist/services/coder/users.d.ts.map +1 -0
  43. package/dist/services/coder/users.js +35 -0
  44. package/dist/services/coder/users.js.map +1 -0
  45. package/dist/services/coder/util.d.ts +82 -0
  46. package/dist/services/coder/util.d.ts.map +1 -0
  47. package/dist/services/coder/util.js +60 -0
  48. package/dist/services/coder/util.js.map +1 -0
  49. package/dist/services/coder/workspaces.d.ts +13 -0
  50. package/dist/services/coder/workspaces.d.ts.map +1 -0
  51. package/dist/services/coder/workspaces.js +37 -0
  52. package/dist/services/coder/workspaces.js.map +1 -0
  53. package/dist/services/index.d.ts +1 -0
  54. package/dist/services/index.d.ts.map +1 -1
  55. package/dist/services/index.js +1 -0
  56. package/dist/services/index.js.map +1 -1
  57. package/dist/services/oauth/types.d.ts +1 -0
  58. package/dist/services/oauth/types.d.ts.map +1 -1
  59. package/dist/services/oauth/types.js +1 -0
  60. package/dist/services/oauth/types.js.map +1 -1
  61. package/dist/services/project/deploy.d.ts +1 -1
  62. package/dist/services/queue/service.d.ts +28 -0
  63. package/dist/services/queue/service.d.ts.map +1 -1
  64. package/dist/services/queue/service.js +54 -9
  65. package/dist/services/queue/service.js.map +1 -1
  66. package/dist/services/sandbox/cli-list.d.ts +1 -1
  67. package/dist/services/sandbox/client.d.ts +10 -4
  68. package/dist/services/sandbox/client.d.ts.map +1 -1
  69. package/dist/services/sandbox/client.js +2 -2
  70. package/dist/services/sandbox/client.js.map +1 -1
  71. package/dist/services/sandbox/create.d.ts +2 -2
  72. package/dist/services/sandbox/execute.d.ts +2 -2
  73. package/dist/services/sandbox/execution.d.ts +4 -4
  74. package/dist/services/sandbox/files.d.ts +10 -2
  75. package/dist/services/sandbox/files.d.ts.map +1 -1
  76. package/dist/services/sandbox/files.js +14 -0
  77. package/dist/services/sandbox/files.js.map +1 -1
  78. package/dist/services/sandbox/get.d.ts +2 -2
  79. package/dist/services/sandbox/list.d.ts +4 -4
  80. package/dist/services/sandbox/run.d.ts +1 -1
  81. package/dist/services/sandbox/types.d.ts +18 -10
  82. package/dist/services/sandbox/types.d.ts.map +1 -1
  83. package/dist/services/sandbox/types.js +4 -4
  84. package/dist/services/sandbox/types.js.map +1 -1
  85. package/dist/services/session/events.d.ts +2 -2
  86. package/dist/services/workflow/types.d.ts +8 -8
  87. package/package.json +2 -2
  88. package/src/services/coder/api-reference.ts +207 -0
  89. package/src/services/coder/client.ts +378 -0
  90. package/src/services/coder/discover.ts +23 -0
  91. package/src/services/coder/github.ts +33 -0
  92. package/src/services/coder/index.ts +72 -0
  93. package/src/services/coder/loop-state.ts +19 -0
  94. package/src/services/coder/session-data.ts +63 -0
  95. package/src/services/coder/sessions.ts +237 -0
  96. package/src/services/coder/skills.ts +102 -0
  97. package/src/services/coder/types.ts +670 -0
  98. package/src/services/coder/users.ts +59 -0
  99. package/src/services/coder/util.ts +87 -0
  100. package/src/services/coder/workspaces.ts +77 -0
  101. package/src/services/index.ts +1 -0
  102. package/src/services/oauth/types.ts +1 -0
  103. package/src/services/queue/service.ts +56 -13
  104. package/src/services/sandbox/client.ts +10 -8
  105. package/src/services/sandbox/files.ts +28 -2
  106. package/src/services/sandbox/types.ts +8 -6
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod/v4';
2
+ import { normalizeCoderUrl } from "./util.js";
3
+ export const DiscoverCoderUrlDataSchema = z
4
+ .object({
5
+ url: z.string().describe('Discovered base URL for the organization coder hub API'),
6
+ })
7
+ .describe('Response payload for coder URL discovery');
8
+ /**
9
+ * Discovers the org-specific Coder Hub URL through Catalyst.
10
+ *
11
+ * Calls `GET /coder` on the Catalyst API. The org is resolved server-side
12
+ * from the API key's auth context (not via query parameters).
13
+ */
14
+ export async function discoverUrl(client) {
15
+ const resp = await client.get('/coder', DiscoverCoderUrlDataSchema);
16
+ return normalizeCoderUrl(resp.url);
17
+ }
18
+ //# sourceMappingURL=discover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discover.js","sourceRoot":"","sources":["../../../src/services/coder/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACzC,MAAM,CAAC;IACP,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;CAClF,CAAC;KACD,QAAQ,CAAC,0CAA0C,CAAC,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAAiB;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAC5B,QAAQ,EACR,0BAA0B,CAC1B,CAAC;IACF,OAAO,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type APIClient } from '../api.ts';
2
+ import { type CoderGitHubAccountListResponse, type CoderGitHubRepositoryListResponse } from './types.ts';
3
+ /**
4
+ * Lists GitHub accounts available via the caller's GitHub App installations.
5
+ */
6
+ export declare function coderListGitHubAccounts(client: APIClient): Promise<CoderGitHubAccountListResponse>;
7
+ /**
8
+ * Lists repositories accessible under a specific GitHub account.
9
+ */
10
+ export declare function coderListGitHubRepos(client: APIClient, params: {
11
+ accountId: string;
12
+ }): Promise<CoderGitHubRepositoryListResponse>;
13
+ //# sourceMappingURL=github.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/services/coder/github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAEN,KAAK,8BAA8B,EAEnC,KAAK,iCAAiC,EACtC,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,wBAAsB,uBAAuB,CAC5C,MAAM,EAAE,SAAS,GACf,OAAO,CAAC,8BAA8B,CAAC,CAKzC;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAC3B,OAAO,CAAC,iCAAiC,CAAC,CAM5C"}
@@ -0,0 +1,15 @@
1
+ import { CoderGitHubAccountListResponseSchema, CoderGitHubRepositoryListResponseSchema, } from "./types.js";
2
+ /**
3
+ * Lists GitHub accounts available via the caller's GitHub App installations.
4
+ */
5
+ export async function coderListGitHubAccounts(client) {
6
+ return client.get('/hub/github/accounts', CoderGitHubAccountListResponseSchema);
7
+ }
8
+ /**
9
+ * Lists repositories accessible under a specific GitHub account.
10
+ */
11
+ export async function coderListGitHubRepos(client, params) {
12
+ const path = `/hub/github/repos?accountId=${encodeURIComponent(params.accountId)}`;
13
+ return client.get(path, CoderGitHubRepositoryListResponseSchema);
14
+ }
15
+ //# sourceMappingURL=github.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/services/coder/github.ts"],"names":[],"mappings":"AACA,OAAO,EACN,oCAAoC,EAEpC,uCAAuC,GAEvC,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC5C,MAAiB;IAEjB,OAAO,MAAM,CAAC,GAAG,CAChB,sBAAsB,EACtB,oCAAoC,CACpC,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACzC,MAAiB,EACjB,MAA6B;IAE7B,MAAM,IAAI,GAAG,+BAA+B,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;IACnF,OAAO,MAAM,CAAC,GAAG,CAChB,IAAI,EACJ,uCAAuC,CACvC,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ export * from './types.ts';
2
+ export { discoverUrl, DiscoverCoderUrlDataSchema } from './discover.ts';
3
+ export type { CoderCreateSessionParams, CoderCreateSessionResponse, CoderGetSessionParams, CoderLifecycleResponse, CoderListConnectableSessionsParams, CoderListSessionsParamsWithOrg, CoderSessionIdParams, CoderUpdateSessionParams, CoderUpdateSessionResponse, } from './sessions.ts';
4
+ export { coderArchiveSession, coderCreateSession, coderDeleteSession, coderGetSession, coderListConnectableSessions, coderListSessions, coderUpdateSession, CoderCreateSessionParamsSchema, CoderGetSessionParamsSchema, CoderListConnectableSessionsParamsSchema, CoderListSessionsParamsWithOrgSchema, CoderSessionIdParamsSchema, CoderUpdateSessionParamsSchema, } from './sessions.ts';
5
+ export * from './skills.ts';
6
+ export * from './workspaces.ts';
7
+ export * from './github.ts';
8
+ export type { CoderGetSessionReplayParams, CoderListEventHistoryParams, CoderListParticipantsParams, } from './session-data.ts';
9
+ export { coderGetReplay, coderListEventHistory, coderListParticipants, CoderGetSessionReplayParamsSchema, CoderListEventHistoryParamsSchema, CoderListParticipantsParamsSchema, } from './session-data.ts';
10
+ export type { CoderGetLoopStateParams } from './loop-state.ts';
11
+ export { coderGetLoopState, CoderGetLoopStateParamsSchema } from './loop-state.ts';
12
+ export type { CoderListUsersParamsWithOrg } from './users.ts';
13
+ export { coderListUsers, CoderListUsersParamsWithOrgSchema } from './users.ts';
14
+ export type { CoderClientOptions } from './client.ts';
15
+ export { CoderClient, CoderClientOptionsSchema } from './client.ts';
16
+ export type { CoderErrorCode, CoderErrorContext } from './util.ts';
17
+ export { CoderErrorCodeSchema, CoderErrorContextSchema, CoderResponseError, CoderSessionArchivedError, CoderSessionConflictError, CoderSessionNotFoundError, normalizeCoderUrl, throwCoderError, withOrgId, } from './util.ts';
18
+ export { default as CoderAPIReference } from './api-reference.ts';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":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oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,eAAe,EACf,SAAS,GACT,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export * from "./types.js";
2
+ export { discoverUrl, DiscoverCoderUrlDataSchema } from "./discover.js";
3
+ export { coderArchiveSession, coderCreateSession, coderDeleteSession, coderGetSession, coderListConnectableSessions, coderListSessions, coderUpdateSession, CoderCreateSessionParamsSchema, CoderGetSessionParamsSchema, CoderListConnectableSessionsParamsSchema, CoderListSessionsParamsWithOrgSchema, CoderSessionIdParamsSchema, CoderUpdateSessionParamsSchema, } from "./sessions.js";
4
+ export * from "./skills.js";
5
+ export * from "./workspaces.js";
6
+ export * from "./github.js";
7
+ export { coderGetReplay, coderListEventHistory, coderListParticipants, CoderGetSessionReplayParamsSchema, CoderListEventHistoryParamsSchema, CoderListParticipantsParamsSchema, } from "./session-data.js";
8
+ export { coderGetLoopState, CoderGetLoopStateParamsSchema } from "./loop-state.js";
9
+ export { coderListUsers, CoderListUsersParamsWithOrgSchema } from "./users.js";
10
+ export { CoderClient, CoderClientOptionsSchema } from "./client.js";
11
+ export { CoderErrorCodeSchema, CoderErrorContextSchema, CoderResponseError, CoderSessionArchivedError, CoderSessionConflictError, CoderSessionNotFoundError, normalizeCoderUrl, throwCoderError, withOrgId, } from "./util.js";
12
+ export { default as CoderAPIReference } from "./api-reference.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/coder/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAaxE,OAAO,EACN,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,4BAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EAClB,8BAA8B,EAC9B,2BAA2B,EAC3B,wCAAwC,EACxC,oCAAoC,EACpC,0BAA0B,EAC1B,8BAA8B,GAC9B,MAAM,eAAe,CAAC;AAEvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAO5B,OAAO,EACN,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,iCAAiC,EACjC,iCAAiC,EACjC,iCAAiC,GACjC,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAGnF,OAAO,EAAE,cAAc,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAG/E,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAGpE,OAAO,EACN,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,eAAe,EACf,SAAS,GACT,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod/v4';
2
+ import { type APIClient } from '../api.ts';
3
+ import { type CoderLoopStateResponse } from './types.ts';
4
+ export declare const CoderGetLoopStateParamsSchema: z.ZodObject<{
5
+ sessionId: z.ZodString;
6
+ orgId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type CoderGetLoopStateParams = z.infer<typeof CoderGetLoopStateParamsSchema>;
9
+ export declare function coderGetLoopState(client: APIClient, params: CoderGetLoopStateParams): Promise<CoderLoopStateResponse>;
10
+ //# sourceMappingURL=loop-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loop-state.d.ts","sourceRoot":"","sources":["../../../src/services/coder/loop-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEvF,eAAO,MAAM,6BAA6B;;;iBAKQ,CAAC;AACnD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,wBAAsB,iBAAiB,CACtC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,uBAAuB,GAC7B,OAAO,CAAC,sBAAsB,CAAC,CAGjC"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod/v4';
2
+ import { CoderLoopStateResponseSchema } from "./types.js";
3
+ export const CoderGetLoopStateParamsSchema = z
4
+ .object({
5
+ sessionId: z.string().describe('Coder session identifier'),
6
+ orgId: z.string().optional().describe('Optional org id for CLI auth context'),
7
+ })
8
+ .describe('Parameters for retrieving loop state');
9
+ export async function coderGetLoopState(client, params) {
10
+ const path = `/hub/session/${encodeURIComponent(params.sessionId)}/loop`;
11
+ return client.get(path, CoderLoopStateResponseSchema);
12
+ }
13
+ //# sourceMappingURL=loop-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loop-state.js","sourceRoot":"","sources":["../../../src/services/coder/loop-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,4BAA4B,EAA+B,MAAM,YAAY,CAAC;AAEvF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC5C,MAAM,CAAC;IACP,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;CAC7E,CAAC;KACD,QAAQ,CAAC,sCAAsC,CAAC,CAAC;AAGnD,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACtC,MAAiB,EACjB,MAA+B;IAE/B,MAAM,IAAI,GAAG,gBAAgB,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC;IACzE,OAAO,MAAM,CAAC,GAAG,CAAyB,IAAI,EAAE,4BAA4B,CAAC,CAAC;AAC/E,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod/v4';
2
+ import { type APIClient } from '../api.ts';
3
+ import { type CoderSessionEventHistory, type CoderSessionParticipants, type CoderSessionReplay } from './types.ts';
4
+ export declare const CoderGetSessionReplayParamsSchema: z.ZodObject<{
5
+ sessionId: z.ZodString;
6
+ limit: z.ZodOptional<z.ZodNumber>;
7
+ offset: z.ZodOptional<z.ZodNumber>;
8
+ orgId: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export type CoderGetSessionReplayParams = z.infer<typeof CoderGetSessionReplayParamsSchema>;
11
+ export declare const CoderListParticipantsParamsSchema: z.ZodObject<{
12
+ sessionId: z.ZodString;
13
+ limit: z.ZodOptional<z.ZodNumber>;
14
+ offset: z.ZodOptional<z.ZodNumber>;
15
+ orgId: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ export type CoderListParticipantsParams = z.infer<typeof CoderListParticipantsParamsSchema>;
18
+ export declare const CoderListEventHistoryParamsSchema: z.ZodObject<{
19
+ sessionId: z.ZodString;
20
+ limit: z.ZodOptional<z.ZodNumber>;
21
+ offset: z.ZodOptional<z.ZodNumber>;
22
+ orgId: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ export type CoderListEventHistoryParams = z.infer<typeof CoderListEventHistoryParamsSchema>;
25
+ export declare function coderGetReplay(client: APIClient, params: CoderGetSessionReplayParams): Promise<CoderSessionReplay>;
26
+ export declare function coderListParticipants(client: APIClient, params: CoderListParticipantsParams): Promise<CoderSessionParticipants>;
27
+ export declare function coderListEventHistory(client: APIClient, params: CoderListEventHistoryParams): Promise<CoderSessionEventHistory>;
28
+ //# sourceMappingURL=session-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-data.d.ts","sourceRoot":"","sources":["../../../src/services/coder/session-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAMN,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,iCAAiC;;;;;iBAE7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,iCAAiC;;;;;iBAE7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,iCAAiC;;;;;iBAE7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAc5F,wBAAsB,cAAc,CACnC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,2BAA2B,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAG7B;AAED,wBAAsB,qBAAqB,CAC1C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,2BAA2B,GACjC,OAAO,CAAC,wBAAwB,CAAC,CAGnC;AAED,wBAAsB,qBAAqB,CAC1C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,2BAA2B,GACjC,OAAO,CAAC,wBAAwB,CAAC,CAGnC"}
@@ -0,0 +1,28 @@
1
+ import { CoderSessionDataQuerySchema, CoderSessionEventHistorySchema, CoderSessionParticipantsSchema, CoderSessionReplaySchema, } from "./types.js";
2
+ export const CoderGetSessionReplayParamsSchema = CoderSessionDataQuerySchema.describe('Parameters for retrieving session replay data');
3
+ export const CoderListParticipantsParamsSchema = CoderSessionDataQuerySchema.describe('Parameters for listing session participants');
4
+ export const CoderListEventHistoryParamsSchema = CoderSessionDataQuerySchema.describe('Parameters for listing session event history');
5
+ function buildSessionDataQuery(params) {
6
+ const query = new URLSearchParams();
7
+ if (params.limit !== undefined) {
8
+ query.set('limit', String(params.limit));
9
+ }
10
+ if (params.offset !== undefined) {
11
+ query.set('offset', String(params.offset));
12
+ }
13
+ const queryString = query.toString();
14
+ return queryString ? `?${queryString}` : '';
15
+ }
16
+ export async function coderGetReplay(client, params) {
17
+ const path = `/hub/session/${encodeURIComponent(params.sessionId)}/replay${buildSessionDataQuery(params)}`;
18
+ return client.get(path, CoderSessionReplaySchema);
19
+ }
20
+ export async function coderListParticipants(client, params) {
21
+ const path = `/hub/session/${encodeURIComponent(params.sessionId)}/participants${buildSessionDataQuery(params)}`;
22
+ return client.get(path, CoderSessionParticipantsSchema);
23
+ }
24
+ export async function coderListEventHistory(client, params) {
25
+ const path = `/hub/session/${encodeURIComponent(params.sessionId)}/events/history${buildSessionDataQuery(params)}`;
26
+ return client.get(path, CoderSessionEventHistorySchema);
27
+ }
28
+ //# sourceMappingURL=session-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/services/coder/session-data.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,2BAA2B,EAC3B,8BAA8B,EAC9B,8BAA8B,EAC9B,wBAAwB,GAKxB,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,iCAAiC,GAAG,2BAA2B,CAAC,QAAQ,CACpF,+CAA+C,CAC/C,CAAC;AAGF,MAAM,CAAC,MAAM,iCAAiC,GAAG,2BAA2B,CAAC,QAAQ,CACpF,6CAA6C,CAC7C,CAAC;AAGF,MAAM,CAAC,MAAM,iCAAiC,GAAG,2BAA2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,MAAM,CAAC,SAAS,CAAC,kBAAkB,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC;IACnH,OAAO,MAAM,CAAC,GAAG,CAA2B,IAAI,EAAE,8BAA8B,CAAC,CAAC;AACnF,CAAC"}
@@ -0,0 +1,155 @@
1
+ import { z } from 'zod/v4';
2
+ import { type APIClient } from '../api.ts';
3
+ import { type CoderSession, type CoderSessionListResponse } from './types.ts';
4
+ export declare const CoderSessionIdParamsSchema: z.ZodObject<{
5
+ sessionId: z.ZodString;
6
+ orgId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type CoderSessionIdParams = z.infer<typeof CoderSessionIdParamsSchema>;
9
+ export declare const CoderCreateSessionParamsSchema: z.ZodObject<{
10
+ body: z.ZodObject<{
11
+ task: z.ZodString;
12
+ label: z.ZodOptional<z.ZodString>;
13
+ agent: z.ZodOptional<z.ZodString>;
14
+ visibility: z.ZodOptional<z.ZodEnum<{
15
+ private: "private";
16
+ organization: "organization";
17
+ collaborate: "collaborate";
18
+ }>>;
19
+ workflowMode: z.ZodOptional<z.ZodEnum<{
20
+ standard: "standard";
21
+ loop: "loop";
22
+ }>>;
23
+ loop: z.ZodOptional<z.ZodObject<{
24
+ goal: z.ZodOptional<z.ZodString>;
25
+ maxIterations: z.ZodOptional<z.ZodNumber>;
26
+ autoContinue: z.ZodOptional<z.ZodBoolean>;
27
+ allowDetached: z.ZodOptional<z.ZodBoolean>;
28
+ }, z.core.$strip>>;
29
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ savedSkillIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ skillBucketIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
32
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ skillId: z.ZodString;
34
+ repo: z.ZodString;
35
+ name: z.ZodOptional<z.ZodString>;
36
+ url: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strip>>>;
38
+ repo: z.ZodOptional<z.ZodObject<{
39
+ repoId: z.ZodOptional<z.ZodString>;
40
+ type: z.ZodOptional<z.ZodString>;
41
+ provider: z.ZodOptional<z.ZodString>;
42
+ owner: z.ZodOptional<z.ZodString>;
43
+ name: z.ZodOptional<z.ZodString>;
44
+ fullName: z.ZodOptional<z.ZodString>;
45
+ url: z.ZodOptional<z.ZodString>;
46
+ cloneUrl: z.ZodOptional<z.ZodString>;
47
+ defaultBranch: z.ZodOptional<z.ZodString>;
48
+ branch: z.ZodOptional<z.ZodString>;
49
+ ref: z.ZodOptional<z.ZodString>;
50
+ commit: z.ZodOptional<z.ZodString>;
51
+ path: z.ZodOptional<z.ZodString>;
52
+ rootPath: z.ZodOptional<z.ZodString>;
53
+ }, z.core.$catchall<z.ZodUnknown>>>;
54
+ repos: z.ZodOptional<z.ZodArray<z.ZodObject<{
55
+ repoId: z.ZodOptional<z.ZodString>;
56
+ type: z.ZodOptional<z.ZodString>;
57
+ provider: z.ZodOptional<z.ZodString>;
58
+ owner: z.ZodOptional<z.ZodString>;
59
+ name: z.ZodOptional<z.ZodString>;
60
+ fullName: z.ZodOptional<z.ZodString>;
61
+ url: z.ZodOptional<z.ZodString>;
62
+ cloneUrl: z.ZodOptional<z.ZodString>;
63
+ defaultBranch: z.ZodOptional<z.ZodString>;
64
+ branch: z.ZodOptional<z.ZodString>;
65
+ ref: z.ZodOptional<z.ZodString>;
66
+ commit: z.ZodOptional<z.ZodString>;
67
+ path: z.ZodOptional<z.ZodString>;
68
+ rootPath: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$catchall<z.ZodUnknown>>>>;
70
+ workspaceId: z.ZodOptional<z.ZodString>;
71
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
73
+ }, z.core.$strip>;
74
+ orgId: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>;
76
+ export type CoderCreateSessionParams = z.infer<typeof CoderCreateSessionParamsSchema>;
77
+ export declare const CoderGetSessionParamsSchema: z.ZodObject<{
78
+ sessionId: z.ZodString;
79
+ orgId: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>;
81
+ export type CoderGetSessionParams = z.infer<typeof CoderGetSessionParamsSchema>;
82
+ export declare const CoderUpdateSessionParamsSchema: z.ZodObject<{
83
+ sessionId: z.ZodString;
84
+ body: z.ZodObject<{
85
+ label: z.ZodOptional<z.ZodString>;
86
+ agent: z.ZodOptional<z.ZodString>;
87
+ visibility: z.ZodOptional<z.ZodEnum<{
88
+ private: "private";
89
+ organization: "organization";
90
+ collaborate: "collaborate";
91
+ }>>;
92
+ workflowMode: z.ZodOptional<z.ZodEnum<{
93
+ standard: "standard";
94
+ loop: "loop";
95
+ }>>;
96
+ loop: z.ZodOptional<z.ZodObject<{
97
+ goal: z.ZodOptional<z.ZodString>;
98
+ maxIterations: z.ZodOptional<z.ZodNumber>;
99
+ autoContinue: z.ZodOptional<z.ZodBoolean>;
100
+ allowDetached: z.ZodOptional<z.ZodBoolean>;
101
+ }, z.core.$strip>>;
102
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
103
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ skillId: z.ZodString;
105
+ repo: z.ZodString;
106
+ name: z.ZodOptional<z.ZodString>;
107
+ url: z.ZodOptional<z.ZodString>;
108
+ }, z.core.$strip>>>;
109
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
110
+ }, z.core.$strip>;
111
+ orgId: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strip>;
113
+ export type CoderUpdateSessionParams = z.infer<typeof CoderUpdateSessionParamsSchema>;
114
+ export declare const CoderListSessionsParamsWithOrgSchema: z.ZodObject<{
115
+ search: z.ZodOptional<z.ZodString>;
116
+ includeArchived: z.ZodOptional<z.ZodBoolean>;
117
+ limit: z.ZodOptional<z.ZodNumber>;
118
+ offset: z.ZodOptional<z.ZodNumber>;
119
+ orgId: z.ZodOptional<z.ZodString>;
120
+ }, z.core.$strip>;
121
+ export type CoderListSessionsParamsWithOrg = z.infer<typeof CoderListSessionsParamsWithOrgSchema>;
122
+ export declare const CoderListConnectableSessionsParamsSchema: z.ZodObject<{
123
+ search: z.ZodOptional<z.ZodString>;
124
+ limit: z.ZodOptional<z.ZodNumber>;
125
+ offset: z.ZodOptional<z.ZodNumber>;
126
+ orgId: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strip>;
128
+ export type CoderListConnectableSessionsParams = z.infer<typeof CoderListConnectableSessionsParamsSchema>;
129
+ export interface CoderCreateSessionResponse {
130
+ sessionId: string;
131
+ sandboxId?: string | null;
132
+ status: string;
133
+ mode?: string;
134
+ visibility?: string;
135
+ }
136
+ export declare function coderCreateSession(client: APIClient, params: CoderCreateSessionParams): Promise<CoderCreateSessionResponse>;
137
+ export declare function coderGetSession(client: APIClient, params: CoderGetSessionParams): Promise<CoderSession>;
138
+ export interface CoderUpdateSessionResponse {
139
+ sessionId: string;
140
+ label?: string;
141
+ visibility?: string;
142
+ tags?: string[];
143
+ skills?: unknown[];
144
+ defaultAgent?: string | null;
145
+ }
146
+ export declare function coderUpdateSession(client: APIClient, params: CoderUpdateSessionParams): Promise<CoderUpdateSessionResponse>;
147
+ export declare function coderListSessions(client: APIClient, params?: CoderListSessionsParamsWithOrg): Promise<CoderSessionListResponse>;
148
+ export declare function coderDeleteSession(client: APIClient, params: CoderSessionIdParams): Promise<void>;
149
+ export interface CoderLifecycleResponse {
150
+ sessionId: string;
151
+ status?: string;
152
+ }
153
+ export declare function coderArchiveSession(client: APIClient, params: CoderSessionIdParams): Promise<CoderLifecycleResponse>;
154
+ export declare function coderListConnectableSessions(client: APIClient, params?: CoderListConnectableSessionsParams): Promise<CoderSessionListResponse>;
155
+ //# sourceMappingURL=sessions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/services/coder/sessions.ts"],"names":[],"mappings":"AAAA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';
2
+ import { CoderCreateSessionRequestSchema, CoderListSessionsParamsSchema, CoderSessionListResponseSchema, CoderSessionListItemSchema, CoderSessionSchema, CoderUpdateSessionRequestSchema, } from "./types.js";
3
+ const CoderHubSessionListResponseSchema = z.object({
4
+ sessions: z.object({
5
+ websocket: z.array(CoderSessionListItemSchema),
6
+ sandbox: z.array(z.unknown()),
7
+ }),
8
+ total: z.number(),
9
+ });
10
+ const CoderLifecycleResponseSchema = z
11
+ .object({
12
+ sessionId: z.string().describe('Session identifier'),
13
+ status: z.string().optional().describe('New session status'),
14
+ })
15
+ .passthrough();
16
+ export const CoderSessionIdParamsSchema = z
17
+ .object({
18
+ sessionId: z.string().describe('Coder session identifier'),
19
+ orgId: z.string().optional().describe('Optional org id for CLI auth context'),
20
+ })
21
+ .describe('Common parameters for single-session operations');
22
+ export const CoderCreateSessionParamsSchema = z
23
+ .object({
24
+ body: CoderCreateSessionRequestSchema.describe('Create-session request body'),
25
+ orgId: z.string().optional().describe('Optional org id for CLI auth context'),
26
+ })
27
+ .describe('Parameters for creating a coder session');
28
+ export const CoderGetSessionParamsSchema = CoderSessionIdParamsSchema.describe('Parameters for retrieving a coder session');
29
+ export const CoderUpdateSessionParamsSchema = z
30
+ .object({
31
+ sessionId: z.string().describe('Coder session identifier to update'),
32
+ body: CoderUpdateSessionRequestSchema.describe('Update-session request body'),
33
+ orgId: z.string().optional().describe('Optional org id for CLI auth context'),
34
+ })
35
+ .describe('Parameters for updating a coder session');
36
+ export const CoderListSessionsParamsWithOrgSchema = CoderListSessionsParamsSchema.describe('Parameters for listing coder sessions');
37
+ export const CoderListConnectableSessionsParamsSchema = z
38
+ .object({
39
+ search: z.string().optional().describe('Search query for connectable sessions'),
40
+ limit: z.number().int().optional().describe('Maximum number of sessions to return'),
41
+ offset: z.number().int().optional().describe('Number of sessions to skip for pagination'),
42
+ orgId: z.string().optional().describe('Optional org id for CLI auth context'),
43
+ })
44
+ .describe('Parameters for listing connectable coder sessions');
45
+ function normalizeSessionList(payload) {
46
+ if (Array.isArray(payload)) {
47
+ return {
48
+ sessions: payload,
49
+ total: payload.length,
50
+ };
51
+ }
52
+ return CoderSessionListResponseSchema.parse(payload);
53
+ }
54
+ function buildListQuery(params) {
55
+ const query = new URLSearchParams();
56
+ if (params?.search) {
57
+ query.set('search', params.search);
58
+ }
59
+ if (params && 'includeArchived' in params && params.includeArchived !== undefined) {
60
+ query.set('includeArchived', String(params.includeArchived));
61
+ }
62
+ if (params?.limit !== undefined) {
63
+ query.set('limit', String(params.limit));
64
+ }
65
+ if (params?.offset !== undefined) {
66
+ query.set('offset', String(params.offset));
67
+ }
68
+ const queryString = query.toString();
69
+ return queryString ? `?${queryString}` : '';
70
+ }
71
+ const CoderCreateSessionResponseSchema = z
72
+ .object({
73
+ sessionId: z.string().describe('Created session identifier'),
74
+ sandboxId: z.string().nullable().optional().describe('Associated sandbox identifier'),
75
+ status: z.string().describe('Initial session status'),
76
+ mode: z.string().optional().describe('Session mode'),
77
+ visibility: z.string().optional().describe('Session visibility'),
78
+ })
79
+ .passthrough();
80
+ export async function coderCreateSession(client, params) {
81
+ return client.post('/hub/session', params.body, CoderCreateSessionResponseSchema, CoderCreateSessionRequestSchema);
82
+ }
83
+ export async function coderGetSession(client, params) {
84
+ const path = `/hub/session/${encodeURIComponent(params.sessionId)}`;
85
+ return client.get(path, CoderSessionSchema);
86
+ }
87
+ const CoderUpdateSessionResponseSchema = z
88
+ .object({
89
+ sessionId: z.string().describe('Updated session identifier'),
90
+ label: z.string().optional().describe('Updated label'),
91
+ visibility: z.string().optional().describe('Updated visibility'),
92
+ tags: z.array(z.string()).optional().describe('Updated tags'),
93
+ skills: z.array(z.unknown()).optional().describe('Updated skills'),
94
+ defaultAgent: z.string().nullable().optional().describe('Updated default agent'),
95
+ })
96
+ .passthrough();
97
+ export async function coderUpdateSession(client, params) {
98
+ const path = `/hub/session/${encodeURIComponent(params.sessionId)}`;
99
+ return client.patch(path, params.body, CoderUpdateSessionResponseSchema, CoderUpdateSessionRequestSchema);
100
+ }
101
+ export async function coderListSessions(client, params) {
102
+ const path = `/hub/sessions${buildListQuery(params)}`;
103
+ const raw = await client.get(path, CoderHubSessionListResponseSchema);
104
+ return normalizeSessionList({
105
+ sessions: raw.sessions.websocket,
106
+ total: raw.total,
107
+ });
108
+ }
109
+ export async function coderDeleteSession(client, params) {
110
+ const path = `/hub/session/${encodeURIComponent(params.sessionId)}`;
111
+ await client.delete(path);
112
+ }
113
+ export async function coderArchiveSession(client, params) {
114
+ const path = `/hub/session/${encodeURIComponent(params.sessionId)}/archive`;
115
+ return client.post(path, undefined, CoderLifecycleResponseSchema);
116
+ }
117
+ export async function coderListConnectableSessions(client, params) {
118
+ const path = `/hub/sessions/connectable${buildListQuery(params)}`;
119
+ const raw = await client.get(path, CoderHubSessionListResponseSchema);
120
+ return normalizeSessionList({
121
+ sessions: raw.sessions.websocket,
122
+ total: raw.total,
123
+ });
124
+ }
125
+ //# sourceMappingURL=sessions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/services/coder/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EACN,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,0BAA0B,EAC1B,kBAAkB,EAClB,+BAA+B,GAM/B,MAAM,YAAY,CAAC;AAEpB,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QAClB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC;QAC9C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;KAC7B,CAAC;IACF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH,MAAM,4BAA4B,GAAG,CAAC;KACpC,MAAM,CAAC;IACP,SAAS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illListResponse, type CoderSaveSkillRequest, type CoderSkillBucket, type CoderSkillBucketListResponse } from './types.ts';
3
+ export declare function coderListSavedSkills(client: APIClient): Promise<CoderSavedSkillListResponse>;
4
+ export declare function coderSaveSkill(client: APIClient, params: {
5
+ body: CoderSaveSkillRequest;
6
+ }): Promise<CoderSavedSkill>;
7
+ export declare function coderDeleteSavedSkill(client: APIClient, params: {
8
+ skillId: string;
9
+ }): Promise<void>;
10
+ export declare function coderListSkillBuckets(client: APIClient): Promise<CoderSkillBucketListResponse>;
11
+ export declare function coderCreateSkillBucket(client: APIClient, params: {
12
+ body: CoderCreateSkillBucketRequest;
13
+ }): Promise<CoderSkillBucket>;
14
+ export declare function coderDeleteSkillBucket(client: APIClient, params: {
15
+ bucketId: string;
16
+ }): Promise<void>;
17
+ //# sourceMappingURL=skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/services/coder/skills.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAON,KAAK,6BAA6B,EAClC,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,MAAM,YAAY,CAAC;AAuBpB,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,SAAS,GACf,OAAO,CAAC,2BAA2B,CAAC,CAKtC;AAED,wBAAsB,cAAc,CACnC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,GACrC,OAAO,CAAC,eAAe,CAAC,CAS1B;AAED,wBAAsB,qBAAqB,CAC1C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GACzB,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,qBAAqB,CAC1C,MAAM,EAAE,SAAS,GACf,OAAO,CAAC,4BAA4B,CAAC,CAKvC;AAED,wBAAsB,sBAAsB,CAC3C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE;IAAE,IAAI,EAAE,6BAA6B,CAAA;CAAE,GAC7C,OAAO,CAAC,gBAAgB,CAAC,CAY3B;AAED,wBAAsB,sBAAsB,CAC3C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC1B,OAAO,CAAC,IAAI,CAAC,CAGf"}
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod/v4';
2
+ import { CoderCreateSkillBucketRequestSchema, CoderSavedSkillListResponseSchema, CoderSavedSkillSchema, CoderSaveSkillRequestSchema, CoderSkillBucketListResponseSchema, CoderSkillBucketSchema, } from "./types.js";
3
+ const SaveSkillResponseSchema = z
4
+ .object({
5
+ skill: CoderSavedSkillSchema.describe('Saved skill payload returned by coder hub'),
6
+ })
7
+ .passthrough()
8
+ .describe('Wrapped save-skill response from coder hub');
9
+ const CreateSkillBucketResponseSchema = z
10
+ .object({
11
+ bucket: CoderSkillBucketSchema.describe('Created skill bucket payload returned by coder hub'),
12
+ })
13
+ .passthrough()
14
+ .describe('Wrapped create-skill-bucket response from coder hub');
15
+ const OkResponseSchema = z
16
+ .object({
17
+ ok: z.boolean().describe('Operation success indicator'),
18
+ })
19
+ .passthrough()
20
+ .describe('Generic ok response from coder hub');
21
+ export async function coderListSavedSkills(client) {
22
+ return client.get('/hub/skills/library', CoderSavedSkillListResponseSchema);
23
+ }
24
+ export async function coderSaveSkill(client, params) {
25
+ const resp = await client.post('/hub/skills/library', params.body, SaveSkillResponseSchema, CoderSaveSkillRequestSchema);
26
+ return resp.skill;
27
+ }
28
+ export async function coderDeleteSavedSkill(client, params) {
29
+ const path = `/hub/skills/library/${encodeURIComponent(params.skillId)}`;
30
+ await client.delete(path, OkResponseSchema);
31
+ }
32
+ export async function coderListSkillBuckets(client) {
33
+ return client.get('/hub/skills/buckets', CoderSkillBucketListResponseSchema);
34
+ }
35
+ export async function coderCreateSkillBucket(client, params) {
36
+ const resp = await client.post('/hub/skills/buckets', params.body, CreateSkillBucketResponseSchema, CoderCreateSkillBucketRequestSchema);
37
+ return resp.bucket;
38
+ }
39
+ export async function coderDeleteSkillBucket(client, params) {
40
+ const path = `/hub/skills/buckets/${encodeURIComponent(params.bucketId)}`;
41
+ await client.delete(path, OkResponseSchema);
42
+ }
43
+ //# sourceMappingURL=skills.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.js","sourceRoot":"","sources":["../../../src/services/coder/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EACN,mCAAmC,EACnC,iCAAiC,EACjC,qBAAqB,EACrB,2BAA2B,EAC3B,kCAAkC,EAClC,sBAAsB,GAOtB,MAAM,YAAY,CAAC;AAEpB,MAAM,uBAAuB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACP,KAAK,EAAE,qBAAqB,CAAC,QAAQ,CAAC,2CAA2C,CAAC;CAClF,CAAC;KACD,WAAW,EAAE;KACb,QAAQ,CAAC,4CAA4C,CAAC,CAAC;AAEzD,MAAM,+BAA+B,GAAG,CAAC;KACvC,MAAM,CAAC;IACP,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,oDAAoD,CAAC;CAC7F,CAAC;KACD,WAAW,EAAE;KACb,QAAQ,CAAC,qDAAqD,CAAC,CAAC;AAElE,MAAM,gBAAgB,GAAG,CAAC;KACxB,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;CACvD,CAAC;KACD,WAAW,EAAE;KACb,QAAQ,CAAC,oCAAoC,CAAC,CAAC;AAEjD,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACzC,MAAiB;IAEjB,OAAO,MAAM,CAAC,GAAG,CAChB,qBAAqB,EACrB,iCAAiC,CACjC,C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