@stigmer/sdk 0.0.36 → 0.0.39

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 (131) hide show
  1. package/__tests__/config.test.d.ts +2 -0
  2. package/__tests__/config.test.d.ts.map +1 -0
  3. package/__tests__/config.test.js +35 -0
  4. package/__tests__/config.test.js.map +1 -0
  5. package/__tests__/errors.test.d.ts +2 -0
  6. package/__tests__/errors.test.d.ts.map +1 -0
  7. package/__tests__/errors.test.js +125 -0
  8. package/__tests__/errors.test.js.map +1 -0
  9. package/__tests__/gen/errors.test.d.ts +2 -0
  10. package/__tests__/gen/errors.test.d.ts.map +1 -0
  11. package/__tests__/gen/errors.test.js +97 -0
  12. package/__tests__/gen/errors.test.js.map +1 -0
  13. package/__tests__/gen/proto-utils.test.d.ts +2 -0
  14. package/__tests__/gen/proto-utils.test.d.ts.map +1 -0
  15. package/__tests__/gen/proto-utils.test.js +45 -0
  16. package/__tests__/gen/proto-utils.test.js.map +1 -0
  17. package/__tests__/gen/session-client.test.d.ts +2 -0
  18. package/__tests__/gen/session-client.test.d.ts.map +1 -0
  19. package/__tests__/gen/session-client.test.js +148 -0
  20. package/__tests__/gen/session-client.test.js.map +1 -0
  21. package/gen/agent.d.ts +4 -0
  22. package/gen/agent.d.ts.map +1 -1
  23. package/gen/agent.js +69 -7
  24. package/gen/agent.js.map +1 -1
  25. package/gen/agentexecution.d.ts +4 -1
  26. package/gen/agentexecution.d.ts.map +1 -1
  27. package/gen/agentexecution.js +55 -6
  28. package/gen/agentexecution.js.map +1 -1
  29. package/gen/agentinstance.d.ts +4 -1
  30. package/gen/agentinstance.d.ts.map +1 -1
  31. package/gen/agentinstance.js +15 -3
  32. package/gen/agentinstance.js.map +1 -1
  33. package/gen/apikey.d.ts +2 -0
  34. package/gen/apikey.d.ts.map +1 -1
  35. package/gen/apikey.js +5 -2
  36. package/gen/apikey.js.map +1 -1
  37. package/gen/environment.d.ts +8 -0
  38. package/gen/environment.d.ts.map +1 -1
  39. package/gen/environment.js +43 -4
  40. package/gen/environment.js.map +1 -1
  41. package/gen/executioncontext.d.ts +2 -0
  42. package/gen/executioncontext.d.ts.map +1 -1
  43. package/gen/executioncontext.js +11 -4
  44. package/gen/executioncontext.js.map +1 -1
  45. package/gen/iampolicy.d.ts +2 -0
  46. package/gen/iampolicy.d.ts.map +1 -1
  47. package/gen/iampolicy.js +17 -5
  48. package/gen/iampolicy.js.map +1 -1
  49. package/gen/identityaccount.d.ts +2 -0
  50. package/gen/identityaccount.d.ts.map +1 -1
  51. package/gen/identityaccount.js +8 -3
  52. package/gen/identityaccount.js.map +1 -1
  53. package/gen/identityprovider.d.ts +2 -0
  54. package/gen/identityprovider.d.ts.map +1 -1
  55. package/gen/identityprovider.js +5 -2
  56. package/gen/identityprovider.js.map +1 -1
  57. package/gen/mcpserver.d.ts +2 -0
  58. package/gen/mcpserver.d.ts.map +1 -1
  59. package/gen/mcpserver.js +49 -10
  60. package/gen/mcpserver.js.map +1 -1
  61. package/gen/organization.d.ts +2 -0
  62. package/gen/organization.d.ts.map +1 -1
  63. package/gen/organization.js +8 -3
  64. package/gen/organization.js.map +1 -1
  65. package/gen/project.d.ts +2 -0
  66. package/gen/project.d.ts.map +1 -1
  67. package/gen/project.js +7 -3
  68. package/gen/project.js.map +1 -1
  69. package/gen/proto-utils.d.ts +6 -0
  70. package/gen/proto-utils.d.ts.map +1 -0
  71. package/gen/proto-utils.js +15 -0
  72. package/gen/proto-utils.js.map +1 -0
  73. package/gen/session.d.ts +18 -1
  74. package/gen/session.d.ts.map +1 -1
  75. package/gen/session.js +62 -3
  76. package/gen/session.js.map +1 -1
  77. package/gen/skill.d.ts +4 -1
  78. package/gen/skill.d.ts.map +1 -1
  79. package/gen/skill.js +13 -2
  80. package/gen/skill.js.map +1 -1
  81. package/gen/workflow.d.ts +2 -0
  82. package/gen/workflow.d.ts.map +1 -1
  83. package/gen/workflow.js +53 -6
  84. package/gen/workflow.js.map +1 -1
  85. package/gen/workflowexecution.d.ts +2 -0
  86. package/gen/workflowexecution.d.ts.map +1 -1
  87. package/gen/workflowexecution.js +11 -3
  88. package/gen/workflowexecution.js.map +1 -1
  89. package/gen/workflowinstance.d.ts +3 -1
  90. package/gen/workflowinstance.d.ts.map +1 -1
  91. package/gen/workflowinstance.js +7 -3
  92. package/gen/workflowinstance.js.map +1 -1
  93. package/github.d.ts +38 -0
  94. package/github.d.ts.map +1 -0
  95. package/github.js +51 -0
  96. package/github.js.map +1 -0
  97. package/index.d.ts +1 -0
  98. package/index.d.ts.map +1 -1
  99. package/index.js +2 -0
  100. package/index.js.map +1 -1
  101. package/package.json +2 -2
  102. package/src/__tests__/config.test.ts +52 -0
  103. package/src/__tests__/errors.test.ts +188 -0
  104. package/src/__tests__/gen/errors.test.ts +138 -0
  105. package/src/__tests__/gen/proto-utils.test.ts +53 -0
  106. package/src/__tests__/gen/session-client.test.ts +202 -0
  107. package/src/gen/agent.ts +65 -8
  108. package/src/gen/agentexecution.ts +55 -7
  109. package/src/gen/agentinstance.ts +16 -4
  110. package/src/gen/apikey.ts +7 -2
  111. package/src/gen/environment.ts +39 -4
  112. package/src/gen/executioncontext.ts +14 -4
  113. package/src/gen/iampolicy.ts +19 -4
  114. package/src/gen/identityaccount.ts +10 -3
  115. package/src/gen/identityprovider.ts +7 -2
  116. package/src/gen/mcpserver.ts +53 -10
  117. package/src/gen/organization.ts +10 -4
  118. package/src/gen/project.ts +9 -3
  119. package/src/gen/proto-utils.ts +15 -0
  120. package/src/gen/session.ts +82 -4
  121. package/src/gen/skill.ts +14 -3
  122. package/src/gen/workflow.ts +54 -6
  123. package/src/gen/workflowexecution.ts +14 -3
  124. package/src/gen/workflowinstance.ts +10 -4
  125. package/src/github.ts +89 -0
  126. package/src/index.ts +9 -0
  127. package/src/stigmer.ts +3 -0
  128. package/stigmer.d.ts +2 -0
  129. package/stigmer.d.ts.map +1 -1
  130. package/stigmer.js +3 -0
  131. package/stigmer.js.map +1 -1
@@ -1,9 +1,11 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
3
  import { wrapError } from "./errors";
4
+ import { stripUndefined } from "./proto-utils";
4
5
  import { type EnvVarInput } from "./types";
5
6
  import { create } from "@bufbuild/protobuf";
6
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
+ import { ExecutionValueSchema } from "@stigmer/protos/ai/stigmer/agentic/executioncontext/v1/spec_pb";
7
9
  import { WorkflowExecutionSchema, type WorkflowExecution } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
8
10
  import { WorkflowExecutionCommandController } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/command_pb";
9
11
  import { WorkflowExecutionIdSchema, WorkflowExecutionUpdateStatusInputSchema, SubmitWorkflowApprovalInputSchema, SendSignalInputSchema, CancelWorkflowExecutionInputSchema, TerminateWorkflowExecutionInputSchema, RecoverWorkflowExecutionInputSchema, PauseWorkflowExecutionInputSchema, ResumeWorkflowExecutionInputSchema, ListWorkflowExecutionsRequestSchema, WorkflowExecutionListSchema, ListWorkflowExecutionsByWorkflowRequestSchema, SubscribeWorkflowExecutionRequestSchema, type WorkflowExecutionUpdateStatusInput, type SubmitWorkflowApprovalInput, type SendSignalInput, type CancelWorkflowExecutionInput, type TerminateWorkflowExecutionInput, type RecoverWorkflowExecutionInput, type PauseWorkflowExecutionInput, type ResumeWorkflowExecutionInput, type ListWorkflowExecutionsRequest, type WorkflowExecutionList, type ListWorkflowExecutionsByWorkflowRequest, type SubscribeWorkflowExecutionRequest } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/io_pb";
@@ -118,7 +120,9 @@ export class WorkflowExecutionClient {
118
120
  /** Input for creating/updating a WorkflowExecution. */
119
121
  export interface WorkflowExecutionInput {
120
122
  name: string;
123
+ slug?: string;
121
124
  org: string;
125
+ labels?: Record<string, string>;
122
126
  workflowInstanceId?: string;
123
127
  workflowId?: string;
124
128
  triggerMessage?: string;
@@ -128,20 +132,27 @@ export interface WorkflowExecutionInput {
128
132
  }
129
133
 
130
134
  function buildWorkflowExecutionProto(input: WorkflowExecutionInput): WorkflowExecution {
135
+ let runtimeEnv;
136
+ if (input.runtimeEnv) {
137
+ runtimeEnv = Object.fromEntries(Object.entries(input.runtimeEnv).map(([k, v]) =>
138
+ [k, create(ExecutionValueSchema, { value: v.value, isSecret: v.isSecret })]));
139
+ }
131
140
  return Object.assign(create(WorkflowExecutionSchema), {
132
141
  apiVersion: "agentic.stigmer.ai/v1",
133
142
  kind: "WorkflowExecution",
134
143
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
135
144
  name: input.name,
136
145
  org: input.org,
146
+ ...(input.slug && { slug: input.slug }),
147
+ ...(input.labels && { labels: input.labels }),
137
148
  }),
138
- spec: Object.assign(create(WorkflowExecutionSpecSchema), {
149
+ spec: Object.assign(create(WorkflowExecutionSpecSchema), stripUndefined({
139
150
  workflowInstanceId: input.workflowInstanceId,
140
151
  workflowId: input.workflowId,
141
152
  triggerMessage: input.triggerMessage,
142
153
  triggerMetadata: input.triggerMetadata,
143
- runtimeEnv: input.runtimeEnv,
154
+ runtimeEnv,
144
155
  callbackToken: input.callbackToken,
145
- }),
156
+ })),
146
157
  }) as WorkflowExecution;
147
158
  }
@@ -1,6 +1,7 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
3
  import { wrapError } from "./errors";
4
+ import { stripUndefined } from "./proto-utils";
4
5
  import { type ResourceRef } from "./types";
5
6
  import { create } from "@bufbuild/protobuf";
6
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
@@ -68,24 +69,29 @@ export class WorkflowInstanceClient {
68
69
  /** Input for creating/updating a WorkflowInstance. */
69
70
  export interface WorkflowInstanceInput {
70
71
  name: string;
72
+ slug?: string;
71
73
  org: string;
74
+ labels?: Record<string, string>;
72
75
  workflowId?: string;
73
76
  description?: string;
74
- envRefs?: ResourceRef[];
77
+ environmentRefs?: ResourceRef[];
75
78
  }
76
79
 
77
80
  function buildWorkflowInstanceProto(input: WorkflowInstanceInput): WorkflowInstance {
81
+ const environmentRefs = input.environmentRefs?.map(r => create(ApiResourceReferenceSchema, r));
78
82
  return Object.assign(create(WorkflowInstanceSchema), {
79
83
  apiVersion: "agentic.stigmer.ai/v1",
80
84
  kind: "WorkflowInstance",
81
85
  metadata: Object.assign(create(ApiResourceMetadataSchema), {
82
86
  name: input.name,
83
87
  org: input.org,
88
+ ...(input.slug && { slug: input.slug }),
89
+ ...(input.labels && { labels: input.labels }),
84
90
  }),
85
- spec: Object.assign(create(WorkflowInstanceSpecSchema), {
91
+ spec: Object.assign(create(WorkflowInstanceSpecSchema), stripUndefined({
86
92
  workflowId: input.workflowId,
87
93
  description: input.description,
88
- envRefs: input.envRefs,
89
- }),
94
+ environmentRefs,
95
+ })),
90
96
  }) as WorkflowInstance;
91
97
  }
package/src/github.ts ADDED
@@ -0,0 +1,89 @@
1
+ import { createClient, type Client, type Transport } from "@connectrpc/connect";
2
+ import { create } from "@bufbuild/protobuf";
3
+ import {
4
+ ExchangeOAuthCodeRequestSchema,
5
+ GetOAuthAuthorizeUrlRequestSchema,
6
+ GitHubService,
7
+ } from "@stigmer/protos/ai/stigmer/platform/github/v1/service_pb";
8
+ import { wrapError } from "./gen/errors";
9
+
10
+ /** Parameters for getting the OAuth authorize URL. */
11
+ export interface GetOAuthAuthorizeUrlParams {
12
+ readonly redirectUri: string;
13
+ }
14
+
15
+ /** Response containing the OAuth authorize URL and state. */
16
+ export interface OAuthAuthorizeUrlResponse {
17
+ readonly authorizeUrl: string;
18
+ readonly state: string;
19
+ }
20
+
21
+ /** Parameters for exchanging an OAuth authorization code. */
22
+ export interface ExchangeOAuthCodeParams {
23
+ readonly code: string;
24
+ readonly state: string;
25
+ readonly redirectUri: string;
26
+ }
27
+
28
+ /** Response containing the exchanged access token. */
29
+ export interface OAuthTokenResponse {
30
+ readonly accessToken: string;
31
+ readonly tokenType: string;
32
+ readonly scope: string;
33
+ }
34
+
35
+ /**
36
+ * Client for GitHub OAuth integration.
37
+ *
38
+ * Provides methods to initiate the OAuth flow (get authorize URL) and
39
+ * exchange the authorization code for an access token. The access token
40
+ * is returned to the caller — the backend never persists it.
41
+ */
42
+ export class GitHubClient {
43
+ private readonly github: Client<typeof GitHubService>;
44
+
45
+ constructor(transport: Transport) {
46
+ this.github = createClient(GitHubService, transport);
47
+ }
48
+
49
+ /** Get the GitHub OAuth authorize URL to redirect the user to. */
50
+ async getOAuthAuthorizeUrl(
51
+ params: GetOAuthAuthorizeUrlParams,
52
+ ): Promise<OAuthAuthorizeUrlResponse> {
53
+ try {
54
+ const resp = await this.github.getOAuthAuthorizeUrl(
55
+ create(GetOAuthAuthorizeUrlRequestSchema, {
56
+ redirectUri: params.redirectUri,
57
+ }),
58
+ );
59
+ return {
60
+ authorizeUrl: resp.authorizeUrl,
61
+ state: resp.state,
62
+ };
63
+ } catch (e) {
64
+ throw wrapError(e);
65
+ }
66
+ }
67
+
68
+ /** Exchange an OAuth authorization code for an access token. */
69
+ async exchangeOAuthCode(
70
+ params: ExchangeOAuthCodeParams,
71
+ ): Promise<OAuthTokenResponse> {
72
+ try {
73
+ const resp = await this.github.exchangeOAuthCode(
74
+ create(ExchangeOAuthCodeRequestSchema, {
75
+ code: params.code,
76
+ state: params.state,
77
+ redirectUri: params.redirectUri,
78
+ }),
79
+ );
80
+ return {
81
+ accessToken: resp.accessToken,
82
+ tokenType: resp.tokenType,
83
+ scope: resp.scope,
84
+ };
85
+ } catch (e) {
86
+ throw wrapError(e);
87
+ }
88
+ }
89
+ }
package/src/index.ts CHANGED
@@ -32,6 +32,15 @@ export {
32
32
  ApiResourceKind,
33
33
  } from "./search";
34
34
 
35
+ // GitHub OAuth client
36
+ export {
37
+ GitHubClient,
38
+ type GetOAuthAuthorizeUrlParams,
39
+ type OAuthAuthorizeUrlResponse,
40
+ type ExchangeOAuthCodeParams,
41
+ type OAuthTokenResponse,
42
+ } from "./github";
43
+
35
44
  // Shared types (from generated code)
36
45
  export {
37
46
  type DeleteResourceInput,
package/src/stigmer.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { GeneratedClient } from "./gen/client";
2
+ import { GitHubClient } from "./github";
2
3
  import { SearchClient } from "./search";
3
4
  import { createStigmerTransport } from "./transport";
4
5
  import { validateConfig, type StigmerConfig } from "./config";
@@ -55,6 +56,7 @@ export class Stigmer {
55
56
  readonly workflowExecution: WorkflowExecutionClient;
56
57
  readonly workflowInstance: WorkflowInstanceClient;
57
58
  readonly search: SearchClient;
59
+ readonly github: GitHubClient;
58
60
 
59
61
  constructor(config: StigmerConfig) {
60
62
  validateConfig(config);
@@ -79,5 +81,6 @@ export class Stigmer {
79
81
  this.workflowExecution = client.workflowExecution;
80
82
  this.workflowInstance = client.workflowInstance;
81
83
  this.search = new SearchClient(transport);
84
+ this.github = new GitHubClient(transport);
82
85
  }
83
86
  }
package/stigmer.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { GitHubClient } from "./github";
1
2
  import { SearchClient } from "./search";
2
3
  import { type StigmerConfig } from "./config";
3
4
  import type { AgentClient } from "./gen/agent";
@@ -52,6 +53,7 @@ export declare class Stigmer {
52
53
  readonly workflowExecution: WorkflowExecutionClient;
53
54
  readonly workflowInstance: WorkflowInstanceClient;
54
55
  readonly search: SearchClient;
56
+ readonly github: GitHubClient;
55
57
  constructor(config: StigmerConfig);
56
58
  }
57
59
  //# sourceMappingURL=stigmer.d.ts.map
package/stigmer.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stigmer.d.ts","sourceRoot":"","sources":["../src/stigmer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAA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CAAC,iBAAiB,EAAE,uBAAuB,CAAC;IACpD,QAAQ,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;IAClD,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;gBAElB,MAAM,EAAE,aAAa;CAyBlC"}
package/stigmer.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { GeneratedClient } from "./gen/client";
2
+ import { GitHubClient } from "./github";
2
3
  import { SearchClient } from "./search";
3
4
  import { createStigmerTransport } from "./transport";
4
5
  import { validateConfig } from "./config";
@@ -37,6 +38,7 @@ export class Stigmer {
37
38
  workflowExecution;
38
39
  workflowInstance;
39
40
  search;
41
+ github;
40
42
  constructor(config) {
41
43
  validateConfig(config);
42
44
  const transport = createStigmerTransport(config);
@@ -59,6 +61,7 @@ export class Stigmer {
59
61
  this.workflowExecution = client.workflowExecution;
60
62
  this.workflowInstance = client.workflowInstance;
61
63
  this.search = new SearchClient(transport);
64
+ this.github = new GitHubClient(transport);
62
65
  }
63
66
  }
64
67
  //# sourceMappingURL=stigmer.js.map
package/stigmer.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stigmer.js","sourceRoot":"","sources":["../src/stigmer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAmB9D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,OAAO;IACT,KAAK,CAAc;IACnB,cAAc,CAAuB;IACrC,aAAa,CAAsB;IACnC,MAAM,CAAe;IACrB,WAAW,CAAoB;IAC/B,gBAAgB,CAAyB;IACzC,SAAS,CAAkB;IAC3B,eAAe,CAAwB;IACvC,gBAAgB,CAAyB;IACzC,SAAS,CA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