@granular-software/sdk 0.4.32 → 0.4.34
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/README.md +21 -0
- package/dist/agent-evals.d.mts +1 -1
- package/dist/agent-evals.d.ts +1 -1
- package/dist/agent-evals.js +859 -316
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +859 -316
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/cli/index.js +828 -30
- package/dist/{client-C2Gk641P.d.mts → client-iw76FL_8.d.mts} +153 -34
- package/dist/{client-C2Gk641P.d.ts → client-iw76FL_8.d.ts} +153 -34
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9363 -9120
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9363 -9120
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { Doc } from '@automerge/automerge/slim';
|
|
|
9
9
|
* Configuration for the Granular client
|
|
10
10
|
*/
|
|
11
11
|
type AccessTokenProvider = () => Promise<string | null | undefined> | string | null | undefined;
|
|
12
|
-
type EndpointMode =
|
|
12
|
+
type EndpointMode = "auto" | "local" | "production";
|
|
13
13
|
interface GranularOptions {
|
|
14
14
|
/** Your Granular API key (for service/CLI auth; use with GRANULAR_API_KEY) */
|
|
15
15
|
apiKey?: string;
|
|
@@ -168,7 +168,7 @@ interface ConversationSessionInfo {
|
|
|
168
168
|
environmentId: string;
|
|
169
169
|
versionId?: string | null;
|
|
170
170
|
docId: string;
|
|
171
|
-
status:
|
|
171
|
+
status: "active" | "closed" | "expired";
|
|
172
172
|
createdAt: string;
|
|
173
173
|
lastSeenAt: string;
|
|
174
174
|
summary?: string | null;
|
|
@@ -276,7 +276,7 @@ interface AssignmentListResponse {
|
|
|
276
276
|
* pin themselves to one immutable ontology version.
|
|
277
277
|
*/
|
|
278
278
|
interface BuildPolicy {
|
|
279
|
-
mode:
|
|
279
|
+
mode: "tag" | "current" | "pinned";
|
|
280
280
|
buildId?: string;
|
|
281
281
|
versionId?: string;
|
|
282
282
|
tagId?: string;
|
|
@@ -287,7 +287,7 @@ interface VersionTag {
|
|
|
287
287
|
tagId: string;
|
|
288
288
|
sandboxId: string;
|
|
289
289
|
name: string;
|
|
290
|
-
kind:
|
|
290
|
+
kind: "channel" | "release" | "system";
|
|
291
291
|
targetBuildId?: string | null;
|
|
292
292
|
targetVersionId?: string | null;
|
|
293
293
|
description?: string | null;
|
|
@@ -303,6 +303,7 @@ interface EnvironmentData {
|
|
|
303
303
|
sandboxId: string;
|
|
304
304
|
ontologyId?: string;
|
|
305
305
|
buildId: string;
|
|
306
|
+
versionNumber?: number | null;
|
|
306
307
|
versionId: string;
|
|
307
308
|
subjectId: string;
|
|
308
309
|
envName: string;
|
|
@@ -312,7 +313,7 @@ interface EnvironmentData {
|
|
|
312
313
|
tag?: VersionTag | null;
|
|
313
314
|
tracking?: BuildPolicy;
|
|
314
315
|
buildPolicy: BuildPolicy;
|
|
315
|
-
updateState?:
|
|
316
|
+
updateState?: "up_to_date" | "update_available" | "upgrading" | "failed";
|
|
316
317
|
createdAt: number;
|
|
317
318
|
updatedAt: number;
|
|
318
319
|
}
|
|
@@ -361,7 +362,7 @@ interface Manifest {
|
|
|
361
362
|
interface ManifestListResponse {
|
|
362
363
|
items: Manifest[];
|
|
363
364
|
}
|
|
364
|
-
type BuildStatus =
|
|
365
|
+
type BuildStatus = "queued" | "building" | "completed" | "failed" | "canceled";
|
|
365
366
|
/**
|
|
366
367
|
* An immutable ontology version derived from a specific manifest revision.
|
|
367
368
|
*
|
|
@@ -396,8 +397,8 @@ interface BuildListResponse {
|
|
|
396
397
|
}
|
|
397
398
|
interface SemanticVersionDiffEntry {
|
|
398
399
|
operationId: string;
|
|
399
|
-
kind:
|
|
400
|
-
changeType:
|
|
400
|
+
kind: "create" | "update" | "relationship" | "effect" | "eventStream" | "unknown";
|
|
401
|
+
changeType: "added" | "removed" | "changed";
|
|
401
402
|
label: string;
|
|
402
403
|
additive: boolean;
|
|
403
404
|
breaking: boolean;
|
|
@@ -422,6 +423,8 @@ interface EffectHandlerContext {
|
|
|
422
423
|
effectClientId: string;
|
|
423
424
|
sandboxId: string;
|
|
424
425
|
environmentId: string;
|
|
426
|
+
buildId?: string;
|
|
427
|
+
buildVersionNumber?: number;
|
|
425
428
|
sessionId: string;
|
|
426
429
|
tenantId?: string;
|
|
427
430
|
principalId?: string;
|
|
@@ -459,7 +462,7 @@ interface ResolvedEffectBehaviors {
|
|
|
459
462
|
reverse?: ResolvedEffectReverse;
|
|
460
463
|
approvalRequired?: ResolvedEffectApprovalRequired;
|
|
461
464
|
}
|
|
462
|
-
type EffectInvocationMode =
|
|
465
|
+
type EffectInvocationMode = "execute" | "dryRun" | "reverse";
|
|
463
466
|
interface EffectInvocationMetadata {
|
|
464
467
|
mode?: EffectInvocationMode;
|
|
465
468
|
reverseHandler?: string;
|
|
@@ -516,9 +519,9 @@ interface ToolSchema {
|
|
|
516
519
|
* ```
|
|
517
520
|
*/
|
|
518
521
|
outputSchema?: Record<string, unknown>;
|
|
519
|
-
stability?:
|
|
522
|
+
stability?: "stable" | "experimental" | "deprecated";
|
|
520
523
|
provenance?: {
|
|
521
|
-
source:
|
|
524
|
+
source: "mcp" | "custom";
|
|
522
525
|
};
|
|
523
526
|
tags?: string[];
|
|
524
527
|
/**
|
|
@@ -534,6 +537,12 @@ interface ToolSchema {
|
|
|
534
537
|
* passed as the first argument to the handler).
|
|
535
538
|
*/
|
|
536
539
|
static?: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* Optional build-version selector for this live effect binding.
|
|
542
|
+
*
|
|
543
|
+
* When omitted, the binding applies to all build versions for the sandbox.
|
|
544
|
+
*/
|
|
545
|
+
versionSelector?: EffectVersionSelector;
|
|
537
546
|
/** Declarative runtime behaviors attached to the effect. */
|
|
538
547
|
metamodels?: ManifestEffectMetamodelSpec;
|
|
539
548
|
}
|
|
@@ -566,6 +575,18 @@ interface PublishToolsResult {
|
|
|
566
575
|
}>;
|
|
567
576
|
}
|
|
568
577
|
type PublishEffectsResult = PublishToolsResult;
|
|
578
|
+
type EffectVersionSelector = {
|
|
579
|
+
mode: "all";
|
|
580
|
+
} | {
|
|
581
|
+
mode: "exact";
|
|
582
|
+
versionNumber: number;
|
|
583
|
+
} | {
|
|
584
|
+
mode: "before";
|
|
585
|
+
versionNumber: number;
|
|
586
|
+
} | {
|
|
587
|
+
mode: "after";
|
|
588
|
+
versionNumber: number;
|
|
589
|
+
};
|
|
569
590
|
/**
|
|
570
591
|
* Domain state response
|
|
571
592
|
*/
|
|
@@ -603,6 +624,8 @@ interface ToolInfo {
|
|
|
603
624
|
className?: string;
|
|
604
625
|
/** Whether this is a static method */
|
|
605
626
|
static?: boolean;
|
|
627
|
+
/** Optional build-version selector associated with the live binding. */
|
|
628
|
+
versionSelector?: EffectVersionSelector;
|
|
606
629
|
/** Declarative runtime behaviors attached to the effect. */
|
|
607
630
|
metamodels?: ManifestEffectMetamodelSpec;
|
|
608
631
|
}
|
|
@@ -625,8 +648,8 @@ interface EffectsChangedEvent extends ToolsChangedEvent {
|
|
|
625
648
|
}
|
|
626
649
|
type EffectHandler = ToolHandler;
|
|
627
650
|
type InstanceEffectHandler = InstanceToolHandler;
|
|
628
|
-
type JobStatus =
|
|
629
|
-
type JobFeedbackSentiment =
|
|
651
|
+
type JobStatus = "queued" | "running" | "awaitingTool" | "awaitingHuman" | "succeeded" | "failed" | "timeout" | "canceled";
|
|
652
|
+
type JobFeedbackSentiment = "good" | "bad";
|
|
630
653
|
interface JobFeedbackToolCall {
|
|
631
654
|
callId?: string;
|
|
632
655
|
toolName?: string;
|
|
@@ -638,7 +661,7 @@ interface JobFeedbackToolCall {
|
|
|
638
661
|
durationMs?: number | null;
|
|
639
662
|
}
|
|
640
663
|
interface JobFeedbackMetadata {
|
|
641
|
-
source:
|
|
664
|
+
source: "sdk";
|
|
642
665
|
status: JobStatus;
|
|
643
666
|
code: string;
|
|
644
667
|
domainRevision?: string;
|
|
@@ -706,7 +729,7 @@ interface Job {
|
|
|
706
729
|
}
|
|
707
730
|
interface Prompt {
|
|
708
731
|
id: string;
|
|
709
|
-
type:
|
|
732
|
+
type: "confirm" | "choice" | "input";
|
|
710
733
|
title: string;
|
|
711
734
|
message: string;
|
|
712
735
|
options?: Array<string | {
|
|
@@ -725,7 +748,7 @@ interface ConversationMessageShowRefs {
|
|
|
725
748
|
variableNames?: string[];
|
|
726
749
|
}
|
|
727
750
|
interface ConversationMessageInput {
|
|
728
|
-
role:
|
|
751
|
+
role: "user" | "assistant";
|
|
729
752
|
content?: string;
|
|
730
753
|
show?: ConversationMessageShowRefs;
|
|
731
754
|
jobId?: string;
|
|
@@ -739,9 +762,55 @@ interface ConversationAppendResult {
|
|
|
739
762
|
jobId?: string;
|
|
740
763
|
promptId?: string;
|
|
741
764
|
}
|
|
765
|
+
interface SessionConversationMessage {
|
|
766
|
+
id: string;
|
|
767
|
+
role: "user" | "assistant";
|
|
768
|
+
content?: string;
|
|
769
|
+
show?: ConversationMessageShowRefs;
|
|
770
|
+
jobId?: string;
|
|
771
|
+
promptId?: string;
|
|
772
|
+
ts: number;
|
|
773
|
+
[key: string]: unknown;
|
|
774
|
+
}
|
|
775
|
+
interface SessionTimelineEvent {
|
|
776
|
+
id?: string;
|
|
777
|
+
eventId?: string;
|
|
778
|
+
kind?: string;
|
|
779
|
+
type?: string;
|
|
780
|
+
status?: string | null;
|
|
781
|
+
message?: string;
|
|
782
|
+
summary?: string;
|
|
783
|
+
title?: string;
|
|
784
|
+
ts?: number;
|
|
785
|
+
timestamp?: number;
|
|
786
|
+
at?: number;
|
|
787
|
+
createdAt?: number;
|
|
788
|
+
[key: string]: unknown;
|
|
789
|
+
}
|
|
790
|
+
interface SessionJobRecord {
|
|
791
|
+
jobId: string;
|
|
792
|
+
status: string;
|
|
793
|
+
code?: string;
|
|
794
|
+
createdAt?: number;
|
|
795
|
+
startedAt?: number;
|
|
796
|
+
completedAt?: number;
|
|
797
|
+
durationMs?: number | null;
|
|
798
|
+
progressPercent?: number | null;
|
|
799
|
+
progressMessage?: string | null;
|
|
800
|
+
stdout?: string[];
|
|
801
|
+
stderr?: string[];
|
|
802
|
+
result?: unknown;
|
|
803
|
+
error?: string | null;
|
|
804
|
+
toolCalls?: JobFeedbackToolCall[];
|
|
805
|
+
prompts?: Record<string, unknown>;
|
|
806
|
+
actionSummary?: string[];
|
|
807
|
+
actionTrace?: Array<Record<string, unknown>>;
|
|
808
|
+
agentMessages?: Array<Record<string, unknown>>;
|
|
809
|
+
[key: string]: unknown;
|
|
810
|
+
}
|
|
742
811
|
interface SessionTranscriptEntry {
|
|
743
812
|
id: string;
|
|
744
|
-
role:
|
|
813
|
+
role: "user" | "assistant";
|
|
745
814
|
content: string;
|
|
746
815
|
timestamp: number;
|
|
747
816
|
jobId?: string;
|
|
@@ -752,9 +821,9 @@ interface SessionTranscriptEntry {
|
|
|
752
821
|
error?: string;
|
|
753
822
|
show?: ConversationMessageShowRefs;
|
|
754
823
|
historyContent?: string;
|
|
755
|
-
source:
|
|
824
|
+
source: "conversation" | "job_code" | "job_result" | "job_prompt" | "job_agent_message";
|
|
756
825
|
}
|
|
757
|
-
type SessionHeapFieldType =
|
|
826
|
+
type SessionHeapFieldType = "string" | "number" | "boolean" | "null" | "unknown";
|
|
758
827
|
interface SessionHeapFieldValue {
|
|
759
828
|
name: string;
|
|
760
829
|
type: SessionHeapFieldType;
|
|
@@ -782,7 +851,7 @@ interface SessionHeapList {
|
|
|
782
851
|
}
|
|
783
852
|
interface SessionHeapVariable {
|
|
784
853
|
name: string;
|
|
785
|
-
kind:
|
|
854
|
+
kind: "entry" | "list" | "scalar";
|
|
786
855
|
entryPath?: string;
|
|
787
856
|
listName?: string;
|
|
788
857
|
value?: string | number | boolean | null;
|
|
@@ -795,6 +864,23 @@ interface SessionHeapSnapshot {
|
|
|
795
864
|
variablesByName: Record<string, SessionHeapVariable>;
|
|
796
865
|
updatedAt: number;
|
|
797
866
|
}
|
|
867
|
+
interface SessionDocumentResult {
|
|
868
|
+
sessionState: Record<string, unknown> | null;
|
|
869
|
+
document: Record<string, unknown> | null;
|
|
870
|
+
savedAt: number;
|
|
871
|
+
}
|
|
872
|
+
interface SessionCollectionListOptions {
|
|
873
|
+
limit?: number;
|
|
874
|
+
cursor?: string | null;
|
|
875
|
+
}
|
|
876
|
+
interface SessionJobListOptions extends SessionCollectionListOptions {
|
|
877
|
+
status?: string | null;
|
|
878
|
+
}
|
|
879
|
+
interface SessionCollectionListResult<T = unknown> {
|
|
880
|
+
items: T[];
|
|
881
|
+
nextCursor: string | null;
|
|
882
|
+
totalCount: number;
|
|
883
|
+
}
|
|
798
884
|
interface WSDisconnectInfo {
|
|
799
885
|
code?: number;
|
|
800
886
|
reason?: string;
|
|
@@ -819,13 +905,13 @@ interface WSClientOptions {
|
|
|
819
905
|
onReconnectError?: (info: WSReconnectErrorInfo) => void;
|
|
820
906
|
}
|
|
821
907
|
interface RPCRequest {
|
|
822
|
-
type:
|
|
908
|
+
type: "rpc";
|
|
823
909
|
method: string;
|
|
824
910
|
params: unknown;
|
|
825
911
|
id: string;
|
|
826
912
|
}
|
|
827
913
|
interface RPCResponse {
|
|
828
|
-
type:
|
|
914
|
+
type: "rpc_result" | "rpc_error";
|
|
829
915
|
id: string;
|
|
830
916
|
result?: unknown;
|
|
831
917
|
error?: {
|
|
@@ -835,12 +921,12 @@ interface RPCResponse {
|
|
|
835
921
|
};
|
|
836
922
|
}
|
|
837
923
|
interface SyncMessage {
|
|
838
|
-
type:
|
|
924
|
+
type: "sync";
|
|
839
925
|
message?: string | number[] | Uint8Array;
|
|
840
926
|
data?: number[];
|
|
841
927
|
}
|
|
842
928
|
interface RPCRequestFromServer {
|
|
843
|
-
type:
|
|
929
|
+
type: "rpc";
|
|
844
930
|
method: string;
|
|
845
931
|
params: unknown;
|
|
846
932
|
id: string;
|
|
@@ -884,7 +970,7 @@ interface RelationshipInfo {
|
|
|
884
970
|
/** The foreign model type */
|
|
885
971
|
foreign_model: ModelRef;
|
|
886
972
|
/** Computed relationship kind: "one_to_one" | "one_to_many" | "many_to_one" | "many_to_many" */
|
|
887
|
-
relationship_kind:
|
|
973
|
+
relationship_kind: "one_to_one" | "one_to_many" | "many_to_one" | "many_to_many";
|
|
888
974
|
}
|
|
889
975
|
/**
|
|
890
976
|
* Options for defining a relationship between two model types
|
|
@@ -983,8 +1069,8 @@ interface RecordObjectsOptions {
|
|
|
983
1069
|
*/
|
|
984
1070
|
onChunkComplete?: (info: RecordObjectsChunkInfo) => void | Promise<void>;
|
|
985
1071
|
}
|
|
986
|
-
type RecordImportStatus =
|
|
987
|
-
type RecordImportItemStatus =
|
|
1072
|
+
type RecordImportStatus = "queued" | "processing" | "completed" | "failed" | "canceled";
|
|
1073
|
+
type RecordImportItemStatus = "queued" | "processing" | "completed" | "failed" | "canceled";
|
|
988
1074
|
interface RecordImportStats {
|
|
989
1075
|
totalRecords: number;
|
|
990
1076
|
queuedRecords: number;
|
|
@@ -1052,7 +1138,7 @@ interface ManifestPropertySpec {
|
|
|
1052
1138
|
filterBy?: boolean | string[] | ManifestFilterBySpec;
|
|
1053
1139
|
validate?: ManifestValidationRuleSpec[];
|
|
1054
1140
|
}
|
|
1055
|
-
type ManifestValidationOperator =
|
|
1141
|
+
type ManifestValidationOperator = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "true" | "false" | "regex" | "contains" | "not_contains" | "starts_with" | "ends_with";
|
|
1056
1142
|
interface ManifestEnumRuleSpec {
|
|
1057
1143
|
values: string[];
|
|
1058
1144
|
message?: string;
|
|
@@ -1141,7 +1227,7 @@ interface ManifestEffectDeclaration {
|
|
|
1141
1227
|
isStatic?: boolean;
|
|
1142
1228
|
inputSchema: ManifestEffectSchema;
|
|
1143
1229
|
outputSchema?: ManifestEffectSchema;
|
|
1144
|
-
stability?:
|
|
1230
|
+
stability?: "stable" | "experimental" | "deprecated";
|
|
1145
1231
|
tags?: string[];
|
|
1146
1232
|
metamodels?: ManifestEffectMetamodelSpec;
|
|
1147
1233
|
}
|
|
@@ -1202,7 +1288,7 @@ interface ManifestImport {
|
|
|
1202
1288
|
}
|
|
1203
1289
|
interface ManifestVolume {
|
|
1204
1290
|
name: string;
|
|
1205
|
-
scope:
|
|
1291
|
+
scope: "sandbox" | "build" | "user";
|
|
1206
1292
|
imports?: ManifestImport[];
|
|
1207
1293
|
operations: ManifestOperation[];
|
|
1208
1294
|
}
|
|
@@ -1245,7 +1331,7 @@ interface StreamEvent {
|
|
|
1245
1331
|
environmentId: string;
|
|
1246
1332
|
sessionId?: string;
|
|
1247
1333
|
subjectId?: string;
|
|
1248
|
-
source:
|
|
1334
|
+
source: "sandbox" | "api";
|
|
1249
1335
|
isAcked: boolean;
|
|
1250
1336
|
createdAt: number;
|
|
1251
1337
|
}
|
|
@@ -1883,6 +1969,7 @@ declare class EnvironmentSession extends Session {
|
|
|
1883
1969
|
get ontologyId(): string;
|
|
1884
1970
|
get subjectId(): string;
|
|
1885
1971
|
get envName(): string;
|
|
1972
|
+
get tag(): string | null;
|
|
1886
1973
|
get versionId(): string;
|
|
1887
1974
|
get granularId(): string;
|
|
1888
1975
|
get permissionProfileId(): string;
|
|
@@ -1903,9 +1990,41 @@ declare class EnvironmentSession extends Session {
|
|
|
1903
1990
|
list: () => Promise<EnvironmentFeedbackRecord[]>;
|
|
1904
1991
|
};
|
|
1905
1992
|
/**
|
|
1906
|
-
* Return a plain JS
|
|
1993
|
+
* Return a plain JS copy of the synced session heap.
|
|
1907
1994
|
*/
|
|
1908
1995
|
getHeap(): SessionHeapSnapshot;
|
|
1996
|
+
private sessionDataRequest;
|
|
1997
|
+
private collectAllSessionItems;
|
|
1998
|
+
/**
|
|
1999
|
+
* Fetch the live session document from the runtime DO.
|
|
2000
|
+
*
|
|
2001
|
+
* For history and saved artifacts, prefer the collection APIs on
|
|
2002
|
+
* `messages`, `timeline`, `jobs`, and `heap`.
|
|
2003
|
+
*/
|
|
2004
|
+
getDocument(): Promise<SessionDocumentResult>;
|
|
2005
|
+
get messages(): {
|
|
2006
|
+
list: (options?: SessionCollectionListOptions) => Promise<SessionCollectionListResult<SessionConversationMessage>>;
|
|
2007
|
+
};
|
|
2008
|
+
get timeline(): {
|
|
2009
|
+
list: (options?: SessionCollectionListOptions) => Promise<SessionCollectionListResult<SessionTimelineEvent>>;
|
|
2010
|
+
};
|
|
2011
|
+
get jobs(): {
|
|
2012
|
+
list: (options?: SessionJobListOptions) => Promise<SessionCollectionListResult<SessionJobRecord>>;
|
|
2013
|
+
get: (jobId: string) => Promise<SessionJobRecord>;
|
|
2014
|
+
};
|
|
2015
|
+
get heap(): {
|
|
2016
|
+
entries: {
|
|
2017
|
+
list: (options?: SessionCollectionListOptions) => Promise<SessionCollectionListResult<SessionHeapEntry>>;
|
|
2018
|
+
get: (path: string) => Promise<SessionHeapEntry>;
|
|
2019
|
+
};
|
|
2020
|
+
lists: {
|
|
2021
|
+
list: (options?: SessionCollectionListOptions) => Promise<SessionCollectionListResult<SessionHeapList>>;
|
|
2022
|
+
get: (name: string) => Promise<SessionHeapList>;
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
get transcript(): {
|
|
2026
|
+
list: (options?: SessionCollectionListOptions) => Promise<SessionCollectionListResult<SessionTranscriptEntry>>;
|
|
2027
|
+
};
|
|
1909
2028
|
graphql<T = any>(query: string, variables?: Record<string, any>): Promise<GraphQLResult<T>>;
|
|
1910
2029
|
defineRelationship(options: DefineRelationshipOptions): Promise<RelationshipInfo>;
|
|
1911
2030
|
getRelationships(modelPath: string): Promise<RelationshipInfo[]>;
|
|
@@ -1972,7 +2091,7 @@ declare class Granular {
|
|
|
1972
2091
|
private onUnexpectedClose?;
|
|
1973
2092
|
private onReconnectError?;
|
|
1974
2093
|
private debugHttp;
|
|
1975
|
-
/** Sandbox-level effect registry: sandboxId → (effectKey → ToolWithHandler) */
|
|
2094
|
+
/** Sandbox-level effect registry: sandboxId → (effectKey@selector → ToolWithHandler) */
|
|
1976
2095
|
private sandboxEffects;
|
|
1977
2096
|
/** Live sandbox-scoped effect hosts keyed by sandboxId */
|
|
1978
2097
|
private sandboxEffectHosts;
|
|
@@ -2230,4 +2349,4 @@ declare class Granular {
|
|
|
2230
2349
|
private request;
|
|
2231
2350
|
}
|
|
2232
2351
|
|
|
2233
|
-
export { type SemanticVersionDiff as $, type AccessTokenProvider as A, type BuildPolicy as B, type ConnectOptions as C, type DomainState as D, type EndpointMode as E, type VersionTag as F, Granular as G, type EnvironmentData as H, type InstanceToolHandler as I, type CreateEnvironmentData as J, type EnvironmentListResponse as K, type Manifest as L, type ManifestEffectMetamodelSpec as M, type ManifestListResponse as N, OntologyHandle as O, type Prompt as P, type BuildStatus as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type User as U, type VersionTracking as V, WSClient as W, type Build as X, type Version as Y, type BuildListResponse as Z, type SemanticVersionDiffEntry as _, type EffectHandlerContext as a, type
|
|
2352
|
+
export { type SemanticVersionDiff as $, type AccessTokenProvider as A, type BuildPolicy as B, type ConnectOptions as C, type DomainState as D, type EndpointMode as E, type VersionTag as F, Granular as G, type EnvironmentData as H, type InstanceToolHandler as I, type CreateEnvironmentData as J, type EnvironmentListResponse as K, type Manifest as L, type ManifestEffectMetamodelSpec as M, type ManifestListResponse as N, OntologyHandle as O, type Prompt as P, type BuildStatus as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type User as U, type VersionTracking as V, WSClient as W, type Build as X, type Version as Y, type BuildListResponse as Z, type SemanticVersionDiffEntry as _, type EffectHandlerContext as a, type ManifestFilterBySpec as a$, type ResolvedEffectPostCondition as a0, type ResolvedEffectDryRun as a1, type ResolvedEffectReverse as a2, type ResolvedEffectApprovalRequired as a3, type EffectInvocationMode as a4, type EffectInvocationMetadata as a5, type EffectSchema as a6, type EffectWithHandler as a7, type PublishEffectsResult as a8, type EffectVersionSelector as a9, type SessionJobListOptions as aA, type SessionCollectionListResult as aB, type WSDisconnectInfo as aC, type WSReconnectErrorInfo as aD, type WSClientOptions as aE, type RPCRequest as aF, type RPCResponse as aG, type SyncMessage as aH, type RPCRequestFromServer as aI, type ToolInvokeParams as aJ, type ToolResultParams as aK, type ModelRef as aL, type RelationshipInfo as aM, type DefineRelationshipOptions as aN, type RecordObjectOptions as aO, type RecordObjectResult as aP, type RecordObjectsChunkInfo as aQ, type RecordObjectsOptions as aR, type RecordImportStatus as aS, type RecordImportItemStatus as aT, type RecordImportStats as aU, type RecordImportItem as aV, type RecordImport as aW, type EnvironmentRecordImportSummary as aX, type ManifestPropertySpec as aY, type ManifestValidationOperator as aZ, type ManifestEnumRuleSpec as a_, type ToolInfo as aa, type EffectInfo as ab, type ToolsChangedEvent as ac, type EffectsChangedEvent as ad, type EffectHandler as ae, type InstanceEffectHandler as af, type JobStatus as ag, type JobFeedbackSentiment as ah, type JobFeedbackToolCall as ai, type JobFeedbackMetadata as aj, type JobFeedbackInput as ak, type JobFeedbackRecord as al, type EnvironmentFeedbackRecord as am, type JobSubmitResult as an, type Job as ao, type ConversationMessageShowRefs as ap, type ConversationMessageInput as aq, type ConversationAppendResult as ar, type SessionConversationMessage as as, type SessionTimelineEvent as at, type SessionJobRecord as au, type SessionHeapFieldType as av, type SessionHeapFieldValue as aw, type SessionHeapVariable as ax, type SessionDocumentResult as ay, type SessionCollectionListOptions as az, type SessionHeapList as b, type ManifestValidationRuleSpec as b0, type ManifestStateMachineStateSpec as b1, type ManifestStateMachineTransitionSpec as b2, type ManifestStateMachineSpec as b3, type ManifestPostConditionSpec as b4, type ManifestDryRunSpec as b5, type ManifestReverseSpec as b6, type ManifestApprovalRequiredSpec as b7, type ManifestRelationshipDef as b8, type ManifestEffectSchema as b9, type ManifestEffectDeclaration as ba, type ManifestEventTypeDef as bb, type ManifestEventStreamDef as bc, type ManifestOperation as bd, type ManifestImport as be, type ManifestVolume as bf, type ManifestContent as bg, type GraphQLResult as bh, type APIError as bi, type DeleteResponse as bj, type StreamEvent as bk, type StreamSubscription as bl, type StreamStats as bm, type SessionHeapSnapshot as c, type SessionTranscriptEntry as d, Environment as e, EnvironmentSession as f, Session as g, type ToolSchema as h, type PublishToolsResult as i, type ToolHandler as j, type GranularOptions as k, type GranularAuth as l, type RecordUserOptions as m, type Subject as n, type OpenEnvironmentOptions as o, type CreateSessionOptions as p, type ConversationSessionInfo as q, type Sandbox as r, type CreateSandboxData as s, type SandboxListResponse as t, type PermissionRules as u, type PermissionProfile as v, type CreatePermissionProfileData as w, type PermissionProfileListResponse as x, type Assignment as y, type AssignmentListResponse as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EndpointMode, T as ToolWithHandler, a as EffectHandlerContext, M as ManifestEffectMetamodelSpec, R as ResolvedEffectBehaviors, S as SessionHeapEntry, b as SessionHeapList, c as SessionHeapSnapshot, P as Prompt, d as SessionTranscriptEntry } from './client-
|
|
2
|
-
export {
|
|
1
|
+
import { E as EndpointMode, T as ToolWithHandler, a as EffectHandlerContext, M as ManifestEffectMetamodelSpec, R as ResolvedEffectBehaviors, S as SessionHeapEntry, b as SessionHeapList, c as SessionHeapSnapshot, P as Prompt, d as SessionTranscriptEntry } from './client-iw76FL_8.mjs';
|
|
2
|
+
export { bi as APIError, A as AccessTokenProvider, y as Assignment, z as AssignmentListResponse, X as Build, Z as BuildListResponse, B as BuildPolicy, Q as BuildStatus, C as ConnectOptions, ar as ConversationAppendResult, aq as ConversationMessageInput, ap as ConversationMessageShowRefs, q as ConversationSessionInfo, J as CreateEnvironmentData, w as CreatePermissionProfileData, s as CreateSandboxData, p as CreateSessionOptions, aN as DefineRelationshipOptions, bj as DeleteResponse, D as DomainState, ae as EffectHandler, ab as EffectInfo, a5 as EffectInvocationMetadata, a4 as EffectInvocationMode, a6 as EffectSchema, a9 as EffectVersionSelector, a7 as EffectWithHandler, ad as EffectsChangedEvent, e as Environment, H as EnvironmentData, am as EnvironmentFeedbackRecord, K as EnvironmentListResponse, aX as EnvironmentRecordImportSummary, f as EnvironmentSession, G as Granular, l as GranularAuth, k as GranularOptions, bh as GraphQLResult, af as InstanceEffectHandler, I as InstanceToolHandler, ao as Job, ak as JobFeedbackInput, aj as JobFeedbackMetadata, al as JobFeedbackRecord, ah as JobFeedbackSentiment, ai as JobFeedbackToolCall, ag as JobStatus, an as JobSubmitResult, L as Manifest, b7 as ManifestApprovalRequiredSpec, bg as ManifestContent, b5 as ManifestDryRunSpec, ba as ManifestEffectDeclaration, b9 as ManifestEffectSchema, a_ as ManifestEnumRuleSpec, bc as ManifestEventStreamDef, bb as ManifestEventTypeDef, a$ as ManifestFilterBySpec, be as ManifestImport, N as ManifestListResponse, bd as ManifestOperation, b4 as ManifestPostConditionSpec, aY as ManifestPropertySpec, b8 as ManifestRelationshipDef, b6 as ManifestReverseSpec, b3 as ManifestStateMachineSpec, b1 as ManifestStateMachineStateSpec, b2 as ManifestStateMachineTransitionSpec, aZ as ManifestValidationOperator, b0 as ManifestValidationRuleSpec, bf as ManifestVolume, aL as ModelRef, O as OntologyHandle, o as OpenEnvironmentOptions, v as PermissionProfile, x as PermissionProfileListResponse, u as PermissionRules, a8 as PublishEffectsResult, i as PublishToolsResult, aF as RPCRequest, aI as RPCRequestFromServer, aG as RPCResponse, aW as RecordImport, aV as RecordImportItem, aT as RecordImportItemStatus, aU as RecordImportStats, aS as RecordImportStatus, aO as RecordObjectOptions, aP as RecordObjectResult, aQ as RecordObjectsChunkInfo, aR as RecordObjectsOptions, m as RecordUserOptions, aM as RelationshipInfo, a3 as ResolvedEffectApprovalRequired, a1 as ResolvedEffectDryRun, a0 as ResolvedEffectPostCondition, a2 as ResolvedEffectReverse, r as Sandbox, t as SandboxListResponse, $ as SemanticVersionDiff, _ as SemanticVersionDiffEntry, g as Session, az as SessionCollectionListOptions, aB as SessionCollectionListResult, as as SessionConversationMessage, ay as SessionDocumentResult, av as SessionHeapFieldType, aw as SessionHeapFieldValue, ax as SessionHeapVariable, aA as SessionJobListOptions, au as SessionJobRecord, at as SessionTimelineEvent, bk as StreamEvent, bm as StreamStats, bl as StreamSubscription, n as Subject, aH as SyncMessage, j as ToolHandler, aa as ToolInfo, aJ as ToolInvokeParams, aK as ToolResultParams, h as ToolSchema, ac as ToolsChangedEvent, U as User, Y as Version, F as VersionTag, V as VersionTracking, W as WSClient, aE as WSClientOptions, aC as WSDisconnectInfo, aD as WSReconnectErrorInfo } from './client-iw76FL_8.mjs';
|
|
3
3
|
export { BuildGranularAgentSystemPromptInput, GeneratedJobCodeIssue, GranularAgentExecutionCheckpoint, GranularAgentHeapSummaryOptions, GranularAgentReferentFocus, GranularAgentSessionContext, GranularAgentToolInfo, GranularAgentWorkflowFocus, HarnessContinuationDecision, HarnessControllerBudgets, HarnessProjectionOptions, HarnessPromptLike, HarnessVerifierSnapshot, HarnessVerifierSnapshotInput, buildContinuationInstruction, buildGranularAgentCheckpointBlock, buildGranularAgentDomainBlock, buildGranularAgentHeapBlock, buildGranularAgentLoopBlock, buildGranularAgentReferentBlock, buildGranularAgentSessionBlock, buildGranularAgentSystemPrompt, buildGranularAgentToolBlock, buildGranularAgentWorkflowBlock, createHarnessVerifierSnapshot, evaluateContinuation, getCurrentClosureId, getExclusivePromptTarget, hasOpenPrompt, projectConversationReferentFocus, projectConversationReferentSummary, projectHeapSummary, projectLoopSummary, projectWorkflowFocus, projectWorkflowSummary, reviewGeneratedJobCode } from './agent-harness.mjs';
|
|
4
4
|
import '@automerge/automerge';
|
|
5
5
|
import '@automerge/automerge/slim';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EndpointMode, T as ToolWithHandler, a as EffectHandlerContext, M as ManifestEffectMetamodelSpec, R as ResolvedEffectBehaviors, S as SessionHeapEntry, b as SessionHeapList, c as SessionHeapSnapshot, P as Prompt, d as SessionTranscriptEntry } from './client-
|
|
2
|
-
export {
|
|
1
|
+
import { E as EndpointMode, T as ToolWithHandler, a as EffectHandlerContext, M as ManifestEffectMetamodelSpec, R as ResolvedEffectBehaviors, S as SessionHeapEntry, b as SessionHeapList, c as SessionHeapSnapshot, P as Prompt, d as SessionTranscriptEntry } from './client-iw76FL_8.js';
|
|
2
|
+
export { bi as APIError, A as AccessTokenProvider, y as Assignment, z as AssignmentListResponse, X as Build, Z as BuildListResponse, B as BuildPolicy, Q as BuildStatus, C as ConnectOptions, ar as ConversationAppendResult, aq as ConversationMessageInput, ap as ConversationMessageShowRefs, q as ConversationSessionInfo, J as CreateEnvironmentData, w as CreatePermissionProfileData, s as CreateSandboxData, p as CreateSessionOptions, aN as DefineRelationshipOptions, bj as DeleteResponse, D as DomainState, ae as EffectHandler, ab as EffectInfo, a5 as EffectInvocationMetadata, a4 as EffectInvocationMode, a6 as EffectSchema, a9 as EffectVersionSelector, a7 as EffectWithHandler, ad as EffectsChangedEvent, e as Environment, H as EnvironmentData, am as EnvironmentFeedbackRecord, K as EnvironmentListResponse, aX as EnvironmentRecordImportSummary, f as EnvironmentSession, G as Granular, l as GranularAuth, k as GranularOptions, bh as GraphQLResult, af as InstanceEffectHandler, I as InstanceToolHandler, ao as Job, ak as JobFeedbackInput, aj as JobFeedbackMetadata, al as JobFeedbackRecord, ah as JobFeedbackSentiment, ai as JobFeedbackToolCall, ag as JobStatus, an as JobSubmitResult, L as Manifest, b7 as ManifestApprovalRequiredSpec, bg as ManifestContent, b5 as ManifestDryRunSpec, ba as ManifestEffectDeclaration, b9 as ManifestEffectSchema, a_ as ManifestEnumRuleSpec, bc as ManifestEventStreamDef, bb as ManifestEventTypeDef, a$ as ManifestFilterBySpec, be as ManifestImport, N as ManifestListResponse, bd as ManifestOperation, b4 as ManifestPostConditionSpec, aY as ManifestPropertySpec, b8 as ManifestRelationshipDef, b6 as ManifestReverseSpec, b3 as ManifestStateMachineSpec, b1 as ManifestStateMachineStateSpec, b2 as ManifestStateMachineTransitionSpec, aZ as ManifestValidationOperator, b0 as ManifestValidationRuleSpec, bf as ManifestVolume, aL as ModelRef, O as OntologyHandle, o as OpenEnvironmentOptions, v as PermissionProfile, x as PermissionProfileListResponse, u as PermissionRules, a8 as PublishEffectsResult, i as PublishToolsResult, aF as RPCRequest, aI as RPCRequestFromServer, aG as RPCResponse, aW as RecordImport, aV as RecordImportItem, aT as RecordImportItemStatus, aU as RecordImportStats, aS as RecordImportStatus, aO as RecordObjectOptions, aP as RecordObjectResult, aQ as RecordObjectsChunkInfo, aR as RecordObjectsOptions, m as RecordUserOptions, aM as RelationshipInfo, a3 as ResolvedEffectApprovalRequired, a1 as ResolvedEffectDryRun, a0 as ResolvedEffectPostCondition, a2 as ResolvedEffectReverse, r as Sandbox, t as SandboxListResponse, $ as SemanticVersionDiff, _ as SemanticVersionDiffEntry, g as Session, az as SessionCollectionListOptions, aB as SessionCollectionListResult, as as SessionConversationMessage, ay as SessionDocumentResult, av as SessionHeapFieldType, aw as SessionHeapFieldValue, ax as SessionHeapVariable, aA as SessionJobListOptions, au as SessionJobRecord, at as SessionTimelineEvent, bk as StreamEvent, bm as StreamStats, bl as StreamSubscription, n as Subject, aH as SyncMessage, j as ToolHandler, aa as ToolInfo, aJ as ToolInvokeParams, aK as ToolResultParams, h as ToolSchema, ac as ToolsChangedEvent, U as User, Y as Version, F as VersionTag, V as VersionTracking, W as WSClient, aE as WSClientOptions, aC as WSDisconnectInfo, aD as WSReconnectErrorInfo } from './client-iw76FL_8.js';
|
|
3
3
|
export { BuildGranularAgentSystemPromptInput, GeneratedJobCodeIssue, GranularAgentExecutionCheckpoint, GranularAgentHeapSummaryOptions, GranularAgentReferentFocus, GranularAgentSessionContext, GranularAgentToolInfo, GranularAgentWorkflowFocus, HarnessContinuationDecision, HarnessControllerBudgets, HarnessProjectionOptions, HarnessPromptLike, HarnessVerifierSnapshot, HarnessVerifierSnapshotInput, buildContinuationInstruction, buildGranularAgentCheckpointBlock, buildGranularAgentDomainBlock, buildGranularAgentHeapBlock, buildGranularAgentLoopBlock, buildGranularAgentReferentBlock, buildGranularAgentSessionBlock, buildGranularAgentSystemPrompt, buildGranularAgentToolBlock, buildGranularAgentWorkflowBlock, createHarnessVerifierSnapshot, evaluateContinuation, getCurrentClosureId, getExclusivePromptTarget, hasOpenPrompt, projectConversationReferentFocus, projectConversationReferentSummary, projectHeapSummary, projectLoopSummary, projectWorkflowFocus, projectWorkflowSummary, reviewGeneratedJobCode } from './agent-harness.js';
|
|
4
4
|
import '@automerge/automerge';
|
|
5
5
|
import '@automerge/automerge/slim';
|