@granular-software/sdk 0.4.70 → 0.4.71
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 +286 -27
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +286 -27
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/agent-harness.js +4 -0
- package/dist/agent-harness.js.map +1 -1
- package/dist/agent-harness.mjs +4 -0
- package/dist/agent-harness.mjs.map +1 -1
- package/dist/cli/index.js +282 -27
- package/dist/{client-D1gq4TO4.d.ts → client-JCISbded.d.ts} +23 -3
- package/dist/{client-qgWZ495o.d.mts → client-p5EhOwpP.d.mts} +23 -3
- package/dist/index.d.mts +67 -4
- package/dist/index.d.ts +67 -4
- package/dist/index.js +1396 -232
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1385 -233
- package/dist/index.mjs.map +1 -1
- package/dist/{spend-B-IQmp7F.d.mts → spend-lJDtuAr6.d.mts} +109 -2
- package/dist/{spend-B-IQmp7F.d.ts → spend-lJDtuAr6.d.ts} +109 -2
- package/dist/spend.d.mts +1 -1
- package/dist/spend.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1218,6 +1218,12 @@ interface SourceAcknowledgement {
|
|
|
1218
1218
|
reference: string;
|
|
1219
1219
|
/** Monotonic product version, causal token, or serialized adapter sequence. */
|
|
1220
1220
|
version?: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* Declares what the version orders. `global` may safely order every target
|
|
1223
|
+
* in one atomic projection; `target` (and omission) is scoped to each
|
|
1224
|
+
* affected target and cannot bridge missing target watermarks.
|
|
1225
|
+
*/
|
|
1226
|
+
versionScope?: "global" | "target";
|
|
1221
1227
|
}
|
|
1222
1228
|
interface CommitSafeError {
|
|
1223
1229
|
code: string;
|
|
@@ -1871,6 +1877,53 @@ interface SessionFileRecord {
|
|
|
1871
1877
|
}
|
|
1872
1878
|
type SessionArtifactStatus = "draft" | "ready" | "needs_edit" | "blocked" | "running" | "awaiting_human" | "completed" | "partially_completed" | "failed" | "canceled" | "stale";
|
|
1873
1879
|
type SessionArtifactKind = "effect" | "batch" | "state_path";
|
|
1880
|
+
type ArtifactWorkflowNodeKind = "group" | "input" | "relationship" | "child_artifact" | "transition" | "operation";
|
|
1881
|
+
type ArtifactWorkflowCompletionState = "effect_applied" | "graph_propagated";
|
|
1882
|
+
type ArtifactWorkflowNodeStatus = "completed" | "current" | "needs_input" | "working" | "blocked" | "failed" | "upcoming" | "skipped" | "canceled";
|
|
1883
|
+
type ArtifactWorkflowNodeAvailability = "available" | "readonly" | "unavailable";
|
|
1884
|
+
type ArtifactWorkflowOperationPhase = "reviewing" | "sending" | "synchronizing" | "verifying" | "waiting_for_approval" | "completed" | "failed";
|
|
1885
|
+
interface ArtifactWorkflowRecapItem {
|
|
1886
|
+
label: string;
|
|
1887
|
+
value: string;
|
|
1888
|
+
}
|
|
1889
|
+
interface ArtifactWorkflowRecap {
|
|
1890
|
+
summary: string;
|
|
1891
|
+
items: ArtifactWorkflowRecapItem[];
|
|
1892
|
+
}
|
|
1893
|
+
interface ArtifactWorkflowAttention {
|
|
1894
|
+
title: string;
|
|
1895
|
+
detail?: string | null;
|
|
1896
|
+
retryable?: boolean;
|
|
1897
|
+
}
|
|
1898
|
+
interface ArtifactWorkflowNode {
|
|
1899
|
+
id: string;
|
|
1900
|
+
artifactId: string;
|
|
1901
|
+
parentId: string | null;
|
|
1902
|
+
childIds: string[];
|
|
1903
|
+
kind: ArtifactWorkflowNodeKind;
|
|
1904
|
+
label: string;
|
|
1905
|
+
description?: string | null;
|
|
1906
|
+
status: ArtifactWorkflowNodeStatus;
|
|
1907
|
+
availability: ArtifactWorkflowNodeAvailability;
|
|
1908
|
+
fieldNames?: string[];
|
|
1909
|
+
childArtifactId?: string | null;
|
|
1910
|
+
operationPhase?: ArtifactWorkflowOperationPhase | null;
|
|
1911
|
+
completionState?: ArtifactWorkflowCompletionState | null;
|
|
1912
|
+
operationDetail?: string | null;
|
|
1913
|
+
recap?: ArtifactWorkflowRecap | null;
|
|
1914
|
+
attention?: ArtifactWorkflowAttention | null;
|
|
1915
|
+
startedAt?: number | null;
|
|
1916
|
+
completedAt?: number | null;
|
|
1917
|
+
}
|
|
1918
|
+
interface ArtifactWorkflow {
|
|
1919
|
+
schemaVersion: 1;
|
|
1920
|
+
revision: number;
|
|
1921
|
+
artifactId: string;
|
|
1922
|
+
rootNodeIds: string[];
|
|
1923
|
+
nodesById: Record<string, ArtifactWorkflowNode>;
|
|
1924
|
+
currentNodeId: string | null;
|
|
1925
|
+
updatedAt: number;
|
|
1926
|
+
}
|
|
1874
1927
|
/**
|
|
1875
1928
|
* Declarative impact metadata consumed by deterministic clients before an
|
|
1876
1929
|
* artifact can execute. Missing metadata must be treated conservatively.
|
|
@@ -1891,10 +1944,26 @@ interface SessionArtifactAutonomyPolicy {
|
|
|
1891
1944
|
[key: string]: unknown;
|
|
1892
1945
|
}
|
|
1893
1946
|
type SessionArtifactFieldProvenanceSource = "user_statement" | "agent_extraction" | "agent_inference" | "provider_lookup" | "ontology_default" | "user_edit";
|
|
1947
|
+
/**
|
|
1948
|
+
* Server-derived context for a value suggested during a user turn.
|
|
1949
|
+
*
|
|
1950
|
+
* This deliberately contains identifiers only. The request text remains in
|
|
1951
|
+
* the canonical conversation feed; duplicating it on every field would make
|
|
1952
|
+
* artifacts larger and would make provenance harder to invalidate safely.
|
|
1953
|
+
*/
|
|
1954
|
+
type SessionArtifactRequestContextSource = "user_turn" | "provider_result" | "ontology_default";
|
|
1955
|
+
interface SessionArtifactRequestContext {
|
|
1956
|
+
source: SessionArtifactRequestContextSource;
|
|
1957
|
+
turnId?: string | null;
|
|
1958
|
+
userMessageId?: string | null;
|
|
1959
|
+
jobId?: string | null;
|
|
1960
|
+
}
|
|
1894
1961
|
interface SessionArtifactFieldProvenance {
|
|
1895
1962
|
source: SessionArtifactFieldProvenanceSource;
|
|
1896
1963
|
confidence?: "exact" | "likely" | "ambiguous" | null;
|
|
1897
1964
|
reason?: string | null;
|
|
1965
|
+
/** Authoritative request/turn context attached by the session backend. */
|
|
1966
|
+
context?: SessionArtifactRequestContext | null;
|
|
1898
1967
|
updatedAt?: number | null;
|
|
1899
1968
|
confirmedAt?: number | null;
|
|
1900
1969
|
invalidatedAt?: number | null;
|
|
@@ -1912,6 +1981,8 @@ interface SessionArtifactRecord {
|
|
|
1912
1981
|
label: string;
|
|
1913
1982
|
description?: string | null;
|
|
1914
1983
|
status: SessionArtifactStatus;
|
|
1984
|
+
/** Backend-authored user-level workflow. Clients must not infer a second one. */
|
|
1985
|
+
workflow?: ArtifactWorkflow;
|
|
1915
1986
|
target?: {
|
|
1916
1987
|
className: string;
|
|
1917
1988
|
id: string;
|
|
@@ -2420,7 +2491,41 @@ interface SnapshotResetMessage {
|
|
|
2420
2491
|
type: "snapshot_reset";
|
|
2421
2492
|
documentEpoch: number;
|
|
2422
2493
|
documentRevision: number;
|
|
2423
|
-
|
|
2494
|
+
/** Legacy Automerge binary replacement payload. */
|
|
2495
|
+
data?: number[];
|
|
2496
|
+
/** Server-authoritative JSON replacement payload. */
|
|
2497
|
+
document?: Record<string, unknown>;
|
|
2498
|
+
}
|
|
2499
|
+
/**
|
|
2500
|
+
* High-frequency job presentation update. It deliberately carries only the
|
|
2501
|
+
* bounded trace for one job; it is not a canonical document revision and must
|
|
2502
|
+
* not be treated as a replacement for the session snapshot.
|
|
2503
|
+
*/
|
|
2504
|
+
interface JobActionTraceMessage {
|
|
2505
|
+
type: "job_action_trace";
|
|
2506
|
+
jobId: string;
|
|
2507
|
+
documentEpoch: number;
|
|
2508
|
+
documentRevision: number;
|
|
2509
|
+
actionTrace: Array<Record<string, unknown>>;
|
|
2510
|
+
actionSummary: string[];
|
|
2511
|
+
actionSummaryText: string;
|
|
2512
|
+
}
|
|
2513
|
+
/**
|
|
2514
|
+
* Bounded live-feed overlay update. It carries no canonical document
|
|
2515
|
+
* revision: a transient is presentation state and must not create a full
|
|
2516
|
+
* snapshot/history entry just because its text changed.
|
|
2517
|
+
*/
|
|
2518
|
+
interface FeedTransientPatchMessage {
|
|
2519
|
+
type: "feed_transient_patch";
|
|
2520
|
+
documentEpoch: number;
|
|
2521
|
+
documentRevision: number;
|
|
2522
|
+
feedRevision: number;
|
|
2523
|
+
lastTransientOrdinal: number;
|
|
2524
|
+
changes: Array<{
|
|
2525
|
+
transientId: string;
|
|
2526
|
+
item?: Record<string, unknown>;
|
|
2527
|
+
removed?: boolean;
|
|
2528
|
+
}>;
|
|
2424
2529
|
}
|
|
2425
2530
|
interface RPCRequestFromServer {
|
|
2426
2531
|
type: "rpc";
|
|
@@ -2866,6 +2971,7 @@ interface ManifestStateMachineTransitionSpec {
|
|
|
2866
2971
|
to: string;
|
|
2867
2972
|
label?: string;
|
|
2868
2973
|
description?: string;
|
|
2974
|
+
userVisible?: boolean;
|
|
2869
2975
|
action?: ManifestStateTransitionActionSpec;
|
|
2870
2976
|
assignee?: ManifestStateTransitionAssigneeSpec;
|
|
2871
2977
|
requirements?: ManifestStateTransitionRequirementsSpec;
|
|
@@ -2904,6 +3010,7 @@ type ManifestCreatesSpec = string | {
|
|
|
2904
3010
|
idPath?: string;
|
|
2905
3011
|
pathPath?: string;
|
|
2906
3012
|
statePath?: string;
|
|
3013
|
+
completionState?: string;
|
|
2907
3014
|
classStateHandle?: boolean;
|
|
2908
3015
|
};
|
|
2909
3016
|
interface ManifestEffectMetamodelSpec {
|
|
@@ -3173,4 +3280,4 @@ declare function toGranularHttpBase(apiUrl: string): string;
|
|
|
3173
3280
|
declare function buildOpenAISpendEventId(usage: Pick<OpenAIUsageSpendEvent, "requestId">, context?: GranularSpendContext): string | undefined;
|
|
3174
3281
|
declare function recordOpenAIUsageSpend(options: RecordOpenAIUsageSpendOptions): Promise<RecordOpenAIUsageSpendResult>;
|
|
3175
3282
|
|
|
3176
|
-
export { type TransientMessageFeedItem as $, type MessageFeedItem as A, type FeedbackFeedItem as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedObjectReference as G, type FeedTableCell as H, type InstanceToolHandler as I, type FeedTableColumn as J, type FeedTableRowReference as K, type FeedTableRow as L, type ManifestEffectMetamodelSpec as M, type FeedTableProjection as N, type ObjectsFeedItem as O, type ProjectionResult as P, type TableFeedItem as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type ArtifactFeedItem as U, type FeedFileSource as V, type FileFeedItem as W, type NormalizedSuggestedArtifact as X, type ActionSuggestionFeedItem as Y, type PromptFeedItem as Z, type TransientFeedItemBase as _, type EnvironmentRecordImportSummary as a, type CreateSessionOptions as a$, type TransientFeedbackFeedItem as a0, type TransientFeedItem as a1, type FeedSnapshot as a2, type FeedListOptions as a3, type FeedPage as a4, type FeedSubscribeOptions as a5, type FeedSubscriptionChange as a6, type SessionFeedApi as a7, mergeFeedItemsBySequence as a8, orderTransientFeedItems as a9, OPENAI_MODEL_PRICING_USD_PER_MILLION as aA, getOpenAIModelPricing as aB, normalizeOpenAIUsage as aC, calculateOpenAITokenSpend as aD, type GranularSpendContext as aE, type OpenAIUsageSpendEvent as aF, type RecordOpenAIUsageSpendOptions as aG, type RecordOpenAIUsageSpendResult as aH, toGranularHttpBase as aI, buildOpenAISpendEventId as aJ, recordOpenAIUsageSpend as aK, type PolicySource as aL, type PolicyPredicateSource as aM, type PolicyOperator as aN, type ConditionIR as aO, type PolicyOrigin as aP, type PolicyRuleIR as aQ, type MatchedPolicy as aR, type AccessTokenProvider as aS, type GranularOptions as aT, type GranularAuth as aU, type User as aV, type RecordUserOptions as aW, type Subject as aX, type OpenEnvironmentOptions as aY, type AdoptEnvironmentOptions as aZ, type ConnectOptions as a_, type FeedListTransport as aa, type FeedSnapshotRegressionReason as ab, type FeedDiagnostic as ac, type FeedDiagnosticListener as ad, GRANULAR_FEED_DIAGNOSTIC_EVENT as ae, normalizeFeedDiagnosticKind as af, normalizeFeedDiagnostic as ag, emitFeedDiagnosticToDefaultSink as ah, emitFeedDiagnostic as ai, type SessionFeedControllerOptions as aj, type FeedDocumentState as ak, emptyFeedSnapshot as al, hasCanonicalSessionFeedActivation as am, isCanonicalSessionFeedDocument as an, readSessionFeedSnapshot as ao, normalizeFeedPage as ap, SessionFeedController as aq, type PublishFeedbackOptions as ar, type PublishTransientFeedbackOptions as as, type SettleTransientFeedbackOptions as at, type TransientFeedbackHandle as au, type FeedPublisher as av, createFeedPublisher as aw, type OpenAIModelPricing as ax, type NormalizedOpenAIUsage as ay, type OpenAITokenSpend as az, type EndpointMode as b, type EffectSchema as b$, type ConversationSessionInfo as b0, type ConversationSessionListStatus as b1, type ConversationSessionListOptions as b2, type ConversationSessionListResponse as b3, type SpendLineItemType as b4, type QuotaScopeType as b5, type QuotaPeriod as b6, type QuotaStatus as b7, type SpendSummary as b8, type QuotaLineItemFilter as b9, type CommitSafeError as bA, type TransitionOutcomeProjection as bB, type CanonicalProjectedRecord as bC, type ObjectProjectionChange as bD, type RelationshipProjectionChange as bE, type StateObservationProjectionChange as bF, type ProjectionChange as bG, type BaseProjectionResult as bH, type EffectProjectionResult as bI, type TransitionProjectionResult as bJ, type AgentCommitStatus as bK, type CommitChangeReceipt as bL, type CommitTransitionReceipt as bM, type ExternalCommitOptions as bN, type ObservationReceipt as bO, type SessionMutationView as bP, type EffectCommitContext as bQ, type ResolvedEffectPostCondition as bR, type ResolvedEffectDryRun as bS, type ResolvedEffectReverse as bT, type ResolvedEffectApprovalRequired as bU, type EffectInvocationMode as bV, type EffectArtifactOptionsInvocation as bW, type EffectInvocationMetadata as bX, type EffectArtifactRelationshipOption as bY, type EffectArtifactRelationshipOptionsResult as bZ, type ArtifactOptionsHandler as b_, type GranularQuotaPolicy as ba, type GranularQuotaProgress as bb, type Sandbox as bc, type CreateSandboxData as bd, type SandboxListResponse as be, type PermissionRules as bf, type PermissionProfile as bg, type CreatePermissionProfileData as bh, type PermissionProfileListResponse as bi, type Assignment as bj, type AssignmentListResponse as bk, type BuildPolicy as bl, type VersionTracking as bm, type VersionTag as bn, type CreateEnvironmentData as bo, type EnvironmentListResponse as bp, type Manifest as bq, type ManifestListResponse as br, type BuildStatus as bs, type Build as bt, type Version as bu, type BuildListResponse as bv, type SemanticVersionDiffEntry as bw, type SemanticVersionDiff as bx, type ObjectReference as by, type SourceAcknowledgement as bz, type EffectCommitRequest as c, type SessionHeapFieldType as c$, type EffectWithHandler as c0, type PublishEffectsResult as c1, type EffectVersionSelector as c2, type ToolInfo as c3, type EffectInfo as c4, type ToolsChangedEvent as c5, type EffectsChangedEvent as c6, type EffectHandler as c7, type InstanceEffectHandler as c8, type JobStatus as c9, type SessionArtifactRecord as cA, type SessionArtifactListOptions as cB, type SessionArtifactValidationResult as cC, type SessionArtifactRelationshipOptionsInput as cD, type SessionArtifactRelationshipOption as cE, type SessionArtifactRelationshipOptionsResult as cF, type SessionArtifactRelationshipCreateInput as cG, type SessionArtifactExecutionResult as cH, type SessionArtifactExecutionOptions as cI, type SessionArtifactApprovalOptions as cJ, type ArtifactApprovalTaskStatus as cK, type ArtifactApprovalTask as cL, type ArtifactApprovalTaskListOptions as cM, type ArtifactApprovalDecisionInput as cN, type ArtifactApprovalDecisionResult as cO, type ManualActionStatus as cP, type ManualActionSource as cQ, type ManualActionTarget as cR, type ManualActionRelatedRecord as cS, type RecordManualActionInput as cT, type ManualActionOccurrence as cU, type ManualActionRecordResult as cV, type ManualActionListOptions as cW, type ManualActionSuggestion as cX, type ManualActionSuggestionOptions as cY, type SessionFileUploadOptions as cZ, type SessionJobRecord as c_, type JobFeedbackSentiment as ca, type JobFeedbackToolCall as cb, type JobFeedbackMetadata as cc, type JobFeedbackInput as cd, type JobFeedbackRecord as ce, type EnvironmentFeedbackRecord as cf, type JobSubmitResult as cg, type Job as ch, type UserMessageShowRefs as ci, type UserMessageTarget as cj, type UserMessageInput as ck, type UserMessageAppendResult as cl, type AssistantReplyPublicationInput as cm, type AssistantReplyPublicationResult as cn, type SessionTranscriptActionSuggestion as co, type SessionTranscriptShowRefs as cp, type SessionTimelineEvent as cq, type SessionFileSource as cr, type SessionFileKind as cs, type SessionFileStatus as ct, type SessionFileRecord as cu, type SessionArtifactStatus as cv, type SessionArtifactKind as cw, type SessionArtifactAutonomyPolicy as cx, type SessionArtifactFieldProvenanceSource as cy, type SessionArtifactFieldProvenance as cz, type ProjectionMapper as d, type ManifestStateTransitionExpectedOutcomeSpec as d$, type SessionHeapFieldValue as d0, type SessionHeapVariable as d1, type RecordSearchResult as d2, type RecordSearchOptions as d3, type RecordMentionInput as d4, type SessionDocumentResult as d5, type SessionCollectionListOptions as d6, type SessionJobListOptions as d7, type SessionCollectionListResult as d8, type UserEnvironmentPrompt as d9, type RecordObjectsOptions as dA, type RecordImportWriteMode as dB, type RecordImportOptions as dC, type RecordImportStatus as dD, type RecordImportItemStatus as dE, type RecordImportStats as dF, type RecordImportItem as dG, type RecordImport as dH, type EnvironmentSetupTriggerReason as dI, type RunEnvironmentImporterOptions as dJ, type EnvironmentSetupLifecycleStatus as dK, type EnvironmentSetupSummary as dL, type EnvironmentSetupImporterClaim as dM, type EnvironmentImporterImportOptions as dN, type EnvironmentImporter as dO, type ManifestPropertySpec as dP, type ManifestValidationOperator as dQ, type ManifestEnumRuleSpec as dR, type ManifestFilterBySpec as dS, type ManifestValidationRuleSpec as dT, type ManifestStateMachineStateSpec as dU, type ManifestStateTransitionInputBinding as dV, type ManifestStateTransitionActionSpec as dW, type ManifestStateTransitionAssigneeSpec as dX, type ManifestStateTransitionRelatedStateRequirementSpec as dY, type ManifestStateTransitionRequirementsSpec as dZ, type ManifestStateTransitionPermissionSpec as d_, type UserEnvironmentMessagePreview as da, type UserEnvironmentSessionState as db, type UserEnvironmentState as dc, type UserEnvironmentStateOptions as dd, type MarkUserEnvironmentReadOptions as de, type WSDisconnectInfo as df, type WSReconnectErrorInfo as dg, type WSClientOptions as dh, type RPCRequest as di, type RPCResponse as dj, type SnapshotResetMessage as dk, type RPCRequestFromServer as dl, type ToolInvokeParams as dm, type ToolResultParams as dn, type ModelRef as dp, type RelationshipInfo as dq, type DefineRelationshipOptions as dr, type RecordObjectStateValue as ds, type EnvironmentStateTarget as dt, type EnvironmentStateObservationInput as du, type EnvironmentStateUpdateInput as dv, type EnvironmentStateMachineProxy as dw, type EnvironmentStateProxy as dx, type RecordObjectResult as dy, type RecordObjectsChunkInfo as dz, type CommitTransitionOutcomeDeclaration as e, type ManifestStateTransitionOutcomeSpec as e0, type ManifestStateMachineTransitionSpec as e1, type ManifestStateMachineSpec as e2, type ManifestPostConditionSpec as e3, type ManifestDryRunSpec as e4, type ManifestReverseSpec as e5, type ManifestApprovalRequiredSpec as e6, type ManifestCreatesSpec as e7, type ManifestRelationshipDef as e8, type ManifestEffectSchema as e9, type ManifestEffectDeclaration as ea, type ManifestEventTypeDef as eb, type ManifestEventStreamDef as ec, type ManifestOperation as ed, type ManifestImport as ee, type ManifestVolume as ef, type GraphQLResult as eg, type APIError as eh, type DeleteResponse as ei, type StreamEvent as ej, type StreamSubscription as ek, type StreamStats as el, 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 ToolSchema as p, type PublishToolsResult as q, type ToolHandler as r, type FeedSourceActor as s, type FeedSource as t, type FeedIconToken as u, type FeedFeedbackTone as v, type FeedTransientFeedbackTone as w, type FeedItemKind as x, type FeedTarget as y, type FeedItemBase as z };
|
|
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 };
|
|
@@ -1218,6 +1218,12 @@ interface SourceAcknowledgement {
|
|
|
1218
1218
|
reference: string;
|
|
1219
1219
|
/** Monotonic product version, causal token, or serialized adapter sequence. */
|
|
1220
1220
|
version?: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* Declares what the version orders. `global` may safely order every target
|
|
1223
|
+
* in one atomic projection; `target` (and omission) is scoped to each
|
|
1224
|
+
* affected target and cannot bridge missing target watermarks.
|
|
1225
|
+
*/
|
|
1226
|
+
versionScope?: "global" | "target";
|
|
1221
1227
|
}
|
|
1222
1228
|
interface CommitSafeError {
|
|
1223
1229
|
code: string;
|
|
@@ -1871,6 +1877,53 @@ interface SessionFileRecord {
|
|
|
1871
1877
|
}
|
|
1872
1878
|
type SessionArtifactStatus = "draft" | "ready" | "needs_edit" | "blocked" | "running" | "awaiting_human" | "completed" | "partially_completed" | "failed" | "canceled" | "stale";
|
|
1873
1879
|
type SessionArtifactKind = "effect" | "batch" | "state_path";
|
|
1880
|
+
type ArtifactWorkflowNodeKind = "group" | "input" | "relationship" | "child_artifact" | "transition" | "operation";
|
|
1881
|
+
type ArtifactWorkflowCompletionState = "effect_applied" | "graph_propagated";
|
|
1882
|
+
type ArtifactWorkflowNodeStatus = "completed" | "current" | "needs_input" | "working" | "blocked" | "failed" | "upcoming" | "skipped" | "canceled";
|
|
1883
|
+
type ArtifactWorkflowNodeAvailability = "available" | "readonly" | "unavailable";
|
|
1884
|
+
type ArtifactWorkflowOperationPhase = "reviewing" | "sending" | "synchronizing" | "verifying" | "waiting_for_approval" | "completed" | "failed";
|
|
1885
|
+
interface ArtifactWorkflowRecapItem {
|
|
1886
|
+
label: string;
|
|
1887
|
+
value: string;
|
|
1888
|
+
}
|
|
1889
|
+
interface ArtifactWorkflowRecap {
|
|
1890
|
+
summary: string;
|
|
1891
|
+
items: ArtifactWorkflowRecapItem[];
|
|
1892
|
+
}
|
|
1893
|
+
interface ArtifactWorkflowAttention {
|
|
1894
|
+
title: string;
|
|
1895
|
+
detail?: string | null;
|
|
1896
|
+
retryable?: boolean;
|
|
1897
|
+
}
|
|
1898
|
+
interface ArtifactWorkflowNode {
|
|
1899
|
+
id: string;
|
|
1900
|
+
artifactId: string;
|
|
1901
|
+
parentId: string | null;
|
|
1902
|
+
childIds: string[];
|
|
1903
|
+
kind: ArtifactWorkflowNodeKind;
|
|
1904
|
+
label: string;
|
|
1905
|
+
description?: string | null;
|
|
1906
|
+
status: ArtifactWorkflowNodeStatus;
|
|
1907
|
+
availability: ArtifactWorkflowNodeAvailability;
|
|
1908
|
+
fieldNames?: string[];
|
|
1909
|
+
childArtifactId?: string | null;
|
|
1910
|
+
operationPhase?: ArtifactWorkflowOperationPhase | null;
|
|
1911
|
+
completionState?: ArtifactWorkflowCompletionState | null;
|
|
1912
|
+
operationDetail?: string | null;
|
|
1913
|
+
recap?: ArtifactWorkflowRecap | null;
|
|
1914
|
+
attention?: ArtifactWorkflowAttention | null;
|
|
1915
|
+
startedAt?: number | null;
|
|
1916
|
+
completedAt?: number | null;
|
|
1917
|
+
}
|
|
1918
|
+
interface ArtifactWorkflow {
|
|
1919
|
+
schemaVersion: 1;
|
|
1920
|
+
revision: number;
|
|
1921
|
+
artifactId: string;
|
|
1922
|
+
rootNodeIds: string[];
|
|
1923
|
+
nodesById: Record<string, ArtifactWorkflowNode>;
|
|
1924
|
+
currentNodeId: string | null;
|
|
1925
|
+
updatedAt: number;
|
|
1926
|
+
}
|
|
1874
1927
|
/**
|
|
1875
1928
|
* Declarative impact metadata consumed by deterministic clients before an
|
|
1876
1929
|
* artifact can execute. Missing metadata must be treated conservatively.
|
|
@@ -1891,10 +1944,26 @@ interface SessionArtifactAutonomyPolicy {
|
|
|
1891
1944
|
[key: string]: unknown;
|
|
1892
1945
|
}
|
|
1893
1946
|
type SessionArtifactFieldProvenanceSource = "user_statement" | "agent_extraction" | "agent_inference" | "provider_lookup" | "ontology_default" | "user_edit";
|
|
1947
|
+
/**
|
|
1948
|
+
* Server-derived context for a value suggested during a user turn.
|
|
1949
|
+
*
|
|
1950
|
+
* This deliberately contains identifiers only. The request text remains in
|
|
1951
|
+
* the canonical conversation feed; duplicating it on every field would make
|
|
1952
|
+
* artifacts larger and would make provenance harder to invalidate safely.
|
|
1953
|
+
*/
|
|
1954
|
+
type SessionArtifactRequestContextSource = "user_turn" | "provider_result" | "ontology_default";
|
|
1955
|
+
interface SessionArtifactRequestContext {
|
|
1956
|
+
source: SessionArtifactRequestContextSource;
|
|
1957
|
+
turnId?: string | null;
|
|
1958
|
+
userMessageId?: string | null;
|
|
1959
|
+
jobId?: string | null;
|
|
1960
|
+
}
|
|
1894
1961
|
interface SessionArtifactFieldProvenance {
|
|
1895
1962
|
source: SessionArtifactFieldProvenanceSource;
|
|
1896
1963
|
confidence?: "exact" | "likely" | "ambiguous" | null;
|
|
1897
1964
|
reason?: string | null;
|
|
1965
|
+
/** Authoritative request/turn context attached by the session backend. */
|
|
1966
|
+
context?: SessionArtifactRequestContext | null;
|
|
1898
1967
|
updatedAt?: number | null;
|
|
1899
1968
|
confirmedAt?: number | null;
|
|
1900
1969
|
invalidatedAt?: number | null;
|
|
@@ -1912,6 +1981,8 @@ interface SessionArtifactRecord {
|
|
|
1912
1981
|
label: string;
|
|
1913
1982
|
description?: string | null;
|
|
1914
1983
|
status: SessionArtifactStatus;
|
|
1984
|
+
/** Backend-authored user-level workflow. Clients must not infer a second one. */
|
|
1985
|
+
workflow?: ArtifactWorkflow;
|
|
1915
1986
|
target?: {
|
|
1916
1987
|
className: string;
|
|
1917
1988
|
id: string;
|
|
@@ -2420,7 +2491,41 @@ interface SnapshotResetMessage {
|
|
|
2420
2491
|
type: "snapshot_reset";
|
|
2421
2492
|
documentEpoch: number;
|
|
2422
2493
|
documentRevision: number;
|
|
2423
|
-
|
|
2494
|
+
/** Legacy Automerge binary replacement payload. */
|
|
2495
|
+
data?: number[];
|
|
2496
|
+
/** Server-authoritative JSON replacement payload. */
|
|
2497
|
+
document?: Record<string, unknown>;
|
|
2498
|
+
}
|
|
2499
|
+
/**
|
|
2500
|
+
* High-frequency job presentation update. It deliberately carries only the
|
|
2501
|
+
* bounded trace for one job; it is not a canonical document revision and must
|
|
2502
|
+
* not be treated as a replacement for the session snapshot.
|
|
2503
|
+
*/
|
|
2504
|
+
interface JobActionTraceMessage {
|
|
2505
|
+
type: "job_action_trace";
|
|
2506
|
+
jobId: string;
|
|
2507
|
+
documentEpoch: number;
|
|
2508
|
+
documentRevision: number;
|
|
2509
|
+
actionTrace: Array<Record<string, unknown>>;
|
|
2510
|
+
actionSummary: string[];
|
|
2511
|
+
actionSummaryText: string;
|
|
2512
|
+
}
|
|
2513
|
+
/**
|
|
2514
|
+
* Bounded live-feed overlay update. It carries no canonical document
|
|
2515
|
+
* revision: a transient is presentation state and must not create a full
|
|
2516
|
+
* snapshot/history entry just because its text changed.
|
|
2517
|
+
*/
|
|
2518
|
+
interface FeedTransientPatchMessage {
|
|
2519
|
+
type: "feed_transient_patch";
|
|
2520
|
+
documentEpoch: number;
|
|
2521
|
+
documentRevision: number;
|
|
2522
|
+
feedRevision: number;
|
|
2523
|
+
lastTransientOrdinal: number;
|
|
2524
|
+
changes: Array<{
|
|
2525
|
+
transientId: string;
|
|
2526
|
+
item?: Record<string, unknown>;
|
|
2527
|
+
removed?: boolean;
|
|
2528
|
+
}>;
|
|
2424
2529
|
}
|
|
2425
2530
|
interface RPCRequestFromServer {
|
|
2426
2531
|
type: "rpc";
|
|
@@ -2866,6 +2971,7 @@ interface ManifestStateMachineTransitionSpec {
|
|
|
2866
2971
|
to: string;
|
|
2867
2972
|
label?: string;
|
|
2868
2973
|
description?: string;
|
|
2974
|
+
userVisible?: boolean;
|
|
2869
2975
|
action?: ManifestStateTransitionActionSpec;
|
|
2870
2976
|
assignee?: ManifestStateTransitionAssigneeSpec;
|
|
2871
2977
|
requirements?: ManifestStateTransitionRequirementsSpec;
|
|
@@ -2904,6 +3010,7 @@ type ManifestCreatesSpec = string | {
|
|
|
2904
3010
|
idPath?: string;
|
|
2905
3011
|
pathPath?: string;
|
|
2906
3012
|
statePath?: string;
|
|
3013
|
+
completionState?: string;
|
|
2907
3014
|
classStateHandle?: boolean;
|
|
2908
3015
|
};
|
|
2909
3016
|
interface ManifestEffectMetamodelSpec {
|
|
@@ -3173,4 +3280,4 @@ declare function toGranularHttpBase(apiUrl: string): string;
|
|
|
3173
3280
|
declare function buildOpenAISpendEventId(usage: Pick<OpenAIUsageSpendEvent, "requestId">, context?: GranularSpendContext): string | undefined;
|
|
3174
3281
|
declare function recordOpenAIUsageSpend(options: RecordOpenAIUsageSpendOptions): Promise<RecordOpenAIUsageSpendResult>;
|
|
3175
3282
|
|
|
3176
|
-
export { type TransientMessageFeedItem as $, type MessageFeedItem as A, type FeedbackFeedItem as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedObjectReference as G, type FeedTableCell as H, type InstanceToolHandler as I, type FeedTableColumn as J, type FeedTableRowReference as K, type FeedTableRow as L, type ManifestEffectMetamodelSpec as M, type FeedTableProjection as N, type ObjectsFeedItem as O, type ProjectionResult as P, type TableFeedItem as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type ArtifactFeedItem as U, type FeedFileSource as V, type FileFeedItem as W, type NormalizedSuggestedArtifact as X, type ActionSuggestionFeedItem as Y, type PromptFeedItem as Z, type TransientFeedItemBase as _, type EnvironmentRecordImportSummary as a, type CreateSessionOptions as a$, type TransientFeedbackFeedItem as a0, type TransientFeedItem as a1, type FeedSnapshot as a2, type FeedListOptions as a3, type FeedPage as a4, type FeedSubscribeOptions as a5, type FeedSubscriptionChange as a6, type SessionFeedApi as a7, mergeFeedItemsBySequence as a8, orderTransientFeedItems as a9, OPENAI_MODEL_PRICING_USD_PER_MILLION as aA, getOpenAIModelPricing as aB, normalizeOpenAIUsage as aC, calculateOpenAITokenSpend as aD, type GranularSpendContext as aE, type OpenAIUsageSpendEvent as aF, type RecordOpenAIUsageSpendOptions as aG, type RecordOpenAIUsageSpendResult as aH, toGranularHttpBase as aI, buildOpenAISpendEventId as aJ, recordOpenAIUsageSpend as aK, type PolicySource as aL, type PolicyPredicateSource as aM, type PolicyOperator as aN, type ConditionIR as aO, type PolicyOrigin as aP, type PolicyRuleIR as aQ, type MatchedPolicy as aR, type AccessTokenProvider as aS, type GranularOptions as aT, type GranularAuth as aU, type User as aV, type RecordUserOptions as aW, type Subject as aX, type OpenEnvironmentOptions as aY, type AdoptEnvironmentOptions as aZ, type ConnectOptions as a_, type FeedListTransport as aa, type FeedSnapshotRegressionReason as ab, type FeedDiagnostic as ac, type FeedDiagnosticListener as ad, GRANULAR_FEED_DIAGNOSTIC_EVENT as ae, normalizeFeedDiagnosticKind as af, normalizeFeedDiagnostic as ag, emitFeedDiagnosticToDefaultSink as ah, emitFeedDiagnostic as ai, type SessionFeedControllerOptions as aj, type FeedDocumentState as ak, emptyFeedSnapshot as al, hasCanonicalSessionFeedActivation as am, isCanonicalSessionFeedDocument as an, readSessionFeedSnapshot as ao, normalizeFeedPage as ap, SessionFeedController as aq, type PublishFeedbackOptions as ar, type PublishTransientFeedbackOptions as as, type SettleTransientFeedbackOptions as at, type TransientFeedbackHandle as au, type FeedPublisher as av, createFeedPublisher as aw, type OpenAIModelPricing as ax, type NormalizedOpenAIUsage as ay, type OpenAITokenSpend as az, type EndpointMode as b, type EffectSchema as b$, type ConversationSessionInfo as b0, type ConversationSessionListStatus as b1, type ConversationSessionListOptions as b2, type ConversationSessionListResponse as b3, type SpendLineItemType as b4, type QuotaScopeType as b5, type QuotaPeriod as b6, type QuotaStatus as b7, type SpendSummary as b8, type QuotaLineItemFilter as b9, type CommitSafeError as bA, type TransitionOutcomeProjection as bB, type CanonicalProjectedRecord as bC, type ObjectProjectionChange as bD, type RelationshipProjectionChange as bE, type StateObservationProjectionChange as bF, type ProjectionChange as bG, type BaseProjectionResult as bH, type EffectProjectionResult as bI, type TransitionProjectionResult as bJ, type AgentCommitStatus as bK, type CommitChangeReceipt as bL, type CommitTransitionReceipt as bM, type ExternalCommitOptions as bN, type ObservationReceipt as bO, type SessionMutationView as bP, type EffectCommitContext as bQ, type ResolvedEffectPostCondition as bR, type ResolvedEffectDryRun as bS, type ResolvedEffectReverse as bT, type ResolvedEffectApprovalRequired as bU, type EffectInvocationMode as bV, type EffectArtifactOptionsInvocation as bW, type EffectInvocationMetadata as bX, type EffectArtifactRelationshipOption as bY, type EffectArtifactRelationshipOptionsResult as bZ, type ArtifactOptionsHandler as b_, type GranularQuotaPolicy as ba, type GranularQuotaProgress as bb, type Sandbox as bc, type CreateSandboxData as bd, type SandboxListResponse as be, type PermissionRules as bf, type PermissionProfile as bg, type CreatePermissionProfileData as bh, type PermissionProfileListResponse as bi, type Assignment as bj, type AssignmentListResponse as bk, type BuildPolicy as bl, type VersionTracking as bm, type VersionTag as bn, type CreateEnvironmentData as bo, type EnvironmentListResponse as bp, type Manifest as bq, type ManifestListResponse as br, type BuildStatus as bs, type Build as bt, type Version as bu, type BuildListResponse as bv, type SemanticVersionDiffEntry as bw, type SemanticVersionDiff as bx, type ObjectReference as by, type SourceAcknowledgement as bz, type EffectCommitRequest as c, type SessionHeapFieldType as c$, type EffectWithHandler as c0, type PublishEffectsResult as c1, type EffectVersionSelector as c2, type ToolInfo as c3, type EffectInfo as c4, type ToolsChangedEvent as c5, type EffectsChangedEvent as c6, type EffectHandler as c7, type InstanceEffectHandler as c8, type JobStatus as c9, type SessionArtifactRecord as cA, type SessionArtifactListOptions as cB, type SessionArtifactValidationResult as cC, type SessionArtifactRelationshipOptionsInput as cD, type SessionArtifactRelationshipOption as cE, type SessionArtifactRelationshipOptionsResult as cF, type SessionArtifactRelationshipCreateInput as cG, type SessionArtifactExecutionResult as cH, type SessionArtifactExecutionOptions as cI, type SessionArtifactApprovalOptions as cJ, type ArtifactApprovalTaskStatus as cK, type ArtifactApprovalTask as cL, type ArtifactApprovalTaskListOptions as cM, type ArtifactApprovalDecisionInput as cN, type ArtifactApprovalDecisionResult as cO, type ManualActionStatus as cP, type ManualActionSource as cQ, type ManualActionTarget as cR, type ManualActionRelatedRecord as cS, type RecordManualActionInput as cT, type ManualActionOccurrence as cU, type ManualActionRecordResult as cV, type ManualActionListOptions as cW, type ManualActionSuggestion as cX, type ManualActionSuggestionOptions as cY, type SessionFileUploadOptions as cZ, type SessionJobRecord as c_, type JobFeedbackSentiment as ca, type JobFeedbackToolCall as cb, type JobFeedbackMetadata as cc, type JobFeedbackInput as cd, type JobFeedbackRecord as ce, type EnvironmentFeedbackRecord as cf, type JobSubmitResult as cg, type Job as ch, type UserMessageShowRefs as ci, type UserMessageTarget as cj, type UserMessageInput as ck, type UserMessageAppendResult as cl, type AssistantReplyPublicationInput as cm, type AssistantReplyPublicationResult as cn, type SessionTranscriptActionSuggestion as co, type SessionTranscriptShowRefs as cp, type SessionTimelineEvent as cq, type SessionFileSource as cr, type SessionFileKind as cs, type SessionFileStatus as ct, type SessionFileRecord as cu, type SessionArtifactStatus as cv, type SessionArtifactKind as cw, type SessionArtifactAutonomyPolicy as cx, type SessionArtifactFieldProvenanceSource as cy, type SessionArtifactFieldProvenance as cz, type ProjectionMapper as d, type ManifestStateTransitionExpectedOutcomeSpec as d$, type SessionHeapFieldValue as d0, type SessionHeapVariable as d1, type RecordSearchResult as d2, type RecordSearchOptions as d3, type RecordMentionInput as d4, type SessionDocumentResult as d5, type SessionCollectionListOptions as d6, type SessionJobListOptions as d7, type SessionCollectionListResult as d8, type UserEnvironmentPrompt as d9, type RecordObjectsOptions as dA, type RecordImportWriteMode as dB, type RecordImportOptions as dC, type RecordImportStatus as dD, type RecordImportItemStatus as dE, type RecordImportStats as dF, type RecordImportItem as dG, type RecordImport as dH, type EnvironmentSetupTriggerReason as dI, type RunEnvironmentImporterOptions as dJ, type EnvironmentSetupLifecycleStatus as dK, type EnvironmentSetupSummary as dL, type EnvironmentSetupImporterClaim as dM, type EnvironmentImporterImportOptions as dN, type EnvironmentImporter as dO, type ManifestPropertySpec as dP, type ManifestValidationOperator as dQ, type ManifestEnumRuleSpec as dR, type ManifestFilterBySpec as dS, type ManifestValidationRuleSpec as dT, type ManifestStateMachineStateSpec as dU, type ManifestStateTransitionInputBinding as dV, type ManifestStateTransitionActionSpec as dW, type ManifestStateTransitionAssigneeSpec as dX, type ManifestStateTransitionRelatedStateRequirementSpec as dY, type ManifestStateTransitionRequirementsSpec as dZ, type ManifestStateTransitionPermissionSpec as d_, type UserEnvironmentMessagePreview as da, type UserEnvironmentSessionState as db, type UserEnvironmentState as dc, type UserEnvironmentStateOptions as dd, type MarkUserEnvironmentReadOptions as de, type WSDisconnectInfo as df, type WSReconnectErrorInfo as dg, type WSClientOptions as dh, type RPCRequest as di, type RPCResponse as dj, type SnapshotResetMessage as dk, type RPCRequestFromServer as dl, type ToolInvokeParams as dm, type ToolResultParams as dn, type ModelRef as dp, type RelationshipInfo as dq, type DefineRelationshipOptions as dr, type RecordObjectStateValue as ds, type EnvironmentStateTarget as dt, type EnvironmentStateObservationInput as du, type EnvironmentStateUpdateInput as dv, type EnvironmentStateMachineProxy as dw, type EnvironmentStateProxy as dx, type RecordObjectResult as dy, type RecordObjectsChunkInfo as dz, type CommitTransitionOutcomeDeclaration as e, type ManifestStateTransitionOutcomeSpec as e0, type ManifestStateMachineTransitionSpec as e1, type ManifestStateMachineSpec as e2, type ManifestPostConditionSpec as e3, type ManifestDryRunSpec as e4, type ManifestReverseSpec as e5, type ManifestApprovalRequiredSpec as e6, type ManifestCreatesSpec as e7, type ManifestRelationshipDef as e8, type ManifestEffectSchema as e9, type ManifestEffectDeclaration as ea, type ManifestEventTypeDef as eb, type ManifestEventStreamDef as ec, type ManifestOperation as ed, type ManifestImport as ee, type ManifestVolume as ef, type GraphQLResult as eg, type APIError as eh, type DeleteResponse as ei, type StreamEvent as ej, type StreamSubscription as ek, type StreamStats as el, 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 ToolSchema as p, type PublishToolsResult as q, type ToolHandler as r, type FeedSourceActor as s, type FeedSource as t, type FeedIconToken as u, type FeedFeedbackTone as v, type FeedTransientFeedbackTone as w, type FeedItemKind as x, type FeedTarget as y, type FeedItemBase as z };
|
|
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 };
|
package/dist/spend.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
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-lJDtuAr6.mjs';
|
package/dist/spend.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
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-lJDtuAr6.js';
|
package/package.json
CHANGED