@codeam/shared 2.61.98 → 2.61.99
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.mts +86 -1
- package/dist/index.d.ts +86 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1627,6 +1627,91 @@ interface HeadroomStatus {
|
|
|
1627
1627
|
savings?: number;
|
|
1628
1628
|
error?: string;
|
|
1629
1629
|
}
|
|
1630
|
+
/** One provider/model slice inside a rollup bucket. */
|
|
1631
|
+
interface HeadroomUsageSlice {
|
|
1632
|
+
/** Tokens Headroom removed in this bucket (a DELTA, not cumulative). */
|
|
1633
|
+
tokens_saved: number;
|
|
1634
|
+
compression_savings_usd_delta: number;
|
|
1635
|
+
total_input_tokens_delta: number;
|
|
1636
|
+
total_input_cost_usd_delta: number;
|
|
1637
|
+
}
|
|
1638
|
+
/**
|
|
1639
|
+
* One rollup bucket. ⚠️ The `*_delta` fields (and `tokens_saved`) are
|
|
1640
|
+
* PER-BUCKET; the bare `total_*` fields are the CUMULATIVE value at the
|
|
1641
|
+
* bucket's end. Chart the deltas, show the totals as headline figures.
|
|
1642
|
+
*/
|
|
1643
|
+
interface HeadroomUsageBucket {
|
|
1644
|
+
/** Bucket start, UTC ISO-8601. */
|
|
1645
|
+
timestamp: string;
|
|
1646
|
+
tokens_saved: number;
|
|
1647
|
+
compression_savings_usd_delta: number;
|
|
1648
|
+
total_tokens_saved: number;
|
|
1649
|
+
compression_savings_usd: number;
|
|
1650
|
+
total_input_tokens_delta: number;
|
|
1651
|
+
total_input_tokens: number;
|
|
1652
|
+
total_input_cost_usd_delta: number;
|
|
1653
|
+
total_input_cost_usd: number;
|
|
1654
|
+
by_provider: Record<string, HeadroomUsageSlice>;
|
|
1655
|
+
by_model: Record<string, HeadroomUsageSlice>;
|
|
1656
|
+
}
|
|
1657
|
+
type HeadroomUsageGranularity = 'hourly' | 'daily' | 'weekly' | 'monthly';
|
|
1658
|
+
/** Lifetime / current-window totals. */
|
|
1659
|
+
interface HeadroomUsageTotals {
|
|
1660
|
+
requests: number;
|
|
1661
|
+
tokens_saved: number;
|
|
1662
|
+
compression_savings_usd: number;
|
|
1663
|
+
total_input_tokens: number;
|
|
1664
|
+
total_input_cost_usd: number;
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* The token-usage report the CLI relays for the `headroom_usage` command — a
|
|
1668
|
+
* TRIMMED projection of the proxy's `GET /stats-history` (schema_version 3,
|
|
1669
|
+
* verified live against headroom 0.27.0).
|
|
1670
|
+
*
|
|
1671
|
+
* ⚠️ Trimmed ON THE BOX before it ever leaves, for three reasons:
|
|
1672
|
+
* - the raw response is ~150 KB (and `history_mode=full` is ~1.1 MB) — too
|
|
1673
|
+
* heavy for the command relay; dropping the raw `history[]` and capping the
|
|
1674
|
+
* hourly series brings it to ~23 KB.
|
|
1675
|
+
* - `history[]` carries CUMULATIVE counters that would have to be diffed,
|
|
1676
|
+
* while `series[]` already provides per-bucket deltas AND the
|
|
1677
|
+
* `by_model` / `by_provider` breakdown (richer than Headroom's own CSV
|
|
1678
|
+
* export, which has no model column).
|
|
1679
|
+
* - the proxy's `storage_path` leaks a local filesystem path (including the
|
|
1680
|
+
* OS username) and is stripped.
|
|
1681
|
+
*/
|
|
1682
|
+
interface HeadroomUsageReport {
|
|
1683
|
+
/** Headroom's own payload schema version (3 at time of writing). */
|
|
1684
|
+
schemaVersion: number;
|
|
1685
|
+
/** When the proxy generated the snapshot (UTC ISO-8601). */
|
|
1686
|
+
generatedAt: string;
|
|
1687
|
+
/** Proxy version that produced it, when known. */
|
|
1688
|
+
proxyVersion?: string;
|
|
1689
|
+
/** Durable, all-time totals across proxy restarts. */
|
|
1690
|
+
lifetime: HeadroomUsageTotals;
|
|
1691
|
+
/** The proxy's current display session (rolls over after inactivity). */
|
|
1692
|
+
currentSession?: HeadroomUsageTotals & {
|
|
1693
|
+
savings_percent?: number;
|
|
1694
|
+
started_at?: string | null;
|
|
1695
|
+
last_activity_at?: string | null;
|
|
1696
|
+
};
|
|
1697
|
+
/** Rollups. `hourly` is capped to the most recent buckets to bound size. */
|
|
1698
|
+
series: Partial<Record<HeadroomUsageGranularity, HeadroomUsageBucket[]>>;
|
|
1699
|
+
/** The proxy's retention policy, so the UI can state the window honestly. */
|
|
1700
|
+
retention?: {
|
|
1701
|
+
max_history_points?: number;
|
|
1702
|
+
max_history_age_days?: number;
|
|
1703
|
+
};
|
|
1704
|
+
}
|
|
1705
|
+
/** Result of the `headroom_usage` relay command. */
|
|
1706
|
+
interface HeadroomUsageResult {
|
|
1707
|
+
/** False when the proxy isn't reachable / Headroom isn't active here. */
|
|
1708
|
+
available: boolean;
|
|
1709
|
+
report?: HeadroomUsageReport;
|
|
1710
|
+
/** Human-readable reason when `available` is false. */
|
|
1711
|
+
error?: string;
|
|
1712
|
+
}
|
|
1713
|
+
/** Relay command type for pulling the token-usage report. */
|
|
1714
|
+
declare const HEADROOM_USAGE_COMMAND = "headroom_usage";
|
|
1630
1715
|
|
|
1631
1716
|
/**
|
|
1632
1717
|
* Headroom provisioning manifest — the SINGLE source of truth for what a
|
|
@@ -1824,4 +1909,4 @@ type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
|
|
|
1824
1909
|
*/
|
|
1825
1910
|
declare const PREVIEW_DETECT_PROMPT: string;
|
|
1826
1911
|
|
|
1827
|
-
export { AGENT_REGISTRY, AGENT_STANDARD_BLOCK, AGENT_STANDARD_MARKER, AGENT_STANDARD_TEXT, type AgentAuth, type AgentAuthKind, type AgentId, type AgentMetadata, type AgentMode, type AgentModel, type AgentReviewFinding, type AgentReviewPlan, type AgentReviewReport, type AnswerResolvedEvent, type AwaitingAnswerEvent, type BeadsActionCommand, type BeadsActionKind, type BeadsActionPayload, type BeadsActionRequest, type BeadsActionType, type BeadsConfigureAction, type BeadsDependencyDto, type BeadsDependencyKind, type BeadsIngestPayload, type BeadsIssueDto, type BeadsIssueStatus, type BeadsMemoryDto, type BeadsProjectDto, type BeadsProvisioningPayload, type BeadsProvisioningStatus, type BeadsSnapshotDto, type BeadsStatus, type BeadsStatusState, type BeadsStatusSummary, type BlameLineWire, type BrokeredIntegrationToken, CODER_PROMPT, type ChromeStep, type ChromeToolType, type CommitEntryWire, DEFAULT_API_BASE_URL, DEFAULT_GUARDRAIL_POLICY, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DerivedCredentialSource, type EnvVar, type FileBlameEvent, type FileChangeStatus, type FileChangedEvent, type FileHistoryEvent, type FileReviewStatus, GUARDRAIL_CATEGORIES, GUARDRAIL_CATEGORY_META, GUARDRAIL_CONFIGURE_COMMAND, GUARDRAIL_DISPOSITIONS, type GuardrailCategory, type GuardrailCategoryMeta, type GuardrailDisposition, type GuardrailPolicy, HEADROOM_BACKEND_ENV, HEADROOM_EXTRAS_BY_SURFACE, HEADROOM_MODELS, HEADROOM_PIP_COMPANIONS, HEADROOM_PROXY_PORT, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HeadroomBudgetCommand, type HeadroomBudgetPeriod, type HeadroomBudgetUsage, type HeadroomKind, type HeadroomModelSpec, type HeadroomPythonRenderOpts, type HeadroomStatus, type HeadroomStep, type HeadroomSurface, type HunkLineType, INTEGRATION_BRANDING, INTEGRATION_REGISTRY, INTERNAL_TO_PUBLIC, type InputSuggestionChunk, type IntegrationApiKeyField, type IntegrationAuthKind, type IntegrationBranding, type IntegrationCategory, type IntegrationDefinition, type IntegrationDelivery, type IntegrationHealth, type IntegrationId, type IntegrationMcpDelivery, type IntegrationStatus, type IntegrationsManifest, type IntegrationsManifestEntry, LINKED_AGENT_IDS, type LinkedAgentId, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_REGISTRY, PACK_START_COMMAND, PACK_STATUS_COMMAND, PACK_WORKFLOW_ARTICLE, PREVIEW_DETECT_PROMPT, PROTOCOL_VERSION, PUBLIC_TO_INTERNAL, type PackActionKind, type PackActionPayload, type PackDefinition, type PackHandoffRecord, type PackId, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewDetection, type PreviewErrorStage, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SKILL_REGISTRY, SPECIFIER_PROMPT, SSE_SOCKET_TIMEOUT_MS, STACK_TO_RECOMMENDED, type SelectPrompt, type SkillDefinition, type SkillDelivery, type SkillFileDelivery, type SkillId, type SkillRail, type SkillsManifest, type SkillsManifestEntry, type StreamingChunkEvent, type StreamingChunkKind, TERMINAL_AGENT_PREFIX, UNKNOWN_MODEL_PRICING, UPCOMING_INTEGRATION_IDS, USER_EVENTS, type UserEventName, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
|
|
1912
|
+
export { AGENT_REGISTRY, AGENT_STANDARD_BLOCK, AGENT_STANDARD_MARKER, AGENT_STANDARD_TEXT, type AgentAuth, type AgentAuthKind, type AgentId, type AgentMetadata, type AgentMode, type AgentModel, type AgentReviewFinding, type AgentReviewPlan, type AgentReviewReport, type AnswerResolvedEvent, type AwaitingAnswerEvent, type BeadsActionCommand, type BeadsActionKind, type BeadsActionPayload, type BeadsActionRequest, type BeadsActionType, type BeadsConfigureAction, type BeadsDependencyDto, type BeadsDependencyKind, type BeadsIngestPayload, type BeadsIssueDto, type BeadsIssueStatus, type BeadsMemoryDto, type BeadsProjectDto, type BeadsProvisioningPayload, type BeadsProvisioningStatus, type BeadsSnapshotDto, type BeadsStatus, type BeadsStatusState, type BeadsStatusSummary, type BlameLineWire, type BrokeredIntegrationToken, CODER_PROMPT, type ChromeStep, type ChromeToolType, type CommitEntryWire, DEFAULT_API_BASE_URL, DEFAULT_GUARDRAIL_POLICY, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DerivedCredentialSource, type EnvVar, type FileBlameEvent, type FileChangeStatus, type FileChangedEvent, type FileHistoryEvent, type FileReviewStatus, GUARDRAIL_CATEGORIES, GUARDRAIL_CATEGORY_META, GUARDRAIL_CONFIGURE_COMMAND, GUARDRAIL_DISPOSITIONS, type GuardrailCategory, type GuardrailCategoryMeta, type GuardrailDisposition, type GuardrailPolicy, HEADROOM_BACKEND_ENV, HEADROOM_EXTRAS_BY_SURFACE, HEADROOM_MODELS, HEADROOM_PIP_COMPANIONS, HEADROOM_PROXY_PORT, HEADROOM_USAGE_COMMAND, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HeadroomBudgetCommand, type HeadroomBudgetPeriod, type HeadroomBudgetUsage, type HeadroomKind, type HeadroomModelSpec, type HeadroomPythonRenderOpts, type HeadroomStatus, type HeadroomStep, type HeadroomSurface, type HeadroomUsageBucket, type HeadroomUsageGranularity, type HeadroomUsageReport, type HeadroomUsageResult, type HeadroomUsageSlice, type HeadroomUsageTotals, type HunkLineType, INTEGRATION_BRANDING, INTEGRATION_REGISTRY, INTERNAL_TO_PUBLIC, type InputSuggestionChunk, type IntegrationApiKeyField, type IntegrationAuthKind, type IntegrationBranding, type IntegrationCategory, type IntegrationDefinition, type IntegrationDelivery, type IntegrationHealth, type IntegrationId, type IntegrationMcpDelivery, type IntegrationStatus, type IntegrationsManifest, type IntegrationsManifestEntry, LINKED_AGENT_IDS, type LinkedAgentId, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_REGISTRY, PACK_START_COMMAND, PACK_STATUS_COMMAND, PACK_WORKFLOW_ARTICLE, PREVIEW_DETECT_PROMPT, PROTOCOL_VERSION, PUBLIC_TO_INTERNAL, type PackActionKind, type PackActionPayload, type PackDefinition, type PackHandoffRecord, type PackId, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewDetection, type PreviewErrorStage, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SKILL_REGISTRY, SPECIFIER_PROMPT, SSE_SOCKET_TIMEOUT_MS, STACK_TO_RECOMMENDED, type SelectPrompt, type SkillDefinition, type SkillDelivery, type SkillFileDelivery, type SkillId, type SkillRail, type SkillsManifest, type SkillsManifestEntry, type StreamingChunkEvent, type StreamingChunkKind, TERMINAL_AGENT_PREFIX, UNKNOWN_MODEL_PRICING, UPCOMING_INTEGRATION_IDS, USER_EVENTS, type UserEventName, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
|
package/dist/index.d.ts
CHANGED
|
@@ -1627,6 +1627,91 @@ interface HeadroomStatus {
|
|
|
1627
1627
|
savings?: number;
|
|
1628
1628
|
error?: string;
|
|
1629
1629
|
}
|
|
1630
|
+
/** One provider/model slice inside a rollup bucket. */
|
|
1631
|
+
interface HeadroomUsageSlice {
|
|
1632
|
+
/** Tokens Headroom removed in this bucket (a DELTA, not cumulative). */
|
|
1633
|
+
tokens_saved: number;
|
|
1634
|
+
compression_savings_usd_delta: number;
|
|
1635
|
+
total_input_tokens_delta: number;
|
|
1636
|
+
total_input_cost_usd_delta: number;
|
|
1637
|
+
}
|
|
1638
|
+
/**
|
|
1639
|
+
* One rollup bucket. ⚠️ The `*_delta` fields (and `tokens_saved`) are
|
|
1640
|
+
* PER-BUCKET; the bare `total_*` fields are the CUMULATIVE value at the
|
|
1641
|
+
* bucket's end. Chart the deltas, show the totals as headline figures.
|
|
1642
|
+
*/
|
|
1643
|
+
interface HeadroomUsageBucket {
|
|
1644
|
+
/** Bucket start, UTC ISO-8601. */
|
|
1645
|
+
timestamp: string;
|
|
1646
|
+
tokens_saved: number;
|
|
1647
|
+
compression_savings_usd_delta: number;
|
|
1648
|
+
total_tokens_saved: number;
|
|
1649
|
+
compression_savings_usd: number;
|
|
1650
|
+
total_input_tokens_delta: number;
|
|
1651
|
+
total_input_tokens: number;
|
|
1652
|
+
total_input_cost_usd_delta: number;
|
|
1653
|
+
total_input_cost_usd: number;
|
|
1654
|
+
by_provider: Record<string, HeadroomUsageSlice>;
|
|
1655
|
+
by_model: Record<string, HeadroomUsageSlice>;
|
|
1656
|
+
}
|
|
1657
|
+
type HeadroomUsageGranularity = 'hourly' | 'daily' | 'weekly' | 'monthly';
|
|
1658
|
+
/** Lifetime / current-window totals. */
|
|
1659
|
+
interface HeadroomUsageTotals {
|
|
1660
|
+
requests: number;
|
|
1661
|
+
tokens_saved: number;
|
|
1662
|
+
compression_savings_usd: number;
|
|
1663
|
+
total_input_tokens: number;
|
|
1664
|
+
total_input_cost_usd: number;
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* The token-usage report the CLI relays for the `headroom_usage` command — a
|
|
1668
|
+
* TRIMMED projection of the proxy's `GET /stats-history` (schema_version 3,
|
|
1669
|
+
* verified live against headroom 0.27.0).
|
|
1670
|
+
*
|
|
1671
|
+
* ⚠️ Trimmed ON THE BOX before it ever leaves, for three reasons:
|
|
1672
|
+
* - the raw response is ~150 KB (and `history_mode=full` is ~1.1 MB) — too
|
|
1673
|
+
* heavy for the command relay; dropping the raw `history[]` and capping the
|
|
1674
|
+
* hourly series brings it to ~23 KB.
|
|
1675
|
+
* - `history[]` carries CUMULATIVE counters that would have to be diffed,
|
|
1676
|
+
* while `series[]` already provides per-bucket deltas AND the
|
|
1677
|
+
* `by_model` / `by_provider` breakdown (richer than Headroom's own CSV
|
|
1678
|
+
* export, which has no model column).
|
|
1679
|
+
* - the proxy's `storage_path` leaks a local filesystem path (including the
|
|
1680
|
+
* OS username) and is stripped.
|
|
1681
|
+
*/
|
|
1682
|
+
interface HeadroomUsageReport {
|
|
1683
|
+
/** Headroom's own payload schema version (3 at time of writing). */
|
|
1684
|
+
schemaVersion: number;
|
|
1685
|
+
/** When the proxy generated the snapshot (UTC ISO-8601). */
|
|
1686
|
+
generatedAt: string;
|
|
1687
|
+
/** Proxy version that produced it, when known. */
|
|
1688
|
+
proxyVersion?: string;
|
|
1689
|
+
/** Durable, all-time totals across proxy restarts. */
|
|
1690
|
+
lifetime: HeadroomUsageTotals;
|
|
1691
|
+
/** The proxy's current display session (rolls over after inactivity). */
|
|
1692
|
+
currentSession?: HeadroomUsageTotals & {
|
|
1693
|
+
savings_percent?: number;
|
|
1694
|
+
started_at?: string | null;
|
|
1695
|
+
last_activity_at?: string | null;
|
|
1696
|
+
};
|
|
1697
|
+
/** Rollups. `hourly` is capped to the most recent buckets to bound size. */
|
|
1698
|
+
series: Partial<Record<HeadroomUsageGranularity, HeadroomUsageBucket[]>>;
|
|
1699
|
+
/** The proxy's retention policy, so the UI can state the window honestly. */
|
|
1700
|
+
retention?: {
|
|
1701
|
+
max_history_points?: number;
|
|
1702
|
+
max_history_age_days?: number;
|
|
1703
|
+
};
|
|
1704
|
+
}
|
|
1705
|
+
/** Result of the `headroom_usage` relay command. */
|
|
1706
|
+
interface HeadroomUsageResult {
|
|
1707
|
+
/** False when the proxy isn't reachable / Headroom isn't active here. */
|
|
1708
|
+
available: boolean;
|
|
1709
|
+
report?: HeadroomUsageReport;
|
|
1710
|
+
/** Human-readable reason when `available` is false. */
|
|
1711
|
+
error?: string;
|
|
1712
|
+
}
|
|
1713
|
+
/** Relay command type for pulling the token-usage report. */
|
|
1714
|
+
declare const HEADROOM_USAGE_COMMAND = "headroom_usage";
|
|
1630
1715
|
|
|
1631
1716
|
/**
|
|
1632
1717
|
* Headroom provisioning manifest — the SINGLE source of truth for what a
|
|
@@ -1824,4 +1909,4 @@ type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
|
|
|
1824
1909
|
*/
|
|
1825
1910
|
declare const PREVIEW_DETECT_PROMPT: string;
|
|
1826
1911
|
|
|
1827
|
-
export { AGENT_REGISTRY, AGENT_STANDARD_BLOCK, AGENT_STANDARD_MARKER, AGENT_STANDARD_TEXT, type AgentAuth, type AgentAuthKind, type AgentId, type AgentMetadata, type AgentMode, type AgentModel, type AgentReviewFinding, type AgentReviewPlan, type AgentReviewReport, type AnswerResolvedEvent, type AwaitingAnswerEvent, type BeadsActionCommand, type BeadsActionKind, type BeadsActionPayload, type BeadsActionRequest, type BeadsActionType, type BeadsConfigureAction, type BeadsDependencyDto, type BeadsDependencyKind, type BeadsIngestPayload, type BeadsIssueDto, type BeadsIssueStatus, type BeadsMemoryDto, type BeadsProjectDto, type BeadsProvisioningPayload, type BeadsProvisioningStatus, type BeadsSnapshotDto, type BeadsStatus, type BeadsStatusState, type BeadsStatusSummary, type BlameLineWire, type BrokeredIntegrationToken, CODER_PROMPT, type ChromeStep, type ChromeToolType, type CommitEntryWire, DEFAULT_API_BASE_URL, DEFAULT_GUARDRAIL_POLICY, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DerivedCredentialSource, type EnvVar, type FileBlameEvent, type FileChangeStatus, type FileChangedEvent, type FileHistoryEvent, type FileReviewStatus, GUARDRAIL_CATEGORIES, GUARDRAIL_CATEGORY_META, GUARDRAIL_CONFIGURE_COMMAND, GUARDRAIL_DISPOSITIONS, type GuardrailCategory, type GuardrailCategoryMeta, type GuardrailDisposition, type GuardrailPolicy, HEADROOM_BACKEND_ENV, HEADROOM_EXTRAS_BY_SURFACE, HEADROOM_MODELS, HEADROOM_PIP_COMPANIONS, HEADROOM_PROXY_PORT, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HeadroomBudgetCommand, type HeadroomBudgetPeriod, type HeadroomBudgetUsage, type HeadroomKind, type HeadroomModelSpec, type HeadroomPythonRenderOpts, type HeadroomStatus, type HeadroomStep, type HeadroomSurface, type HunkLineType, INTEGRATION_BRANDING, INTEGRATION_REGISTRY, INTERNAL_TO_PUBLIC, type InputSuggestionChunk, type IntegrationApiKeyField, type IntegrationAuthKind, type IntegrationBranding, type IntegrationCategory, type IntegrationDefinition, type IntegrationDelivery, type IntegrationHealth, type IntegrationId, type IntegrationMcpDelivery, type IntegrationStatus, type IntegrationsManifest, type IntegrationsManifestEntry, LINKED_AGENT_IDS, type LinkedAgentId, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_REGISTRY, PACK_START_COMMAND, PACK_STATUS_COMMAND, PACK_WORKFLOW_ARTICLE, PREVIEW_DETECT_PROMPT, PROTOCOL_VERSION, PUBLIC_TO_INTERNAL, type PackActionKind, type PackActionPayload, type PackDefinition, type PackHandoffRecord, type PackId, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewDetection, type PreviewErrorStage, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SKILL_REGISTRY, SPECIFIER_PROMPT, SSE_SOCKET_TIMEOUT_MS, STACK_TO_RECOMMENDED, type SelectPrompt, type SkillDefinition, type SkillDelivery, type SkillFileDelivery, type SkillId, type SkillRail, type SkillsManifest, type SkillsManifestEntry, type StreamingChunkEvent, type StreamingChunkKind, TERMINAL_AGENT_PREFIX, UNKNOWN_MODEL_PRICING, UPCOMING_INTEGRATION_IDS, USER_EVENTS, type UserEventName, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
|
|
1912
|
+
export { AGENT_REGISTRY, AGENT_STANDARD_BLOCK, AGENT_STANDARD_MARKER, AGENT_STANDARD_TEXT, type AgentAuth, type AgentAuthKind, type AgentId, type AgentMetadata, type AgentMode, type AgentModel, type AgentReviewFinding, type AgentReviewPlan, type AgentReviewReport, type AnswerResolvedEvent, type AwaitingAnswerEvent, type BeadsActionCommand, type BeadsActionKind, type BeadsActionPayload, type BeadsActionRequest, type BeadsActionType, type BeadsConfigureAction, type BeadsDependencyDto, type BeadsDependencyKind, type BeadsIngestPayload, type BeadsIssueDto, type BeadsIssueStatus, type BeadsMemoryDto, type BeadsProjectDto, type BeadsProvisioningPayload, type BeadsProvisioningStatus, type BeadsSnapshotDto, type BeadsStatus, type BeadsStatusState, type BeadsStatusSummary, type BlameLineWire, type BrokeredIntegrationToken, CODER_PROMPT, type ChromeStep, type ChromeToolType, type CommitEntryWire, DEFAULT_API_BASE_URL, DEFAULT_GUARDRAIL_POLICY, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DerivedCredentialSource, type EnvVar, type FileBlameEvent, type FileChangeStatus, type FileChangedEvent, type FileHistoryEvent, type FileReviewStatus, GUARDRAIL_CATEGORIES, GUARDRAIL_CATEGORY_META, GUARDRAIL_CONFIGURE_COMMAND, GUARDRAIL_DISPOSITIONS, type GuardrailCategory, type GuardrailCategoryMeta, type GuardrailDisposition, type GuardrailPolicy, HEADROOM_BACKEND_ENV, HEADROOM_EXTRAS_BY_SURFACE, HEADROOM_MODELS, HEADROOM_PIP_COMPANIONS, HEADROOM_PROXY_PORT, HEADROOM_USAGE_COMMAND, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HeadroomBudgetCommand, type HeadroomBudgetPeriod, type HeadroomBudgetUsage, type HeadroomKind, type HeadroomModelSpec, type HeadroomPythonRenderOpts, type HeadroomStatus, type HeadroomStep, type HeadroomSurface, type HeadroomUsageBucket, type HeadroomUsageGranularity, type HeadroomUsageReport, type HeadroomUsageResult, type HeadroomUsageSlice, type HeadroomUsageTotals, type HunkLineType, INTEGRATION_BRANDING, INTEGRATION_REGISTRY, INTERNAL_TO_PUBLIC, type InputSuggestionChunk, type IntegrationApiKeyField, type IntegrationAuthKind, type IntegrationBranding, type IntegrationCategory, type IntegrationDefinition, type IntegrationDelivery, type IntegrationHealth, type IntegrationId, type IntegrationMcpDelivery, type IntegrationStatus, type IntegrationsManifest, type IntegrationsManifestEntry, LINKED_AGENT_IDS, type LinkedAgentId, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_REGISTRY, PACK_START_COMMAND, PACK_STATUS_COMMAND, PACK_WORKFLOW_ARTICLE, PREVIEW_DETECT_PROMPT, PROTOCOL_VERSION, PUBLIC_TO_INTERNAL, type PackActionKind, type PackActionPayload, type PackDefinition, type PackHandoffRecord, type PackId, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewDetection, type PreviewErrorStage, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SKILL_REGISTRY, SPECIFIER_PROMPT, SSE_SOCKET_TIMEOUT_MS, STACK_TO_RECOMMENDED, type SelectPrompt, type SkillDefinition, type SkillDelivery, type SkillFileDelivery, type SkillId, type SkillRail, type SkillsManifest, type SkillsManifestEntry, type StreamingChunkEvent, type StreamingChunkKind, TERMINAL_AGENT_PREFIX, UNKNOWN_MODEL_PRICING, UPCOMING_INTEGRATION_IDS, USER_EVENTS, type UserEventName, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
HEADROOM_MODELS: () => HEADROOM_MODELS,
|
|
39
39
|
HEADROOM_PIP_COMPANIONS: () => HEADROOM_PIP_COMPANIONS,
|
|
40
40
|
HEADROOM_PROXY_PORT: () => HEADROOM_PROXY_PORT,
|
|
41
|
+
HEADROOM_USAGE_COMMAND: () => HEADROOM_USAGE_COMMAND,
|
|
41
42
|
HEARTBEAT_INTERVAL_MS_DEFAULT: () => HEARTBEAT_INTERVAL_MS_DEFAULT,
|
|
42
43
|
HOUSE_AGENT_ID: () => HOUSE_AGENT_ID,
|
|
43
44
|
HOUSE_AGENT_NAME: () => HOUSE_AGENT_NAME,
|
|
@@ -2692,6 +2693,9 @@ function resolveApiBaseUrl() {
|
|
|
2692
2693
|
return DEFAULT_API_BASE_URL;
|
|
2693
2694
|
}
|
|
2694
2695
|
|
|
2696
|
+
// src/types/headroom.ts
|
|
2697
|
+
var HEADROOM_USAGE_COMMAND = "headroom_usage";
|
|
2698
|
+
|
|
2695
2699
|
// src/headroom/manifest.ts
|
|
2696
2700
|
var HEADROOM_PROXY_PORT = 8787;
|
|
2697
2701
|
var HEADROOM_BACKEND_ENV = {
|
|
@@ -2904,6 +2908,7 @@ OUTPUT JSON ONLY. NO MARKDOWN. NO COMMENTARY.
|
|
|
2904
2908
|
HEADROOM_MODELS,
|
|
2905
2909
|
HEADROOM_PIP_COMPANIONS,
|
|
2906
2910
|
HEADROOM_PROXY_PORT,
|
|
2911
|
+
HEADROOM_USAGE_COMMAND,
|
|
2907
2912
|
HEARTBEAT_INTERVAL_MS_DEFAULT,
|
|
2908
2913
|
HOUSE_AGENT_ID,
|
|
2909
2914
|
HOUSE_AGENT_NAME,
|