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.
Files changed (80) hide show
  1. package/dist/Agent.d.ts +20 -20
  2. package/dist/Agent.d.ts.map +1 -1
  3. package/dist/Agent.js +9 -9
  4. package/dist/Agent.js.map +1 -1
  5. package/dist/AgentExecutor.d.ts +45 -99
  6. package/dist/AgentExecutor.d.ts.map +1 -1
  7. package/dist/AgentExecutor.js +8 -8
  8. package/dist/AgentExecutor.js.map +1 -1
  9. package/dist/AgentTools.d.ts +6 -6
  10. package/dist/AgentTools.d.ts.map +1 -1
  11. package/dist/AgentTools.js +5 -5
  12. package/dist/AgentTools.js.map +1 -1
  13. package/dist/ApplyPatch.test.js +3 -3
  14. package/dist/ApplyPatch.test.js.map +1 -1
  15. package/dist/ChunkRepo.d.ts +16 -16
  16. package/dist/ChunkRepo.d.ts.map +1 -1
  17. package/dist/ChunkRepo.js +7 -6
  18. package/dist/ChunkRepo.js.map +1 -1
  19. package/dist/CodeChunker.d.ts +2 -2
  20. package/dist/CodeChunker.d.ts.map +1 -1
  21. package/dist/CodeChunker.js +2 -2
  22. package/dist/CodeChunker.js.map +1 -1
  23. package/dist/CodexAuth.d.ts +4 -4
  24. package/dist/CodexAuth.d.ts.map +1 -1
  25. package/dist/CodexAuth.js +2 -2
  26. package/dist/CodexAuth.js.map +1 -1
  27. package/dist/CopilotAuth.d.ts +4 -4
  28. package/dist/CopilotAuth.d.ts.map +1 -1
  29. package/dist/CopilotAuth.js +2 -2
  30. package/dist/CopilotAuth.js.map +1 -1
  31. package/dist/DeviceCodeHandler.d.ts +2 -2
  32. package/dist/DeviceCodeHandler.d.ts.map +1 -1
  33. package/dist/DeviceCodeHandler.js +2 -2
  34. package/dist/DeviceCodeHandler.js.map +1 -1
  35. package/dist/ExaSearch.d.ts +3 -3
  36. package/dist/ExaSearch.d.ts.map +1 -1
  37. package/dist/ExaSearch.js +2 -2
  38. package/dist/ExaSearch.js.map +1 -1
  39. package/dist/McpClient.d.ts +3 -3
  40. package/dist/McpClient.d.ts.map +1 -1
  41. package/dist/McpClient.js +2 -2
  42. package/dist/McpClient.js.map +1 -1
  43. package/dist/OutputFormatter.d.ts +2 -2
  44. package/dist/OutputFormatter.d.ts.map +1 -1
  45. package/dist/OutputFormatter.js +2 -2
  46. package/dist/OutputFormatter.js.map +1 -1
  47. package/dist/SemanticSearch/Service.d.ts +2 -2
  48. package/dist/SemanticSearch/Service.d.ts.map +1 -1
  49. package/dist/SemanticSearch/Service.js +2 -2
  50. package/dist/SemanticSearch/Service.js.map +1 -1
  51. package/dist/SemanticSearch.js +3 -3
  52. package/dist/SemanticSearch.js.map +1 -1
  53. package/dist/ToolkitRenderer.d.ts +2 -2
  54. package/dist/ToolkitRenderer.d.ts.map +1 -1
  55. package/dist/ToolkitRenderer.js +2 -2
  56. package/dist/ToolkitRenderer.js.map +1 -1
  57. package/dist/WebToMarkdown.d.ts +2 -2
  58. package/dist/WebToMarkdown.d.ts.map +1 -1
  59. package/dist/WebToMarkdown.js +2 -2
  60. package/dist/WebToMarkdown.js.map +1 -1
  61. package/package.json +8 -6
  62. package/src/Agent.ts +9 -9
  63. package/src/AgentExecutor.ts +14 -14
  64. package/src/AgentTools.ts +7 -7
  65. package/src/ApplyPatch.test.ts +3 -3
  66. package/src/ChunkRepo.ts +8 -6
  67. package/src/CodeChunker.ts +2 -2
  68. package/src/CodexAuth.ts +2 -2
  69. package/src/CopilotAuth.ts +2 -2
  70. package/src/DeviceCodeHandler.ts +2 -2
  71. package/src/ExaSearch.ts +2 -2
  72. package/src/McpClient.ts +2 -2
  73. package/src/OutputFormatter.ts +2 -2
  74. package/src/SemanticSearch/Service.ts +2 -2
  75. package/src/SemanticSearch.ts +3 -3
  76. package/src/ToolkitRenderer.ts +2 -2
  77. package/src/WebToMarkdown.ts +2 -2
  78. package/src/fixtures/fiber.txt +9 -9
  79. package/src/fixtures/patch18-broken.txt +5 -5
  80. 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 ServiceMap.Service<EventLogServerStoreRegistry, {
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 ServiceMap.Service<EventLogServerAuth, {
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 ServiceMap.Service<Storage, {
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 ServiceMap.Service<EventLogServerUnencrypted, {
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 ServiceMap.Service<EventLogServerStoreRegistry, {
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 ServiceMap.Service<EventLogServerAuth, {
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 ServiceMap.Service<Storage, {
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 ServiceMap.Service<EventLogServerUnencrypted, {
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
+ `