@wraith-ai/core 0.1.0 → 0.1.1

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 (153) hide show
  1. package/README.md +1 -1
  2. package/dist/{attempt-BeB7EltG.d.mts → attempt-HgararU3.d.mts} +2 -1
  3. package/dist/attempt-HgararU3.d.mts.map +1 -0
  4. package/dist/{capabilities-BPb5HSH6.d.mts → capabilities-CNsPrkB7.d.mts} +2 -1
  5. package/dist/capabilities-CNsPrkB7.d.mts.map +1 -0
  6. package/dist/index.d.mts +6 -5
  7. package/dist/index.d.mts.map +1 -0
  8. package/dist/index.mjs +11 -9
  9. package/dist/index.mjs.map +1 -0
  10. package/dist/{methods-CZp6XGn8.mjs → methods-7Ryz6zbd.mjs} +4 -2
  11. package/dist/methods-7Ryz6zbd.mjs.map +1 -0
  12. package/dist/{model-B6tJ9kX_.mjs → model-C16NUwXW.mjs} +2 -0
  13. package/dist/model-C16NUwXW.mjs.map +1 -0
  14. package/dist/{model-D6LQSveS.d.mts → model-_wqePNTL.d.mts} +4 -3
  15. package/dist/model-_wqePNTL.d.mts.map +1 -0
  16. package/dist/{models-dev-Y0ZikMBQ.d.mts → models-dev-DNgymZy3.d.mts} +3 -2
  17. package/dist/models-dev-DNgymZy3.d.mts.map +1 -0
  18. package/dist/{openai-codex-BhtZvNpm.mjs → openai-codex-Bz1EFPEi.mjs} +3 -1
  19. package/dist/openai-codex-Bz1EFPEi.mjs.map +1 -0
  20. package/dist/{openai-codex-Bk-iG7MZ.mjs → openai-codex-uvjhVoVy.mjs} +6 -4
  21. package/dist/openai-codex-uvjhVoVy.mjs.map +1 -0
  22. package/dist/{openai-compatible-hkXv-P74.mjs → openai-compatible-DBppnQ_N.mjs} +4 -2
  23. package/dist/openai-compatible-DBppnQ_N.mjs.map +1 -0
  24. package/dist/{openrouter-BflQBug2.mjs → openrouter-D8nTOAQo.mjs} +5 -3
  25. package/dist/openrouter-D8nTOAQo.mjs.map +1 -0
  26. package/dist/providers/openai-codex.d.mts +4 -3
  27. package/dist/providers/openai-codex.d.mts.map +1 -0
  28. package/dist/providers/openai-codex.mjs +1 -1
  29. package/dist/providers/openai-compatible.d.mts +3 -2
  30. package/dist/providers/openai-compatible.d.mts.map +1 -0
  31. package/dist/providers/openai-compatible.mjs +1 -1
  32. package/dist/providers/openrouter.d.mts +3 -2
  33. package/dist/providers/openrouter.d.mts.map +1 -0
  34. package/dist/providers/openrouter.mjs +1 -1
  35. package/dist/{shared-8d7RsyPH.mjs → shared-BIJaPhMm.mjs} +3 -1
  36. package/dist/shared-BIJaPhMm.mjs.map +1 -0
  37. package/dist/snapshot.d.mts +3 -2
  38. package/dist/snapshot.d.mts.map +1 -0
  39. package/dist/snapshot.mjs +4999 -4977
  40. package/dist/snapshot.mjs.map +1 -0
  41. package/dist/{turn-effort-DquDDwdE.mjs → turn-effort-C61L4JIt.mjs} +2 -0
  42. package/dist/turn-effort-C61L4JIt.mjs.map +1 -0
  43. package/package.json +3 -2
  44. package/src/agent/agent.ts +90 -0
  45. package/src/agent/attachments.ts +195 -0
  46. package/src/agent/classifier.ts +525 -0
  47. package/src/agent/compact.ts +384 -0
  48. package/src/agent/conversation.ts +300 -0
  49. package/src/agent/cost.ts +164 -0
  50. package/src/agent/inbox.ts +80 -0
  51. package/src/agent/instructions.ts +62 -0
  52. package/src/agent/loop.ts +675 -0
  53. package/src/agent/messages.ts +252 -0
  54. package/src/agent/on-demand.ts +58 -0
  55. package/src/agent/prompts.ts +35 -0
  56. package/src/agent/request-images.ts +94 -0
  57. package/src/agent/stop.ts +37 -0
  58. package/src/agent/title.ts +122 -0
  59. package/src/agent/tool-groups.ts +186 -0
  60. package/src/agent/tools.ts +106 -0
  61. package/src/app.ts +67 -0
  62. package/src/config/credential-file-store.ts +66 -0
  63. package/src/config/environment.ts +105 -0
  64. package/src/config/instructions.ts +157 -0
  65. package/src/config/load.ts +667 -0
  66. package/src/config/locked-file.ts +85 -0
  67. package/src/config/paths.ts +368 -0
  68. package/src/config/schema.ts +363 -0
  69. package/src/config/subagents.ts +156 -0
  70. package/src/config/trust.ts +53 -0
  71. package/src/config/write.ts +241 -0
  72. package/src/errors.ts +85 -0
  73. package/src/events/types.ts +258 -0
  74. package/src/glob.ts +161 -0
  75. package/src/index.ts +681 -0
  76. package/src/logger.ts +47 -0
  77. package/src/paths.ts +143 -0
  78. package/src/permissions/chain.ts +42 -0
  79. package/src/permissions/command.ts +233 -0
  80. package/src/permissions/layered.ts +77 -0
  81. package/src/permissions/match.ts +80 -0
  82. package/src/permissions/modes.ts +48 -0
  83. package/src/permissions/policy.ts +160 -0
  84. package/src/permissions/types.ts +159 -0
  85. package/src/providers/cache.ts +107 -0
  86. package/src/providers/capabilities.ts +77 -0
  87. package/src/providers/catalog-view.ts +91 -0
  88. package/src/providers/catalog.ts +65 -0
  89. package/src/providers/errors.ts +108 -0
  90. package/src/providers/factories/index.ts +15 -0
  91. package/src/providers/factories/openai-codex.ts +382 -0
  92. package/src/providers/factories/openai-compatible.ts +81 -0
  93. package/src/providers/factories/openrouter.ts +165 -0
  94. package/src/providers/factories/shared.ts +22 -0
  95. package/src/providers/model.ts +197 -0
  96. package/src/providers/models-dev.ts +355 -0
  97. package/src/providers/oauth/methods.ts +10 -0
  98. package/src/providers/oauth/openai-codex.ts +228 -0
  99. package/src/providers/oauth.ts +177 -0
  100. package/src/providers/openai-codex.ts +7 -0
  101. package/src/providers/openai-compatible.ts +2 -0
  102. package/src/providers/openrouter.ts +2 -0
  103. package/src/providers/registry.ts +464 -0
  104. package/src/providers/turn-effort.ts +156 -0
  105. package/src/providers/types.ts +83 -0
  106. package/src/session/backend.ts +44 -0
  107. package/src/session/file-store.ts +278 -0
  108. package/src/session/format.ts +1037 -0
  109. package/src/session/memory-store.ts +73 -0
  110. package/src/session/session.ts +153 -0
  111. package/src/session/store.ts +219 -0
  112. package/src/sign-in/attempt.ts +166 -0
  113. package/src/sign-in/loopback.ts +74 -0
  114. package/src/snapshot/data.json +8936 -0
  115. package/src/snapshot/index.ts +37 -0
  116. package/src/tools/bin.ts +364 -0
  117. package/src/tools/builtin.ts +48 -0
  118. package/src/tools/change.ts +88 -0
  119. package/src/tools/define.ts +267 -0
  120. package/src/tools/describe.ts +96 -0
  121. package/src/tools/fs/edit-file.ts +129 -0
  122. package/src/tools/fs/glob.ts +75 -0
  123. package/src/tools/fs/grep.ts +212 -0
  124. package/src/tools/fs/line-endings.ts +17 -0
  125. package/src/tools/fs/list-dir.ts +85 -0
  126. package/src/tools/fs/read-file.ts +230 -0
  127. package/src/tools/fs/ripgrep.ts +211 -0
  128. package/src/tools/fs/write-file.ts +97 -0
  129. package/src/tools/job.ts +252 -0
  130. package/src/tools/mcp/auth-store.ts +127 -0
  131. package/src/tools/mcp/command.ts +151 -0
  132. package/src/tools/mcp/config.ts +168 -0
  133. package/src/tools/mcp/servers.ts +463 -0
  134. package/src/tools/mcp/sign-in.ts +226 -0
  135. package/src/tools/mcp/stdio.ts +204 -0
  136. package/src/tools/mcp/tools.ts +173 -0
  137. package/src/tools/on-demand.ts +184 -0
  138. package/src/tools/registry.ts +935 -0
  139. package/src/tools/shell/bash.ts +217 -0
  140. package/src/tools/shell/find-bash.ts +162 -0
  141. package/src/tools/source.ts +35 -0
  142. package/src/tools/spill.ts +127 -0
  143. package/src/tools/subagents.ts +597 -0
  144. package/src/tools/tasks.ts +603 -0
  145. package/src/tools/to-model.ts +33 -0
  146. package/src/tools/web/address.ts +95 -0
  147. package/src/tools/web/exa.ts +163 -0
  148. package/src/tools/web/fetch.ts +373 -0
  149. package/src/tools/web/html.ts +173 -0
  150. package/src/tools/web/search.ts +111 -0
  151. package/src/tools/web/source.ts +51 -0
  152. package/src/units.ts +18 -0
  153. package/src/version.ts +23 -0
package/README.md CHANGED
@@ -37,7 +37,7 @@ Entry points:
37
37
  A whole coding agent in one call is [`@wraith-ai/agents`](https://www.npmjs.com/package/@wraith-ai/agents).
38
38
 
39
39
  The guide, with the rules the types do not tell you:
40
- [USING-WRAITH.md](https://github.com/xFroty/wraith/blob/main/USING-WRAITH.md).
40
+ the [using-wraith skill](https://github.com/xFroty/wraith/blob/main/wraith-skills/using-wraith/SKILL.md).
41
41
  Programs that compile: [examples](https://github.com/xFroty/wraith/tree/main/examples).
42
42
 
43
43
  MIT
@@ -22,4 +22,5 @@ interface SignIn<T> {
22
22
  complete(address: string): Promise<void>;
23
23
  cancel(): void;
24
24
  }
25
- export { SignIn as t };
25
+ export { SignIn as t };
26
+ //# sourceMappingURL=attempt-HgararU3.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attempt-HgararU3.d.mts","names":[],"sources":["../src/sign-in/attempt.ts"],"mappings":";;;;;;;UAaiB,OAAO;;EAEtB;;EAEA;;EAEA;;EAEA,MAAM,QAAQ;;;;;;EAMd,SAAS,kBAAkB;EAC3B"}
@@ -60,4 +60,5 @@ interface ModelCapabilities {
60
60
  declare const permissiveCapabilities: ModelCapabilities;
61
61
  /** Builds a capability source from a plain table, for tests and for config. */
62
62
  declare function capabilitiesFromTable(table: Record<string, Record<string, ModelInfo>>): ModelCapabilities;
63
- export { permissiveCapabilities as a, capabilitiesFromTable as i, ModelInfo as n, ModelListing as r, ModelCapabilities as t };
63
+ export { permissiveCapabilities as a, capabilitiesFromTable as i, ModelInfo as n, ModelListing as r, ModelCapabilities as t };
64
+ //# sourceMappingURL=capabilities-CNsPrkB7.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities-CNsPrkB7.d.mts","names":[],"sources":["../src/providers/capabilities.ts"],"mappings":";;;;;;;;;UAUiB;;EAEf;;;;;EAKA;;EAEA;EACA;EACA;EACA;;EAEA;EACA;EACA;;;;;EAKA;EACA;EACA;;;;;EAKA;EACA;;UAGe;EACf;EACA,MAAM;;;;;;UAOS;EACf,OAAO,eAAe,kBAAkB;;;;;;;EAOxC,KAAK,yBAAyB;;;cAInB,wBAAwB;;iBAMrB,sBACd,OAAO,eAAe,eAAe,cACpC"}
package/dist/index.d.mts CHANGED
@@ -4,11 +4,11 @@
4
4
  * Everything a host (CLI, TUI, HTTP server, worker) is allowed to touch is
5
5
  * re-exported here. Importing from deeper paths is not supported.
6
6
  */
7
- import { $ as routedProvider, $n as TASK_TAIL_BYTES, $r as Logger, $t as quickestEffort, A as catalogTables, An as WorkspaceWrites, Ar as ToolCall, At as migrate, B as RequestFields, Bn as AgentToolDefinition, Br as ImageInfo, Bt as Session, C as REFRESH_MARGIN_MS, Cn as PermissionPolicyConfig, Cr as summaryMessage, Ct as TaskStopper, D as notSignedIn, Dn as ReasoningEffort, Dr as userMessage, Dt as decodeLog, E as memoryCredentialStore, En as ProviderConfig, Er as userInputOf, Et as applyRecords, F as CacheOptions, Fn as modelPricingSchema, Fr as FileChange, Ft as summaryFrom, G as CACHE_WRITE_MULTIPLIER, Gn as Delegation, Gr as checkImageSize, Gt as sessionModel, H as mergeProviderOptions, Hn as DANGER_LEVELS, Hr as MAX_IMAGE_SIDE, Ht as SessionSummary, I as CacheSupport, In as parseConfig, Ir as FileEdit, It as unfinishedTasks, J as costOf, Jn as ToolTask, Jr as imageInfo, Jt as ExplicitEffort, K as ModelPrices, Kn as ResourceClaim, Kr as describeImage, Kt as sourceOf, L as CacheTtl, Ln as reasoningEffortSchema, Lr as compactChange, Lt as usageOwed, M as listInView, Mn as credentialsSchema, Mr as ToolRunContext, Mt as project, N as lookupInView, Nn as defaultApiKeyEnv, Nr as ToolRunner, Nt as statsFromCheckpoint, O as CODEX_MODELS, On as SERVICE_KEY_ENV, Or as withUserPrompt, Ot as encodeRecord, P as CacheDialect, Pn as maskSecret, Pr as emptyToolRunner, Pt as statsOf, Q as resolvePrices, Qn as TASK_STOP_NAME, Qr as LogLevel, Qt as explicitEffort, R as DEFAULT_CACHE_OPTIONS, Rn as withHostSettings, Rr as Attachment, Rt as CreateSessionInit, S as OAuthMethodLoader, Sn as PermissionMode, Sr as isSummaryMessage, St as TaskState, T as credentialSource, Tn as ProviderCacheConfig, Tr as toolResultValue, Tt as advanceStats, U as withRequestFields, Un as DangerLevel, Ur as Prompt, Ut as createSession, V as cacheOptionsFor, Vn as BackgroundSpec, Vr as MAX_IMAGE_BASE64, Vt as SessionModel, W as CACHE_READ_MULTIPLIER, Wn as DelegateOptions, Wr as UserInput, Wt as resumeModel, X as priceCall, Xn as OpenTask, Xr as toUserInput, Xt as TURN_OPTIONS_KEY, Y as estimateCost, Yn as defineTool, Yr as looksLikeImage, Yt as TURN_EFFORT_MODELS, Z as providerCostMicros, Zn as TASKS_SOURCE_ID, Zr as LogFields, Zt as effortOf, _ as CredentialSourceOptions, _i as defineApp, _n as DEFAULT_CLASSIFIER_DECIDES, _r as ModelMessage, _t as SessionRecordInput, a as ProviderSetup, ai as SerializedError, an as ApprovalRequest, ar as TaskSpec, at as USAGE_KEYS, b as OAuthCredential, bn as ModelProfile, br as hostMessage, bt as TASK_STOPPERS, c as providerFrom, ci as APP_NAME, cn as PermissionPolicyInput, cr as ExtraRoot, ct as normaliseUsage, d as ModelCallSettings, di as CREDENTIALS_FILE_NAME, dn as resolveApproval, dr as extraRootOf, dt as InboxRecord, ei as noopLogger, en as ApprovalContext, er as TASK_WAIT_NAME, et as AgentEvent, f as ProviderFactory, fi as ENV_PREFIX, fn as CacheConfig, fr as isInsideWorkspace, ft as createInbox, g as settingsFromProfile, gi as WRAITH, gn as Credentials, gr as workspaceRelative, gt as SessionRecord, h as ProviderInstance, hi as PROMPT_FILE_NAME, hn as ConfigInput, hr as toPosix, ht as SESSION_FORMAT_VERSION, i as ProviderOptions, ii as AgentErrorOptions, in as ApprovalOutcome, ir as TaskSnapshot, it as FinishReason, j as catalogView, jn as configSchema, jr as ToolOutcome, jt as migrations, k as CatalogView, kn as ServiceName, kr as Preflight, kt as messageOf, l as toModel, li as AppIdentity, ln as PermissionQuery, lr as PathScope, lt as Inbox, m as ProviderFactoryLoader, mi as PROJECT_DIR_NAME, mn as Config, mr as resolveInWorkspace, mt as Migration, n as ModelOverrides, ni as AgentError, nn as ApprovalDecision, nr as TaskRegistry, nt as CostSource, o as fromAiSdk, oi as isAgentError, on as ApprovalResolution, or as TaskWaitOutcome, ot as Usage, p as ProviderFactoryContext, pi as LOCAL_CONFIG_FILE_NAME, pn as ClassifierConfig, pr as pathOrRoot, pt as LogStats, q as billableInputTokens, qn as ToolContext, qr as imageFromBytes, qt as summarize, r as Provider, ri as AgentErrorCode, rn as ApprovalHandler, rr as TaskRegistryOptions, rt as FINISH_REASONS, s as isModel, si as serializeError, sn as PermissionPolicy, sr as createTaskRegistry, st as addUsage, t as Model, ti as withLevel, tn as ApprovalDecidedBy, tr as TaskInbox, tt as AgentEventType, u as AgentLanguageModel, ui as CONFIG_FILE_NAME, un as PermissionVerdict, ur as displayPath, ut as InboxQueue, v as CredentialStore, vi as envVar, vn as INHERIT_MODEL, vr as UserMessage, vt as SessionRecordType, w as REFRESH_TIMEOUT_MS, wn as PermissionRule, wr as toolResultMessage, wt as TitleSource, x as OAuthMethod, xn as PermissionDecision, xr as isHostMessage, xt as TITLE_SOURCES, y as LoginAttempt, yn as ModelPricingConfig, yr as attachmentOf, yt as TASK_STATES, z as ProviderOptionsMap, zn as AgentTool, zr as IMAGE_MEDIA_TYPES, zt as ResumedModel } from "./model-D6LQSveS.mjs";
8
- import { a as permissiveCapabilities, i as capabilitiesFromTable, n as ModelInfo, r as ModelListing, t as ModelCapabilities } from "./capabilities-BPb5HSH6.mjs";
9
- import { t as SignIn } from "./attempt-BeB7EltG.mjs";
7
+ import { $ as routedProvider, $n as TASK_TAIL_BYTES, $r as Logger, $t as quickestEffort, A as catalogTables, An as WorkspaceWrites, Ar as ToolCall, At as migrate, B as RequestFields, Bn as AgentToolDefinition, Br as ImageInfo, Bt as Session, C as REFRESH_MARGIN_MS, Cn as PermissionPolicyConfig, Cr as summaryMessage, Ct as TaskStopper, D as notSignedIn, Dn as ReasoningEffort, Dr as userMessage, Dt as decodeLog, E as memoryCredentialStore, En as ProviderConfig, Er as userInputOf, Et as applyRecords, F as CacheOptions, Fn as modelPricingSchema, Fr as FileChange, Ft as summaryFrom, G as CACHE_WRITE_MULTIPLIER, Gn as Delegation, Gr as checkImageSize, Gt as sessionModel, H as mergeProviderOptions, Hn as DANGER_LEVELS, Hr as MAX_IMAGE_SIDE, Ht as SessionSummary, I as CacheSupport, In as parseConfig, Ir as FileEdit, It as unfinishedTasks, J as costOf, Jn as ToolTask, Jr as imageInfo, Jt as ExplicitEffort, K as ModelPrices, Kn as ResourceClaim, Kr as describeImage, Kt as sourceOf, L as CacheTtl, Ln as reasoningEffortSchema, Lr as compactChange, Lt as usageOwed, M as listInView, Mn as credentialsSchema, Mr as ToolRunContext, Mt as project, N as lookupInView, Nn as defaultApiKeyEnv, Nr as ToolRunner, Nt as statsFromCheckpoint, O as CODEX_MODELS, On as SERVICE_KEY_ENV, Or as withUserPrompt, Ot as encodeRecord, P as CacheDialect, Pn as maskSecret, Pr as emptyToolRunner, Pt as statsOf, Q as resolvePrices, Qn as TASK_STOP_NAME, Qr as LogLevel, Qt as explicitEffort, R as DEFAULT_CACHE_OPTIONS, Rn as withHostSettings, Rr as Attachment, Rt as CreateSessionInit, S as OAuthMethodLoader, Sn as PermissionMode, Sr as isSummaryMessage, St as TaskState, T as credentialSource, Tn as ProviderCacheConfig, Tr as toolResultValue, Tt as advanceStats, U as withRequestFields, Un as DangerLevel, Ur as Prompt, Ut as createSession, V as cacheOptionsFor, Vn as BackgroundSpec, Vr as MAX_IMAGE_BASE64, Vt as SessionModel, W as CACHE_READ_MULTIPLIER, Wn as DelegateOptions, Wr as UserInput, Wt as resumeModel, X as priceCall, Xn as OpenTask, Xr as toUserInput, Xt as TURN_OPTIONS_KEY, Y as estimateCost, Yn as defineTool, Yr as looksLikeImage, Yt as TURN_EFFORT_MODELS, Z as providerCostMicros, Zn as TASKS_SOURCE_ID, Zr as LogFields, Zt as effortOf, _ as CredentialSourceOptions, _i as defineApp, _n as DEFAULT_CLASSIFIER_DECIDES, _r as ModelMessage, _t as SessionRecordInput, a as ProviderSetup, ai as SerializedError, an as ApprovalRequest, ar as TaskSpec, at as USAGE_KEYS, b as OAuthCredential, bn as ModelProfile, br as hostMessage, bt as TASK_STOPPERS, c as providerFrom, ci as APP_NAME, cn as PermissionPolicyInput, cr as ExtraRoot, ct as normaliseUsage, d as ModelCallSettings, di as CREDENTIALS_FILE_NAME, dn as resolveApproval, dr as extraRootOf, dt as InboxRecord, ei as noopLogger, en as ApprovalContext, er as TASK_WAIT_NAME, et as AgentEvent, f as ProviderFactory, fi as ENV_PREFIX, fn as CacheConfig, fr as isInsideWorkspace, ft as createInbox, g as settingsFromProfile, gi as WRAITH, gn as Credentials, gr as workspaceRelative, gt as SessionRecord, h as ProviderInstance, hi as PROMPT_FILE_NAME, hn as ConfigInput, hr as toPosix, ht as SESSION_FORMAT_VERSION, i as ProviderOptions, ii as AgentErrorOptions, in as ApprovalOutcome, ir as TaskSnapshot, it as FinishReason, j as catalogView, jn as configSchema, jr as ToolOutcome, jt as migrations, k as CatalogView, kn as ServiceName, kr as Preflight, kt as messageOf, l as toModel, li as AppIdentity, ln as PermissionQuery, lr as PathScope, lt as Inbox, m as ProviderFactoryLoader, mi as PROJECT_DIR_NAME, mn as Config, mr as resolveInWorkspace, mt as Migration, n as ModelOverrides, ni as AgentError, nn as ApprovalDecision, nr as TaskRegistry, nt as CostSource, o as fromAiSdk, oi as isAgentError, on as ApprovalResolution, or as TaskWaitOutcome, ot as Usage, p as ProviderFactoryContext, pi as LOCAL_CONFIG_FILE_NAME, pn as ClassifierConfig, pr as pathOrRoot, pt as LogStats, q as billableInputTokens, qn as ToolContext, qr as imageFromBytes, qt as summarize, r as Provider, ri as AgentErrorCode, rn as ApprovalHandler, rr as TaskRegistryOptions, rt as FINISH_REASONS, s as isModel, si as serializeError, sn as PermissionPolicy, sr as createTaskRegistry, st as addUsage, t as Model, ti as withLevel, tn as ApprovalDecidedBy, tr as TaskInbox, tt as AgentEventType, u as AgentLanguageModel, ui as CONFIG_FILE_NAME, un as PermissionVerdict, ur as displayPath, ut as InboxQueue, v as CredentialStore, vi as envVar, vn as INHERIT_MODEL, vr as UserMessage, vt as SessionRecordType, w as REFRESH_TIMEOUT_MS, wn as PermissionRule, wr as toolResultMessage, wt as TitleSource, x as OAuthMethod, xn as PermissionDecision, xr as isHostMessage, xt as TITLE_SOURCES, y as LoginAttempt, yn as ModelPricingConfig, yr as attachmentOf, yt as TASK_STATES, z as ProviderOptionsMap, zn as AgentTool, zr as IMAGE_MEDIA_TYPES, zt as ResumedModel } from "./model-_wqePNTL.mjs";
8
+ import { a as permissiveCapabilities, i as capabilitiesFromTable, n as ModelInfo, r as ModelListing, t as ModelCapabilities } from "./capabilities-CNsPrkB7.mjs";
9
+ import { t as SignIn } from "./attempt-HgararU3.mjs";
10
10
  import { z } from "zod";
11
- import { a as MODELS_DEV_ENDPOINT, c as RefreshOutcome, d as parseModelIndex, i as DEFAULT_TTL_MS, l as createModelsDevCapabilities, n as CapabilityIndex, o as ModelsDevCapabilities, r as CapabilityStorage, s as ModelsDevOptions, t as CAPABILITY_CACHE_VERSION, u as parseCapabilityIndex } from "./models-dev-Y0ZikMBQ.mjs";
11
+ import { a as MODELS_DEV_ENDPOINT, c as RefreshOutcome, d as parseModelIndex, i as DEFAULT_TTL_MS, l as createModelsDevCapabilities, n as CapabilityIndex, o as ModelsDevCapabilities, r as CapabilityStorage, s as ModelsDevOptions, t as CAPABILITY_CACHE_VERSION, u as parseCapabilityIndex } from "./models-dev-DNgymZy3.mjs";
12
12
  import { ModelMessage as ModelMessage$1 } from "ai";
13
13
  import { StoredOAuthClientInformation, StoredOAuthTokens, Transport } from "@modelcontextprotocol/client";
14
14
  import { Buffer } from "node:buffer";
@@ -2137,4 +2137,5 @@ export declare function subagentSessionStore(options: FileSessionStoreOptions &
2137
2137
  * chat left without a word leaves no empty log for `--continue` to pick.
2138
2138
  */
2139
2139
  export declare function createFileSessionStore(options: FileSessionStoreOptions): SessionStore;
2140
- export { APP_NAME, type Agent, AgentError, type AgentErrorCode, type AgentErrorOptions, type AgentEvent, type AgentEventType, type AgentLanguageModel, type AgentOptions, type AgentTool, type AgentToolDefinition, type AppIdentity, type AppPaths, type ApprovalContext, type ApprovalDecidedBy, type ApprovalDecision, type ApprovalHandler, type ApprovalMode, type ApprovalModeOptions, type ApprovalModes, type ApprovalOutcome, type ApprovalRequest, type ApprovalResolution, type Attachment, type AuxiliaryModelOptions, type BackgroundSpec, type BashStatus, type BashToolOptions, type BuiltinToolOptions, type BundledRipgrep, CACHE_READ_MULTIPLIER, CACHE_WRITE_MULTIPLIER, CAPABILITY_CACHE_VERSION, CODEX_MODELS, CONFIG_FILE_NAME, CREDENTIALS_FILE_NAME, type CacheConfig, type CacheDialect, type CacheOptions, type CacheSupport, type CacheTtl, type CapabilityIndex, type CapabilityStorage, type CatalogModel, type CatalogView, type CheckBashDeps, type ClassifierAbstention, type ClassifierConfig, type ClassifierDecision, type ClassifierOptions, type ClassifierOutcome, type ClassifierPromptOptions, type ClassifierVerdict, type ClassifyInput, type CommandAnalysis, type CompactionInput, type CompactionPolicy, type CompactionResult, type Compactor, type CompactorOptions, type Config, type ConfigInput, type ConfigLayer, type ConfigOrigin, type ConfiguredRegistry, type ContextUsage, type Conversation, type ConversationEvent, type ConversationOptions, type CostSource, type CreateSessionInit, type CredentialSourceOptions, type CredentialStore, type Credentials, DANGER_LEVELS, DEFAULT_CACHE_OPTIONS, DEFAULT_CLASSIFIER_DECIDES, DEFAULT_TTL_MS, type DangerLevel, type DelegateOptions, type Delegation, ENV_PREFIX, type EntryKind, type EnvironmentOptions, type ExaSearchOptions, type ExplicitEffort, type ExtraRoot, FINISH_REASONS, type FileChange, type FileEdit, type FileSessionBackendOptions, type FileSessionStoreOptions, type FindBashDeps, type FinishReason, type FoundTool, type GrepToolOptions, type HostLookup, IMAGE_MEDIA_TYPES, INHERIT_MODEL, type IgnoredSetting, type ImageInfo, type Inbox, type InboxQueue, type InboxRecord, type InspectProjectOptions, type InstructionFile, type InstructionSource, type Instructions, type JobRunnerStatus, LOCAL_CONFIG_FILE_NAME, type LoadConfigOptions, type LoadInstructionsOptions, type LoadedConfig, type LoadedSubagents, type LogFields, type LogLevel, type LogStats, type Logger, type LoginAttempt, type LoopState, MAX_IMAGE_BASE64, MAX_IMAGE_SIDE, MODELS_DEV_ENDPOINT, type McpAuthEntry, type McpAuthStore, type McpOAuthSettings, type McpServerCheck, type McpServerConfig, type McpServerState, type McpServerStatus, type McpServers, type McpServersOptions, type McpSignInOptions, type MemorySessionStoreOptions, type Migration, type Model, type ModelCallSettings, type ModelCapabilities, type ModelInfo, type ModelListing, type ModelMessage, type ModelOverrides, type ModelPrices, type ModelPricingConfig, type ModelProfile, type ModelToolDefinition, type ModelsDevCapabilities, type ModelsDevOptions, type OAuthCredential, type OAuthMethod, type OAuthMethodLoader, type OpenTask, PROJECT_DIR_NAME, PROMPT_FILE_NAME, type PathEnvironment, type PathScope, type PermissionDecision, type PermissionMode, type PermissionPolicy, type PermissionPolicyConfig, type PermissionPolicyInput, type PermissionQuery, type PermissionRule, type PermissionVerdict, type PolicyOptions, type Preflight, type ProcessResult, type ProjectInspection, type ProjectTrust, type Prompt, type Provider, type ProviderCacheConfig, type ProviderConfig, type ProviderEntry, type ProviderErrorContext, type ProviderFactory, type ProviderFactoryContext, type ProviderFactoryLoader, type ProviderInstance, type ProviderKeyOrigin, type ProviderOptions, type ProviderOptionsMap, type ProviderRegistry, type ProviderSetup, REFRESH_MARGIN_MS, REFRESH_TIMEOUT_MS, type ReasoningEffort, type RefreshOutcome, type RegistryFromConfigOptions, type RegistryModel, type RequestFields, type ResolveOptions, type ResolvedMcpServer, type ResourceClaim, type ResumedModel, type RipgrepDeps, type RipgrepLocation, type RipgrepOptions, type RipgrepStatus, type RuleTarget, type RunDeps, type RunInput, type RunProcessOptions, type RunResult, SERVICE_KEY_ENV, SESSION_FORMAT_VERSION, type SearchResult, type SerializedError, type ServiceName, type Session, type SessionBackend, type SessionEnds, type SessionModel, type SessionPermissions, type SessionPlace, type SessionRecord, type SessionRecordInput, type SessionRecordType, type SessionStore, type SessionStoreOptions, type SessionSummary, type SetConfigOptions, type SetConfigValue, type SignIn, type SkippedSubagentFile, type Spill, type SpillOptions, type SpilledFile, type StopCondition, type SubagentSnapshot, type SubagentType, type Subagents, type SubagentsOptions, TASKS_SOURCE_ID, TASK_STATES, TASK_STOPPERS, TASK_STOP_NAME, TASK_TAIL_BYTES, TASK_WAIT_NAME, TITLE_SOURCES, TURN_EFFORT_MODELS, TURN_OPTIONS_KEY, type TaskInbox, type TaskRegistry, type TaskRegistryOptions, type TaskSnapshot, type TaskSpec, type TaskState, type TaskStopper, type TaskWaitOutcome, type TitleSource, type TitleSuggestion, type Titler, type TitlerOptions, type ToolCall, type ToolContext, type ToolDescriber, type ToolDescription, type ToolOutcome, type ToolRegistry, type ToolRegistryEntry, type ToolRegistryOptions, type ToolRunContext, type ToolRunner, type ToolSource, type ToolTask, USAGE_KEYS, type Usage, type UserInput, type UserMessage, WRAITH, type WebFetchOptions, type WebSearch, type WebSearchResult, type WebToolOptions, type WorkspaceWrites, addUsage, advanceStats, applyRecords, attachmentOf, billableInputTokens, cacheOptionsFor, capabilitiesFromTable, catalogTables, catalogView, checkImageSize, compactChange, configSchema, costOf, createInbox, createModelsDevCapabilities, createSession, createTaskRegistry, credentialSource, credentialsSchema, decodeLog, defaultApiKeyEnv, defineApp, defineTool, describeImage, displayPath, effortOf, emptyToolRunner, encodeRecord, envVar, estimateCost, explicitEffort, extraRootOf, fromAiSdk, hostMessage, imageFromBytes, imageInfo, isAgentError, isHostMessage, isInsideWorkspace, isModel, isSummaryMessage, listInView, looksLikeImage, lookupInView, maskSecret, memoryCredentialStore, mergeProviderOptions, messageOf, migrate, migrations, modelPricingSchema, noopLogger, normaliseUsage, notSignedIn, parseCapabilityIndex, parseConfig, parseModelIndex, pathOrRoot, permissiveCapabilities, priceCall, project, providerCostMicros, providerFrom, quickestEffort, reasoningEffortSchema, resolveApproval, resolveInWorkspace, resolvePrices, resumeModel, routedProvider, serializeError, sessionModel, settingsFromProfile, sourceOf, statsFromCheckpoint, statsOf, summarize, summaryFrom, summaryMessage, toModel, toPosix, toUserInput, toolResultMessage, toolResultValue, unfinishedTasks, usageOwed, userInputOf, userMessage, withHostSettings, withLevel, withRequestFields, withUserPrompt, workspaceRelative };
2140
+ export { APP_NAME, type Agent, AgentError, type AgentErrorCode, type AgentErrorOptions, type AgentEvent, type AgentEventType, type AgentLanguageModel, type AgentOptions, type AgentTool, type AgentToolDefinition, type AppIdentity, type AppPaths, type ApprovalContext, type ApprovalDecidedBy, type ApprovalDecision, type ApprovalHandler, type ApprovalMode, type ApprovalModeOptions, type ApprovalModes, type ApprovalOutcome, type ApprovalRequest, type ApprovalResolution, type Attachment, type AuxiliaryModelOptions, type BackgroundSpec, type BashStatus, type BashToolOptions, type BuiltinToolOptions, type BundledRipgrep, CACHE_READ_MULTIPLIER, CACHE_WRITE_MULTIPLIER, CAPABILITY_CACHE_VERSION, CODEX_MODELS, CONFIG_FILE_NAME, CREDENTIALS_FILE_NAME, type CacheConfig, type CacheDialect, type CacheOptions, type CacheSupport, type CacheTtl, type CapabilityIndex, type CapabilityStorage, type CatalogModel, type CatalogView, type CheckBashDeps, type ClassifierAbstention, type ClassifierConfig, type ClassifierDecision, type ClassifierOptions, type ClassifierOutcome, type ClassifierPromptOptions, type ClassifierVerdict, type ClassifyInput, type CommandAnalysis, type CompactionInput, type CompactionPolicy, type CompactionResult, type Compactor, type CompactorOptions, type Config, type ConfigInput, type ConfigLayer, type ConfigOrigin, type ConfiguredRegistry, type ContextUsage, type Conversation, type ConversationEvent, type ConversationOptions, type CostSource, type CreateSessionInit, type CredentialSourceOptions, type CredentialStore, type Credentials, DANGER_LEVELS, DEFAULT_CACHE_OPTIONS, DEFAULT_CLASSIFIER_DECIDES, DEFAULT_TTL_MS, type DangerLevel, type DelegateOptions, type Delegation, ENV_PREFIX, type EntryKind, type EnvironmentOptions, type ExaSearchOptions, type ExplicitEffort, type ExtraRoot, FINISH_REASONS, type FileChange, type FileEdit, type FileSessionBackendOptions, type FileSessionStoreOptions, type FindBashDeps, type FinishReason, type FoundTool, type GrepToolOptions, type HostLookup, IMAGE_MEDIA_TYPES, INHERIT_MODEL, type IgnoredSetting, type ImageInfo, type Inbox, type InboxQueue, type InboxRecord, type InspectProjectOptions, type InstructionFile, type InstructionSource, type Instructions, type JobRunnerStatus, LOCAL_CONFIG_FILE_NAME, type LoadConfigOptions, type LoadInstructionsOptions, type LoadedConfig, type LoadedSubagents, type LogFields, type LogLevel, type LogStats, type Logger, type LoginAttempt, type LoopState, MAX_IMAGE_BASE64, MAX_IMAGE_SIDE, MODELS_DEV_ENDPOINT, type McpAuthEntry, type McpAuthStore, type McpOAuthSettings, type McpServerCheck, type McpServerConfig, type McpServerState, type McpServerStatus, type McpServers, type McpServersOptions, type McpSignInOptions, type MemorySessionStoreOptions, type Migration, type Model, type ModelCallSettings, type ModelCapabilities, type ModelInfo, type ModelListing, type ModelMessage, type ModelOverrides, type ModelPrices, type ModelPricingConfig, type ModelProfile, type ModelToolDefinition, type ModelsDevCapabilities, type ModelsDevOptions, type OAuthCredential, type OAuthMethod, type OAuthMethodLoader, type OpenTask, PROJECT_DIR_NAME, PROMPT_FILE_NAME, type PathEnvironment, type PathScope, type PermissionDecision, type PermissionMode, type PermissionPolicy, type PermissionPolicyConfig, type PermissionPolicyInput, type PermissionQuery, type PermissionRule, type PermissionVerdict, type PolicyOptions, type Preflight, type ProcessResult, type ProjectInspection, type ProjectTrust, type Prompt, type Provider, type ProviderCacheConfig, type ProviderConfig, type ProviderEntry, type ProviderErrorContext, type ProviderFactory, type ProviderFactoryContext, type ProviderFactoryLoader, type ProviderInstance, type ProviderKeyOrigin, type ProviderOptions, type ProviderOptionsMap, type ProviderRegistry, type ProviderSetup, REFRESH_MARGIN_MS, REFRESH_TIMEOUT_MS, type ReasoningEffort, type RefreshOutcome, type RegistryFromConfigOptions, type RegistryModel, type RequestFields, type ResolveOptions, type ResolvedMcpServer, type ResourceClaim, type ResumedModel, type RipgrepDeps, type RipgrepLocation, type RipgrepOptions, type RipgrepStatus, type RuleTarget, type RunDeps, type RunInput, type RunProcessOptions, type RunResult, SERVICE_KEY_ENV, SESSION_FORMAT_VERSION, type SearchResult, type SerializedError, type ServiceName, type Session, type SessionBackend, type SessionEnds, type SessionModel, type SessionPermissions, type SessionPlace, type SessionRecord, type SessionRecordInput, type SessionRecordType, type SessionStore, type SessionStoreOptions, type SessionSummary, type SetConfigOptions, type SetConfigValue, type SignIn, type SkippedSubagentFile, type Spill, type SpillOptions, type SpilledFile, type StopCondition, type SubagentSnapshot, type SubagentType, type Subagents, type SubagentsOptions, TASKS_SOURCE_ID, TASK_STATES, TASK_STOPPERS, TASK_STOP_NAME, TASK_TAIL_BYTES, TASK_WAIT_NAME, TITLE_SOURCES, TURN_EFFORT_MODELS, TURN_OPTIONS_KEY, type TaskInbox, type TaskRegistry, type TaskRegistryOptions, type TaskSnapshot, type TaskSpec, type TaskState, type TaskStopper, type TaskWaitOutcome, type TitleSource, type TitleSuggestion, type Titler, type TitlerOptions, type ToolCall, type ToolContext, type ToolDescriber, type ToolDescription, type ToolOutcome, type ToolRegistry, type ToolRegistryEntry, type ToolRegistryOptions, type ToolRunContext, type ToolRunner, type ToolSource, type ToolTask, USAGE_KEYS, type Usage, type UserInput, type UserMessage, WRAITH, type WebFetchOptions, type WebSearch, type WebSearchResult, type WebToolOptions, type WorkspaceWrites, addUsage, advanceStats, applyRecords, attachmentOf, billableInputTokens, cacheOptionsFor, capabilitiesFromTable, catalogTables, catalogView, checkImageSize, compactChange, configSchema, costOf, createInbox, createModelsDevCapabilities, createSession, createTaskRegistry, credentialSource, credentialsSchema, decodeLog, defaultApiKeyEnv, defineApp, defineTool, describeImage, displayPath, effortOf, emptyToolRunner, encodeRecord, envVar, estimateCost, explicitEffort, extraRootOf, fromAiSdk, hostMessage, imageFromBytes, imageInfo, isAgentError, isHostMessage, isInsideWorkspace, isModel, isSummaryMessage, listInView, looksLikeImage, lookupInView, maskSecret, memoryCredentialStore, mergeProviderOptions, messageOf, migrate, migrations, modelPricingSchema, noopLogger, normaliseUsage, notSignedIn, parseCapabilityIndex, parseConfig, parseModelIndex, pathOrRoot, permissiveCapabilities, priceCall, project, providerCostMicros, providerFrom, quickestEffort, reasoningEffortSchema, resolveApproval, resolveInWorkspace, resolvePrices, resumeModel, routedProvider, serializeError, sessionModel, settingsFromProfile, sourceOf, statsFromCheckpoint, statsOf, summarize, summaryFrom, summaryMessage, toModel, toPosix, toUserInput, toolResultMessage, toolResultValue, unfinishedTasks, usageOwed, userInputOf, userMessage, withHostSettings, withLevel, withRequestFields, withUserPrompt, workspaceRelative };
2141
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":["ModelMessage","ModelMessage","_$___define0.AgentTool","_$___define0.AgentTool","_$___define0.AgentTool","_$___define0.AgentTool"],"sources":["../src/version.ts","../src/config/paths.ts","../src/config/environment.ts","../src/session/backend.ts","../src/session/store.ts","../src/agent/compact.ts","../src/agent/stop.ts","../src/agent/agent.ts","../src/agent/loop.ts","../src/agent/conversation.ts","../src/providers/catalog.ts","../src/providers/registry.ts","../src/tools/source.ts","../src/tools/subagents.ts","../src/config/subagents.ts","../src/config/load.ts","../src/config/instructions.ts","../src/config/trust.ts","../src/config/write.ts","../src/providers/factories/index.ts","../src/providers/oauth/methods.ts","../src/config/credential-file-store.ts","../src/providers/errors.ts","../src/agent/classifier.ts","../src/agent/title.ts","../src/agent/prompts.ts","../src/agent/on-demand.ts","../src/agent/instructions.ts","../src/agent/request-images.ts","../src/glob.ts","../src/tools/describe.ts","../src/tools/fs/ripgrep.ts","../src/tools/fs/grep.ts","../src/tools/shell/bash.ts","../src/tools/builtin.ts","../src/tools/web/address.ts","../src/tools/web/fetch.ts","../src/tools/web/search.ts","../src/tools/web/source.ts","../src/tools/web/exa.ts","../src/tools/shell/find-bash.ts","../src/tools/registry.ts","../src/tools/mcp/config.ts","../src/tools/mcp/auth-store.ts","../src/tools/mcp/servers.ts","../src/tools/on-demand.ts","../src/tools/to-model.ts","../src/tools/bin.ts","../src/tools/job.ts","../src/units.ts","../src/tools/spill.ts","../src/permissions/policy.ts","../src/permissions/layered.ts","../src/permissions/match.ts","../src/permissions/command.ts","../src/permissions/chain.ts","../src/permissions/modes.ts","../src/session/memory-store.ts","../src/session/file-store.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;qBAca;qBAEA;;wBAIG;;;;;;;;;UCAC;EACf;EACA;EACA;EACA,KAAK;;;;;EAKL,MAAM;;;;;;EAMN,iBAAiB;;;;;EAKjB,aAAa,iBAAiB;EAC9B,YAAY;;KAGF;UAEK;;;;;EAKf;EACA;;;;;EAKA;EACA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;EAEA;;;;;EAKA;;EAGA;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAGA;;EAEA;EACA;EACA;;;;;;;;;wBA+Bc,YAAY;;KA6ChB,eAAe,KAAK;;wBAGhB,aAAa,OAAO;EAAiB;;;;;;;;wBAUrC,WACd;EAAW;GACX,OAAO,cACP;wBA4Fc,gBAAgB,aAAa,kBAAkB;UCjR9C;;EAEf;EACA,OAAO,KAAK;;EAEZ;;;;;;EAMA;;wBAGoB,iBAAiB,SAAS,qBAAqB;;;;;wBAwC/C,iBACpB,OAAO,KAAK,oDACX;;UClEc;EACf,OAAO;EACP,MAAM;;;;;;;UAQS;;EAEf,OAAO,YAAY,kBAAkB,kBAAkB;;;;;;EAMvD,OAAO,YAAY,kBAAkB,kBAAkB;;EAEvD,KAAK,aAAa,QAAQ;EAC1B,KAAK,aAAa,QAAQ;;;;;EAK1B,KAAK,iBAAiB,QAAQ;;EAE9B,OAAO,aAAa;;;;;;;;;;;UCDL;EACf,OAAO,OAAO,oBAAoB,QAAQ;;EAE1C,IAAI,aAAa,QAAQ;;EAEzB,QAAQ,aAAa,QAAQ;EAC7B,OAAO,YAAY,kB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;UAGe;EACf,MAAM,OAAO;;EAEb,SAAS;;UAGM;EACf;;EAEA;;EAEA;;;wBAIc,UACd,SAAS,KAAK,4BACd,cACA,UAAS,eACR;;;;;;;;;;;UCtBc;;EAEf;;;;;EAKA,iBAAiB;;wBAKH,uBACd,QAAQ,uBACR,SAAS,gBACR;;;;;;;;UCtBc;EACf,kBAAkB;;;;EAIlB,iBAAiB;;;;;;;;;;;;;;;;;;wBAmBH,oBACd,MAAM,uBACN,iBAAiB,gCACjB,SAAS,gBACR;;;;;;;;;;;UC7Bc;EACf;;EAEA;EACA;EACA;;wBAGc,aAAa,iBAAiB,eAAe,OAAM;;wBAMnD,OAAO;wBAiBP,YAAY,MAAM,gBAAgB,QAAQ;;wBA2B1C,aAAa,MAAM;;;;;;;;;;;UCjClB;;EAEf;;;;;;EAMA;;;;;EAKA;;wBAGc,eAAe,kBAAkB;;;;;;;;;;;;;;;;;;;wBCnCjC,cACd,OAAO,oBACJ,eAAe,oBACjB;wBACa,iBACX,oBAAoB,iCACtB;;;;;;KCnBS;UAEK;;EAEf,SAAS;;;;;;EAMT,oBAAoB;;UAGL;EACf;EACA;;EAEA;;;;;;;;;wBAUc,cAAc,QAAQ,QAAQ,SAAS,sBAAsB;;;;;;;UCvB5D;EACf;EACA;;wBAYc,8BAA8B;wBAyC9B,yBAAyB,UAAS,4BAAiC;;;;;;;;UCnDlE;;EAEf;;UAGe,gCAAgC;EAC/C;EACA;;;;;;wBAyBc,eAAe,aAAa;wBA6E5B,yBAAyB,SAAS,4BAA4B;;;;;;wBAwI9D,qBACd,SAAS;EAA4B;IACpC;;;;;wBASa,uBAAuB,SAAS,0BAA0B"}
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { _ as envVar, c as APP_NAME, d as ENV_PREFIX, f as LOCAL_CONFIG_FILE_NAME, g as defineApp, h as WRAITH, i as explicitEffort, l as CONFIG_FILE_NAME, m as PROMPT_FILE_NAME, n as TURN_OPTIONS_KEY, o as quickestEffort, p as PROJECT_DIR_NAME, r as effortOf, s as stampEffort, t as TURN_EFFORT_MODELS, u as CREDENTIALS_FILE_NAME } from "./turn-effort-DquDDwdE.mjs";
2
- import { C as withRequestFields, E as serializeError, S as mergeProviderOptions, T as isAgentError, _ as catalogView, a as toModel, b as DEFAULT_CACHE_OPTIONS, c as billableInputTokens, d as priceCall, f as providerCostMicros, g as catalogTables, h as CODEX_MODELS, l as costOf, m as routedProvider, n as isModel, o as CACHE_READ_MULTIPLIER, p as resolvePrices, r as providerFrom, s as CACHE_WRITE_MULTIPLIER, t as fromAiSdk, u as estimateCost, v as listInView, w as AgentError, x as cacheOptionsFor, y as lookupInView } from "./model-B6tJ9kX_.mjs";
1
+ import { _ as envVar, c as APP_NAME, d as ENV_PREFIX, f as LOCAL_CONFIG_FILE_NAME, g as defineApp, h as WRAITH, i as explicitEffort, l as CONFIG_FILE_NAME, m as PROMPT_FILE_NAME, n as TURN_OPTIONS_KEY, o as quickestEffort, p as PROJECT_DIR_NAME, r as effortOf, s as stampEffort, t as TURN_EFFORT_MODELS, u as CREDENTIALS_FILE_NAME } from "./turn-effort-C61L4JIt.mjs";
2
+ import { C as withRequestFields, E as serializeError, S as mergeProviderOptions, T as isAgentError, _ as catalogView, a as toModel, b as DEFAULT_CACHE_OPTIONS, c as billableInputTokens, d as priceCall, f as providerCostMicros, g as catalogTables, h as CODEX_MODELS, l as costOf, m as routedProvider, n as isModel, o as CACHE_READ_MULTIPLIER, p as resolvePrices, r as providerFrom, s as CACHE_WRITE_MULTIPLIER, t as fromAiSdk, u as estimateCost, v as listInView, w as AgentError, x as cacheOptionsFor, y as lookupInView } from "./model-C16NUwXW.mjs";
3
3
  import path, { basename as basename$1, dirname, isAbsolute, join, posix, relative, resolve, sep, win32 } from "node:path";
4
4
  import { access, chmod, mkdir, open, readFile, readdir, rename, rm, stat, truncate as truncate$1, writeFile } from "node:fs/promises";
5
5
  import { z } from "zod";
6
6
  import { closeSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync, writeSync } from "node:fs";
7
7
  import { homedir, tmpdir } from "node:os";
8
8
  import { Buffer as Buffer$1 } from "node:buffer";
9
- import { a as memoryCredentialStore, i as credentialSource, l as openSignIn, n as REFRESH_MARGIN_MS, o as notSignedIn, r as REFRESH_TIMEOUT_MS, s as startProviderSignIn, t as builtinOAuthMethods } from "./methods-CZp6XGn8.mjs";
9
+ import { a as memoryCredentialStore, i as credentialSource, l as openSignIn, n as REFRESH_MARGIN_MS, o as notSignedIn, r as REFRESH_TIMEOUT_MS, s as startProviderSignIn, t as builtinOAuthMethods } from "./methods-7Ryz6zbd.mjs";
10
10
  import { APICallError, generateText, streamText } from "ai";
11
11
  import { spawn, spawnSync } from "node:child_process";
12
12
  import { createHash, randomBytes } from "node:crypto";
@@ -18,7 +18,7 @@ import { Client, OAuthError, OAuthErrorCode, ReadBuffer, SdkError, SdkErrorCode,
18
18
  // src/version.ts
19
19
  /** What a run from the repository reports. Tests assert against it. */
20
20
  const DEV_VERSION = "0.0.0-dev";
21
- const CORE_VERSION = "0.1.0";
21
+ const CORE_VERSION = "0.1.1";
22
22
  /** Whether this process is running from source rather than a compiled binary. */
23
23
  function isDevBuild() {
24
24
  return false;
@@ -2090,9 +2090,9 @@ function parseModelCatalog(payload) {
2090
2090
  * them.
2091
2091
  */
2092
2092
  const builtinProviderFactories = {
2093
- openrouter: () => import("./openrouter-BflQBug2.mjs").then((n) => n.n).then((module) => module.factory),
2094
- "openai-compatible": () => import("./openai-compatible-hkXv-P74.mjs").then((n) => n.n).then((module) => module.factory),
2095
- "openai-codex": () => import("./openai-codex-Bk-iG7MZ.mjs").then((n) => n.r).then((module) => module.factory)
2093
+ openrouter: () => import("./openrouter-D8nTOAQo.mjs").then((n) => n.n).then((module) => module.factory),
2094
+ "openai-compatible": () => import("./openai-compatible-DBppnQ_N.mjs").then((n) => n.n).then((module) => module.factory),
2095
+ "openai-codex": () => import("./openai-codex-uvjhVoVy.mjs").then((n) => n.r).then((module) => module.factory)
2096
2096
  };
2097
2097
  // src/providers/types.ts
2098
2098
  function settingsFromProfile(profile) {
@@ -8686,7 +8686,7 @@ function createWebFetchTool(options = {}) {
8686
8686
  const lookup = options.lookup ?? systemLookup;
8687
8687
  const headers = {
8688
8688
  Accept: ACCEPT,
8689
- "User-Agent": options.userAgent ?? `wraith/0.1.0`
8689
+ "User-Agent": options.userAgent ?? `wraith/0.1.1`
8690
8690
  };
8691
8691
  /** Goes as far as the first answer that is not a redirect on the same site. */
8692
8692
  const follow = async (start, signal) => {
@@ -10094,7 +10094,7 @@ function createMcpServers(servers, options) {
10094
10094
  const logger = options.logger ?? noopLogger;
10095
10095
  const clientInfo = options.clientInfo ?? {
10096
10096
  name: WRAITH.name,
10097
- version: "0.1.0"
10097
+ version: "0.1.1"
10098
10098
  };
10099
10099
  const connections = /* @__PURE__ */ new Map();
10100
10100
  const listeners = /* @__PURE__ */ new Set();
@@ -11055,3 +11055,5 @@ function createFileSessionStore(options) {
11055
11055
  });
11056
11056
  }
11057
11057
  export { APP_NAME, AgentError, BUILTIN_SOURCE_ID, CACHE_READ_MULTIPLIER, CACHE_WRITE_MULTIPLIER, CALL_TOOL_NAME, CAPABILITY_CACHE_VERSION, CODEX_MODELS, COMPACTION_TEMPLATE, CONFIG_FILE_NAME, CORE_VERSION, CREDENTIALS_FILE_NAME, DANGER_LEVELS, DEFAULT_ALLOW_EXCEPTIONS, DEFAULT_BLOCK_RULES, DEFAULT_CACHE_OPTIONS, DEFAULT_CLASSIFIER_DECIDES, DEFAULT_ENVIRONMENT, DEFAULT_MCP_CALL_TIMEOUT_MS, DEFAULT_TTL_MS, DEV_VERSION, ENV_PREFIX, FINISH_REASONS, IMAGE_MEDIA_TYPES, IMAGE_TOKEN_ESTIMATE, INHERIT_MODEL, LOCAL_CONFIG_FILE_NAME, MAX_IMAGE_BASE64, MAX_IMAGE_SIDE, MCP_SERVER_NAME, MCP_SOURCE_ID, MODELS_DEV_ENDPOINT, ON_DEMAND_SOURCE_ID, PROJECT_DIR_NAME, PROMPT_FILE_NAME, PROVIDER_SEPARATOR, REFRESH_MARGIN_MS, REFRESH_TIMEOUT_MS, REPORT_LIMIT_BYTES, RIPGREP_COMMAND, SEARCH_TOOLS_NAME, SEND_MESSAGE_NAME, SERVICE_KEY_ENV, SESSION_FORMAT_VERSION, SPILL_LIMIT_BYTES, SUBAGENTS_SOURCE_ID, SUBAGENT_NAME, SUBAGENT_SESSION_SOURCE, TASKS_SOURCE_ID, TASK_STATES, TASK_STOPPERS, TASK_STOP_NAME, TASK_TAIL_BYTES, TASK_WAIT_NAME, TITLE_SOURCES, TITLE_TEMPLATE, TOOL_POLICY_GUIDANCE, TURN_EFFORT_MODELS, TURN_OPTIONS_KEY, USAGE_KEYS, WEB_SOURCE_ID, WRAITH, addUsage, advanceStats, analyzeCommand, anyOf, applyCompaction, applyRecords, approvalModes, attachmentOf, bashPathFromExecPath, billableInputTokens, builtinOAuthMethods, builtinProviderFactories, builtinSubagents, builtinToolSource, builtinTools, cacheOptionsFor, callLine, capabilitiesFromTable, catalogTables, catalogView, chainApproval, checkBash, checkImageSize, checkMcpServer, checkRipgrep, checkoutMeta, classifierSystemPrompt, classifyCall, cleanTitle, compactChange, composeSystemPrompt, configSchema, contextUsage, costOf, couldMatchInside, createAgent, createBashTool, createClassifierApproval, createCompactor, createConversation, createFileSessionBackend, createFileSessionStore, createGrepTool, createInbox, createLayeredPolicy, createMcpServers, createMemorySessionBackend, createMemorySessionStore, createModelsDevCapabilities, createPermissionPolicy, createProviderRegistry, createSession, createSessionStore, createSubagents, createTaskRegistry, createTitler, createToolRegistry, createWebFetchTool, createWebSearchTool, credentialSource, credentialsSchema, decodeLog, defaultApiKeyEnv, defaultCompactionPolicy, defineApp, defineTool, describeBash, describeCall, describeCheckout, describeImage, describeJobRunner, describeRipgrep, describeRule, describeTools, displayPath, effortOf, emptyToolRunner, encodeRecord, envVar, environmentBlock, estimateCost, estimateTokens, exaSearch, expandVariables, explicitEffort, exposedName, extraRootOf, fileCredentialStore, fileMcpAuthStore, findBash, findCut, findRejectedParameter, formatBytes, formatDuration, fromAiSdk, globToRegExp, hasToolCall, hostMessage, hostOf, imageFromBytes, imageInfo, imageLeftOut, imagesForModel, imagesNote, inCheckout, inspectProject, instructionFilesOf, instructionsMessage, isAgentError, isDevBuild, isHostMessage, isInsideWorkspace, isInstructionsMessage, isModel, isOnDemandNotice, isRunningResult, isStepCount, isSummaryMessage, isTokenCount, jobRunner, lastInstructions, lastOnDemandNotice, listInView, loadConfig, loadInstructions, loadSubagents, looksLikeImage, lookupInView, mapProviderError, maskSecret, matchGlob, matchPattern, mcpServerSchema, memoryCredentialStore, memoryMcpAuthStore, mergeProviderOptions, messageOf, migrate, migrations, modelPricingSchema, noopLogger, normaliseUsage, notSignedIn, onDemandNames, onDemandNotice, openSpill, parametersOf, parseCapabilityIndex, parseConfig, parseModelCatalog, parseModelIndex, parseSubagent, pathOrRoot, permissiveCapabilities, priceCall, project, projectSlug, projectTranscript, providerCostMicros, providerFrom, quickestEffort, readConfigLayer, readTrust, reasoningEffortSchema, redactConfig, registryFromConfig, renderTranscript, resolveAppPaths, resolveApproval, resolveAuxiliaryModel, resolveInWorkspace, resolvePrices, resolveRipgrep, resumeModel, routedProvider, ruleMatches, run, runProcess, searchCatalog, serializeError, sessionModel, sessionSideDir, setConfigValue, settingsFromProfile, sourceOf, statsFromCheckpoint, statsOf, stopRunningProcesses, subagentSessionStore, summarize, summaryFrom, summaryMessage, takesImages, targetFor, toModel, toModelTool, toModelTools, toPosix, toUserInput, toolResultMessage, toolResultValue, trustFilePath, unfinishedTasks, unpackedRipgrepPath, usageOwed, userInputOf, userMessage, webToolSource, webTools, withHostSettings, withLevel, withRequestFields, withSpawnRetry, withUserPrompt, withValueAt, workspaceRelative, writeTrust };
11058
+
11059
+ //# sourceMappingURL=index.mjs.map