@kindgi/sdk 0.0.0-bootstrap.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +167 -1
- package/dist/build.d.ts +10 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/build.js +11 -0
- package/dist/build.js.map +1 -0
- package/dist/client.d.ts +28 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +29 -0
- package/dist/client.js.map +1 -0
- package/dist/define.d.ts +25 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +37 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/webhooks.d.ts +15 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +16 -0
- package/dist/webhooks.js.map +1 -0
- package/package.json +80 -4
- package/skills/kindgi-authoring-agents/SKILL.md +253 -0
- package/skills/kindgi-authoring-flows/SKILL.md +299 -0
- package/skills/kindgi-authoring-guardrails/SKILL.md +291 -0
- package/skills/kindgi-authoring-mcp-servers/SKILL.md +289 -0
- package/skills/kindgi-authoring-providers/SKILL.md +704 -0
- package/skills/kindgi-authoring-tools/SKILL.md +288 -0
- package/skills/kindgi-framework-feedback/SKILL.md +211 -0
- package/skills/kindgi-getting-started/SKILL.md +181 -0
- package/skills/kindgi-python-authoring-agents/SKILL.md +205 -0
- package/skills/kindgi-python-authoring-flows/SKILL.md +322 -0
- package/skills/kindgi-python-authoring-guardrails/SKILL.md +173 -0
- package/skills/kindgi-python-authoring-tools/SKILL.md +299 -0
- package/skills/kindgi-python-getting-started/SKILL.md +240 -0
- package/src/build.ts +18 -0
- package/src/client.ts +147 -0
- package/src/define.ts +75 -0
- package/src/index.ts +20 -0
- package/src/types.ts +86 -0
- package/src/webhooks.ts +34 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Kindgi Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,169 @@
|
|
|
1
1
|
# @kindgi/sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The **public developer surface** for Kindgi.
|
|
4
|
+
|
|
5
|
+
One package with five sub-paths — `/define` for pack authoring, `/client`
|
|
6
|
+
for callsite HTTP and following runs, `/types` for branded identifiers,
|
|
7
|
+
`/webhooks` for receiving Kindgi's webhooks (server only), `/build` for a
|
|
8
|
+
pack image's build extensions (`kindgi.config`'s `image`) — plus a flat
|
|
9
|
+
barrel for callers who prefer a single import. An application lists
|
|
10
|
+
`@kindgi/sdk` and `@kindgi/cli` (dev); it needs no other `@kindgi/*`
|
|
11
|
+
package. Zero behavior of its own: this
|
|
12
|
+
package is a re-export facade over the individual `@kindgi/*` packages,
|
|
13
|
+
with every name preserved verbatim.
|
|
14
|
+
|
|
15
|
+
Framework contributors can import from the individual packages directly
|
|
16
|
+
(`@kindgi/tools`, `@kindgi/agents`, `@kindgi/guardrails`, `@kindgi/flow`,
|
|
17
|
+
`@kindgi/client`, `@kindgi/types`, `@kindgi/schema`). Application code
|
|
18
|
+
(packs, deploy tooling, external callers) should import from
|
|
19
|
+
`@kindgi/sdk` — the recommended public surface.
|
|
20
|
+
|
|
21
|
+
## Sub-paths
|
|
22
|
+
|
|
23
|
+
### `@kindgi/sdk/define` — pack authoring
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import { defineTool, defineCheck, defineAgent } from '@kindgi/sdk/define';
|
|
27
|
+
import type { Tool, Agent, DefinedTool, DefineCheckSpec } from '@kindgi/sdk/define';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Re-exports:
|
|
31
|
+
|
|
32
|
+
| Symbol | Source | Kind |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| `defineTool`, `defineToolAsync`, `invokeTool`, `registerToolSpecSynthesizer` | `@kindgi/tools` | value |
|
|
35
|
+
| `Tool`, `ToolManifest`, `ToolContext`, `DefineToolSpec`, `DefinedTool`, `InferInput`, `InferOutput`, `ToolSpec`, `ToolSpecSynthesizer`, `ToolSecretRef`, `HttpToolSpec`, `HttpAuthSpec`, `HttpHeaderSpec`, `HttpMethod`, `HttpRequestBodySpec` | `@kindgi/tools` | type |
|
|
36
|
+
| `defineCheck` | `@kindgi/guardrails` | value |
|
|
37
|
+
| `DefineCheckSpec`, `DefinedCheck`, `InferCheckConfig` | `@kindgi/guardrails` | type |
|
|
38
|
+
| `defineAgent` | `@kindgi/agents` | value |
|
|
39
|
+
| `Agent`, `DefineAgentSpec` | `@kindgi/agents` | type |
|
|
40
|
+
| `defineFlow` | `@kindgi/flow` | value |
|
|
41
|
+
| `Flow`, `FlowSpec`, `LoopNode`, `FanoutNode`, `SubflowNode`, `EdgePolicy` | `@kindgi/flow` | type |
|
|
42
|
+
| `isZodSchema`, `toJSONSchema` | `@kindgi/schema` | value |
|
|
43
|
+
| `AnySchema`, `ZodLikeSchema` | `@kindgi/schema` | type |
|
|
44
|
+
|
|
45
|
+
`defineFlow` mirrors `defineTool` / `defineCheck` / `defineAgent` — a
|
|
46
|
+
thin wrapper over `loadFlow` that runs the same validation gauntlet and
|
|
47
|
+
returns `Result<Flow, FlowError>`. Pack authors reach for
|
|
48
|
+
`defineFlow` in TypeScript; `loadFlow` remains the wire-form entry
|
|
49
|
+
point for JSON coming off disk / network.
|
|
50
|
+
|
|
51
|
+
### `@kindgi/sdk/client` — client callsites
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import { createClient } from '@kindgi/sdk/client';
|
|
55
|
+
import type { AgentId } from '@kindgi/sdk/types';
|
|
56
|
+
|
|
57
|
+
const client = createClient({
|
|
58
|
+
apiUrl: process.env.KINDGI_API_URL!,
|
|
59
|
+
auth: { kind: 'apiToken', token: process.env.KINDGI_API_TOKEN! },
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const run = await client.runs.start({
|
|
63
|
+
agent: 'acme.drafting' as AgentId,
|
|
64
|
+
input: { contractText },
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Re-exports:
|
|
69
|
+
|
|
70
|
+
- `createClient`, `KindgiClient`.
|
|
71
|
+
- Every resource client type — `AgentsClient`, `RunsClient`, `ToolsClient`,
|
|
72
|
+
`ApprovalsClient`, `SupervisorClient`, `ProposalsClient`, `ObservationsClient`,
|
|
73
|
+
`FlowsClient`, `GuardrailsClient`, `ConversationsClient`, `MemoryClient`,
|
|
74
|
+
`ProvenanceClient`, `TenantClient`, `CostClient`, `CapabilitiesClient`,
|
|
75
|
+
`AdaptersClient`, `PoliciesClient`, `UsersClient`, `TeamsClient`, `OrgsClient`,
|
|
76
|
+
`PacksClient`, `TokensClient`, `McpClient`, `EventsClient`, `ArtifactsClient`,
|
|
77
|
+
`WebhooksClient`, plus each resource's per-method input types.
|
|
78
|
+
- `Transport`, `TransportRequest`, `ClientOptions`.
|
|
79
|
+
- Error surface — `KindgiApiError` (value), `fromWire`, `notImplementedInPreview`,
|
|
80
|
+
`notYetWired`, plus `KindgiError`, `AuthError`, `ConflictError`,
|
|
81
|
+
`GuardrailViolationError`, `GuardrailViolation`, `InvalidRequestError`,
|
|
82
|
+
`NetworkError`, `NotFoundError`, `RateLimitedError`, `ServerError`,
|
|
83
|
+
`NotImplementedInPreviewError`, `NotYetWiredError` types.
|
|
84
|
+
- Streaming — `readSse`, `unwrapSseData` (values), `SseEvent`, `SseReadOptions` (types).
|
|
85
|
+
- Following a run — `subscribeToRun` (a browser page follows a run with a
|
|
86
|
+
public run token, reconnecting by itself), `followRun`, and
|
|
87
|
+
`SubscribeToRunOptions`, `FollowRunOptions`, `RunProgressEvent`,
|
|
88
|
+
`RunProgress`. Browser-safe, like the rest of this sub-path.
|
|
89
|
+
|
|
90
|
+
This sub-path deliberately does NOT re-export the branded ID types
|
|
91
|
+
(`AgentId`, `RunId`, etc.) that `@kindgi/client` also happens to
|
|
92
|
+
surface — those live in `@kindgi/sdk/types` so the flat barrel is
|
|
93
|
+
collision-free.
|
|
94
|
+
|
|
95
|
+
### `@kindgi/sdk/types` — branded identifiers + primitives
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
import type { RunId, AgentId, Result, Cursor } from '@kindgi/sdk/types';
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Re-exports every branded `…Id` type from `@kindgi/types` (41 IDs incl.
|
|
102
|
+
`TenantId`, `RunId`, `AgentId`, `ToolId`, `PackId`, `SigningKeyId`, …),
|
|
103
|
+
the `Result<T, E>` envelope + `OkOf` / `ErrOf` narrowing helpers, `Brand`,
|
|
104
|
+
pagination (`Filter`, `Page`, `Cursor`), refs (`BlobRef`, `DatasetRef`,
|
|
105
|
+
`VersionedRef`), temporal (`Timestamp`, `DurationMs`, `IsoDuration`),
|
|
106
|
+
version + hash (`SchemaMajor`, `Semver`, `ContentHash`, `SignatureValue`).
|
|
107
|
+
|
|
108
|
+
`ConversationId` is one of them. `@kindgi/agents` also re-exports
|
|
109
|
+
`ConversationId`; import it from `@kindgi/sdk/types` (or `@kindgi/types`
|
|
110
|
+
directly).
|
|
111
|
+
|
|
112
|
+
### `@kindgi/sdk/webhooks` — receiving Kindgi's webhooks (server only)
|
|
113
|
+
|
|
114
|
+
```ts
|
|
115
|
+
import { verifyWebhook } from '@kindgi/sdk/webhooks';
|
|
116
|
+
|
|
117
|
+
const result = verifyWebhook({ secret, headers: request.headers, body: rawBody });
|
|
118
|
+
if (result.kind !== 'ok') return new Response(null, { status: 401 });
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Re-exports the Standard Webhooks helpers from `@kindgi/crypto`:
|
|
122
|
+
`verifyWebhook` (and its `VerifyWebhookInput` / `VerifyWebhookResult` /
|
|
123
|
+
`VerifyWebhookFailure` / `WebhookRequestHeaders` types),
|
|
124
|
+
`generateWebhookSecret` and `isStrongWebhookSecret` for the secret an app
|
|
125
|
+
registers by name, `signWebhook` / `webhookHeaders` to test a receiver, and
|
|
126
|
+
the constants `WEBHOOK_HEADERS`, `WEBHOOK_SECRET_PREFIX`,
|
|
127
|
+
`WEBHOOK_SECRET_MIN_BYTES`, `DEFAULT_WEBHOOK_TOLERANCE_SECONDS`. It uses
|
|
128
|
+
`node:crypto`, so it is not in the flat barrel.
|
|
129
|
+
|
|
130
|
+
### `@kindgi/sdk/build` — a pack image's build extensions
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
import { prisma, defineBuildExtension } from '@kindgi/sdk/build';
|
|
134
|
+
import type { BuildExtension, ImageConfig } from '@kindgi/sdk/build';
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
For `image` in `kindgi.config.*`: `systemPackages`, `extensions` (`prisma()`, or your own with `defineBuildExtension()`), and `buildEnv`. These are data only, and `kindgi build` renders them into the image. They're re-exported from `@kindgi/handler-runtime/build-extensions`. The flat barrel doesn't include them: only a config imports them.
|
|
138
|
+
|
|
139
|
+
### Flat barrel — `@kindgi/sdk`
|
|
140
|
+
|
|
141
|
+
```ts
|
|
142
|
+
import { defineTool, createClient } from '@kindgi/sdk';
|
|
143
|
+
import type { RunId, DefinedTool } from '@kindgi/sdk';
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Convenience alias. Every symbol from `/define`, `/client` and `/types` is
|
|
147
|
+
re-exported here; names are disjoint across the three so there is no
|
|
148
|
+
collision. `/webhooks` is server only and stays out of the barrel.
|
|
149
|
+
|
|
150
|
+
## Design decisions
|
|
151
|
+
|
|
152
|
+
- **A facade, not a replacement.** `@kindgi/client` (`sdks/typescript/`)
|
|
153
|
+
stays its own package; the facade re-exports from it.
|
|
154
|
+
- **Every re-export preserves the source name.** No renaming at the
|
|
155
|
+
facade boundary. Symbols in this package's docs match the source
|
|
156
|
+
package's docs exactly.
|
|
157
|
+
- **`@kindgi/sdk` is recommended, not enforced.** The individual
|
|
158
|
+
packages remain importable for framework contributors and for
|
|
159
|
+
consumers that need a specific primitive without pulling the full
|
|
160
|
+
facade dep tree.
|
|
161
|
+
- **Sub-paths are primary; the barrel is a convenience.** Applications
|
|
162
|
+
that only need pack authoring can `import from '@kindgi/sdk/define'`
|
|
163
|
+
and never pay for the client resource-type surface at build time
|
|
164
|
+
(tree-shaken).
|
|
165
|
+
|
|
166
|
+
## Cross-references
|
|
167
|
+
|
|
168
|
+
- `packages/tools/README.md` — `defineTool` Zod-optional authoring.
|
|
169
|
+
- `packages/guardrails/README.md` — `defineCheck` Zod-optional authoring.
|
package/dist/build.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@kindgi/sdk/build` — a TypeScript pack image's build extensions, for
|
|
3
|
+
* `image` in `kindgi.config.*` (`systemPackages`, `extensions`,
|
|
4
|
+
* `buildEnv`).
|
|
5
|
+
*
|
|
6
|
+
* Re-exports `@kindgi/handler-runtime/build-extensions` verbatim.
|
|
7
|
+
*/
|
|
8
|
+
export { defineBuildExtension, prisma } from '@kindgi/handler-runtime/build-extensions';
|
|
9
|
+
export type { BuildExtension, BuildStep, ImageConfig, PrismaExtensionOptions, } from '@kindgi/handler-runtime/build-extensions';
|
|
10
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AACxF,YAAY,EACV,cAAc,EACd,SAAS,EACT,WAAW,EACX,sBAAsB,GACvB,MAAM,0CAA0C,CAAC"}
|
package/dist/build.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Copyright (C) 2026 Kindgi Inc.
|
|
3
|
+
/**
|
|
4
|
+
* `@kindgi/sdk/build` — a TypeScript pack image's build extensions, for
|
|
5
|
+
* `image` in `kindgi.config.*` (`systemPackages`, `extensions`,
|
|
6
|
+
* `buildEnv`).
|
|
7
|
+
*
|
|
8
|
+
* Re-exports `@kindgi/handler-runtime/build-extensions` verbatim.
|
|
9
|
+
*/
|
|
10
|
+
export { defineBuildExtension, prisma } from '@kindgi/handler-runtime/build-extensions';
|
|
11
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAEjC;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC"}
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@kindgi/sdk/client` — client callsite surface.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports `createClient` plus every resource-client type, the error
|
|
5
|
+
* surface, transport primitives, and streaming helpers from the
|
|
6
|
+
* `@kindgi/client` package (`sdks/typescript/` in this repository).
|
|
7
|
+
* Names preserved verbatim.
|
|
8
|
+
*
|
|
9
|
+
* This sub-path intentionally does NOT re-export the branded ID types
|
|
10
|
+
* (`AgentId`, `RunId`, etc.) that `@kindgi/client` also happens to
|
|
11
|
+
* surface — those live in `@kindgi/sdk/types` to keep the flat barrel
|
|
12
|
+
* (`import { ... } from '@kindgi/sdk'`) collision-free.
|
|
13
|
+
*
|
|
14
|
+
* Callsite examples target
|
|
15
|
+
* `import { createClient } from '@kindgi/sdk/client'`.
|
|
16
|
+
*
|
|
17
|
+
* @module @kindgi/sdk/client
|
|
18
|
+
*/
|
|
19
|
+
export { createClient } from '@kindgi/client';
|
|
20
|
+
export type { KindgiClient } from '@kindgi/client';
|
|
21
|
+
export type { AdapterConfigureInput, AdapterFilter, AdapterTestInput, AdaptersClient, AddMembershipInput, AgentsClient, ApplyProposalInput, ApprovalFilter, ApprovalsClient, ArtifactFilter, ArtifactsClient, AuditClient, AuditExportInput, BatchDecideInput, BudgetsClient, CapabilitiesClient, CapabilityFilter, ClientOptions, CompleteTokenInput, ConversationFilter, ConversationsClient, CostClient, DecideInput, DraftProposalsInput, EventsClient, FactsClient, FlowFilter, FlowsClient, FlowValidateResult, GuardrailFilter, GuardrailsClient, LogsClient, McpClient, McpEndpointFilter, McpEndpointsClient, TeamMembershipsClient, MemoryClient, MessageFilter, ObservationFilter, ObservationsClient, OrgsClient, PackFilter, PacksClient, PageFilter, PatternsInput, PoliciesClient, PolicyListFilter, PolicyVersionsFilter, ProposalDryRunInput, ProposalListInput, ProposalsClient, ProvenanceClient, ProvenanceExportInput, ProviderFilter, ProvidersClient, ReflectReviewInput, RegistryClient, RegistryFilter, ResumeRunInput, ReviewerFilter, ReviewersClient, RollbackProposalInput, Run, RunsClient, SchedulesClient, SessionsClient, StartRunInput, SubmitForReviewInput, SubscriptionsClient, SupervisorClient, ListTeamsFilter, TeamsClient, TenantClient, TenantConfigClient, TokenFilter, TokensClient, ReinstateToolVersionResult, ToolFilter, ToolVersionFilter, ToolsClient, Transport, TransportRequest, UsageClient, UsageSummaryInput, UserFilter, UsersClient, WebhooksClient, WithdrawProposalInput, } from '@kindgi/client';
|
|
22
|
+
export { KindgiApiError, fromWire, notImplementedInPreview, notYetWired } from '@kindgi/client';
|
|
23
|
+
export type { AuthError, ConflictError, GuardrailViolation, GuardrailViolationError, InvalidRequestError, NetworkError, NotFoundError, NotImplementedInPreviewError, NotYetWiredError, RateLimitedError, ServerError, KindgiError, } from '@kindgi/client';
|
|
24
|
+
export { readSse, unwrapSseData } from '@kindgi/client';
|
|
25
|
+
export type { SseEvent, SseReadOptions } from '@kindgi/client';
|
|
26
|
+
export { followRun, subscribeToRun } from '@kindgi/client';
|
|
27
|
+
export type { FollowRunOptions, RunProgress, RunProgressEvent, SubscribeToRunOptions, } from '@kindgi/client';
|
|
28
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,YAAY,EACV,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACV,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,GAAG,EACH,UAAU,EACV,eAAe,EACf,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,0BAA0B,EAC1B,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,cAAc,EACd,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChG,YAAY,EACV,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG/D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EACV,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC"}
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Copyright (C) 2026 Kindgi Inc.
|
|
3
|
+
/**
|
|
4
|
+
* `@kindgi/sdk/client` — client callsite surface.
|
|
5
|
+
*
|
|
6
|
+
* Re-exports `createClient` plus every resource-client type, the error
|
|
7
|
+
* surface, transport primitives, and streaming helpers from the
|
|
8
|
+
* `@kindgi/client` package (`sdks/typescript/` in this repository).
|
|
9
|
+
* Names preserved verbatim.
|
|
10
|
+
*
|
|
11
|
+
* This sub-path intentionally does NOT re-export the branded ID types
|
|
12
|
+
* (`AgentId`, `RunId`, etc.) that `@kindgi/client` also happens to
|
|
13
|
+
* surface — those live in `@kindgi/sdk/types` to keep the flat barrel
|
|
14
|
+
* (`import { ... } from '@kindgi/sdk'`) collision-free.
|
|
15
|
+
*
|
|
16
|
+
* Callsite examples target
|
|
17
|
+
* `import { createClient } from '@kindgi/sdk/client'`.
|
|
18
|
+
*
|
|
19
|
+
* @module @kindgi/sdk/client
|
|
20
|
+
*/
|
|
21
|
+
// ---- Client factory + top-level shape ----
|
|
22
|
+
export { createClient } from '@kindgi/client';
|
|
23
|
+
// ---- Error surface ----
|
|
24
|
+
export { KindgiApiError, fromWire, notImplementedInPreview, notYetWired } from '@kindgi/client';
|
|
25
|
+
// ---- Streaming helpers (SSE parser + resume) ----
|
|
26
|
+
export { readSse, unwrapSseData } from '@kindgi/client';
|
|
27
|
+
// ---- Following a run (browser-safe: a page follows a run with a public token) ----
|
|
28
|
+
export { followRun, subscribeToRun } from '@kindgi/client';
|
|
29
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAEjC;;;;;;;;;;;;;;;;;GAiBG;AAEH,6CAA6C;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AA+F9C,0BAA0B;AAC1B,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAgBhG,oDAAoD;AACpD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGxD,qFAAqF;AACrF,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/define.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@kindgi/sdk/define` — pack authoring surface.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the authoring primitives from the individual packages
|
|
5
|
+
* (`@kindgi/tools`, `@kindgi/guardrails`, `@kindgi/agents`,
|
|
6
|
+
* `@kindgi/flow`, `@kindgi/schema`) verbatim — no renaming, no
|
|
7
|
+
* behavior. Consumers reading those packages' docs find matching
|
|
8
|
+
* symbols here.
|
|
9
|
+
*
|
|
10
|
+
* The SDK facade is the recommended public developer surface. The
|
|
11
|
+
* individual packages remain importable directly.
|
|
12
|
+
*
|
|
13
|
+
* @module @kindgi/sdk/define
|
|
14
|
+
*/
|
|
15
|
+
export { defineTool, defineToolAsync, invokeTool, registerToolSpecSynthesizer, } from '@kindgi/tools';
|
|
16
|
+
export type { DefinedTool, DefineToolSpec, HttpAuthSpec, HttpHeaderSpec, HttpMethod, HttpRequestBodySpec, HttpToolSpec, InferInput, InferOutput, Tool, ToolContext, ToolManifest, ToolSecretRef, ToolSpec, ToolSpecSynthesizer, } from '@kindgi/tools';
|
|
17
|
+
export { defineCheck } from '@kindgi/guardrails';
|
|
18
|
+
export type { DefineCheckSpec, DefinedCheck, InferCheckConfig } from '@kindgi/guardrails';
|
|
19
|
+
export { defineAgent } from '@kindgi/agents';
|
|
20
|
+
export type { Agent, DefineAgentSpec } from '@kindgi/agents';
|
|
21
|
+
export { defineFlow } from '@kindgi/flow';
|
|
22
|
+
export type { EdgePolicy, FanoutNode, Flow, FlowSpec, LoopNode, SubflowNode, } from '@kindgi/flow';
|
|
23
|
+
export { isZodSchema, toJSONSchema } from '@kindgi/schema';
|
|
24
|
+
export type { AnySchema, ZodLikeSchema } from '@kindgi/schema';
|
|
25
|
+
//# sourceMappingURL=define.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EACL,UAAU,EACV,eAAe,EACf,UAAU,EACV,2BAA2B,GAC5B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,WAAW,EACX,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,mBAAmB,GACpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG1F,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAU7D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,UAAU,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,WAAW,GACZ,MAAM,cAAc,CAAC;AAMtB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/define.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Copyright (C) 2026 Kindgi Inc.
|
|
3
|
+
/**
|
|
4
|
+
* `@kindgi/sdk/define` — pack authoring surface.
|
|
5
|
+
*
|
|
6
|
+
* Re-exports the authoring primitives from the individual packages
|
|
7
|
+
* (`@kindgi/tools`, `@kindgi/guardrails`, `@kindgi/agents`,
|
|
8
|
+
* `@kindgi/flow`, `@kindgi/schema`) verbatim — no renaming, no
|
|
9
|
+
* behavior. Consumers reading those packages' docs find matching
|
|
10
|
+
* symbols here.
|
|
11
|
+
*
|
|
12
|
+
* The SDK facade is the recommended public developer surface. The
|
|
13
|
+
* individual packages remain importable directly.
|
|
14
|
+
*
|
|
15
|
+
* @module @kindgi/sdk/define
|
|
16
|
+
*/
|
|
17
|
+
// ---- Tools ----
|
|
18
|
+
export { defineTool, defineToolAsync, invokeTool, registerToolSpecSynthesizer, } from '@kindgi/tools';
|
|
19
|
+
// ---- Guardrails (checks) ----
|
|
20
|
+
export { defineCheck } from '@kindgi/guardrails';
|
|
21
|
+
// ---- Agents ----
|
|
22
|
+
export { defineAgent } from '@kindgi/agents';
|
|
23
|
+
// ---- Flow ----
|
|
24
|
+
//
|
|
25
|
+
// `defineFlow` is the author-facing primitive that mirrors `defineTool`
|
|
26
|
+
// / `defineCheck` / `defineAgent` — a thin wrapper over `loadFlow` that
|
|
27
|
+
// runs the same validation gauntlet and returns `Result<Flow,
|
|
28
|
+
// FlowError>`. Pack authors reach for `defineFlow` in TypeScript;
|
|
29
|
+
// `loadFlow` remains the wire-form entry point for JSON coming off disk
|
|
30
|
+
// / network.
|
|
31
|
+
export { defineFlow } from '@kindgi/flow';
|
|
32
|
+
// ---- Zod-optional helpers ----
|
|
33
|
+
//
|
|
34
|
+
// Direct access for callers that prefer to convert / inspect schemas
|
|
35
|
+
// themselves rather than let `defineTool` / `defineCheck` do it implicitly.
|
|
36
|
+
export { isZodSchema, toJSONSchema } from '@kindgi/schema';
|
|
37
|
+
//# sourceMappingURL=define.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAEjC;;;;;;;;;;;;;GAaG;AAEH,kBAAkB;AAClB,OAAO,EACL,UAAU,EACV,eAAe,EACf,UAAU,EACV,2BAA2B,GAC5B,MAAM,eAAe,CAAC;AAmBvB,gCAAgC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,mBAAmB;AACnB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,iBAAiB;AACjB,EAAE;AACF,wEAAwE;AACxE,wEAAwE;AACxE,8DAA8D;AAC9D,kEAAkE;AAClE,wEAAwE;AACxE,aAAa;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU1C,iCAAiC;AACjC,EAAE;AACF,qEAAqE;AACrE,4EAA4E;AAC5E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@kindgi/sdk` — public developer facade.
|
|
3
|
+
*
|
|
4
|
+
* Flat barrel that re-exports the three sub-paths for callers who prefer
|
|
5
|
+
* a single import: `import { defineTool, createClient, type RunId } from
|
|
6
|
+
* '@kindgi/sdk'`.
|
|
7
|
+
*
|
|
8
|
+
* Sub-paths are the primary developer-facing shape (`@kindgi/sdk/define`,
|
|
9
|
+
* `@kindgi/sdk/client`, `@kindgi/sdk/types`); this barrel is a
|
|
10
|
+
* convenience alias.
|
|
11
|
+
*
|
|
12
|
+
* @module @kindgi/sdk
|
|
13
|
+
*/
|
|
14
|
+
export * from './define.js';
|
|
15
|
+
export * from './client.js';
|
|
16
|
+
export * from './types.js';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Copyright (C) 2026 Kindgi Inc.
|
|
3
|
+
/**
|
|
4
|
+
* `@kindgi/sdk` — public developer facade.
|
|
5
|
+
*
|
|
6
|
+
* Flat barrel that re-exports the three sub-paths for callers who prefer
|
|
7
|
+
* a single import: `import { defineTool, createClient, type RunId } from
|
|
8
|
+
* '@kindgi/sdk'`.
|
|
9
|
+
*
|
|
10
|
+
* Sub-paths are the primary developer-facing shape (`@kindgi/sdk/define`,
|
|
11
|
+
* `@kindgi/sdk/client`, `@kindgi/sdk/types`); this barrel is a
|
|
12
|
+
* convenience alias.
|
|
13
|
+
*
|
|
14
|
+
* @module @kindgi/sdk
|
|
15
|
+
*/
|
|
16
|
+
export * from './define.js';
|
|
17
|
+
export * from './client.js';
|
|
18
|
+
export * from './types.js';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAEjC;;;;;;;;;;;;GAYG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@kindgi/sdk/types` — branded IDs, framework-wide result envelope,
|
|
3
|
+
* pagination, refs, temporal + version primitives.
|
|
4
|
+
*
|
|
5
|
+
* Re-exports types from `@kindgi/types` under their own names. These
|
|
6
|
+
* are the workspace-wide identifiers callers pass across the SDK
|
|
7
|
+
* boundary.
|
|
8
|
+
*
|
|
9
|
+
* The /types sub-path is where branded identifiers live in the public
|
|
10
|
+
* facade.
|
|
11
|
+
*
|
|
12
|
+
* @module @kindgi/sdk/types
|
|
13
|
+
*/
|
|
14
|
+
export type { BlobRef, Brand, ContentHash, Cursor, DatasetRef, DurationMs, ErrOf, Filter, IsoDuration, OkOf, Page, Result, SchemaMajor, Semver, SignatureValue, Timestamp, VersionedRef, } from '@kindgi/types';
|
|
15
|
+
export type { AgentId, ApiTokenId, ApprovalId, ArtifactId, AuditBundleId, ComplianceEvidenceId, ConversationId, DatasetId, EdgeId, EventId, FactId, FixProposalId, FlowId, InstallationId, GuardrailId, KeyId, LogEntryId, NodeId, ObservationId, OrgId, PackId, PolicyId, ProjectId, ProvenanceId, ProviderId, ReviewerId, RunId, ScheduleId, SessionId, SigningKeyId, SubscriptionId, SupervisorId, TeamId, TenantId, ThreadId, ToolId, TriggerId, UserId, WaitTokenId, WebhookDeliveryId, WebhookId, } from '@kindgi/types';
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AAEH,YAAY,EACV,OAAO,EACP,KAAK,EACL,WAAW,EACX,MAAM,EACN,UAAU,EACV,UAAU,EACV,KAAK,EACL,MAAM,EACN,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,WAAW,EACX,MAAM,EACN,cAAc,EACd,SAAS,EACT,YAAY,GACb,MAAM,eAAe,CAAC;AAQvB,YAAY,EACV,OAAO,EACP,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,aAAa,EACb,MAAM,EACN,cAAc,EACd,WAAW,EACX,KAAK,EACL,UAAU,EACV,MAAM,EACN,aAAa,EACb,KAAK,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,UAAU,EACV,UAAU,EACV,KAAK,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,SAAS,EACT,MAAM,EACN,WAAW,EACX,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@kindgi/sdk/webhooks` — receiving Kindgi's webhooks. Server only: it
|
|
3
|
+
* uses `node:crypto`, so it stays out of `/client` (browser-safe) and the
|
|
4
|
+
* flat barrel.
|
|
5
|
+
*
|
|
6
|
+
* Re-exports the Standard Webhooks helpers from `@kindgi/crypto`:
|
|
7
|
+
* `verifyWebhook` for a receiver, `generateWebhookSecret` for the secret an
|
|
8
|
+
* app registers by name, and `signWebhook` / `webhookHeaders` to test a
|
|
9
|
+
* receiver.
|
|
10
|
+
*
|
|
11
|
+
* @module @kindgi/sdk/webhooks
|
|
12
|
+
*/
|
|
13
|
+
export { DEFAULT_WEBHOOK_TOLERANCE_SECONDS, generateWebhookSecret, isStrongWebhookSecret, signWebhook, verifyWebhook, WEBHOOK_HEADERS, WEBHOOK_SECRET_MIN_BYTES, WEBHOOK_SECRET_PREFIX, webhookHeaders, } from '@kindgi/crypto';
|
|
14
|
+
export type { SignWebhookInput, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, WebhookRequestHeaders, } from '@kindgi/crypto';
|
|
15
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,iCAAiC,EACjC,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC"}
|