@granular-software/sdk 0.4.72 → 0.4.74
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/agent-evals.d.mts +2 -2
- package/dist/agent-evals.d.ts +2 -2
- package/dist/agent-evals.js +64 -21
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +64 -21
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/cli/index.js +80 -21
- package/dist/{client-p5EhOwpP.d.mts → client-6d1OsWJf.d.mts} +4 -2
- package/dist/{client-JCISbded.d.ts → client-DdEXINlv.d.ts} +4 -2
- package/dist/index.d.mts +27 -4
- package/dist/index.d.ts +27 -4
- package/dist/index.js +477 -401
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +477 -402
- package/dist/index.mjs.map +1 -1
- package/dist/{spend-lJDtuAr6.d.mts → spend-DBRQOSaj.d.mts} +20 -1
- package/dist/{spend-lJDtuAr6.d.ts → spend-DBRQOSaj.d.ts} +20 -1
- package/dist/spend.d.mts +1 -1
- package/dist/spend.d.ts +1 -1
- package/package.json +1 -1
|
@@ -612,6 +612,8 @@ interface GranularOptions {
|
|
|
612
612
|
token?: string;
|
|
613
613
|
/** Optional provider used to refresh JWT before authenticated requests and WebSocket (re)connect attempts */
|
|
614
614
|
tokenProvider?: AccessTokenProvider;
|
|
615
|
+
/** Optional key per logical GraphQL request. Preserve the key when explicitly replaying a request; no automatic retry is added. */
|
|
616
|
+
graphqlIdempotencyKey?: (query: string, variables?: Record<string, unknown>) => string;
|
|
615
617
|
/** Optional API URL (for on-prem or testing) */
|
|
616
618
|
apiUrl?: string;
|
|
617
619
|
/** Optional live effect-host WebSocket/base URL override (for local/on-prem routing) */
|
|
@@ -1285,6 +1287,8 @@ type CommitDeclaration<TResult = any> = {
|
|
|
1285
1287
|
} | {
|
|
1286
1288
|
kind: "transition";
|
|
1287
1289
|
project: ProjectionMapper<TResult, TransitionProjectionResult>;
|
|
1290
|
+
/** Automatic snapshot mappers select by product state; custom mappers select an explicit key. */
|
|
1291
|
+
outcomeSelection?: "explicit" | "product_state";
|
|
1288
1292
|
};
|
|
1289
1293
|
type AgentCommitStatus = "not_requested" | "pending" | "syncing" | "synced" | "failed" | "reconciling";
|
|
1290
1294
|
interface CommitChangeReceipt {
|
|
@@ -2069,6 +2073,8 @@ interface SessionArtifactExecutionResult {
|
|
|
2069
2073
|
}
|
|
2070
2074
|
interface SessionArtifactExecutionOptions {
|
|
2071
2075
|
idempotencyKey: string;
|
|
2076
|
+
/** Execute only the artifact revision that was reviewed by the caller. */
|
|
2077
|
+
expectedUpdatedAt?: number;
|
|
2072
2078
|
}
|
|
2073
2079
|
interface SessionArtifactApprovalOptions extends SessionArtifactExecutionOptions {
|
|
2074
2080
|
approved: boolean;
|
|
@@ -2393,6 +2399,13 @@ interface UserEnvironmentMessagePreview {
|
|
|
2393
2399
|
/** Latest occurrence that independently creates unread state. */
|
|
2394
2400
|
unreadProducingSequence: number;
|
|
2395
2401
|
}
|
|
2402
|
+
interface UserEnvironmentArtifactAttention {
|
|
2403
|
+
artifactId: string;
|
|
2404
|
+
label: string;
|
|
2405
|
+
status: SessionArtifactStatus;
|
|
2406
|
+
requiresInput: boolean;
|
|
2407
|
+
policyConfirmationPromptId?: string;
|
|
2408
|
+
}
|
|
2396
2409
|
interface UserEnvironmentSessionState {
|
|
2397
2410
|
session: ConversationSessionInfo;
|
|
2398
2411
|
status: "active" | "closed" | "running" | "awaiting_input" | "unread";
|
|
@@ -2401,6 +2414,12 @@ interface UserEnvironmentSessionState {
|
|
|
2401
2414
|
readThroughSequence: number;
|
|
2402
2415
|
messagePreview: UserEnvironmentMessagePreview;
|
|
2403
2416
|
prompts: UserEnvironmentPrompt[];
|
|
2417
|
+
/** Compact attention summaries; full records are fetched when a chat opens. */
|
|
2418
|
+
artifacts?: Array<UserEnvironmentArtifactAttention | SessionArtifactRecord>;
|
|
2419
|
+
/** Total actionable artifacts, including hints omitted from the bounded index. */
|
|
2420
|
+
artifactAttentionCount?: number;
|
|
2421
|
+
/** Actionable artifacts already represented by a policy-confirmation prompt. */
|
|
2422
|
+
artifactPolicyConfirmationCount?: number;
|
|
2404
2423
|
runningJobCount: number;
|
|
2405
2424
|
latestJobStatus: string | null;
|
|
2406
2425
|
}
|
|
@@ -3280,4 +3299,4 @@ declare function toGranularHttpBase(apiUrl: string): string;
|
|
|
3280
3299
|
declare function buildOpenAISpendEventId(usage: Pick<OpenAIUsageSpendEvent, "requestId">, context?: GranularSpendContext): string | undefined;
|
|
3281
3300
|
declare function recordOpenAIUsageSpend(options: RecordOpenAIUsageSpendOptions): Promise<RecordOpenAIUsageSpendResult>;
|
|
3282
3301
|
|
|
3283
|
-
export { type NormalizedSuggestedArtifact as $, type ArtifactWorkflowNode as A, type FeedItemKind as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedTarget as G, type FeedItemBase as H, type InstanceToolHandler as I, type MessageFeedItem as J, type FeedbackFeedItem as K, type FeedObjectReference as L, type ManifestEffectMetamodelSpec as M, type FeedTableCell as N, type ObjectsFeedItem as O, type ProjectionResult as P, type FeedTableColumn as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type FeedTableRowReference as U, type FeedTableRow as V, type FeedTableProjection as W, type TableFeedItem as X, type ArtifactFeedItem as Y, type FeedFileSource as Z, type FileFeedItem as _, type EnvironmentRecordImportSummary as a, type Subject as a$, type ActionSuggestionFeedItem as a0, type PromptFeedItem as a1, type TransientFeedItemBase as a2, type TransientMessageFeedItem as a3, type TransientFeedbackFeedItem as a4, type TransientFeedItem as a5, type FeedSnapshot as a6, type FeedListOptions as a7, type FeedPage as a8, type FeedSubscribeOptions as a9, createFeedPublisher as aA, type OpenAIModelPricing as aB, type NormalizedOpenAIUsage as aC, type OpenAITokenSpend as aD, OPENAI_MODEL_PRICING_USD_PER_MILLION as aE, getOpenAIModelPricing as aF, normalizeOpenAIUsage as aG, calculateOpenAITokenSpend as aH, type GranularSpendContext as aI, type OpenAIUsageSpendEvent as aJ, type RecordOpenAIUsageSpendOptions as aK, type RecordOpenAIUsageSpendResult as aL, toGranularHttpBase as aM, buildOpenAISpendEventId as aN, recordOpenAIUsageSpend as aO, type PolicySource as aP, type PolicyPredicateSource as aQ, type PolicyOperator as aR, type ConditionIR as aS, type PolicyOrigin as aT, type PolicyRuleIR as aU, type MatchedPolicy as aV, type AccessTokenProvider as aW, type GranularOptions as aX, type GranularAuth as aY, type User as aZ, type RecordUserOptions as a_, type FeedSubscriptionChange as aa, type SessionFeedApi as ab, mergeFeedItemsBySequence as ac, orderTransientFeedItems as ad, type FeedListTransport as ae, type FeedSnapshotRegressionReason as af, type FeedDiagnostic as ag, type FeedDiagnosticListener as ah, GRANULAR_FEED_DIAGNOSTIC_EVENT as ai, normalizeFeedDiagnosticKind as aj, normalizeFeedDiagnostic as ak, emitFeedDiagnosticToDefaultSink as al, emitFeedDiagnostic as am, type SessionFeedControllerOptions as an, type FeedDocumentState as ao, emptyFeedSnapshot as ap, hasCanonicalSessionFeedActivation as aq, isCanonicalSessionFeedDocument as ar, readSessionFeedSnapshot as as, normalizeFeedPage as at, SessionFeedController as au, type PublishFeedbackOptions as av, type PublishTransientFeedbackOptions as aw, type SettleTransientFeedbackOptions as ax, type TransientFeedbackHandle as ay, type FeedPublisher as az, type EndpointMode as b, type EffectInvocationMetadata as b$, type OpenEnvironmentOptions as b0, type AdoptEnvironmentOptions as b1, type ConnectOptions as b2, type CreateSessionOptions as b3, type ConversationSessionInfo as b4, type ConversationSessionListStatus as b5, type ConversationSessionListOptions as b6, type ConversationSessionListResponse as b7, type SpendLineItemType as b8, type QuotaScopeType as b9, type SemanticVersionDiffEntry as bA, type SemanticVersionDiff as bB, type ObjectReference as bC, type SourceAcknowledgement as bD, type CommitSafeError as bE, type TransitionOutcomeProjection as bF, type CanonicalProjectedRecord as bG, type ObjectProjectionChange as bH, type RelationshipProjectionChange as bI, type StateObservationProjectionChange as bJ, type ProjectionChange as bK, type BaseProjectionResult as bL, type EffectProjectionResult as bM, type TransitionProjectionResult as bN, type AgentCommitStatus as bO, type CommitChangeReceipt as bP, type CommitTransitionReceipt as bQ, type ExternalCommitOptions as bR, type ObservationReceipt as bS, type SessionMutationView as bT, type EffectCommitContext as bU, type ResolvedEffectPostCondition as bV, type ResolvedEffectDryRun as bW, type ResolvedEffectReverse as bX, type ResolvedEffectApprovalRequired as bY, type EffectInvocationMode as bZ, type EffectArtifactOptionsInvocation as b_, type QuotaPeriod as ba, type QuotaStatus as bb, type SpendSummary as bc, type QuotaLineItemFilter as bd, type GranularQuotaPolicy as be, type GranularQuotaProgress as bf, type Sandbox as bg, type CreateSandboxData as bh, type SandboxListResponse as bi, type PermissionRules as bj, type PermissionProfile as bk, type CreatePermissionProfileData as bl, type PermissionProfileListResponse as bm, type Assignment as bn, type AssignmentListResponse as bo, type BuildPolicy as bp, type VersionTracking as bq, type VersionTag as br, type CreateEnvironmentData as bs, type EnvironmentListResponse as bt, type Manifest as bu, type ManifestListResponse as bv, type BuildStatus as bw, type Build as bx, type Version as by, type BuildListResponse as bz, type EffectCommitRequest as c, type ManualActionStatus as c$, type EffectArtifactRelationshipOption as c0, type EffectArtifactRelationshipOptionsResult as c1, type ArtifactOptionsHandler as c2, type EffectSchema as c3, type EffectWithHandler as c4, type PublishEffectsResult as c5, type EffectVersionSelector as c6, type ToolInfo as c7, type EffectInfo as c8, type ToolsChangedEvent as c9, type SessionArtifactKind as cA, type ArtifactWorkflowNodeKind as cB, type ArtifactWorkflowCompletionState as cC, type ArtifactWorkflowNodeAvailability as cD, type ArtifactWorkflowOperationPhase as cE, type ArtifactWorkflowRecapItem as cF, type ArtifactWorkflowRecap as cG, type ArtifactWorkflowAttention as cH, type SessionArtifactAutonomyPolicy as cI, type SessionArtifactFieldProvenanceSource as cJ, type SessionArtifactRequestContextSource as cK, type SessionArtifactRequestContext as cL, type SessionArtifactFieldProvenance as cM, type SessionArtifactListOptions as cN, type SessionArtifactValidationResult as cO, type SessionArtifactRelationshipOptionsInput as cP, type SessionArtifactRelationshipOption as cQ, type SessionArtifactRelationshipOptionsResult as cR, type SessionArtifactRelationshipCreateInput as cS, type SessionArtifactExecutionResult as cT, type SessionArtifactExecutionOptions as cU, type SessionArtifactApprovalOptions as cV, type ArtifactApprovalTaskStatus as cW, type ArtifactApprovalTask as cX, type ArtifactApprovalTaskListOptions as cY, type ArtifactApprovalDecisionInput as cZ, type ArtifactApprovalDecisionResult as c_, type EffectsChangedEvent as ca, type EffectHandler as cb, type InstanceEffectHandler as cc, type JobStatus as cd, type JobFeedbackSentiment as ce, type JobFeedbackToolCall as cf, type JobFeedbackMetadata as cg, type JobFeedbackInput as ch, type JobFeedbackRecord as ci, type EnvironmentFeedbackRecord as cj, type JobSubmitResult as ck, type Job as cl, type UserMessageShowRefs as cm, type UserMessageTarget as cn, type UserMessageInput as co, type UserMessageAppendResult as cp, type AssistantReplyPublicationInput as cq, type AssistantReplyPublicationResult as cr, type SessionTranscriptActionSuggestion as cs, type SessionTranscriptShowRefs as ct, type SessionTimelineEvent as cu, type SessionFileSource as cv, type SessionFileKind as cw, type SessionFileStatus as cx, type SessionFileRecord as cy, type SessionArtifactStatus as cz, type ProjectionMapper as d, type EnvironmentImporterImportOptions as d$, type ManualActionSource as d0, type ManualActionTarget as d1, type ManualActionRelatedRecord as d2, type RecordManualActionInput as d3, type ManualActionOccurrence as d4, type ManualActionRecordResult as d5, type ManualActionListOptions as d6, type ManualActionSuggestion as d7, type ManualActionSuggestionOptions as d8, type SessionFileUploadOptions as d9, type RPCRequestFromServer as dA, type ToolInvokeParams as dB, type ToolResultParams as dC, type ModelRef as dD, type RelationshipInfo as dE, type DefineRelationshipOptions as dF, type RecordObjectStateValue as dG, type EnvironmentStateTarget as dH, type EnvironmentStateObservationInput as dI, type EnvironmentStateUpdateInput as dJ, type EnvironmentStateMachineProxy as dK, type EnvironmentStateProxy as dL, type RecordObjectResult as dM, type RecordObjectsChunkInfo as dN, type RecordObjectsOptions as dO, type RecordImportWriteMode as dP, type RecordImportOptions as dQ, type RecordImportStatus as dR, type RecordImportItemStatus as dS, type RecordImportStats as dT, type RecordImportItem as dU, type RecordImport as dV, type EnvironmentSetupTriggerReason as dW, type RunEnvironmentImporterOptions as dX, type EnvironmentSetupLifecycleStatus as dY, type EnvironmentSetupSummary as dZ, type EnvironmentSetupImporterClaim as d_, type SessionJobRecord as da, type SessionHeapFieldType as db, type SessionHeapFieldValue as dc, type SessionHeapVariable as dd, type RecordSearchResult as de, type RecordSearchOptions as df, type RecordMentionInput as dg, type SessionDocumentResult as dh, type SessionCollectionListOptions as di, type SessionJobListOptions as dj, type SessionCollectionListResult as dk, type UserEnvironmentPrompt as dl, type UserEnvironmentMessagePreview as dm, type UserEnvironmentSessionState as dn, type UserEnvironmentState as dp, type UserEnvironmentStateOptions as dq, type MarkUserEnvironmentReadOptions as dr, type WSDisconnectInfo as ds, type WSReconnectErrorInfo as dt, type WSClientOptions as du, type RPCRequest as dv, type RPCResponse as dw, type SnapshotResetMessage as dx, type JobActionTraceMessage as dy, type FeedTransientPatchMessage as dz, type CommitTransitionOutcomeDeclaration as e, type EnvironmentImporter as e0, type ManifestPropertySpec as e1, type ManifestValidationOperator as e2, type ManifestEnumRuleSpec as e3, type ManifestFilterBySpec as e4, type ManifestValidationRuleSpec as e5, type ManifestStateMachineStateSpec as e6, type ManifestStateTransitionInputBinding as e7, type ManifestStateTransitionActionSpec as e8, type ManifestStateTransitionAssigneeSpec as e9, type ManifestStateTransitionRelatedStateRequirementSpec as ea, type ManifestStateTransitionRequirementsSpec as eb, type ManifestStateTransitionPermissionSpec as ec, type ManifestStateTransitionExpectedOutcomeSpec as ed, type ManifestStateTransitionOutcomeSpec as ee, type ManifestStateMachineTransitionSpec as ef, type ManifestStateMachineSpec as eg, type ManifestPostConditionSpec as eh, type ManifestDryRunSpec as ei, type ManifestReverseSpec as ej, type ManifestApprovalRequiredSpec as ek, type ManifestCreatesSpec as el, type ManifestRelationshipDef as em, type ManifestEffectSchema as en, type ManifestEffectDeclaration as eo, type ManifestEventTypeDef as ep, type ManifestEventStreamDef as eq, type ManifestOperation as er, type ManifestImport as es, type ManifestVolume as et, type GraphQLResult as eu, type APIError as ev, type DeleteResponse as ew, type StreamEvent as ex, type StreamSubscription as ey, type StreamStats as ez, type CommitDeclaration as f, type EffectHandlerContext as g, type RecordObjectOptions as h, type ManifestContent as i, type CommitTransitionInvocation as j, type SessionHeapList as k, type FeedItem as l, type SessionHeapSnapshot as m, type Prompt as n, type SessionTranscriptEntry as o, type ArtifactWorkflowNodeStatus as p, type ArtifactWorkflow as q, type SessionArtifactRecord as r, type ToolSchema as s, type PublishToolsResult as t, type ToolHandler as u, type FeedSourceActor as v, type FeedSource as w, type FeedIconToken as x, type FeedFeedbackTone as y, type FeedTransientFeedbackTone as z };
|
|
3302
|
+
export { type NormalizedSuggestedArtifact as $, type ArtifactWorkflowNode as A, type FeedItemKind as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedTarget as G, type FeedItemBase as H, type InstanceToolHandler as I, type MessageFeedItem as J, type FeedbackFeedItem as K, type FeedObjectReference as L, type ManifestEffectMetamodelSpec as M, type FeedTableCell as N, type ObjectsFeedItem as O, type ProjectionResult as P, type FeedTableColumn as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type FeedTableRowReference as U, type FeedTableRow as V, type FeedTableProjection as W, type TableFeedItem as X, type ArtifactFeedItem as Y, type FeedFileSource as Z, type FileFeedItem as _, type EnvironmentRecordImportSummary as a, type Subject as a$, type ActionSuggestionFeedItem as a0, type PromptFeedItem as a1, type TransientFeedItemBase as a2, type TransientMessageFeedItem as a3, type TransientFeedbackFeedItem as a4, type TransientFeedItem as a5, type FeedSnapshot as a6, type FeedListOptions as a7, type FeedPage as a8, type FeedSubscribeOptions as a9, createFeedPublisher as aA, type OpenAIModelPricing as aB, type NormalizedOpenAIUsage as aC, type OpenAITokenSpend as aD, OPENAI_MODEL_PRICING_USD_PER_MILLION as aE, getOpenAIModelPricing as aF, normalizeOpenAIUsage as aG, calculateOpenAITokenSpend as aH, type GranularSpendContext as aI, type OpenAIUsageSpendEvent as aJ, type RecordOpenAIUsageSpendOptions as aK, type RecordOpenAIUsageSpendResult as aL, toGranularHttpBase as aM, buildOpenAISpendEventId as aN, recordOpenAIUsageSpend as aO, type PolicySource as aP, type PolicyPredicateSource as aQ, type PolicyOperator as aR, type ConditionIR as aS, type PolicyOrigin as aT, type PolicyRuleIR as aU, type MatchedPolicy as aV, type AccessTokenProvider as aW, type GranularOptions as aX, type GranularAuth as aY, type User as aZ, type RecordUserOptions as a_, type FeedSubscriptionChange as aa, type SessionFeedApi as ab, mergeFeedItemsBySequence as ac, orderTransientFeedItems as ad, type FeedListTransport as ae, type FeedSnapshotRegressionReason as af, type FeedDiagnostic as ag, type FeedDiagnosticListener as ah, GRANULAR_FEED_DIAGNOSTIC_EVENT as ai, normalizeFeedDiagnosticKind as aj, normalizeFeedDiagnostic as ak, emitFeedDiagnosticToDefaultSink as al, emitFeedDiagnostic as am, type SessionFeedControllerOptions as an, type FeedDocumentState as ao, emptyFeedSnapshot as ap, hasCanonicalSessionFeedActivation as aq, isCanonicalSessionFeedDocument as ar, readSessionFeedSnapshot as as, normalizeFeedPage as at, SessionFeedController as au, type PublishFeedbackOptions as av, type PublishTransientFeedbackOptions as aw, type SettleTransientFeedbackOptions as ax, type TransientFeedbackHandle as ay, type FeedPublisher as az, type EndpointMode as b, type EffectInvocationMetadata as b$, type OpenEnvironmentOptions as b0, type AdoptEnvironmentOptions as b1, type ConnectOptions as b2, type CreateSessionOptions as b3, type ConversationSessionInfo as b4, type ConversationSessionListStatus as b5, type ConversationSessionListOptions as b6, type ConversationSessionListResponse as b7, type SpendLineItemType as b8, type QuotaScopeType as b9, type SemanticVersionDiffEntry as bA, type SemanticVersionDiff as bB, type ObjectReference as bC, type SourceAcknowledgement as bD, type CommitSafeError as bE, type TransitionOutcomeProjection as bF, type CanonicalProjectedRecord as bG, type ObjectProjectionChange as bH, type RelationshipProjectionChange as bI, type StateObservationProjectionChange as bJ, type ProjectionChange as bK, type BaseProjectionResult as bL, type EffectProjectionResult as bM, type TransitionProjectionResult as bN, type AgentCommitStatus as bO, type CommitChangeReceipt as bP, type CommitTransitionReceipt as bQ, type ExternalCommitOptions as bR, type ObservationReceipt as bS, type SessionMutationView as bT, type EffectCommitContext as bU, type ResolvedEffectPostCondition as bV, type ResolvedEffectDryRun as bW, type ResolvedEffectReverse as bX, type ResolvedEffectApprovalRequired as bY, type EffectInvocationMode as bZ, type EffectArtifactOptionsInvocation as b_, type QuotaPeriod as ba, type QuotaStatus as bb, type SpendSummary as bc, type QuotaLineItemFilter as bd, type GranularQuotaPolicy as be, type GranularQuotaProgress as bf, type Sandbox as bg, type CreateSandboxData as bh, type SandboxListResponse as bi, type PermissionRules as bj, type PermissionProfile as bk, type CreatePermissionProfileData as bl, type PermissionProfileListResponse as bm, type Assignment as bn, type AssignmentListResponse as bo, type BuildPolicy as bp, type VersionTracking as bq, type VersionTag as br, type CreateEnvironmentData as bs, type EnvironmentListResponse as bt, type Manifest as bu, type ManifestListResponse as bv, type BuildStatus as bw, type Build as bx, type Version as by, type BuildListResponse as bz, type EffectCommitRequest as c, type ManualActionStatus as c$, type EffectArtifactRelationshipOption as c0, type EffectArtifactRelationshipOptionsResult as c1, type ArtifactOptionsHandler as c2, type EffectSchema as c3, type EffectWithHandler as c4, type PublishEffectsResult as c5, type EffectVersionSelector as c6, type ToolInfo as c7, type EffectInfo as c8, type ToolsChangedEvent as c9, type SessionArtifactKind as cA, type ArtifactWorkflowNodeKind as cB, type ArtifactWorkflowCompletionState as cC, type ArtifactWorkflowNodeAvailability as cD, type ArtifactWorkflowOperationPhase as cE, type ArtifactWorkflowRecapItem as cF, type ArtifactWorkflowRecap as cG, type ArtifactWorkflowAttention as cH, type SessionArtifactAutonomyPolicy as cI, type SessionArtifactFieldProvenanceSource as cJ, type SessionArtifactRequestContextSource as cK, type SessionArtifactRequestContext as cL, type SessionArtifactFieldProvenance as cM, type SessionArtifactListOptions as cN, type SessionArtifactValidationResult as cO, type SessionArtifactRelationshipOptionsInput as cP, type SessionArtifactRelationshipOption as cQ, type SessionArtifactRelationshipOptionsResult as cR, type SessionArtifactRelationshipCreateInput as cS, type SessionArtifactExecutionResult as cT, type SessionArtifactExecutionOptions as cU, type SessionArtifactApprovalOptions as cV, type ArtifactApprovalTaskStatus as cW, type ArtifactApprovalTask as cX, type ArtifactApprovalTaskListOptions as cY, type ArtifactApprovalDecisionInput as cZ, type ArtifactApprovalDecisionResult as c_, type EffectsChangedEvent as ca, type EffectHandler as cb, type InstanceEffectHandler as cc, type JobStatus as cd, type JobFeedbackSentiment as ce, type JobFeedbackToolCall as cf, type JobFeedbackMetadata as cg, type JobFeedbackInput as ch, type JobFeedbackRecord as ci, type EnvironmentFeedbackRecord as cj, type JobSubmitResult as ck, type Job as cl, type UserMessageShowRefs as cm, type UserMessageTarget as cn, type UserMessageInput as co, type UserMessageAppendResult as cp, type AssistantReplyPublicationInput as cq, type AssistantReplyPublicationResult as cr, type SessionTranscriptActionSuggestion as cs, type SessionTranscriptShowRefs as ct, type SessionTimelineEvent as cu, type SessionFileSource as cv, type SessionFileKind as cw, type SessionFileStatus as cx, type SessionFileRecord as cy, type SessionArtifactStatus as cz, type ProjectionMapper as d, type EnvironmentSetupImporterClaim as d$, type ManualActionSource as d0, type ManualActionTarget as d1, type ManualActionRelatedRecord as d2, type RecordManualActionInput as d3, type ManualActionOccurrence as d4, type ManualActionRecordResult as d5, type ManualActionListOptions as d6, type ManualActionSuggestion as d7, type ManualActionSuggestionOptions as d8, type SessionFileUploadOptions as d9, type FeedTransientPatchMessage as dA, type RPCRequestFromServer as dB, type ToolInvokeParams as dC, type ToolResultParams as dD, type ModelRef as dE, type RelationshipInfo as dF, type DefineRelationshipOptions as dG, type RecordObjectStateValue as dH, type EnvironmentStateTarget as dI, type EnvironmentStateObservationInput as dJ, type EnvironmentStateUpdateInput as dK, type EnvironmentStateMachineProxy as dL, type EnvironmentStateProxy as dM, type RecordObjectResult as dN, type RecordObjectsChunkInfo as dO, type RecordObjectsOptions as dP, type RecordImportWriteMode as dQ, type RecordImportOptions as dR, type RecordImportStatus as dS, type RecordImportItemStatus as dT, type RecordImportStats as dU, type RecordImportItem as dV, type RecordImport as dW, type EnvironmentSetupTriggerReason as dX, type RunEnvironmentImporterOptions as dY, type EnvironmentSetupLifecycleStatus as dZ, type EnvironmentSetupSummary as d_, type SessionJobRecord as da, type SessionHeapFieldType as db, type SessionHeapFieldValue as dc, type SessionHeapVariable as dd, type RecordSearchResult as de, type RecordSearchOptions as df, type RecordMentionInput as dg, type SessionDocumentResult as dh, type SessionCollectionListOptions as di, type SessionJobListOptions as dj, type SessionCollectionListResult as dk, type UserEnvironmentPrompt as dl, type UserEnvironmentMessagePreview as dm, type UserEnvironmentArtifactAttention as dn, type UserEnvironmentSessionState as dp, type UserEnvironmentState as dq, type UserEnvironmentStateOptions as dr, type MarkUserEnvironmentReadOptions as ds, type WSDisconnectInfo as dt, type WSReconnectErrorInfo as du, type WSClientOptions as dv, type RPCRequest as dw, type RPCResponse as dx, type SnapshotResetMessage as dy, type JobActionTraceMessage as dz, type CommitTransitionOutcomeDeclaration as e, type EnvironmentImporterImportOptions as e0, type EnvironmentImporter as e1, type ManifestPropertySpec as e2, type ManifestValidationOperator as e3, type ManifestEnumRuleSpec as e4, type ManifestFilterBySpec as e5, type ManifestValidationRuleSpec as e6, type ManifestStateMachineStateSpec as e7, type ManifestStateTransitionInputBinding as e8, type ManifestStateTransitionActionSpec as e9, type StreamStats as eA, type ManifestStateTransitionAssigneeSpec as ea, type ManifestStateTransitionRelatedStateRequirementSpec as eb, type ManifestStateTransitionRequirementsSpec as ec, type ManifestStateTransitionPermissionSpec as ed, type ManifestStateTransitionExpectedOutcomeSpec as ee, type ManifestStateTransitionOutcomeSpec as ef, type ManifestStateMachineTransitionSpec as eg, type ManifestStateMachineSpec as eh, type ManifestPostConditionSpec as ei, type ManifestDryRunSpec as ej, type ManifestReverseSpec as ek, type ManifestApprovalRequiredSpec as el, type ManifestCreatesSpec as em, type ManifestRelationshipDef as en, type ManifestEffectSchema as eo, type ManifestEffectDeclaration as ep, type ManifestEventTypeDef as eq, type ManifestEventStreamDef as er, type ManifestOperation as es, type ManifestImport as et, type ManifestVolume as eu, type GraphQLResult as ev, type APIError as ew, type DeleteResponse as ex, type StreamEvent as ey, type StreamSubscription as ez, type CommitDeclaration as f, type EffectHandlerContext as g, type RecordObjectOptions as h, type ManifestContent as i, type CommitTransitionInvocation as j, type SessionHeapList as k, type FeedItem as l, type SessionHeapSnapshot as m, type Prompt as n, type SessionTranscriptEntry as o, type ArtifactWorkflowNodeStatus as p, type ArtifactWorkflow as q, type SessionArtifactRecord as r, type ToolSchema as s, type PublishToolsResult as t, type ToolHandler as u, type FeedSourceActor as v, type FeedSource as w, type FeedIconToken as x, type FeedFeedbackTone as y, type FeedTransientFeedbackTone as z };
|
|
@@ -612,6 +612,8 @@ interface GranularOptions {
|
|
|
612
612
|
token?: string;
|
|
613
613
|
/** Optional provider used to refresh JWT before authenticated requests and WebSocket (re)connect attempts */
|
|
614
614
|
tokenProvider?: AccessTokenProvider;
|
|
615
|
+
/** Optional key per logical GraphQL request. Preserve the key when explicitly replaying a request; no automatic retry is added. */
|
|
616
|
+
graphqlIdempotencyKey?: (query: string, variables?: Record<string, unknown>) => string;
|
|
615
617
|
/** Optional API URL (for on-prem or testing) */
|
|
616
618
|
apiUrl?: string;
|
|
617
619
|
/** Optional live effect-host WebSocket/base URL override (for local/on-prem routing) */
|
|
@@ -1285,6 +1287,8 @@ type CommitDeclaration<TResult = any> = {
|
|
|
1285
1287
|
} | {
|
|
1286
1288
|
kind: "transition";
|
|
1287
1289
|
project: ProjectionMapper<TResult, TransitionProjectionResult>;
|
|
1290
|
+
/** Automatic snapshot mappers select by product state; custom mappers select an explicit key. */
|
|
1291
|
+
outcomeSelection?: "explicit" | "product_state";
|
|
1288
1292
|
};
|
|
1289
1293
|
type AgentCommitStatus = "not_requested" | "pending" | "syncing" | "synced" | "failed" | "reconciling";
|
|
1290
1294
|
interface CommitChangeReceipt {
|
|
@@ -2069,6 +2073,8 @@ interface SessionArtifactExecutionResult {
|
|
|
2069
2073
|
}
|
|
2070
2074
|
interface SessionArtifactExecutionOptions {
|
|
2071
2075
|
idempotencyKey: string;
|
|
2076
|
+
/** Execute only the artifact revision that was reviewed by the caller. */
|
|
2077
|
+
expectedUpdatedAt?: number;
|
|
2072
2078
|
}
|
|
2073
2079
|
interface SessionArtifactApprovalOptions extends SessionArtifactExecutionOptions {
|
|
2074
2080
|
approved: boolean;
|
|
@@ -2393,6 +2399,13 @@ interface UserEnvironmentMessagePreview {
|
|
|
2393
2399
|
/** Latest occurrence that independently creates unread state. */
|
|
2394
2400
|
unreadProducingSequence: number;
|
|
2395
2401
|
}
|
|
2402
|
+
interface UserEnvironmentArtifactAttention {
|
|
2403
|
+
artifactId: string;
|
|
2404
|
+
label: string;
|
|
2405
|
+
status: SessionArtifactStatus;
|
|
2406
|
+
requiresInput: boolean;
|
|
2407
|
+
policyConfirmationPromptId?: string;
|
|
2408
|
+
}
|
|
2396
2409
|
interface UserEnvironmentSessionState {
|
|
2397
2410
|
session: ConversationSessionInfo;
|
|
2398
2411
|
status: "active" | "closed" | "running" | "awaiting_input" | "unread";
|
|
@@ -2401,6 +2414,12 @@ interface UserEnvironmentSessionState {
|
|
|
2401
2414
|
readThroughSequence: number;
|
|
2402
2415
|
messagePreview: UserEnvironmentMessagePreview;
|
|
2403
2416
|
prompts: UserEnvironmentPrompt[];
|
|
2417
|
+
/** Compact attention summaries; full records are fetched when a chat opens. */
|
|
2418
|
+
artifacts?: Array<UserEnvironmentArtifactAttention | SessionArtifactRecord>;
|
|
2419
|
+
/** Total actionable artifacts, including hints omitted from the bounded index. */
|
|
2420
|
+
artifactAttentionCount?: number;
|
|
2421
|
+
/** Actionable artifacts already represented by a policy-confirmation prompt. */
|
|
2422
|
+
artifactPolicyConfirmationCount?: number;
|
|
2404
2423
|
runningJobCount: number;
|
|
2405
2424
|
latestJobStatus: string | null;
|
|
2406
2425
|
}
|
|
@@ -3280,4 +3299,4 @@ declare function toGranularHttpBase(apiUrl: string): string;
|
|
|
3280
3299
|
declare function buildOpenAISpendEventId(usage: Pick<OpenAIUsageSpendEvent, "requestId">, context?: GranularSpendContext): string | undefined;
|
|
3281
3300
|
declare function recordOpenAIUsageSpend(options: RecordOpenAIUsageSpendOptions): Promise<RecordOpenAIUsageSpendResult>;
|
|
3282
3301
|
|
|
3283
|
-
export { type NormalizedSuggestedArtifact as $, type ArtifactWorkflowNode as A, type FeedItemKind as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedTarget as G, type FeedItemBase as H, type InstanceToolHandler as I, type MessageFeedItem as J, type FeedbackFeedItem as K, type FeedObjectReference as L, type ManifestEffectMetamodelSpec as M, type FeedTableCell as N, type ObjectsFeedItem as O, type ProjectionResult as P, type FeedTableColumn as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type FeedTableRowReference as U, type FeedTableRow as V, type FeedTableProjection as W, type TableFeedItem as X, type ArtifactFeedItem as Y, type FeedFileSource as Z, type FileFeedItem as _, type EnvironmentRecordImportSummary as a, type Subject as a$, type ActionSuggestionFeedItem as a0, type PromptFeedItem as a1, type TransientFeedItemBase as a2, type TransientMessageFeedItem as a3, type TransientFeedbackFeedItem as a4, type TransientFeedItem as a5, type FeedSnapshot as a6, type FeedListOptions as a7, type FeedPage as a8, type FeedSubscribeOptions as a9, createFeedPublisher as aA, type OpenAIModelPricing as aB, type NormalizedOpenAIUsage as aC, type OpenAITokenSpend as aD, OPENAI_MODEL_PRICING_USD_PER_MILLION as aE, getOpenAIModelPricing as aF, normalizeOpenAIUsage as aG, calculateOpenAITokenSpend as aH, type GranularSpendContext as aI, type OpenAIUsageSpendEvent as aJ, type RecordOpenAIUsageSpendOptions as aK, type RecordOpenAIUsageSpendResult as aL, toGranularHttpBase as aM, buildOpenAISpendEventId as aN, recordOpenAIUsageSpend as aO, type PolicySource as aP, type PolicyPredicateSource as aQ, type PolicyOperator as aR, type ConditionIR as aS, type PolicyOrigin as aT, type PolicyRuleIR as aU, type MatchedPolicy as aV, type AccessTokenProvider as aW, type GranularOptions as aX, type GranularAuth as aY, type User as aZ, type RecordUserOptions as a_, type FeedSubscriptionChange as aa, type SessionFeedApi as ab, mergeFeedItemsBySequence as ac, orderTransientFeedItems as ad, type FeedListTransport as ae, type FeedSnapshotRegressionReason as af, type FeedDiagnostic as ag, type FeedDiagnosticListener as ah, GRANULAR_FEED_DIAGNOSTIC_EVENT as ai, normalizeFeedDiagnosticKind as aj, normalizeFeedDiagnostic as ak, emitFeedDiagnosticToDefaultSink as al, emitFeedDiagnostic as am, type SessionFeedControllerOptions as an, type FeedDocumentState as ao, emptyFeedSnapshot as ap, hasCanonicalSessionFeedActivation as aq, isCanonicalSessionFeedDocument as ar, readSessionFeedSnapshot as as, normalizeFeedPage as at, SessionFeedController as au, type PublishFeedbackOptions as av, type PublishTransientFeedbackOptions as aw, type SettleTransientFeedbackOptions as ax, type TransientFeedbackHandle as ay, type FeedPublisher as az, type EndpointMode as b, type EffectInvocationMetadata as b$, type OpenEnvironmentOptions as b0, type AdoptEnvironmentOptions as b1, type ConnectOptions as b2, type CreateSessionOptions as b3, type ConversationSessionInfo as b4, type ConversationSessionListStatus as b5, type ConversationSessionListOptions as b6, type ConversationSessionListResponse as b7, type SpendLineItemType as b8, type QuotaScopeType as b9, type SemanticVersionDiffEntry as bA, type SemanticVersionDiff as bB, type ObjectReference as bC, type SourceAcknowledgement as bD, type CommitSafeError as bE, type TransitionOutcomeProjection as bF, type CanonicalProjectedRecord as bG, type ObjectProjectionChange as bH, type RelationshipProjectionChange as bI, type StateObservationProjectionChange as bJ, type ProjectionChange as bK, type BaseProjectionResult as bL, type EffectProjectionResult as bM, type TransitionProjectionResult as bN, type AgentCommitStatus as bO, type CommitChangeReceipt as bP, type CommitTransitionReceipt as bQ, type ExternalCommitOptions as bR, type ObservationReceipt as bS, type SessionMutationView as bT, type EffectCommitContext as bU, type ResolvedEffectPostCondition as bV, type ResolvedEffectDryRun as bW, type ResolvedEffectReverse as bX, type ResolvedEffectApprovalRequired as bY, type EffectInvocationMode as bZ, type EffectArtifactOptionsInvocation as b_, type QuotaPeriod as ba, type QuotaStatus as bb, type SpendSummary as bc, type QuotaLineItemFilter as bd, type GranularQuotaPolicy as be, type GranularQuotaProgress as bf, type Sandbox as bg, type CreateSandboxData as bh, type SandboxListResponse as bi, type PermissionRules as bj, type PermissionProfile as bk, type CreatePermissionProfileData as bl, type PermissionProfileListResponse as bm, type Assignment as bn, type AssignmentListResponse as bo, type BuildPolicy as bp, type VersionTracking as bq, type VersionTag as br, type CreateEnvironmentData as bs, type EnvironmentListResponse as bt, type Manifest as bu, type ManifestListResponse as bv, type BuildStatus as bw, type Build as bx, type Version as by, type BuildListResponse as bz, type EffectCommitRequest as c, type ManualActionStatus as c$, type EffectArtifactRelationshipOption as c0, type EffectArtifactRelationshipOptionsResult as c1, type ArtifactOptionsHandler as c2, type EffectSchema as c3, type EffectWithHandler as c4, type PublishEffectsResult as c5, type EffectVersionSelector as c6, type ToolInfo as c7, type EffectInfo as c8, type ToolsChangedEvent as c9, type SessionArtifactKind as cA, type ArtifactWorkflowNodeKind as cB, type ArtifactWorkflowCompletionState as cC, type ArtifactWorkflowNodeAvailability as cD, type ArtifactWorkflowOperationPhase as cE, type ArtifactWorkflowRecapItem as cF, type ArtifactWorkflowRecap as cG, type ArtifactWorkflowAttention as cH, type SessionArtifactAutonomyPolicy as cI, type SessionArtifactFieldProvenanceSource as cJ, type SessionArtifactRequestContextSource as cK, type SessionArtifactRequestContext as cL, type SessionArtifactFieldProvenance as cM, type SessionArtifactListOptions as cN, type SessionArtifactValidationResult as cO, type SessionArtifactRelationshipOptionsInput as cP, type SessionArtifactRelationshipOption as cQ, type SessionArtifactRelationshipOptionsResult as cR, type SessionArtifactRelationshipCreateInput as cS, type SessionArtifactExecutionResult as cT, type SessionArtifactExecutionOptions as cU, type SessionArtifactApprovalOptions as cV, type ArtifactApprovalTaskStatus as cW, type ArtifactApprovalTask as cX, type ArtifactApprovalTaskListOptions as cY, type ArtifactApprovalDecisionInput as cZ, type ArtifactApprovalDecisionResult as c_, type EffectsChangedEvent as ca, type EffectHandler as cb, type InstanceEffectHandler as cc, type JobStatus as cd, type JobFeedbackSentiment as ce, type JobFeedbackToolCall as cf, type JobFeedbackMetadata as cg, type JobFeedbackInput as ch, type JobFeedbackRecord as ci, type EnvironmentFeedbackRecord as cj, type JobSubmitResult as ck, type Job as cl, type UserMessageShowRefs as cm, type UserMessageTarget as cn, type UserMessageInput as co, type UserMessageAppendResult as cp, type AssistantReplyPublicationInput as cq, type AssistantReplyPublicationResult as cr, type SessionTranscriptActionSuggestion as cs, type SessionTranscriptShowRefs as ct, type SessionTimelineEvent as cu, type SessionFileSource as cv, type SessionFileKind as cw, type SessionFileStatus as cx, type SessionFileRecord as cy, type SessionArtifactStatus as cz, type ProjectionMapper as d, type EnvironmentImporterImportOptions as d$, type ManualActionSource as d0, type ManualActionTarget as d1, type ManualActionRelatedRecord as d2, type RecordManualActionInput as d3, type ManualActionOccurrence as d4, type ManualActionRecordResult as d5, type ManualActionListOptions as d6, type ManualActionSuggestion as d7, type ManualActionSuggestionOptions as d8, type SessionFileUploadOptions as d9, type RPCRequestFromServer as dA, type ToolInvokeParams as dB, type ToolResultParams as dC, type ModelRef as dD, type RelationshipInfo as dE, type DefineRelationshipOptions as dF, type RecordObjectStateValue as dG, type EnvironmentStateTarget as dH, type EnvironmentStateObservationInput as dI, type EnvironmentStateUpdateInput as dJ, type EnvironmentStateMachineProxy as dK, type EnvironmentStateProxy as dL, type RecordObjectResult as dM, type RecordObjectsChunkInfo as dN, type RecordObjectsOptions as dO, type RecordImportWriteMode as dP, type RecordImportOptions as dQ, type RecordImportStatus as dR, type RecordImportItemStatus as dS, type RecordImportStats as dT, type RecordImportItem as dU, type RecordImport as dV, type EnvironmentSetupTriggerReason as dW, type RunEnvironmentImporterOptions as dX, type EnvironmentSetupLifecycleStatus as dY, type EnvironmentSetupSummary as dZ, type EnvironmentSetupImporterClaim as d_, type SessionJobRecord as da, type SessionHeapFieldType as db, type SessionHeapFieldValue as dc, type SessionHeapVariable as dd, type RecordSearchResult as de, type RecordSearchOptions as df, type RecordMentionInput as dg, type SessionDocumentResult as dh, type SessionCollectionListOptions as di, type SessionJobListOptions as dj, type SessionCollectionListResult as dk, type UserEnvironmentPrompt as dl, type UserEnvironmentMessagePreview as dm, type UserEnvironmentSessionState as dn, type UserEnvironmentState as dp, type UserEnvironmentStateOptions as dq, type MarkUserEnvironmentReadOptions as dr, type WSDisconnectInfo as ds, type WSReconnectErrorInfo as dt, type WSClientOptions as du, type RPCRequest as dv, type RPCResponse as dw, type SnapshotResetMessage as dx, type JobActionTraceMessage as dy, type FeedTransientPatchMessage as dz, type CommitTransitionOutcomeDeclaration as e, type EnvironmentImporter as e0, type ManifestPropertySpec as e1, type ManifestValidationOperator as e2, type ManifestEnumRuleSpec as e3, type ManifestFilterBySpec as e4, type ManifestValidationRuleSpec as e5, type ManifestStateMachineStateSpec as e6, type ManifestStateTransitionInputBinding as e7, type ManifestStateTransitionActionSpec as e8, type ManifestStateTransitionAssigneeSpec as e9, type ManifestStateTransitionRelatedStateRequirementSpec as ea, type ManifestStateTransitionRequirementsSpec as eb, type ManifestStateTransitionPermissionSpec as ec, type ManifestStateTransitionExpectedOutcomeSpec as ed, type ManifestStateTransitionOutcomeSpec as ee, type ManifestStateMachineTransitionSpec as ef, type ManifestStateMachineSpec as eg, type ManifestPostConditionSpec as eh, type ManifestDryRunSpec as ei, type ManifestReverseSpec as ej, type ManifestApprovalRequiredSpec as ek, type ManifestCreatesSpec as el, type ManifestRelationshipDef as em, type ManifestEffectSchema as en, type ManifestEffectDeclaration as eo, type ManifestEventTypeDef as ep, type ManifestEventStreamDef as eq, type ManifestOperation as er, type ManifestImport as es, type ManifestVolume as et, type GraphQLResult as eu, type APIError as ev, type DeleteResponse as ew, type StreamEvent as ex, type StreamSubscription as ey, type StreamStats as ez, type CommitDeclaration as f, type EffectHandlerContext as g, type RecordObjectOptions as h, type ManifestContent as i, type CommitTransitionInvocation as j, type SessionHeapList as k, type FeedItem as l, type SessionHeapSnapshot as m, type Prompt as n, type SessionTranscriptEntry as o, type ArtifactWorkflowNodeStatus as p, type ArtifactWorkflow as q, type SessionArtifactRecord as r, type ToolSchema as s, type PublishToolsResult as t, type ToolHandler as u, type FeedSourceActor as v, type FeedSource as w, type FeedIconToken as x, type FeedFeedbackTone as y, type FeedTransientFeedbackTone as z };
|
|
3302
|
+
export { type NormalizedSuggestedArtifact as $, type ArtifactWorkflowNode as A, type FeedItemKind as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedTarget as G, type FeedItemBase as H, type InstanceToolHandler as I, type MessageFeedItem as J, type FeedbackFeedItem as K, type FeedObjectReference as L, type ManifestEffectMetamodelSpec as M, type FeedTableCell as N, type ObjectsFeedItem as O, type ProjectionResult as P, type FeedTableColumn as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type FeedTableRowReference as U, type FeedTableRow as V, type FeedTableProjection as W, type TableFeedItem as X, type ArtifactFeedItem as Y, type FeedFileSource as Z, type FileFeedItem as _, type EnvironmentRecordImportSummary as a, type Subject as a$, type ActionSuggestionFeedItem as a0, type PromptFeedItem as a1, type TransientFeedItemBase as a2, type TransientMessageFeedItem as a3, type TransientFeedbackFeedItem as a4, type TransientFeedItem as a5, type FeedSnapshot as a6, type FeedListOptions as a7, type FeedPage as a8, type FeedSubscribeOptions as a9, createFeedPublisher as aA, type OpenAIModelPricing as aB, type NormalizedOpenAIUsage as aC, type OpenAITokenSpend as aD, OPENAI_MODEL_PRICING_USD_PER_MILLION as aE, getOpenAIModelPricing as aF, normalizeOpenAIUsage as aG, calculateOpenAITokenSpend as aH, type GranularSpendContext as aI, type OpenAIUsageSpendEvent as aJ, type RecordOpenAIUsageSpendOptions as aK, type RecordOpenAIUsageSpendResult as aL, toGranularHttpBase as aM, buildOpenAISpendEventId as aN, recordOpenAIUsageSpend as aO, type PolicySource as aP, type PolicyPredicateSource as aQ, type PolicyOperator as aR, type ConditionIR as aS, type PolicyOrigin as aT, type PolicyRuleIR as aU, type MatchedPolicy as aV, type AccessTokenProvider as aW, type GranularOptions as aX, type GranularAuth as aY, type User as aZ, type RecordUserOptions as a_, type FeedSubscriptionChange as aa, type SessionFeedApi as ab, mergeFeedItemsBySequence as ac, orderTransientFeedItems as ad, type FeedListTransport as ae, type FeedSnapshotRegressionReason as af, type FeedDiagnostic as ag, type FeedDiagnosticListener as ah, GRANULAR_FEED_DIAGNOSTIC_EVENT as ai, normalizeFeedDiagnosticKind as aj, normalizeFeedDiagnostic as ak, emitFeedDiagnosticToDefaultSink as al, emitFeedDiagnostic as am, type SessionFeedControllerOptions as an, type FeedDocumentState as ao, emptyFeedSnapshot as ap, hasCanonicalSessionFeedActivation as aq, isCanonicalSessionFeedDocument as ar, readSessionFeedSnapshot as as, normalizeFeedPage as at, SessionFeedController as au, type PublishFeedbackOptions as av, type PublishTransientFeedbackOptions as aw, type SettleTransientFeedbackOptions as ax, type TransientFeedbackHandle as ay, type FeedPublisher as az, type EndpointMode as b, type EffectInvocationMetadata as b$, type OpenEnvironmentOptions as b0, type AdoptEnvironmentOptions as b1, type ConnectOptions as b2, type CreateSessionOptions as b3, type ConversationSessionInfo as b4, type ConversationSessionListStatus as b5, type ConversationSessionListOptions as b6, type ConversationSessionListResponse as b7, type SpendLineItemType as b8, type QuotaScopeType as b9, type SemanticVersionDiffEntry as bA, type SemanticVersionDiff as bB, type ObjectReference as bC, type SourceAcknowledgement as bD, type CommitSafeError as bE, type TransitionOutcomeProjection as bF, type CanonicalProjectedRecord as bG, type ObjectProjectionChange as bH, type RelationshipProjectionChange as bI, type StateObservationProjectionChange as bJ, type ProjectionChange as bK, type BaseProjectionResult as bL, type EffectProjectionResult as bM, type TransitionProjectionResult as bN, type AgentCommitStatus as bO, type CommitChangeReceipt as bP, type CommitTransitionReceipt as bQ, type ExternalCommitOptions as bR, type ObservationReceipt as bS, type SessionMutationView as bT, type EffectCommitContext as bU, type ResolvedEffectPostCondition as bV, type ResolvedEffectDryRun as bW, type ResolvedEffectReverse as bX, type ResolvedEffectApprovalRequired as bY, type EffectInvocationMode as bZ, type EffectArtifactOptionsInvocation as b_, type QuotaPeriod as ba, type QuotaStatus as bb, type SpendSummary as bc, type QuotaLineItemFilter as bd, type GranularQuotaPolicy as be, type GranularQuotaProgress as bf, type Sandbox as bg, type CreateSandboxData as bh, type SandboxListResponse as bi, type PermissionRules as bj, type PermissionProfile as bk, type CreatePermissionProfileData as bl, type PermissionProfileListResponse as bm, type Assignment as bn, type AssignmentListResponse as bo, type BuildPolicy as bp, type VersionTracking as bq, type VersionTag as br, type CreateEnvironmentData as bs, type EnvironmentListResponse as bt, type Manifest as bu, type ManifestListResponse as bv, type BuildStatus as bw, type Build as bx, type Version as by, type BuildListResponse as bz, type EffectCommitRequest as c, type ManualActionStatus as c$, type EffectArtifactRelationshipOption as c0, type EffectArtifactRelationshipOptionsResult as c1, type ArtifactOptionsHandler as c2, type EffectSchema as c3, type EffectWithHandler as c4, type PublishEffectsResult as c5, type EffectVersionSelector as c6, type ToolInfo as c7, type EffectInfo as c8, type ToolsChangedEvent as c9, type SessionArtifactKind as cA, type ArtifactWorkflowNodeKind as cB, type ArtifactWorkflowCompletionState as cC, type ArtifactWorkflowNodeAvailability as cD, type ArtifactWorkflowOperationPhase as cE, type ArtifactWorkflowRecapItem as cF, type ArtifactWorkflowRecap as cG, type ArtifactWorkflowAttention as cH, type SessionArtifactAutonomyPolicy as cI, type SessionArtifactFieldProvenanceSource as cJ, type SessionArtifactRequestContextSource as cK, type SessionArtifactRequestContext as cL, type SessionArtifactFieldProvenance as cM, type SessionArtifactListOptions as cN, type SessionArtifactValidationResult as cO, type SessionArtifactRelationshipOptionsInput as cP, type SessionArtifactRelationshipOption as cQ, type SessionArtifactRelationshipOptionsResult as cR, type SessionArtifactRelationshipCreateInput as cS, type SessionArtifactExecutionResult as cT, type SessionArtifactExecutionOptions as cU, type SessionArtifactApprovalOptions as cV, type ArtifactApprovalTaskStatus as cW, type ArtifactApprovalTask as cX, type ArtifactApprovalTaskListOptions as cY, type ArtifactApprovalDecisionInput as cZ, type ArtifactApprovalDecisionResult as c_, type EffectsChangedEvent as ca, type EffectHandler as cb, type InstanceEffectHandler as cc, type JobStatus as cd, type JobFeedbackSentiment as ce, type JobFeedbackToolCall as cf, type JobFeedbackMetadata as cg, type JobFeedbackInput as ch, type JobFeedbackRecord as ci, type EnvironmentFeedbackRecord as cj, type JobSubmitResult as ck, type Job as cl, type UserMessageShowRefs as cm, type UserMessageTarget as cn, type UserMessageInput as co, type UserMessageAppendResult as cp, type AssistantReplyPublicationInput as cq, type AssistantReplyPublicationResult as cr, type SessionTranscriptActionSuggestion as cs, type SessionTranscriptShowRefs as ct, type SessionTimelineEvent as cu, type SessionFileSource as cv, type SessionFileKind as cw, type SessionFileStatus as cx, type SessionFileRecord as cy, type SessionArtifactStatus as cz, type ProjectionMapper as d, type EnvironmentSetupImporterClaim as d$, type ManualActionSource as d0, type ManualActionTarget as d1, type ManualActionRelatedRecord as d2, type RecordManualActionInput as d3, type ManualActionOccurrence as d4, type ManualActionRecordResult as d5, type ManualActionListOptions as d6, type ManualActionSuggestion as d7, type ManualActionSuggestionOptions as d8, type SessionFileUploadOptions as d9, type FeedTransientPatchMessage as dA, type RPCRequestFromServer as dB, type ToolInvokeParams as dC, type ToolResultParams as dD, type ModelRef as dE, type RelationshipInfo as dF, type DefineRelationshipOptions as dG, type RecordObjectStateValue as dH, type EnvironmentStateTarget as dI, type EnvironmentStateObservationInput as dJ, type EnvironmentStateUpdateInput as dK, type EnvironmentStateMachineProxy as dL, type EnvironmentStateProxy as dM, type RecordObjectResult as dN, type RecordObjectsChunkInfo as dO, type RecordObjectsOptions as dP, type RecordImportWriteMode as dQ, type RecordImportOptions as dR, type RecordImportStatus as dS, type RecordImportItemStatus as dT, type RecordImportStats as dU, type RecordImportItem as dV, type RecordImport as dW, type EnvironmentSetupTriggerReason as dX, type RunEnvironmentImporterOptions as dY, type EnvironmentSetupLifecycleStatus as dZ, type EnvironmentSetupSummary as d_, type SessionJobRecord as da, type SessionHeapFieldType as db, type SessionHeapFieldValue as dc, type SessionHeapVariable as dd, type RecordSearchResult as de, type RecordSearchOptions as df, type RecordMentionInput as dg, type SessionDocumentResult as dh, type SessionCollectionListOptions as di, type SessionJobListOptions as dj, type SessionCollectionListResult as dk, type UserEnvironmentPrompt as dl, type UserEnvironmentMessagePreview as dm, type UserEnvironmentArtifactAttention as dn, type UserEnvironmentSessionState as dp, type UserEnvironmentState as dq, type UserEnvironmentStateOptions as dr, type MarkUserEnvironmentReadOptions as ds, type WSDisconnectInfo as dt, type WSReconnectErrorInfo as du, type WSClientOptions as dv, type RPCRequest as dw, type RPCResponse as dx, type SnapshotResetMessage as dy, type JobActionTraceMessage as dz, type CommitTransitionOutcomeDeclaration as e, type EnvironmentImporterImportOptions as e0, type EnvironmentImporter as e1, type ManifestPropertySpec as e2, type ManifestValidationOperator as e3, type ManifestEnumRuleSpec as e4, type ManifestFilterBySpec as e5, type ManifestValidationRuleSpec as e6, type ManifestStateMachineStateSpec as e7, type ManifestStateTransitionInputBinding as e8, type ManifestStateTransitionActionSpec as e9, type StreamStats as eA, type ManifestStateTransitionAssigneeSpec as ea, type ManifestStateTransitionRelatedStateRequirementSpec as eb, type ManifestStateTransitionRequirementsSpec as ec, type ManifestStateTransitionPermissionSpec as ed, type ManifestStateTransitionExpectedOutcomeSpec as ee, type ManifestStateTransitionOutcomeSpec as ef, type ManifestStateMachineTransitionSpec as eg, type ManifestStateMachineSpec as eh, type ManifestPostConditionSpec as ei, type ManifestDryRunSpec as ej, type ManifestReverseSpec as ek, type ManifestApprovalRequiredSpec as el, type ManifestCreatesSpec as em, type ManifestRelationshipDef as en, type ManifestEffectSchema as eo, type ManifestEffectDeclaration as ep, type ManifestEventTypeDef as eq, type ManifestEventStreamDef as er, type ManifestOperation as es, type ManifestImport as et, type ManifestVolume as eu, type GraphQLResult as ev, type APIError as ew, type DeleteResponse as ex, type StreamEvent as ey, type StreamSubscription as ez, type CommitDeclaration as f, type EffectHandlerContext as g, type RecordObjectOptions as h, type ManifestContent as i, type CommitTransitionInvocation as j, type SessionHeapList as k, type FeedItem as l, type SessionHeapSnapshot as m, type Prompt as n, type SessionTranscriptEntry as o, type ArtifactWorkflowNodeStatus as p, type ArtifactWorkflow as q, type SessionArtifactRecord as r, type ToolSchema as s, type PublishToolsResult as t, type ToolHandler as u, type FeedSourceActor as v, type FeedSource as w, type FeedIconToken as x, type FeedFeedbackTone as y, type FeedTransientFeedbackTone as z };
|
package/dist/spend.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { aI as GranularSpendContext, aJ as OpenAIUsageSpendEvent, aK as RecordOpenAIUsageSpendOptions, aL as RecordOpenAIUsageSpendResult, aN as buildOpenAISpendEventId, aO as recordOpenAIUsageSpend, aM as toGranularHttpBase } from './spend-
|
|
1
|
+
export { aI as GranularSpendContext, aJ as OpenAIUsageSpendEvent, aK as RecordOpenAIUsageSpendOptions, aL as RecordOpenAIUsageSpendResult, aN as buildOpenAISpendEventId, aO as recordOpenAIUsageSpend, aM as toGranularHttpBase } from './spend-DBRQOSaj.mjs';
|
package/dist/spend.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { aI as GranularSpendContext, aJ as OpenAIUsageSpendEvent, aK as RecordOpenAIUsageSpendOptions, aL as RecordOpenAIUsageSpendResult, aN as buildOpenAISpendEventId, aO as recordOpenAIUsageSpend, aM as toGranularHttpBase } from './spend-
|
|
1
|
+
export { aI as GranularSpendContext, aJ as OpenAIUsageSpendEvent, aK as RecordOpenAIUsageSpendOptions, aL as RecordOpenAIUsageSpendResult, aN as buildOpenAISpendEventId, aO as recordOpenAIUsageSpend, aM as toGranularHttpBase } from './spend-DBRQOSaj.js';
|
package/package.json
CHANGED