@stigmer/sdk 3.1.0 → 3.1.2

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 (172) hide show
  1. package/activity.js +1 -1
  2. package/activity.js.map +1 -1
  3. package/authorization-config.js +1 -1
  4. package/authorization-config.js.map +1 -1
  5. package/billing.js +1 -1
  6. package/billing.js.map +1 -1
  7. package/errors.d.ts +1 -1
  8. package/errors.d.ts.map +1 -1
  9. package/errors.js +2 -2
  10. package/errors.js.map +1 -1
  11. package/gen/agent.d.ts +1 -1
  12. package/gen/agent.d.ts.map +1 -1
  13. package/gen/agent.js +2 -2
  14. package/gen/agent.js.map +1 -1
  15. package/gen/agentexecution.d.ts +2 -1
  16. package/gen/agentexecution.d.ts.map +1 -1
  17. package/gen/agentexecution.js +4 -2
  18. package/gen/agentexecution.js.map +1 -1
  19. package/gen/agentinstance.d.ts +1 -1
  20. package/gen/agentinstance.d.ts.map +1 -1
  21. package/gen/agentinstance.js +2 -2
  22. package/gen/agentinstance.js.map +1 -1
  23. package/gen/apikey.js +2 -2
  24. package/gen/apikey.js.map +1 -1
  25. package/gen/artifact.js +2 -2
  26. package/gen/artifact.js.map +1 -1
  27. package/gen/client.d.ts +65 -65
  28. package/gen/client.d.ts.map +1 -1
  29. package/gen/client.js +43 -43
  30. package/gen/client.js.map +1 -1
  31. package/gen/environment.d.ts +1 -1
  32. package/gen/environment.d.ts.map +1 -1
  33. package/gen/environment.js +2 -2
  34. package/gen/environment.js.map +1 -1
  35. package/gen/executioncontext.d.ts +1 -1
  36. package/gen/executioncontext.d.ts.map +1 -1
  37. package/gen/executioncontext.js +2 -2
  38. package/gen/executioncontext.js.map +1 -1
  39. package/gen/iampolicy.js +2 -2
  40. package/gen/iampolicy.js.map +1 -1
  41. package/gen/identityaccount.d.ts +1 -1
  42. package/gen/identityaccount.d.ts.map +1 -1
  43. package/gen/identityaccount.js +2 -2
  44. package/gen/identityaccount.js.map +1 -1
  45. package/gen/identityprovider.d.ts +1 -1
  46. package/gen/identityprovider.d.ts.map +1 -1
  47. package/gen/identityprovider.js +2 -2
  48. package/gen/identityprovider.js.map +1 -1
  49. package/gen/invitation.js +2 -2
  50. package/gen/invitation.js.map +1 -1
  51. package/gen/mcpserver.d.ts +1 -1
  52. package/gen/mcpserver.d.ts.map +1 -1
  53. package/gen/mcpserver.js +2 -2
  54. package/gen/mcpserver.js.map +1 -1
  55. package/gen/oauthapp.d.ts +1 -1
  56. package/gen/oauthapp.d.ts.map +1 -1
  57. package/gen/oauthapp.js +2 -2
  58. package/gen/oauthapp.js.map +1 -1
  59. package/gen/organization.d.ts +1 -1
  60. package/gen/organization.d.ts.map +1 -1
  61. package/gen/organization.js +2 -2
  62. package/gen/organization.js.map +1 -1
  63. package/gen/platformclient.d.ts +1 -1
  64. package/gen/platformclient.d.ts.map +1 -1
  65. package/gen/platformclient.js +2 -2
  66. package/gen/platformclient.js.map +1 -1
  67. package/gen/project.d.ts +1 -1
  68. package/gen/project.d.ts.map +1 -1
  69. package/gen/project.js +2 -2
  70. package/gen/project.js.map +1 -1
  71. package/gen/session.d.ts +1 -1
  72. package/gen/session.d.ts.map +1 -1
  73. package/gen/session.js +2 -2
  74. package/gen/session.js.map +1 -1
  75. package/gen/skill.d.ts +1 -1
  76. package/gen/skill.d.ts.map +1 -1
  77. package/gen/skill.js +2 -2
  78. package/gen/skill.js.map +1 -1
  79. package/gen/workflow.d.ts +1 -1
  80. package/gen/workflow.d.ts.map +1 -1
  81. package/gen/workflow.js +2 -2
  82. package/gen/workflow.js.map +1 -1
  83. package/gen/workflowexecution.d.ts +1 -1
  84. package/gen/workflowexecution.d.ts.map +1 -1
  85. package/gen/workflowexecution.js +2 -2
  86. package/gen/workflowexecution.js.map +1 -1
  87. package/gen/workflowinstance.d.ts +1 -1
  88. package/gen/workflowinstance.d.ts.map +1 -1
  89. package/gen/workflowinstance.js +2 -2
  90. package/gen/workflowinstance.js.map +1 -1
  91. package/github.js +1 -1
  92. package/github.js.map +1 -1
  93. package/index.d.ts +40 -40
  94. package/index.d.ts.map +1 -1
  95. package/index.js +37 -37
  96. package/index.js.map +1 -1
  97. package/internal/interceptors.d.ts +1 -1
  98. package/internal/interceptors.d.ts.map +1 -1
  99. package/internal/interceptors.js +1 -1
  100. package/internal/interceptors.js.map +1 -1
  101. package/node.d.ts +2 -2
  102. package/node.d.ts.map +1 -1
  103. package/node.js +3 -3
  104. package/node.js.map +1 -1
  105. package/package.json +2 -2
  106. package/platform-client-auth.js +2 -2
  107. package/platform-client-auth.js.map +1 -1
  108. package/platform.d.ts +1 -1
  109. package/platform.d.ts.map +1 -1
  110. package/platform.js +1 -1
  111. package/platform.js.map +1 -1
  112. package/resource-availability.js +1 -1
  113. package/resource-availability.js.map +1 -1
  114. package/search.js +1 -1
  115. package/search.js.map +1 -1
  116. package/src/activity.ts +1 -1
  117. package/src/authorization-config.ts +1 -1
  118. package/src/billing.ts +1 -1
  119. package/src/errors.ts +2 -2
  120. package/src/gen/agent.ts +3 -3
  121. package/src/gen/agentexecution.ts +5 -3
  122. package/src/gen/agentinstance.ts +3 -3
  123. package/src/gen/apikey.ts +2 -2
  124. package/src/gen/artifact.ts +2 -2
  125. package/src/gen/client.ts +65 -65
  126. package/src/gen/environment.ts +3 -3
  127. package/src/gen/executioncontext.ts +3 -3
  128. package/src/gen/iampolicy.ts +2 -2
  129. package/src/gen/identityaccount.ts +3 -3
  130. package/src/gen/identityprovider.ts +3 -3
  131. package/src/gen/invitation.ts +2 -2
  132. package/src/gen/mcpserver.ts +3 -3
  133. package/src/gen/oauthapp.ts +3 -3
  134. package/src/gen/organization.ts +3 -3
  135. package/src/gen/platformclient.ts +3 -3
  136. package/src/gen/project.ts +3 -3
  137. package/src/gen/session.ts +3 -3
  138. package/src/gen/skill.ts +3 -3
  139. package/src/gen/workflow.ts +3 -3
  140. package/src/gen/workflowexecution.ts +3 -3
  141. package/src/gen/workflowinstance.ts +3 -3
  142. package/src/github.ts +1 -1
  143. package/src/index.ts +40 -40
  144. package/src/internal/interceptors.ts +2 -2
  145. package/src/node.ts +3 -3
  146. package/src/platform-client-auth.ts +2 -2
  147. package/src/platform.ts +2 -2
  148. package/src/resource-availability.ts +1 -1
  149. package/src/search.ts +1 -1
  150. package/src/stigmer.ts +8 -8
  151. package/src/synth/context.ts +3 -3
  152. package/src/synth/index.ts +6 -6
  153. package/src/synth/writer.ts +4 -4
  154. package/src/transport.ts +2 -2
  155. package/stigmer.d.ts +7 -7
  156. package/stigmer.d.ts.map +1 -1
  157. package/stigmer.js +8 -8
  158. package/stigmer.js.map +1 -1
  159. package/synth/context.d.ts +3 -3
  160. package/synth/context.d.ts.map +1 -1
  161. package/synth/index.d.ts +5 -5
  162. package/synth/index.d.ts.map +1 -1
  163. package/synth/index.js +3 -3
  164. package/synth/index.js.map +1 -1
  165. package/synth/writer.d.ts +1 -1
  166. package/synth/writer.d.ts.map +1 -1
  167. package/synth/writer.js +3 -3
  168. package/synth/writer.js.map +1 -1
  169. package/transport.d.ts +1 -1
  170. package/transport.d.ts.map +1 -1
  171. package/transport.js +1 -1
  172. package/transport.js.map +1 -1
@@ -1,7 +1,7 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
5
  import { create } from "@bufbuild/protobuf";
6
6
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
7
7
  import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { EmptySchema } from "@bufbuild/protobuf/wkt";
8
8
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type DeleteResourceInput, type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type DeleteResourceInput, type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
@@ -1,7 +1,7 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined, toTimestamp } from "./proto-utils";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined, toTimestamp } from "./proto-utils.js";
5
5
  import { create } from "@bufbuild/protobuf";
6
6
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
7
7
  import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type DeleteResourceInput, type ListParams, type ListResult, type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type DeleteResourceInput, type ListParams, type ListResult, type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { EnvVarDeclarationSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/spec_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type DeleteResourceInput, type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type DeleteResourceInput, type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { EmptySchema } from "@bufbuild/protobuf/wkt";
8
8
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined, toTimestamp } from "./proto-utils";
5
- import { type DeleteResourceInput, type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined, toTimestamp } from "./proto-utils.js";
5
+ import { type DeleteResourceInput, type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { ToolApprovalOverrideSchema, McpServerUsageSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
package/src/gen/skill.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type ListParams, type ListResult, type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type ListParams, type ListResult, type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { SkillSchema, type Skill } from "@stigmer/protos/ai/stigmer/agentic/skill/v1/api_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type ListParams, type ListResult, type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type ListParams, type ListResult, type ResourceRef } from "./types.js";
6
6
  import { create, type JsonObject } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { EnvVarDeclarationSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/spec_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type EnvVarInput } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type EnvVarInput } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { ExecutionValueSchema } from "@stigmer/protos/ai/stigmer/agentic/executioncontext/v1/spec_pb";
@@ -1,8 +1,8 @@
1
1
  // Code generated by stigmer-codegen. DO NOT EDIT.
2
2
 
3
- import { wrapError } from "./errors";
4
- import { stripUndefined } from "./proto-utils";
5
- import { type ResourceRef } from "./types";
3
+ import { wrapError } from "./errors.js";
4
+ import { stripUndefined } from "./proto-utils.js";
5
+ import { type ResourceRef } from "./types.js";
6
6
  import { create } from "@bufbuild/protobuf";
7
7
  import { createClient, type Client, type Transport } from "@connectrpc/connect";
8
8
  import { WorkflowInstanceSchema, type WorkflowInstance } from "@stigmer/protos/ai/stigmer/agentic/workflowinstance/v1/api_pb";
package/src/github.ts CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  GetOAuthAuthorizeUrlRequestSchema,
6
6
  GitHubService,
7
7
  } from "@stigmer/protos/ai/stigmer/platform/github/v1/service_pb";
8
- import { wrapError } from "./gen/errors";
8
+ import { wrapError } from "./gen/errors.js";
9
9
 
10
10
  /** Parameters for getting the OAuth authorize URL. */
11
11
  export interface GetOAuthAuthorizeUrlParams {
package/src/index.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  // Public API for @stigmer/sdk
2
2
 
3
3
  // Top-level client
4
- export { Stigmer } from "./stigmer";
4
+ export { Stigmer } from "./stigmer.js";
5
5
 
6
6
  // Runner adapter
7
7
  export {
8
8
  type RunnerAdapter,
9
9
  type RunnerWorkerHost,
10
10
  createRunnerAdapter,
11
- } from "./runner-adapter";
11
+ } from "./runner-adapter.js";
12
12
 
13
13
  // Configuration
14
- export { type StigmerConfig, type TokenProvider } from "./config";
14
+ export { type StigmerConfig, type TokenProvider } from "./config.js";
15
15
 
16
16
  // Error handling
17
17
  export {
@@ -30,26 +30,26 @@ export {
30
30
  type RpcErrorMetadata,
31
31
  annotateRpcError,
32
32
  getRpcMetadata,
33
- } from "./errors";
33
+ } from "./errors.js";
34
34
 
35
35
  // Resource availability
36
36
  export {
37
37
  type DeploymentMode,
38
38
  isResourceAvailable,
39
- } from "./resource-availability";
39
+ } from "./resource-availability.js";
40
40
 
41
41
  // Authorization config and IAM role utilities
42
42
  export {
43
43
  getGrantableRoles,
44
44
  hasGrantableRoles,
45
45
  isRoleGrantable,
46
- } from "./authorization-config";
46
+ } from "./authorization-config.js";
47
47
  export {
48
48
  iamRoleToString,
49
49
  iamRoleFromString,
50
50
  iamRoleDisplayName,
51
51
  iamRoleDescription,
52
- } from "./iam-role";
52
+ } from "./iam-role.js";
53
53
  export { IamRole } from "@stigmer/protos/ai/stigmer/iam/v1/enum_pb";
54
54
 
55
55
  // Activity client (unified recents)
@@ -57,8 +57,8 @@ export {
57
57
  ActivityClient,
58
58
  type ListRecentActivityParams,
59
59
  type ListRecentActivityResponse,
60
- } from "./activity";
61
- export type { RecentActivityEntry as RecentActivityEntryProto } from "./activity";
60
+ } from "./activity.js";
61
+ export type { RecentActivityEntry as RecentActivityEntryProto } from "./activity.js";
62
62
 
63
63
  // Billing client
64
64
  export {
@@ -69,7 +69,7 @@ export {
69
69
  type GetCreditLedgerParams,
70
70
  type GetBillingUsageReportParams,
71
71
  type GetCustomerModelPricingParams,
72
- } from "./billing";
72
+ } from "./billing.js";
73
73
 
74
74
  // Search client
75
75
  export {
@@ -77,7 +77,7 @@ export {
77
77
  type SearchParams,
78
78
  type SearchResponse,
79
79
  ApiResourceKind,
80
- } from "./search";
80
+ } from "./search.js";
81
81
 
82
82
  // GitHub OAuth client
83
83
  export {
@@ -86,13 +86,13 @@ export {
86
86
  type OAuthAuthorizeUrlResponse,
87
87
  type ExchangeOAuthCodeParams,
88
88
  type OAuthTokenResponse,
89
- } from "./github";
89
+ } from "./github.js";
90
90
 
91
91
  // Platform client (server info / edition detection)
92
92
  export {
93
93
  PlatformClient,
94
94
  type ServerInfo,
95
- } from "./platform";
95
+ } from "./platform.js";
96
96
 
97
97
  // Shared types (from generated code)
98
98
  export {
@@ -103,7 +103,7 @@ export {
103
103
  type ListResult,
104
104
  type EnvSpecInput,
105
105
  type EnvVarInput,
106
- } from "./gen/types";
106
+ } from "./gen/types.js";
107
107
 
108
108
  // Re-export all resource client classes and input types
109
109
  export {
@@ -113,64 +113,64 @@ export {
113
113
  type ToolApprovalOverrideInput,
114
114
  type SubAgentInput,
115
115
  type McpAccessInput,
116
- } from "./gen/agent";
116
+ } from "./gen/agent.js";
117
117
  export {
118
118
  AgentExecutionClient,
119
119
  type AgentExecutionInput,
120
120
  type ExecutionConfigInput,
121
121
  type ContextManagementConfigInput,
122
122
  type AttachmentInput,
123
- } from "./gen/agentexecution";
123
+ } from "./gen/agentexecution.js";
124
124
  export {
125
125
  AgentInstanceClient,
126
126
  type AgentInstanceInput,
127
- } from "./gen/agentinstance";
128
- export { ApiKeyClient, type ApiKeyInput } from "./gen/apikey";
127
+ } from "./gen/agentinstance.js";
128
+ export { ApiKeyClient, type ApiKeyInput } from "./gen/apikey.js";
129
129
  export {
130
130
  EnvironmentClient,
131
131
  type EnvironmentInput,
132
- } from "./gen/environment";
132
+ } from "./gen/environment.js";
133
133
  export {
134
134
  ExecutionContextClient,
135
135
  type ExecutionContextInput,
136
- } from "./gen/executioncontext";
136
+ } from "./gen/executioncontext.js";
137
137
  export {
138
138
  IamPolicyClient,
139
139
  type IamPolicyInput,
140
140
  type ApiResourceRefInput,
141
- } from "./gen/iampolicy";
141
+ } from "./gen/iampolicy.js";
142
142
  export {
143
143
  IdentityAccountClient,
144
144
  type IdentityAccountInput,
145
- } from "./gen/identityaccount";
145
+ } from "./gen/identityaccount.js";
146
146
  export {
147
147
  InvitationClient,
148
148
  type InvitationInput,
149
- } from "./gen/invitation";
149
+ } from "./gen/invitation.js";
150
150
  export {
151
151
  IdentityProviderClient,
152
152
  type IdentityProviderInput,
153
- } from "./gen/identityprovider";
153
+ } from "./gen/identityprovider.js";
154
154
  export {
155
155
  OAuthAppClient,
156
156
  type OAuthAppInput,
157
- } from "./gen/oauthapp";
157
+ } from "./gen/oauthapp.js";
158
158
  export {
159
159
  McpServerClient,
160
160
  type McpServerInput,
161
161
  type StdioServerConfigInput,
162
162
  type HttpServerConfigInput,
163
163
  type ToolApprovalPolicyInput,
164
- } from "./gen/mcpserver";
164
+ } from "./gen/mcpserver.js";
165
165
  export {
166
166
  OrganizationClient,
167
167
  type OrganizationInput,
168
- } from "./gen/organization";
168
+ } from "./gen/organization.js";
169
169
  export {
170
170
  PlatformClientClient,
171
171
  type PlatformClientInput,
172
- } from "./gen/platformclient";
173
- export { ProjectClient, type ProjectInput } from "./gen/project";
172
+ } from "./gen/platformclient.js";
173
+ export { ProjectClient, type ProjectInput } from "./gen/project.js";
174
174
  export {
175
175
  SessionClient,
176
176
  type SessionInput,
@@ -178,10 +178,10 @@ export {
178
178
  type WorkspaceSourceInput,
179
179
  type GitRepoSourceInput,
180
180
  type LocalPathSourceInput,
181
- } from "./gen/session";
181
+ } from "./gen/session.js";
182
182
 
183
183
  // Session utilities (hand-written)
184
- export { PENDING_SUBJECT, resolvedSubject } from "./session";
184
+ export { PENDING_SUBJECT, resolvedSubject } from "./session.js";
185
185
 
186
186
  // Tool-call view model (framework-agnostic; shared by @stigmer/react and @stigmer/ink)
187
187
  export {
@@ -193,19 +193,19 @@ export {
193
193
  type ToolResultView,
194
194
  type ToolSearchMatch,
195
195
  type ToolContentBlock,
196
- } from "./execution/tool-view";
196
+ } from "./execution/tool-view.js";
197
197
  export {
198
198
  ApprovalPolicySource,
199
199
  describeApprovalPolicySource,
200
200
  isInformativePolicySource,
201
- } from "./execution/approval-provenance";
202
- export { isTerminalPhase } from "./execution/execution-phases";
201
+ } from "./execution/approval-provenance.js";
202
+ export { isTerminalPhase } from "./execution/execution-phases.js";
203
203
  export {
204
204
  foldFileReviewEventStream,
205
205
  displayFileChangeSets,
206
- } from "./execution/file-review-fold";
207
- export { toDisplayFileChange } from "./execution/to-display-file-change";
208
- export { SkillClient, type SkillInput } from "./gen/skill";
206
+ } from "./execution/file-review-fold.js";
207
+ export { toDisplayFileChange } from "./execution/to-display-file-change.js";
208
+ export { SkillClient, type SkillInput } from "./gen/skill.js";
209
209
  export {
210
210
  WorkflowClient,
211
211
  type WorkflowInput,
@@ -213,12 +213,12 @@ export {
213
213
  type WorkflowTaskInput,
214
214
  type ExportInput,
215
215
  type FlowControlInput,
216
- } from "./gen/workflow";
216
+ } from "./gen/workflow.js";
217
217
  export {
218
218
  WorkflowExecutionClient,
219
219
  type WorkflowExecutionInput,
220
- } from "./gen/workflowexecution";
220
+ } from "./gen/workflowexecution.js";
221
221
  export {
222
222
  WorkflowInstanceClient,
223
223
  type WorkflowInstanceInput,
224
- } from "./gen/workflowinstance";
224
+ } from "./gen/workflowinstance.js";
@@ -1,6 +1,6 @@
1
1
  import { ConnectError, Code, type Interceptor } from "@connectrpc/connect";
2
- import type { TokenProvider } from "../config";
3
- import { annotateRpcError } from "../errors";
2
+ import type { TokenProvider } from "../config.js";
3
+ import { annotateRpcError } from "../errors.js";
4
4
 
5
5
  /**
6
6
  * Create an interceptor that attaches `Authorization: Bearer <token>` to
package/src/node.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { createGrpcWebTransport } from "@connectrpc/connect-node";
2
2
  import type { Transport, Interceptor } from "@connectrpc/connect";
3
- import { Stigmer, type TokenProvider } from "./index";
3
+ import { Stigmer, type TokenProvider } from "./index.js";
4
4
  import {
5
5
  createAuthInterceptor,
6
6
  rpcMetadataInterceptor,
7
7
  errorStripInterceptor,
8
- } from "./internal/interceptors";
8
+ } from "./internal/interceptors.js";
9
9
 
10
10
  export {
11
11
  createPlatformClientAuth,
@@ -13,7 +13,7 @@ export {
13
13
  type PlatformClientAuthConfig,
14
14
  type MintUserTokenInput,
15
15
  type MintUserTokenResult,
16
- } from "./platform-client-auth";
16
+ } from "./platform-client-auth.js";
17
17
 
18
18
  /**
19
19
  * Configuration for creating a Node.js-compatible Stigmer client.
@@ -3,11 +3,11 @@ import { createClient, type Client } from "@connectrpc/connect";
3
3
  import { create } from "@bufbuild/protobuf";
4
4
  import { PlatformClientTokenController } from "@stigmer/protos/ai/stigmer/iam/platformclient/v1/token_pb";
5
5
  import { MintUserTokenRequestSchema } from "@stigmer/protos/ai/stigmer/iam/platformclient/v1/token_pb";
6
- import { StigmerError, wrapError } from "./gen/errors";
6
+ import { StigmerError, wrapError } from "./gen/errors.js";
7
7
  import {
8
8
  rpcMetadataInterceptor,
9
9
  errorStripInterceptor,
10
- } from "./internal/interceptors";
10
+ } from "./internal/interceptors.js";
11
11
 
12
12
  /**
13
13
  * Configuration for a PlatformClient token-minting helper.
package/src/platform.ts CHANGED
@@ -6,8 +6,8 @@ import {
6
6
  ServerEdition,
7
7
  } from "@stigmer/protos/ai/stigmer/platform/v1/server_info_pb";
8
8
  import type { GetServerInfoOutput } from "@stigmer/protos/ai/stigmer/platform/v1/server_info_pb";
9
- import { wrapError } from "./gen/errors";
10
- import type { DeploymentMode } from "./resource-availability";
9
+ import { wrapError } from "./gen/errors.js";
10
+ import type { DeploymentMode } from "./resource-availability.js";
11
11
 
12
12
  /** Server identity information returned by {@link PlatformClient.getServerInfo}. */
13
13
  export interface ServerInfo {
@@ -1,5 +1,5 @@
1
1
  import type { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
2
- import { CLOUD_ONLY_KINDS } from "./gen/resource-availability";
2
+ import { CLOUD_ONLY_KINDS } from "./gen/resource-availability.js";
3
3
 
4
4
  /**
5
5
  * Deployment mode of the Stigmer backend the client is connected to.
package/src/search.ts CHANGED
@@ -5,7 +5,7 @@ import { SearchRequestSchema } from "@stigmer/protos/ai/stigmer/search/v1/io_pb"
5
5
  import { PageInfoSchema } from "@stigmer/protos/ai/stigmer/commons/rpc/pagination_pb";
6
6
  import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
7
7
  import type { SearchResult } from "@stigmer/protos/ai/stigmer/search/v1/io_pb";
8
- import { wrapError } from "./gen/errors";
8
+ import { wrapError } from "./gen/errors.js";
9
9
 
10
10
  /** Re-export ApiResourceKind for use with SearchClient. */
11
11
  export { ApiResourceKind };
package/src/stigmer.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { ActivityClient } from "./activity";
2
- import { BillingClient } from "./billing";
3
- import { GeneratedClient } from "./gen/client";
4
- import { GitHubClient } from "./github";
5
- import { PlatformClient } from "./platform";
6
- import { SearchClient } from "./search";
7
- import { createStigmerTransport } from "./transport";
1
+ import { ActivityClient } from "./activity.js";
2
+ import { BillingClient } from "./billing.js";
3
+ import { GeneratedClient } from "./gen/client.js";
4
+ import { GitHubClient } from "./github.js";
5
+ import { PlatformClient } from "./platform.js";
6
+ import { SearchClient } from "./search.js";
7
+ import { createStigmerTransport } from "./transport.js";
8
8
  import {
9
9
  validateConfig,
10
10
  type StigmerConfig,
11
11
  type TokenProvider,
12
- } from "./config";
12
+ } from "./config.js";
13
13
  import { ExecutionTarget } from "@stigmer/protos/ai/stigmer/agentic/session/v1/enum_pb";
14
14
 
15
15
  type ExecutionTargetOption = StigmerConfig["executionTarget"];
@@ -21,9 +21,9 @@ import {
21
21
  type SkillSynth,
22
22
  SkillSynthSchema,
23
23
  } from "@stigmer/protos/ai/stigmer/agentic/skill/v1/synth_pb";
24
- import type { AgentInput } from "../gen/agent";
25
- import type { McpServerInput } from "../gen/mcpserver";
26
- import type { WorkflowInput } from "../gen/workflow";
24
+ import type { AgentInput } from "../gen/agent.js";
25
+ import type { McpServerInput } from "../gen/mcpserver.js";
26
+ import type { WorkflowInput } from "../gen/workflow.js";
27
27
 
28
28
  /** Options for registering a skill from a local directory. */
29
29
  export interface SkillFromDirOptions {
@@ -17,9 +17,9 @@
17
17
  // trivially testable via `synth({ outDir })` (DD-009 §1). Node-only — it writes
18
18
  // files — and exported from the dedicated `/synth` subpath (DD-009 §2).
19
19
 
20
- import { RegistrationContext } from "./context";
21
- import { countRegistrations, type SynthCounts, writeRegistrations } from "./writer";
22
- import type { ProjectContext } from "./context";
20
+ import { RegistrationContext } from "./context.js";
21
+ import { countRegistrations, type SynthCounts, writeRegistrations } from "./writer.js";
22
+ import type { ProjectContext } from "./context.js";
23
23
 
24
24
  export type {
25
25
  ProjectContext,
@@ -27,9 +27,9 @@ export type {
27
27
  SkillFromDirOptions,
28
28
  SkillFromGitInput,
29
29
  SkillHandle,
30
- } from "./context";
31
- export type { SynthCounts, SynthFile } from "./writer";
32
- export { serializeRegistrations } from "./writer";
30
+ } from "./context.js";
31
+ export type { SynthCounts, SynthFile } from "./writer.js";
32
+ export { serializeRegistrations } from "./writer.js";
33
33
 
34
34
  /** Options for {@link ProjectApp.synth}. */
35
35
  export interface SynthOptions {
@@ -18,10 +18,10 @@ import { AgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb"
18
18
  import { McpServerSchema } from "@stigmer/protos/ai/stigmer/agentic/mcpserver/v1/api_pb";
19
19
  import { SkillSynthSchema } from "@stigmer/protos/ai/stigmer/agentic/skill/v1/synth_pb";
20
20
  import { WorkflowSchema } from "@stigmer/protos/ai/stigmer/agentic/workflow/v1/api_pb";
21
- import { buildAgentProto } from "../gen/agent";
22
- import { buildMcpServerProto } from "../gen/mcpserver";
23
- import { buildWorkflowProto } from "../gen/workflow";
24
- import type { Registration } from "./context";
21
+ import { buildAgentProto } from "../gen/agent.js";
22
+ import { buildMcpServerProto } from "../gen/mcpserver.js";
23
+ import { buildWorkflowProto } from "../gen/workflow.js";
24
+ import type { Registration } from "./context.js";
25
25
 
26
26
  /** One serialized synthesis artifact: its file name and binary proto bytes. */
27
27
  export interface SynthFile {
package/src/transport.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { createGrpcWebTransport } from "@connectrpc/connect-web";
2
2
  import { createConnectTransport } from "@connectrpc/connect-web";
3
3
  import type { Transport, Interceptor } from "@connectrpc/connect";
4
- import type { StigmerConfig, TokenProvider } from "./config";
4
+ import type { StigmerConfig, TokenProvider } from "./config.js";
5
5
  import {
6
6
  createAuthInterceptor,
7
7
  rpcMetadataInterceptor,
8
8
  errorStripInterceptor,
9
9
  createAuthRedirectInterceptor,
10
- } from "./internal/interceptors";
10
+ } from "./internal/interceptors.js";
11
11
 
12
12
  /**
13
13
  * Create a Connect-RPC transport configured for the Stigmer API.
package/stigmer.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { ActivityClient } from "./activity";
2
- import { BillingClient } from "./billing";
3
- import { GeneratedClient } from "./gen/client";
4
- import { GitHubClient } from "./github";
5
- import { PlatformClient } from "./platform";
6
- import { SearchClient } from "./search";
7
- import { type StigmerConfig } from "./config";
1
+ import { ActivityClient } from "./activity.js";
2
+ import { BillingClient } from "./billing.js";
3
+ import { GeneratedClient } from "./gen/client.js";
4
+ import { GitHubClient } from "./github.js";
5
+ import { PlatformClient } from "./platform.js";
6
+ import { SearchClient } from "./search.js";
7
+ import { type StigmerConfig } from "./config.js";
8
8
  import { ExecutionTarget } from "@stigmer/protos/ai/stigmer/agentic/session/v1/enum_pb";
9
9
  /**
10
10
  * Top-level Stigmer API client.
package/stigmer.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stigmer.d.ts","sourceRoot":"","sources":["../src/stigmer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAA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