@irogane/kaji 0.2.0-beta.11 → 0.3.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.
Files changed (137) hide show
  1. package/README.md +112 -551
  2. package/dist/index.d.mts +253 -0
  3. package/dist/index.mjs +440 -0
  4. package/package.json +28 -166
  5. package/contracts/README.md +0 -14
  6. package/contracts/beta-core-v1.json +0 -52
  7. package/contracts/cli/init-cases-v1.json +0 -27
  8. package/contracts/errors/error-codes.json +0 -48
  9. package/contracts/errors/integration-recovery-v1.json +0 -127
  10. package/contracts/errors/provider-normalization.json +0 -111
  11. package/contracts/events/conformance-invalid.json +0 -20
  12. package/contracts/events/conformance.json +0 -511
  13. package/contracts/events/new-kaji-event-v1.schema.json +0 -1021
  14. package/contracts/events/stored-kaji-event-v1.schema.json +0 -1025
  15. package/contracts/feature-tiers-v1.json +0 -488
  16. package/contracts/integrations/abi-index-v1.json +0 -8
  17. package/contracts/integrations/conformance-invalid.json +0 -443
  18. package/contracts/integrations/conformance-valid.json +0 -121
  19. package/contracts/integrations/copy-provenance-v1.schema.json +0 -61
  20. package/contracts/integrations/echo-tool-abi-v1.json +0 -37
  21. package/contracts/integrations/github-api-conformance-v1.json +0 -644
  22. package/contracts/integrations/github-tool-abi-typescript-v1.json +0 -369
  23. package/contracts/integrations/github-tool-abi-v1.json +0 -146
  24. package/contracts/integrations/gmail-api-conformance-v1.json +0 -750
  25. package/contracts/integrations/gmail-tool-abi-v1.json +0 -62
  26. package/contracts/integrations/index.schema.json +0 -37
  27. package/contracts/integrations/manifest.schema.json +0 -119
  28. package/contracts/parity/expected-normalized.json +0 -4906
  29. package/contracts/parity/scenarios.json +0 -100
  30. package/contracts/parity/scenarios.schema.json +0 -214
  31. package/contracts/providers/cost-conformance.json +0 -112
  32. package/contracts/release/github-proof-v1.schema.json +0 -138
  33. package/contracts/release/gmail-proof-v1.schema.json +0 -138
  34. package/contracts/release/kaji-ts-consumer-handoff-v1.schema.json +0 -1289
  35. package/contracts/release/publisher-identity-receipt-v1.schema.json +0 -319
  36. package/contracts/release/typescript-onboarding-evidence-v1.schema.json +0 -740
  37. package/contracts/tools/conformance-invalid.json +0 -271
  38. package/contracts/tools/conformance-valid.json +0 -78
  39. package/contracts/tools/tool-schema-v1.schema.json +0 -18
  40. package/dist/anthropic.cjs +0 -1231
  41. package/dist/anthropic.cjs.map +0 -1
  42. package/dist/anthropic.d.cts +0 -26
  43. package/dist/anthropic.d.ts +0 -26
  44. package/dist/anthropic.js +0 -270
  45. package/dist/anthropic.js.map +0 -1
  46. package/dist/auth.cjs +0 -1507
  47. package/dist/auth.cjs.map +0 -1
  48. package/dist/auth.d.cts +0 -129
  49. package/dist/auth.d.ts +0 -129
  50. package/dist/auth.js +0 -1039
  51. package/dist/auth.js.map +0 -1
  52. package/dist/base-B9FRMcP8.d.cts +0 -140
  53. package/dist/base-nHQd1VtS.d.ts +0 -140
  54. package/dist/chunk-AAM33KAO.js +0 -4367
  55. package/dist/chunk-AAM33KAO.js.map +0 -1
  56. package/dist/chunk-KAJ6BM64.js +0 -153
  57. package/dist/chunk-KAJ6BM64.js.map +0 -1
  58. package/dist/chunk-KCAXIOZS.js +0 -308
  59. package/dist/chunk-KCAXIOZS.js.map +0 -1
  60. package/dist/chunk-LSJ4AVO2.js +0 -243
  61. package/dist/chunk-LSJ4AVO2.js.map +0 -1
  62. package/dist/chunk-TM7ZGOJX.js +0 -716
  63. package/dist/chunk-TM7ZGOJX.js.map +0 -1
  64. package/dist/cli/bin.d.ts +0 -2
  65. package/dist/cli/bin.js +0 -13
  66. package/dist/cli/bin.js.map +0 -1
  67. package/dist/cli/chunk-2RCWPRVY.js +0 -6277
  68. package/dist/cli/chunk-2RCWPRVY.js.map +0 -1
  69. package/dist/cli/chunk-SEBX54TR.js +0 -681
  70. package/dist/cli/chunk-SEBX54TR.js.map +0 -1
  71. package/dist/cli/index.d.ts +0 -232
  72. package/dist/cli/index.js +0 -11
  73. package/dist/cli/index.js.map +0 -1
  74. package/dist/cli/init-worker.d.ts +0 -2
  75. package/dist/cli/init-worker.js +0 -18
  76. package/dist/cli/init-worker.js.map +0 -1
  77. package/dist/cli/integration-copy-worker.js +0 -48
  78. package/dist/cli/integration-copy-worker.js.map +0 -1
  79. package/dist/cli/package-entry-cjs.cjs +0 -21
  80. package/dist/cli/package-entry-cjs.cjs.map +0 -1
  81. package/dist/cli/package-entry-cjs.d.cts +0 -2
  82. package/dist/cli/package-entry.d.ts +0 -2
  83. package/dist/cli/package-entry.js +0 -13
  84. package/dist/cli/package-entry.js.map +0 -1
  85. package/dist/context-BaFHrQHv.d.cts +0 -21
  86. package/dist/context-BaFHrQHv.d.ts +0 -21
  87. package/dist/context-C-YPY-GS.d.cts +0 -1538
  88. package/dist/context-C-YPY-GS.d.ts +0 -1538
  89. package/dist/index.cjs +0 -12346
  90. package/dist/index.cjs.map +0 -1
  91. package/dist/index.d.cts +0 -1560
  92. package/dist/index.d.ts +0 -1560
  93. package/dist/index.js +0 -7852
  94. package/dist/index.js.map +0 -1
  95. package/dist/integrations/github.cjs +0 -2092
  96. package/dist/integrations/github.cjs.map +0 -1
  97. package/dist/integrations/github.d.cts +0 -21
  98. package/dist/integrations/github.d.ts +0 -21
  99. package/dist/integrations/github.js +0 -2088
  100. package/dist/integrations/github.js.map +0 -1
  101. package/dist/integrations.cjs +0 -3370
  102. package/dist/integrations.cjs.map +0 -1
  103. package/dist/integrations.d.cts +0 -202
  104. package/dist/integrations.d.ts +0 -202
  105. package/dist/integrations.js +0 -2650
  106. package/dist/integrations.js.map +0 -1
  107. package/dist/observability-Cj--OkME.d.cts +0 -96
  108. package/dist/observability-Cj--OkME.d.ts +0 -96
  109. package/dist/openai.cjs +0 -1235
  110. package/dist/openai.cjs.map +0 -1
  111. package/dist/openai.d.cts +0 -32
  112. package/dist/openai.d.ts +0 -32
  113. package/dist/openai.js +0 -272
  114. package/dist/openai.js.map +0 -1
  115. package/dist/testing.cjs +0 -554
  116. package/dist/testing.cjs.map +0 -1
  117. package/dist/testing.d.cts +0 -43
  118. package/dist/testing.d.ts +0 -43
  119. package/dist/testing.js +0 -118
  120. package/dist/testing.js.map +0 -1
  121. package/registry/echo/index.ts +0 -53
  122. package/registry/echo/manifest.json +0 -53
  123. package/registry/github/LICENSE +0 -105
  124. package/registry/github/client.ts +0 -1727
  125. package/registry/github/index.ts +0 -263
  126. package/registry/github/manifest.json +0 -227
  127. package/registry/github/owner-fixtures.json +0 -10
  128. package/registry/github/tests/github.test.ts +0 -32
  129. package/registry/gmail/LICENSE +0 -105
  130. package/registry/gmail/client.ts +0 -548
  131. package/registry/gmail/index.ts +0 -165
  132. package/registry/gmail/manifest.json +0 -102
  133. package/registry/gmail/owner-fixtures.json +0 -10
  134. package/registry/gmail/tests/gmail.test.ts +0 -32
  135. package/registry/index.json +0 -21
  136. package/registry/index.schema.json +0 -37
  137. package/registry/schema.json +0 -119
package/dist/testing.js DELETED
@@ -1,118 +0,0 @@
1
- import { throwIfCancellationRequested, ProviderResponseBudget, LinearStringParts, getProviderResponseDiagnostics } from './chunk-AAM33KAO.js';
2
- export { createSessionState, withProviderResponseDiagnostics } from './chunk-AAM33KAO.js';
3
-
4
- // src/providers/mock.ts
5
- var FINAL_TEXT = "The mock provider has completed the tool loop.";
6
- var JSON_TYPE_PLACEHOLDERS = {
7
- string: "mock",
8
- integer: 0,
9
- number: 0,
10
- boolean: false,
11
- array: [],
12
- object: {},
13
- null: null
14
- };
15
- function hasToolResult(messages) {
16
- return messages.some((m) => m.role === "tool");
17
- }
18
- function placeholderArgs(spec) {
19
- const params = spec.parameters ?? {};
20
- const props = params.properties ?? {};
21
- const required = params.required ?? [];
22
- const args = {};
23
- for (const key of required) {
24
- const type = props[key]?.type ?? "string";
25
- args[key] = JSON_TYPE_PLACEHOLDERS[type] ?? "mock";
26
- }
27
- return args;
28
- }
29
- var MockProvider = class {
30
- streamChunks;
31
- reply;
32
- toolCall;
33
- constructor(options = {}) {
34
- if (options.reply !== void 0 && options.toolCall !== void 0) {
35
- throw new Error("MockProvider: pass reply OR toolCall, not both.");
36
- }
37
- this.streamChunks = options.streamChunks;
38
- this.reply = options.reply;
39
- this.toolCall = options.toolCall;
40
- }
41
- scriptedToolCall() {
42
- if (this.toolCall === void 0) {
43
- throw new Error("scriptedToolCall called without toolCall option");
44
- }
45
- return {
46
- id: "mock-call-1",
47
- name: this.toolCall.name,
48
- args: this.toolCall.args
49
- };
50
- }
51
- async generate(messages, tools, options) {
52
- throwIfCancellationRequested(options?.cancellationToken);
53
- const budget = new ProviderResponseBudget(options?.responseLimits);
54
- try {
55
- const content = new LinearStringParts();
56
- const toolCalls = [];
57
- for (const chunk of this.streamUnbounded(messages, tools)) {
58
- const accepted = budget.acceptNormalized(chunk.delta, chunk.toolCalls);
59
- content.append(accepted.delta);
60
- toolCalls.push(...accepted.toolCalls);
61
- }
62
- budget.finish();
63
- return {
64
- content: content.join(),
65
- toolCalls
66
- };
67
- } finally {
68
- getProviderResponseDiagnostics(options)?.record(budget.providerDiagnostics);
69
- }
70
- }
71
- async *generateStream(messages, tools, options) {
72
- throwIfCancellationRequested(options?.cancellationToken);
73
- const budget = new ProviderResponseBudget(options?.responseLimits);
74
- try {
75
- for (const chunk of this.streamUnbounded(messages, tools)) {
76
- throwIfCancellationRequested(options?.cancellationToken);
77
- const accepted = budget.acceptNormalized(chunk.delta, chunk.toolCalls);
78
- yield { ...chunk, delta: accepted.delta, toolCalls: [...accepted.toolCalls] };
79
- }
80
- budget.finish();
81
- } finally {
82
- getProviderResponseDiagnostics(options)?.record(budget.providerDiagnostics);
83
- }
84
- }
85
- *streamUnbounded(messages, tools) {
86
- if (this.toolCall !== void 0) {
87
- if (!hasToolResult(messages)) {
88
- yield { delta: "", toolCalls: [this.scriptedToolCall()] };
89
- return;
90
- }
91
- yield { delta: FINAL_TEXT, toolCalls: [] };
92
- return;
93
- }
94
- if (this.reply !== void 0) {
95
- yield { delta: this.reply, toolCalls: [] };
96
- return;
97
- }
98
- const first = tools[0];
99
- if (first !== void 0 && !hasToolResult(messages)) {
100
- yield {
101
- delta: "",
102
- toolCalls: [{ id: "mock-call-1", name: first.name, args: placeholderArgs(first) }]
103
- };
104
- return;
105
- }
106
- if (this.streamChunks && this.streamChunks.length > 0) {
107
- for (const delta of this.streamChunks) {
108
- yield { delta, toolCalls: [] };
109
- }
110
- return;
111
- }
112
- yield { delta: FINAL_TEXT, toolCalls: [] };
113
- }
114
- };
115
-
116
- export { MockProvider };
117
- //# sourceMappingURL=testing.js.map
118
- //# sourceMappingURL=testing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/providers/mock.ts"],"names":[],"mappings":";;;;AA0BA,IAAM,UAAA,GAAa,gDAAA;AAEnB,IAAM,sBAAA,GAAkD;AAAA,EACtD,MAAA,EAAQ,MAAA;AAAA,EACR,OAAA,EAAS,CAAA;AAAA,EACT,MAAA,EAAQ,CAAA;AAAA,EACR,OAAA,EAAS,KAAA;AAAA,EACT,OAAO,EAAC;AAAA,EACR,QAAQ,EAAC;AAAA,EACT,IAAA,EAAM;AACR,CAAA;AAEA,SAAS,cAAc,QAAA,EAAsC;AAC3D,EAAA,OAAO,SAAS,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,SAAS,MAAM,CAAA;AAC/C;AAEA,SAAS,gBAAgB,IAAA,EAAyC;AAChE,EAAA,MAAM,MAAA,GAAU,IAAA,CAAK,UAAA,IAAc,EAAC;AACpC,EAAA,MAAM,KAAA,GAAS,MAAA,CAAO,UAAA,IAAoD,EAAC;AAC3E,EAAA,MAAM,QAAA,GAAY,MAAA,CAAO,QAAA,IAAyB,EAAC;AACnD,EAAA,MAAM,OAAgC,EAAC;AACvC,EAAA,KAAA,MAAW,OAAO,QAAA,EAAU;AAC1B,IAAA,MAAM,IAAA,GAAO,KAAA,CAAM,GAAG,CAAA,EAAG,IAAA,IAAQ,QAAA;AACjC,IAAA,IAAA,CAAK,GAAG,CAAA,GAAI,sBAAA,CAAuB,IAAI,CAA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MAAA,EAAW;AAC/B,MAAA,IAAI,CAAC,aAAA,CAAc,QAAQ,CAAA,EAAG;AAC5B,QAAA,MAAM,EAAE,OAAO,EAAA,EAAI,SAAA,EAAW,CAAC,IAAA,CAAK,gBAAA,EAAkB,CAAA,EAAE;AACxD,QAAA;AAAA,MACF;AACA,MAAA,MAAM,EAAE,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,EAAC,EAAE;AACzC,MAAA;AAAA,IACF;AACA,IAAA,IAAI,IAAA,CAAK,UAAU,MAAA,EAAW;AAC5B,MAAA,MAAM,EAAE,KAAA,EAAO,IAAA,CAAK,KAAA,EAAO,SAAA,EAAW,EAAC,EAAE;AACzC,MAAA;AAAA,IACF;AACA,IAAA,MAAM,KAAA,GAAQ,MAAM,CAAC,CAAA;AACrB,IAAA,IAAI,KAAA,KAAU,MAAA,IAAa,CAAC,aAAA,CAAc,QAAQ,CAAA,EAAG;AACnD,MAAA,MAAM;AAAA,QACJ,KAAA,EAAO,EAAA;AAAA,QACP,SAAA,EAAW,CAAC,EAAE,EAAA,EAAI,aAAA,EAAe,IAAA,EAAM,KAAA,CAAM,IAAA,EAAM,IAAA,EAAM,eAAA,CAAgB,KAAK,CAAA,EAAG;AAAA,OACnF;AACA,MAAA;AAAA,IACF;AACA,IAAA,IAAI,IAAA,CAAK,YAAA,IAAgB,IAAA,CAAK,YAAA,CAAa,SAAS,CAAA,EAAG;AACrD,MAAA,KAAA,MAAW,KAAA,IAAS,KAAK,YAAA,EAAc;AACrC,QAAA,MAAM,EAAE,KAAA,EAAO,SAAA,EAAW,EAAC,EAAE;AAAA,MAC/B;AACA,MAAA;AAAA,IACF;AACA,IAAA,MAAM,EAAE,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,EAAC,EAAE;AAAA,EAC3C;AACF","file":"testing.js"}
@@ -1,53 +0,0 @@
1
- // This is YOUR echo integration. Edit it.
2
- // Common customizations:
3
- // 1. Trim the tools array to just what your agent needs
4
- // 2. Tighten Zod schemas — make fields required if your agent should never miss them
5
- // 3. Add helper tools your agent wants but the API doesn't have natively
6
- // Updates: re-run `kaji add echo` to diff against the latest version we ship.
7
-
8
- import { functionTool, Integration } from "@irogane/kaji";
9
- import * as z from "zod";
10
-
11
- const messageParameters = z.strictObject({ message: z.string() });
12
-
13
- export const say = functionTool(
14
- {
15
- name: "say",
16
- namespace: "echo",
17
- description: "Return the input string unchanged.",
18
- parameters: messageParameters,
19
- risk: "read",
20
- parallel_safe: false,
21
- },
22
- async ({ message }) => ({ message }),
23
- );
24
-
25
- export const shout = functionTool(
26
- {
27
- name: "shout",
28
- namespace: "echo",
29
- description: "Return the input string uppercased.",
30
- parameters: messageParameters,
31
- risk: "read",
32
- parallel_safe: false,
33
- },
34
- async ({ message }) => ({ message: message.toUpperCase() }),
35
- );
36
-
37
- /** Side-effect-free metadata source for registry ABI verification. */
38
- export const tools = Object.freeze([say, shout] as const);
39
-
40
- export class EchoIntegration extends Integration {
41
- readonly namespace = "echo";
42
-
43
- override tools() {
44
- return tools.map(
45
- (bound) => [bound.spec, bound.handler] as [typeof bound.spec, typeof bound.handler],
46
- );
47
- }
48
- }
49
-
50
- /** Construct Echo without executing a tool or reading runtime state. */
51
- export function inspectIntegration(): EchoIntegration {
52
- return new EchoIntegration();
53
- }
@@ -1,53 +0,0 @@
1
- {
2
- "name": "echo",
3
- "version": "0.1.0",
4
- "namespace": "echo",
5
- "description": "Trivial echo integration. Two pure functions, no auth, no network. Proves the cross-language registry contract.",
6
- "auth": {
7
- "kind": "none"
8
- },
9
- "files": [
10
- "index.ts"
11
- ],
12
- "tools": [
13
- {
14
- "name": "say",
15
- "description": "Return the input string unchanged.",
16
- "parameters": {
17
- "$schema": "https://json-schema.org/draft/2020-12/schema",
18
- "type": "object",
19
- "properties": {
20
- "message": {
21
- "type": "string"
22
- }
23
- },
24
- "required": [
25
- "message"
26
- ],
27
- "additionalProperties": false
28
- },
29
- "risk": "read",
30
- "parallel_safe": false
31
- },
32
- {
33
- "name": "shout",
34
- "description": "Return the input string uppercased.",
35
- "parameters": {
36
- "$schema": "https://json-schema.org/draft/2020-12/schema",
37
- "type": "object",
38
- "properties": {
39
- "message": {
40
- "type": "string"
41
- }
42
- },
43
- "required": [
44
- "message"
45
- ],
46
- "additionalProperties": false
47
- },
48
- "risk": "read",
49
- "parallel_safe": false
50
- }
51
- ],
52
- "peerDeps": {}
53
- }
@@ -1,105 +0,0 @@
1
- # Functional Source License, Version 1.1, ALv2 Future License
2
-
3
- ## Abbreviation
4
-
5
- FSL-1.1-ALv2
6
-
7
- ## Notice
8
-
9
- Copyright 2026 Enkang Yuan
10
-
11
- ## Terms and Conditions
12
-
13
- ### Licensor ("We")
14
-
15
- The party offering the Software under these Terms and Conditions.
16
-
17
- ### The Software
18
-
19
- The "Software" is each version of the software that we make available under
20
- these Terms and Conditions, as indicated by our inclusion of these Terms and
21
- Conditions with the Software.
22
-
23
- ### License Grant
24
-
25
- Subject to your compliance with this License Grant and the Patents,
26
- Redistribution and Trademark clauses below, we hereby grant you the right to
27
- use, copy, modify, create derivative works, publicly perform, publicly display
28
- and redistribute the Software for any Permitted Purpose identified below.
29
-
30
- ### Permitted Purpose
31
-
32
- A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
- means making the Software available to others in a commercial product or
34
- service that:
35
-
36
- 1. substitutes for the Software;
37
-
38
- 2. substitutes for any other product or service we offer using the Software
39
- that exists as of the date we make the Software available; or
40
-
41
- 3. offers the same or substantially similar functionality as the Software.
42
-
43
- Permitted Purposes specifically include using the Software:
44
-
45
- 1. for your internal use and access;
46
-
47
- 2. for non-commercial education;
48
-
49
- 3. for non-commercial research; and
50
-
51
- 4. in connection with professional services that you provide to a licensee
52
- using the Software in accordance with these Terms and Conditions.
53
-
54
- ### Patents
55
-
56
- To the extent your use for a Permitted Purpose would necessarily infringe our
57
- patents, the license grant above includes a license under our patents. If you
58
- make a claim against any party that the Software infringes or contributes to
59
- the infringement of any patent, then your patent license to the Software ends
60
- immediately.
61
-
62
- ### Redistribution
63
-
64
- The Terms and Conditions apply to all copies, modifications and derivatives of
65
- the Software.
66
-
67
- If you redistribute any copies, modifications or derivatives of the Software,
68
- you must include a copy of or a link to these Terms and Conditions and not
69
- remove any copyright notices provided in or with the Software.
70
-
71
- ### Disclaimer
72
-
73
- THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
- IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
- PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
-
77
- IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
- SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
- EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
-
81
- ### Trademarks
82
-
83
- Except for displaying the License Details and identifying us as the origin of
84
- the Software, you have no right under these Terms and Conditions to use our
85
- trademarks, trade names, service marks or product names.
86
-
87
- ## Grant of Future License
88
-
89
- We hereby irrevocably grant you an additional license to use the Software under
90
- the Apache License, Version 2.0 that is effective on the second anniversary of
91
- the date we make the Software available. On or after that date, you may use the
92
- Software under the Apache License, Version 2.0, in which case the following
93
- will apply:
94
-
95
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
- this file except in compliance with the License.
97
-
98
- You may obtain a copy of the License at
99
-
100
- http://www.apache.org/licenses/LICENSE-2.0
101
-
102
- Unless required by applicable law or agreed to in writing, software distributed
103
- under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
- CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
- specific language governing permissions and limitations under the License.