@daex-dev/sdk 0.7.1 → 0.8.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/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RuntimeCompatibility } from './client-C0KQKP8O.cjs';
2
- export { k as ADE_CLIENT_EVENTS, l as APPROVAL_DECISIONS, m as AccountInfo, n as AccountUsage, o as AdeChatClient, p as AdeClientEvent, q as AdeClientEventMap, g as AdeError, h as AdeErrorCode, r as AdeProvider, s as AdeThread, t as AgentChatCodexCollaborationMode, u as AgentChatEvent, A as AgentChatEventEnvelope, v as AgentChatFileRef, w as AgentChatHostConfigLevel, x as AgentChatInstructions, y as AgentChatSessionStatus, z as AgentChatSessionSummary, B as AgentChatSettingSources, C as ApiCredentialInfo, E as ApprovalDecision, F as ApprovalRequest, G as AttachmentRootCheck, H as AttachmentRootFilterResult, J as CapabilitiesChangedEvent, K as CreateAdeChatOptions, L as CreateDaexChatOptions, N as DAEX_CLIENT_EVENTS, O as DEFAULT_RELEASE_REPO, c as DaexChatClient, D as DaexClientEvent, a as DaexClientEventMap, i as DaexError, j as DaexErrorCode, Q as DaexProvider, U as DaexThread, V as DefaultModelOptions, W as DoctorReport, X as DownloadRequest, Y as DownloadResult, Z as EditLastOptions, _ as HistoryPageOptions, $ as HostConfigCapability, I as InstructionsCapability, a0 as InvalidOutputError, a1 as JsonSchema, a2 as KnownAgentChatEvent, a3 as MAX_ATTACHMENT_ROOTS, M as McpCapabilityReport, a4 as McpHeadersResolver, a5 as McpServerConfig, a6 as McpToolFilter, a7 as ModelCatalogEntry, a8 as PendingInputKind, a9 as PendingInputOption, aa as PendingInputQuestion, ab as PendingInputRequest, ac as PendingInputSource, b as PermissionCapability, ad as PermissionPreset, ae as ProviderCapabilities, P as ProviderStatus, af as ProviderStatusProbeRecord, ag as ProviderStatusRpcResult, ah as RunOptions, ai as RuntimeDownloader, aj as RuntimeTarget, ak as SUPPORTED_PROVIDERS, al as SendOptions, am as SetModelOptions, an as SetModelResult, S as SettingSourcesCapability, ao as SignInHandle, ap as SignInStatus, aq as SteerOptions, ar as SyntheticRuntimeLostStatusEvent, as as ThreadBudget, at as ThreadCapabilities, au as ThreadEventChannel, av as ThreadHistoryPage, aw as ThreadInstructions, ax as ThreadInterruptOptions, T as ThreadModelSelection, e as ThreadOpenOptions, ay as ThreadPermissionPolicy, az as ThreadQueueItem, aA as ThreadRefreshOptions, aB as ThreadRerunResult, aC as ThreadRespondOptions, f as ThreadResumeOptions, d as ThreadSummary, aD as ThreadUpdate, aE as ThreadUpdateOptions, aF as ThreadUpdateResult, aG as ThreadUsage, aH as Unsubscribe, aI as UsageLimitEvent, aJ as UsageLimitResume, aK as assetUrl, aL as checkAttachmentRoot, aM as createAdeChat, aN as createDaexChat, aO as filterAttachmentRoots, aP as isApprovalShaped, aQ as isSupportedProvider, aR as parseChecksums, aS as pickDefaultModel, aT as resolveRuntimeTarget, aU as runtimeSpawnEnv, aV as validateJsonSchema } from './client-C0KQKP8O.cjs';
1
+ import { R as RuntimeCompatibility } from './client-DVZHOtg6.cjs';
2
+ export { k as ADE_CLIENT_EVENTS, l as APPROVAL_DECISIONS, m as AccountInfo, n as AccountUsage, o as AdeChatClient, p as AdeClientEvent, q as AdeClientEventMap, g as AdeError, h as AdeErrorCode, r as AdeProvider, s as AdeThread, t as AgentChatCodexCollaborationMode, u as AgentChatEvent, A as AgentChatEventEnvelope, v as AgentChatFileRef, w as AgentChatHostConfigLevel, x as AgentChatInstructions, y as AgentChatSessionStatus, z as AgentChatSessionSummary, B as AgentChatSettingSources, C as ApiCredentialInfo, E as ApprovalDecision, F as ApprovalRequest, G as AttachmentRootCheck, H as AttachmentRootFilterResult, J as CapabilitiesChangedEvent, K as CreateAdeChatOptions, L as CreateDaexChatOptions, N as DAEX_CLIENT_EVENTS, O as DEFAULT_RELEASE_REPO, c as DaexChatClient, D as DaexClientEvent, a as DaexClientEventMap, i as DaexError, j as DaexErrorCode, Q as DaexProvider, U as DaexThread, V as DefaultModelOptions, W as DoctorReport, X as DownloadRequest, Y as DownloadResult, Z as EditLastOptions, _ as HistoryPageOptions, $ as HostConfigCapability, I as InstructionsCapability, a0 as InvalidOutputError, a1 as JsonSchema, a2 as KnownAgentChatEvent, a3 as MAX_ATTACHMENT_ROOTS, M as McpCapabilityReport, a4 as McpHeadersResolver, a5 as McpServerConfig, a6 as McpToolFilter, a7 as ModelCatalogEntry, a8 as PendingInputKind, a9 as PendingInputOption, aa as PendingInputQuestion, ab as PendingInputRequest, ac as PendingInputSource, b as PermissionCapability, ad as PermissionPreset, ae as ProviderCapabilities, P as ProviderStatus, af as ProviderStatusProbeRecord, ag as ProviderStatusRpcResult, ah as RunOptions, ai as RuntimeDownloader, aj as RuntimeTarget, ak as SUPPORTED_PROVIDERS, al as SendOptions, am as SetModelOptions, an as SetModelResult, S as SettingSourcesCapability, ao as SignInHandle, ap as SignInStatus, aq as SteerOptions, ar as SyntheticRuntimeLostStatusEvent, as as ThreadBudget, at as ThreadCapabilities, au as ThreadEventChannel, av as ThreadHistoryPage, aw as ThreadInstructions, ax as ThreadInterruptOptions, T as ThreadModelSelection, e as ThreadOpenOptions, ay as ThreadPermissionPolicy, az as ThreadQueueItem, aA as ThreadRefreshOptions, aB as ThreadRerunResult, aC as ThreadRespondOptions, f as ThreadResumeOptions, d as ThreadSummary, aD as ThreadUpdate, aE as ThreadUpdateOptions, aF as ThreadUpdateResult, aG as ThreadUsage, aH as Unsubscribe, aI as UsageLimitEvent, aJ as UsageLimitResume, aK as assetUrl, aL as checkAttachmentRoot, aM as createAdeChat, aN as createDaexChat, aO as filterAttachmentRoots, aP as isApprovalShaped, aQ as isSupportedProvider, aR as parseChecksums, aS as pickDefaultModel, aT as resolveRuntimeTarget, aU as runtimeSpawnEnv, aV as validateJsonSchema } from './client-DVZHOtg6.cjs';
3
3
 
4
4
  /**
5
5
  * The runtime versions this SDK build is written against.
@@ -86,7 +86,7 @@ declare function inferAttachmentType(filePath: string, mimeType?: string | null)
86
86
  *
87
87
  * A signed, notarized app carries the runtime as `extraResources`, at
88
88
  * `<resourcesPath>/ade-runtime/{bin,native}` — the layout of an
89
- * `@ade-dev/runtime-<target>` package, copied whole. Every such host then
89
+ * `@daex-dev/runtime-<target>` package, copied whole. Every such host then
90
90
  * wrote the same three `path.join` calls by hand and reported
91
91
  * `doctor().runtime.source` as `"explicit"`, which says nothing about whether
92
92
  * the app ran the copy it signed. This helper owns the layout and the label.
@@ -172,13 +172,15 @@ declare function endpointComparisonKey(value: string): string;
172
172
  * the bundle is one signed artifact, and a Mach-O executable that appears in
173
173
  * `userData` after the fact is outside it. So the runtime is also published the
174
174
  * way esbuild and swc publish theirs — one package per target, each carrying
175
- * `os` and `cpu`, listed as `optionalDependencies` of `@ade-dev/runtime` so npm
176
- * installs exactly one. The embedder copies that directory into their bundle
175
+ * `os` and `cpu`, listed as `optionalDependencies` of `@daex-dev/runtime` so npm
176
+ * installs exactly one. Runtimes published before the DAEX rename are the
177
+ * `@ade-dev/runtime-<target>` packages, still found when no `@daex-dev` one is
178
+ * installed. The embedder copies that directory into their bundle
177
179
  * and signs it with their own identity.
178
180
  *
179
181
  * Layout, which this module both expects and documents:
180
182
  *
181
- * @ade-dev/runtime-<target>/
183
+ * @daex-dev/runtime-<target>/ (or @ade-dev/runtime-<target>/)
182
184
  * package.json { os: [...], cpu: [...], version: <ade release> }
183
185
  * bin/daex[.exe] the runtime binary, mode 0755 (bin/ade[.exe] before
184
186
  * the DAEX rename; still accepted)
@@ -201,7 +203,7 @@ type BundledRuntime = {
201
203
  runtimeRoot: string;
202
204
  /** Absolute path that `ADE_RUNTIME_NODE_MODULES` must name. */
203
205
  nodeModulesPath: string;
204
- /** e.g. `@ade-dev/runtime-darwin-arm64`. */
206
+ /** e.g. `@daex-dev/runtime-darwin-arm64` (`@ade-dev/…` for an older package). */
205
207
  packageName: string;
206
208
  /** The DAEX release version the package was cut from. */
207
209
  version: string;
@@ -219,7 +221,8 @@ type ResolveBundledRuntimeOptions = {
219
221
  /** The platform package name for a runtime target, e.g. `darwin-arm64`. */
220
222
  declare function bundledRuntimePackageName(target: string): string;
221
223
  /**
222
- * Resolve the runtime from an installed `@ade-dev/runtime-*` package.
224
+ * Resolve the runtime from an installed `@daex-dev/runtime-*` package, or else
225
+ * an `@ade-dev/runtime-*` one.
223
226
  *
224
227
  * Returns `null` when no matching package is installed — the caller falls
225
228
  * through to the cache, PATH, or a download. Throws `binary_not_found` only
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RuntimeCompatibility } from './client-C0KQKP8O.js';
2
- export { k as ADE_CLIENT_EVENTS, l as APPROVAL_DECISIONS, m as AccountInfo, n as AccountUsage, o as AdeChatClient, p as AdeClientEvent, q as AdeClientEventMap, g as AdeError, h as AdeErrorCode, r as AdeProvider, s as AdeThread, t as AgentChatCodexCollaborationMode, u as AgentChatEvent, A as AgentChatEventEnvelope, v as AgentChatFileRef, w as AgentChatHostConfigLevel, x as AgentChatInstructions, y as AgentChatSessionStatus, z as AgentChatSessionSummary, B as AgentChatSettingSources, C as ApiCredentialInfo, E as ApprovalDecision, F as ApprovalRequest, G as AttachmentRootCheck, H as AttachmentRootFilterResult, J as CapabilitiesChangedEvent, K as CreateAdeChatOptions, L as CreateDaexChatOptions, N as DAEX_CLIENT_EVENTS, O as DEFAULT_RELEASE_REPO, c as DaexChatClient, D as DaexClientEvent, a as DaexClientEventMap, i as DaexError, j as DaexErrorCode, Q as DaexProvider, U as DaexThread, V as DefaultModelOptions, W as DoctorReport, X as DownloadRequest, Y as DownloadResult, Z as EditLastOptions, _ as HistoryPageOptions, $ as HostConfigCapability, I as InstructionsCapability, a0 as InvalidOutputError, a1 as JsonSchema, a2 as KnownAgentChatEvent, a3 as MAX_ATTACHMENT_ROOTS, M as McpCapabilityReport, a4 as McpHeadersResolver, a5 as McpServerConfig, a6 as McpToolFilter, a7 as ModelCatalogEntry, a8 as PendingInputKind, a9 as PendingInputOption, aa as PendingInputQuestion, ab as PendingInputRequest, ac as PendingInputSource, b as PermissionCapability, ad as PermissionPreset, ae as ProviderCapabilities, P as ProviderStatus, af as ProviderStatusProbeRecord, ag as ProviderStatusRpcResult, ah as RunOptions, ai as RuntimeDownloader, aj as RuntimeTarget, ak as SUPPORTED_PROVIDERS, al as SendOptions, am as SetModelOptions, an as SetModelResult, S as SettingSourcesCapability, ao as SignInHandle, ap as SignInStatus, aq as SteerOptions, ar as SyntheticRuntimeLostStatusEvent, as as ThreadBudget, at as ThreadCapabilities, au as ThreadEventChannel, av as ThreadHistoryPage, aw as ThreadInstructions, ax as ThreadInterruptOptions, T as ThreadModelSelection, e as ThreadOpenOptions, ay as ThreadPermissionPolicy, az as ThreadQueueItem, aA as ThreadRefreshOptions, aB as ThreadRerunResult, aC as ThreadRespondOptions, f as ThreadResumeOptions, d as ThreadSummary, aD as ThreadUpdate, aE as ThreadUpdateOptions, aF as ThreadUpdateResult, aG as ThreadUsage, aH as Unsubscribe, aI as UsageLimitEvent, aJ as UsageLimitResume, aK as assetUrl, aL as checkAttachmentRoot, aM as createAdeChat, aN as createDaexChat, aO as filterAttachmentRoots, aP as isApprovalShaped, aQ as isSupportedProvider, aR as parseChecksums, aS as pickDefaultModel, aT as resolveRuntimeTarget, aU as runtimeSpawnEnv, aV as validateJsonSchema } from './client-C0KQKP8O.js';
1
+ import { R as RuntimeCompatibility } from './client-DVZHOtg6.js';
2
+ export { k as ADE_CLIENT_EVENTS, l as APPROVAL_DECISIONS, m as AccountInfo, n as AccountUsage, o as AdeChatClient, p as AdeClientEvent, q as AdeClientEventMap, g as AdeError, h as AdeErrorCode, r as AdeProvider, s as AdeThread, t as AgentChatCodexCollaborationMode, u as AgentChatEvent, A as AgentChatEventEnvelope, v as AgentChatFileRef, w as AgentChatHostConfigLevel, x as AgentChatInstructions, y as AgentChatSessionStatus, z as AgentChatSessionSummary, B as AgentChatSettingSources, C as ApiCredentialInfo, E as ApprovalDecision, F as ApprovalRequest, G as AttachmentRootCheck, H as AttachmentRootFilterResult, J as CapabilitiesChangedEvent, K as CreateAdeChatOptions, L as CreateDaexChatOptions, N as DAEX_CLIENT_EVENTS, O as DEFAULT_RELEASE_REPO, c as DaexChatClient, D as DaexClientEvent, a as DaexClientEventMap, i as DaexError, j as DaexErrorCode, Q as DaexProvider, U as DaexThread, V as DefaultModelOptions, W as DoctorReport, X as DownloadRequest, Y as DownloadResult, Z as EditLastOptions, _ as HistoryPageOptions, $ as HostConfigCapability, I as InstructionsCapability, a0 as InvalidOutputError, a1 as JsonSchema, a2 as KnownAgentChatEvent, a3 as MAX_ATTACHMENT_ROOTS, M as McpCapabilityReport, a4 as McpHeadersResolver, a5 as McpServerConfig, a6 as McpToolFilter, a7 as ModelCatalogEntry, a8 as PendingInputKind, a9 as PendingInputOption, aa as PendingInputQuestion, ab as PendingInputRequest, ac as PendingInputSource, b as PermissionCapability, ad as PermissionPreset, ae as ProviderCapabilities, P as ProviderStatus, af as ProviderStatusProbeRecord, ag as ProviderStatusRpcResult, ah as RunOptions, ai as RuntimeDownloader, aj as RuntimeTarget, ak as SUPPORTED_PROVIDERS, al as SendOptions, am as SetModelOptions, an as SetModelResult, S as SettingSourcesCapability, ao as SignInHandle, ap as SignInStatus, aq as SteerOptions, ar as SyntheticRuntimeLostStatusEvent, as as ThreadBudget, at as ThreadCapabilities, au as ThreadEventChannel, av as ThreadHistoryPage, aw as ThreadInstructions, ax as ThreadInterruptOptions, T as ThreadModelSelection, e as ThreadOpenOptions, ay as ThreadPermissionPolicy, az as ThreadQueueItem, aA as ThreadRefreshOptions, aB as ThreadRerunResult, aC as ThreadRespondOptions, f as ThreadResumeOptions, d as ThreadSummary, aD as ThreadUpdate, aE as ThreadUpdateOptions, aF as ThreadUpdateResult, aG as ThreadUsage, aH as Unsubscribe, aI as UsageLimitEvent, aJ as UsageLimitResume, aK as assetUrl, aL as checkAttachmentRoot, aM as createAdeChat, aN as createDaexChat, aO as filterAttachmentRoots, aP as isApprovalShaped, aQ as isSupportedProvider, aR as parseChecksums, aS as pickDefaultModel, aT as resolveRuntimeTarget, aU as runtimeSpawnEnv, aV as validateJsonSchema } from './client-DVZHOtg6.js';
3
3
 
4
4
  /**
5
5
  * The runtime versions this SDK build is written against.
@@ -86,7 +86,7 @@ declare function inferAttachmentType(filePath: string, mimeType?: string | null)
86
86
  *
87
87
  * A signed, notarized app carries the runtime as `extraResources`, at
88
88
  * `<resourcesPath>/ade-runtime/{bin,native}` — the layout of an
89
- * `@ade-dev/runtime-<target>` package, copied whole. Every such host then
89
+ * `@daex-dev/runtime-<target>` package, copied whole. Every such host then
90
90
  * wrote the same three `path.join` calls by hand and reported
91
91
  * `doctor().runtime.source` as `"explicit"`, which says nothing about whether
92
92
  * the app ran the copy it signed. This helper owns the layout and the label.
@@ -172,13 +172,15 @@ declare function endpointComparisonKey(value: string): string;
172
172
  * the bundle is one signed artifact, and a Mach-O executable that appears in
173
173
  * `userData` after the fact is outside it. So the runtime is also published the
174
174
  * way esbuild and swc publish theirs — one package per target, each carrying
175
- * `os` and `cpu`, listed as `optionalDependencies` of `@ade-dev/runtime` so npm
176
- * installs exactly one. The embedder copies that directory into their bundle
175
+ * `os` and `cpu`, listed as `optionalDependencies` of `@daex-dev/runtime` so npm
176
+ * installs exactly one. Runtimes published before the DAEX rename are the
177
+ * `@ade-dev/runtime-<target>` packages, still found when no `@daex-dev` one is
178
+ * installed. The embedder copies that directory into their bundle
177
179
  * and signs it with their own identity.
178
180
  *
179
181
  * Layout, which this module both expects and documents:
180
182
  *
181
- * @ade-dev/runtime-<target>/
183
+ * @daex-dev/runtime-<target>/ (or @ade-dev/runtime-<target>/)
182
184
  * package.json { os: [...], cpu: [...], version: <ade release> }
183
185
  * bin/daex[.exe] the runtime binary, mode 0755 (bin/ade[.exe] before
184
186
  * the DAEX rename; still accepted)
@@ -201,7 +203,7 @@ type BundledRuntime = {
201
203
  runtimeRoot: string;
202
204
  /** Absolute path that `ADE_RUNTIME_NODE_MODULES` must name. */
203
205
  nodeModulesPath: string;
204
- /** e.g. `@ade-dev/runtime-darwin-arm64`. */
206
+ /** e.g. `@daex-dev/runtime-darwin-arm64` (`@ade-dev/…` for an older package). */
205
207
  packageName: string;
206
208
  /** The DAEX release version the package was cut from. */
207
209
  version: string;
@@ -219,7 +221,8 @@ type ResolveBundledRuntimeOptions = {
219
221
  /** The platform package name for a runtime target, e.g. `darwin-arm64`. */
220
222
  declare function bundledRuntimePackageName(target: string): string;
221
223
  /**
222
- * Resolve the runtime from an installed `@ade-dev/runtime-*` package.
224
+ * Resolve the runtime from an installed `@daex-dev/runtime-*` package, or else
225
+ * an `@ade-dev/runtime-*` one.
223
226
  *
224
227
  * Returns `null` when no matching package is installed — the caller falls
225
228
  * through to the cache, PATH, or a download. Throws `binary_not_found` only