clanka 0.2.50 → 0.2.51
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/dist/Agent.d.ts +20 -20
- package/dist/Agent.d.ts.map +1 -1
- package/dist/Agent.js +9 -9
- package/dist/Agent.js.map +1 -1
- package/dist/AgentExecutor.d.ts +45 -99
- package/dist/AgentExecutor.d.ts.map +1 -1
- package/dist/AgentExecutor.js +8 -8
- package/dist/AgentExecutor.js.map +1 -1
- package/dist/AgentTools.d.ts +6 -6
- package/dist/AgentTools.d.ts.map +1 -1
- package/dist/AgentTools.js +5 -5
- package/dist/AgentTools.js.map +1 -1
- package/dist/ApplyPatch.test.js +3 -3
- package/dist/ApplyPatch.test.js.map +1 -1
- package/dist/ChunkRepo.d.ts +16 -16
- package/dist/ChunkRepo.d.ts.map +1 -1
- package/dist/ChunkRepo.js +7 -6
- package/dist/ChunkRepo.js.map +1 -1
- package/dist/CodeChunker.d.ts +2 -2
- package/dist/CodeChunker.d.ts.map +1 -1
- package/dist/CodeChunker.js +2 -2
- package/dist/CodeChunker.js.map +1 -1
- package/dist/CodexAuth.d.ts +4 -4
- package/dist/CodexAuth.d.ts.map +1 -1
- package/dist/CodexAuth.js +2 -2
- package/dist/CodexAuth.js.map +1 -1
- package/dist/CopilotAuth.d.ts +4 -4
- package/dist/CopilotAuth.d.ts.map +1 -1
- package/dist/CopilotAuth.js +2 -2
- package/dist/CopilotAuth.js.map +1 -1
- package/dist/DeviceCodeHandler.d.ts +2 -2
- package/dist/DeviceCodeHandler.d.ts.map +1 -1
- package/dist/DeviceCodeHandler.js +2 -2
- package/dist/DeviceCodeHandler.js.map +1 -1
- package/dist/ExaSearch.d.ts +3 -3
- package/dist/ExaSearch.d.ts.map +1 -1
- package/dist/ExaSearch.js +2 -2
- package/dist/ExaSearch.js.map +1 -1
- package/dist/McpClient.d.ts +3 -3
- package/dist/McpClient.d.ts.map +1 -1
- package/dist/McpClient.js +2 -2
- package/dist/McpClient.js.map +1 -1
- package/dist/OutputFormatter.d.ts +2 -2
- package/dist/OutputFormatter.d.ts.map +1 -1
- package/dist/OutputFormatter.js +2 -2
- package/dist/OutputFormatter.js.map +1 -1
- package/dist/SemanticSearch/Service.d.ts +2 -2
- package/dist/SemanticSearch/Service.d.ts.map +1 -1
- package/dist/SemanticSearch/Service.js +2 -2
- package/dist/SemanticSearch/Service.js.map +1 -1
- package/dist/SemanticSearch.js +3 -3
- package/dist/SemanticSearch.js.map +1 -1
- package/dist/ToolkitRenderer.d.ts +2 -2
- package/dist/ToolkitRenderer.d.ts.map +1 -1
- package/dist/ToolkitRenderer.js +2 -2
- package/dist/ToolkitRenderer.js.map +1 -1
- package/dist/WebToMarkdown.d.ts +2 -2
- package/dist/WebToMarkdown.d.ts.map +1 -1
- package/dist/WebToMarkdown.js +2 -2
- package/dist/WebToMarkdown.js.map +1 -1
- package/package.json +8 -6
- package/src/Agent.ts +9 -9
- package/src/AgentExecutor.ts +14 -14
- package/src/AgentTools.ts +7 -7
- package/src/ApplyPatch.test.ts +3 -3
- package/src/ChunkRepo.ts +8 -6
- package/src/CodeChunker.ts +2 -2
- package/src/CodexAuth.ts +2 -2
- package/src/CopilotAuth.ts +2 -2
- package/src/DeviceCodeHandler.ts +2 -2
- package/src/ExaSearch.ts +2 -2
- package/src/McpClient.ts +2 -2
- package/src/OutputFormatter.ts +2 -2
- package/src/SemanticSearch/Service.ts +2 -2
- package/src/SemanticSearch.ts +3 -3
- package/src/ToolkitRenderer.ts +2 -2
- package/src/WebToMarkdown.ts +2 -2
- package/src/fixtures/fiber.txt +9 -9
- package/src/fixtures/patch18-broken.txt +5 -5
- package/src/fixtures/patch18-fixed.txt +5 -5
|
@@ -138,7 +138,7 @@ The exact encoding can differ, but it must be:
|
|
|
138
138
|
Add a required service responsible for resolving public keys to store ids.
|
|
139
139
|
|
|
140
140
|
```ts
|
|
141
|
-
export class EventLogServerStoreRegistry extends
|
|
141
|
+
export class EventLogServerStoreRegistry extends Context.Service<EventLogServerStoreRegistry, {
|
|
142
142
|
readonly resolve: (publicKey: string) => Effect.Effect<StoreId, EventLogServerStoreRegistryError>
|
|
143
143
|
readonly assign: (options: {
|
|
144
144
|
readonly publicKey: string
|
|
@@ -197,7 +197,7 @@ Keep the required auth service from the original spec for client-originated
|
|
|
197
197
|
traffic.
|
|
198
198
|
|
|
199
199
|
```ts
|
|
200
|
-
export class EventLogServerAuth extends
|
|
200
|
+
export class EventLogServerAuth extends Context.Service<EventLogServerAuth, {
|
|
201
201
|
readonly authorizeWrite: (options: {
|
|
202
202
|
readonly publicKey: string
|
|
203
203
|
readonly entries: ReadonlyArray<Entry>
|
|
@@ -239,7 +239,7 @@ Update the transport-history storage abstraction so it is keyed by ` + "`StoreId
|
|
|
239
239
|
public key.
|
|
240
240
|
|
|
241
241
|
```ts
|
|
242
|
-
export class Storage extends
|
|
242
|
+
export class Storage extends Context.Service<Storage, {
|
|
243
243
|
readonly getId: Effect.Effect<RemoteId>
|
|
244
244
|
readonly write: (options: {
|
|
245
245
|
readonly storeId: StoreId
|
|
@@ -287,7 +287,7 @@ responsible for:
|
|
|
287
287
|
Suggested shape:
|
|
288
288
|
|
|
289
289
|
```ts
|
|
290
|
-
export class EventLogServerUnencrypted extends
|
|
290
|
+
export class EventLogServerUnencrypted extends Context.Service<EventLogServerUnencrypted, {
|
|
291
291
|
readonly ingestClient: (options: {
|
|
292
292
|
readonly publicKey: string
|
|
293
293
|
readonly entries: ReadonlyArray<Entry>
|
|
@@ -1029,4 +1029,4 @@ kept in mind while designing the API:
|
|
|
1029
1029
|
- richer typed convenience APIs for server-authored writes so callers do not
|
|
1030
1030
|
need to manually construct ` + "`Entry`" + String.raw` values when that ergonomics becomes
|
|
1031
1031
|
important
|
|
1032
|
-
`
|
|
1032
|
+
`
|
|
@@ -138,7 +138,7 @@ The exact encoding can differ, but it must be:
|
|
|
138
138
|
Add a required service responsible for resolving public keys to store ids.
|
|
139
139
|
|
|
140
140
|
\`\`\`ts
|
|
141
|
-
export class EventLogServerStoreRegistry extends
|
|
141
|
+
export class EventLogServerStoreRegistry extends Context.Service<EventLogServerStoreRegistry, {
|
|
142
142
|
readonly resolve: (publicKey: string) => Effect.Effect<StoreId, EventLogServerStoreRegistryError>
|
|
143
143
|
readonly assign: (options: {
|
|
144
144
|
readonly publicKey: string
|
|
@@ -197,7 +197,7 @@ Keep the required auth service from the original spec for client-originated
|
|
|
197
197
|
traffic.
|
|
198
198
|
|
|
199
199
|
\`\`\`ts
|
|
200
|
-
export class EventLogServerAuth extends
|
|
200
|
+
export class EventLogServerAuth extends Context.Service<EventLogServerAuth, {
|
|
201
201
|
readonly authorizeWrite: (options: {
|
|
202
202
|
readonly publicKey: string
|
|
203
203
|
readonly entries: ReadonlyArray<Entry>
|
|
@@ -239,7 +239,7 @@ Update the transport-history storage abstraction so it is keyed by ` + "`StoreId
|
|
|
239
239
|
public key.
|
|
240
240
|
|
|
241
241
|
\`\`\`ts
|
|
242
|
-
export class Storage extends
|
|
242
|
+
export class Storage extends Context.Service<Storage, {
|
|
243
243
|
readonly getId: Effect.Effect<RemoteId>
|
|
244
244
|
readonly write: (options: {
|
|
245
245
|
readonly storeId: StoreId
|
|
@@ -287,7 +287,7 @@ responsible for:
|
|
|
287
287
|
Suggested shape:
|
|
288
288
|
|
|
289
289
|
\`\`\`ts
|
|
290
|
-
export class EventLogServerUnencrypted extends
|
|
290
|
+
export class EventLogServerUnencrypted extends Context.Service<EventLogServerUnencrypted, {
|
|
291
291
|
readonly ingestClient: (options: {
|
|
292
292
|
readonly publicKey: string
|
|
293
293
|
readonly entries: ReadonlyArray<Entry>
|
|
@@ -1029,4 +1029,4 @@ kept in mind while designing the API:
|
|
|
1029
1029
|
- richer typed convenience APIs for server-authored writes so callers do not
|
|
1030
1030
|
need to manually construct ` + "`Entry`" + String.raw` values when that ergonomics becomes
|
|
1031
1031
|
important
|
|
1032
|
-
`
|
|
1032
|
+
`
|