@omnicross/daemon 0.1.7 → 0.1.8

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
@@ -2,7 +2,7 @@ import * as _omnicross_core from '@omnicross/core';
2
2
  import { OutboundApiServerConfig, Logger, ProviderConfigSource, TransformerService, Transformer, ResolvedTransformerChain, ApiServerSettingsStore, PricingStore, AutomaticPricingSource, OutboundKeyDb, OutboundKeyDbRow, OutboundKeyPolicy, PricingEngine as PricingEngine$1 } from '@omnicross/core';
3
3
  import { ApiKeyPoolService } from '@omnicross/core/completion/ApiKeyPoolService';
4
4
  import { AllowanceSchedulingConfig, AccountProbeConfig, OutboundKeyDb as OutboundKeyDb$1, VoucherDb, KeySpendReader, OutboundApiServer } from '@omnicross/core/outbound-api';
5
- import { ProviderProxy } from '@omnicross/core/provider-proxy';
5
+ import { RouteLeaseManager, ProviderProxy } from '@omnicross/core/provider-proxy';
6
6
  import { UsageRecorder, PricingEngine } from '@omnicross/core/usage';
7
7
  import { SubscriptionCredentialStore, FetchLike, SubscriptionProviderRegistry, SubscriptionAccountService } from '@omnicross/subscriptions';
8
8
  import { AccountAllowanceSnapshot } from '@omnicross/contracts/account-allowance-types';
@@ -1831,6 +1831,7 @@ declare class IntegrationManager {
1831
1831
  /** Injectable PATH probe (tests stub this; default scans `process.env.PATH`). */
1832
1832
  type PathProbe = (candidate: string) => string | null;
1833
1833
  /** Open a NEW terminal window running `command [extraArgs…]` with `env` injected. */
1834
+ type TerminalCleanup = () => void;
1834
1835
  type TerminalOpener = (input: {
1835
1836
  cli: string;
1836
1837
  command: string;
@@ -1838,7 +1839,8 @@ type TerminalOpener = (input: {
1838
1839
  env: Record<string, string>;
1839
1840
  cwd?: string;
1840
1841
  platform: NodeJS.Platform;
1841
- }) => void;
1842
+ onFailure?: () => void;
1843
+ }) => void | TerminalCleanup;
1842
1844
  /**
1843
1845
  * Injectable shell runner for `POST /cli/:cli/install` (tests stub this; the
1844
1846
  * default execs the install command with a bounded timeout). Returns the host's
@@ -1947,6 +1949,8 @@ interface AdminApiDeps {
1947
1949
  readonly settingsStore: JsonApiServerSettingsStore;
1948
1950
  /** The running outbound server (status + live applyConfig). */
1949
1951
  readonly outboundApiServer: OutboundApiServer;
1952
+ /** Process-local machine-managed routing leases (optional for light embedders). */
1953
+ readonly routeLeaseManager?: RouteLeaseManager;
1950
1954
  /** Subscription accounts (token-free `listAll`). */
1951
1955
  readonly subscriptionAccounts: AdminAccountsLister;
1952
1956
  /**
@@ -2712,6 +2716,7 @@ interface Daemon {
2712
2716
  readonly keyDb: JsonOutboundKeyDb;
2713
2717
  readonly settingsStore: JsonApiServerSettingsStore;
2714
2718
  readonly providerProxy: ProviderProxy;
2719
+ readonly routeLeaseManager: RouteLeaseManager;
2715
2720
  readonly outboundApiServer: OutboundApiServer;
2716
2721
  /**
2717
2722
  * Multi-key load balancer. Wired into the proxy deps slot
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _omnicross_core from '@omnicross/core';
2
2
  import { OutboundApiServerConfig, Logger, ProviderConfigSource, TransformerService, Transformer, ResolvedTransformerChain, ApiServerSettingsStore, PricingStore, AutomaticPricingSource, OutboundKeyDb, OutboundKeyDbRow, OutboundKeyPolicy, PricingEngine as PricingEngine$1 } from '@omnicross/core';
3
3
  import { ApiKeyPoolService } from '@omnicross/core/completion/ApiKeyPoolService';
4
4
  import { AllowanceSchedulingConfig, AccountProbeConfig, OutboundKeyDb as OutboundKeyDb$1, VoucherDb, KeySpendReader, OutboundApiServer } from '@omnicross/core/outbound-api';
5
- import { ProviderProxy } from '@omnicross/core/provider-proxy';
5
+ import { RouteLeaseManager, ProviderProxy } from '@omnicross/core/provider-proxy';
6
6
  import { UsageRecorder, PricingEngine } from '@omnicross/core/usage';
7
7
  import { SubscriptionCredentialStore, FetchLike, SubscriptionProviderRegistry, SubscriptionAccountService } from '@omnicross/subscriptions';
8
8
  import { AccountAllowanceSnapshot } from '@omnicross/contracts/account-allowance-types';
@@ -1831,6 +1831,7 @@ declare class IntegrationManager {
1831
1831
  /** Injectable PATH probe (tests stub this; default scans `process.env.PATH`). */
1832
1832
  type PathProbe = (candidate: string) => string | null;
1833
1833
  /** Open a NEW terminal window running `command [extraArgs…]` with `env` injected. */
1834
+ type TerminalCleanup = () => void;
1834
1835
  type TerminalOpener = (input: {
1835
1836
  cli: string;
1836
1837
  command: string;
@@ -1838,7 +1839,8 @@ type TerminalOpener = (input: {
1838
1839
  env: Record<string, string>;
1839
1840
  cwd?: string;
1840
1841
  platform: NodeJS.Platform;
1841
- }) => void;
1842
+ onFailure?: () => void;
1843
+ }) => void | TerminalCleanup;
1842
1844
  /**
1843
1845
  * Injectable shell runner for `POST /cli/:cli/install` (tests stub this; the
1844
1846
  * default execs the install command with a bounded timeout). Returns the host's
@@ -1947,6 +1949,8 @@ interface AdminApiDeps {
1947
1949
  readonly settingsStore: JsonApiServerSettingsStore;
1948
1950
  /** The running outbound server (status + live applyConfig). */
1949
1951
  readonly outboundApiServer: OutboundApiServer;
1952
+ /** Process-local machine-managed routing leases (optional for light embedders). */
1953
+ readonly routeLeaseManager?: RouteLeaseManager;
1950
1954
  /** Subscription accounts (token-free `listAll`). */
1951
1955
  readonly subscriptionAccounts: AdminAccountsLister;
1952
1956
  /**
@@ -2712,6 +2716,7 @@ interface Daemon {
2712
2716
  readonly keyDb: JsonOutboundKeyDb;
2713
2717
  readonly settingsStore: JsonApiServerSettingsStore;
2714
2718
  readonly providerProxy: ProviderProxy;
2719
+ readonly routeLeaseManager: RouteLeaseManager;
2715
2720
  readonly outboundApiServer: OutboundApiServer;
2716
2721
  /**
2717
2722
  * Multi-key load balancer. Wired into the proxy deps slot