@opengeni/sdk 1.0.1 → 2.2.0-canary.0
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 +117 -2
- package/dist/artifacts.js +5 -5
- package/dist/automations-client.d.ts +17 -0
- package/dist/automations.d.ts +3 -0
- package/dist/automations.js +78 -0
- package/dist/automations.js.map +1 -0
- package/dist/{chunk-A5DC5WEM.js → chunk-C2H7HBNP.js} +22 -2
- package/dist/chunk-C2H7HBNP.js.map +1 -0
- package/dist/{chunk-GU6JF75T.js → chunk-C4DJPZRU.js} +1 -1
- package/dist/{chunk-GU6JF75T.js.map → chunk-C4DJPZRU.js.map} +1 -1
- package/dist/{chunk-TYZ4JL4J.js → chunk-G6LBVWKT.js} +2 -2
- package/dist/{chunk-4DV37UUA.js → chunk-GLDV5QY7.js} +16 -2
- package/dist/chunk-GLDV5QY7.js.map +1 -0
- package/dist/{chunk-ST5DDKJP.js → chunk-GW3EJ2GP.js} +52 -1
- package/dist/chunk-GW3EJ2GP.js.map +1 -0
- package/dist/{chunk-VWE2QIVO.js → chunk-XNG7YGR3.js} +23 -6
- package/dist/chunk-XNG7YGR3.js.map +1 -0
- package/dist/{chunk-YGH5P47G.js → chunk-YBQTKNTL.js} +696 -57
- package/dist/chunk-YBQTKNTL.js.map +1 -0
- package/dist/client.d.ts +151 -26
- package/dist/codex-realtime-controller.d.ts +1 -0
- package/dist/codex-realtime-controller.js +2 -2
- package/dist/company-brain.d.ts +32 -0
- package/dist/company-profile.d.ts +1 -1
- package/dist/core.js +4 -4
- package/dist/editable-artifacts/browser-session.d.ts +7 -3
- package/dist/editable-artifacts/controller.d.ts +4 -1
- package/dist/editable-artifacts/errors.d.ts +1 -1
- package/dist/editable-artifacts/http-live-transport.d.ts +6 -2
- package/dist/editable-artifacts/index.d.ts +2 -0
- package/dist/editable-artifacts/open-failure.d.ts +9 -0
- package/dist/editable-artifacts/types.d.ts +4 -3
- package/dist/editable-artifacts/worker/kernel-adapter.d.ts +1 -1
- package/dist/editable-artifacts-worker.js +44 -17
- package/dist/editable-artifacts-worker.js.map +1 -1
- package/dist/editable-artifacts.js +222 -119
- package/dist/editable-artifacts.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.js +61 -12
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +23 -0
- package/dist/interaction.js +4 -1
- package/dist/organization-private-session-settings.d.ts +6 -0
- package/dist/organization-private-session-settings.js +22 -0
- package/dist/organization-private-session-settings.js.map +1 -0
- package/dist/pr-review-client.d.ts +15 -0
- package/dist/pr-review.d.ts +4 -0
- package/dist/pr-review.js +56 -0
- package/dist/pr-review.js.map +1 -0
- package/dist/preference-registry.d.ts +8 -0
- package/dist/realtime.js +2 -2
- package/dist/retained-artifacts.d.ts +5 -1
- package/dist/types.d.ts +961 -13
- package/dist/workspace-instruction-policies.d.ts +22 -0
- package/dist/workspace-learning.d.ts +124 -0
- package/package.json +14 -2
- package/src/automations-client.ts +118 -0
- package/src/automations.ts +15 -0
- package/src/client.ts +974 -71
- package/src/codex-realtime-controller.ts +21 -0
- package/src/company-brain.ts +99 -0
- package/src/company-profile.ts +4 -1
- package/src/editable-artifacts/browser-session.ts +36 -22
- package/src/editable-artifacts/controller.ts +66 -45
- package/src/editable-artifacts/errors.ts +2 -0
- package/src/editable-artifacts/http-live-transport.ts +62 -37
- package/src/editable-artifacts/index.ts +6 -0
- package/src/editable-artifacts/open-failure.ts +79 -0
- package/src/editable-artifacts/storage.ts +31 -40
- package/src/editable-artifacts/types.ts +4 -3
- package/src/editable-artifacts/worker/kernel-adapter.ts +23 -7
- package/src/editable-artifacts/worker/runtime.ts +26 -13
- package/src/editable-artifacts/worker/wire-codec.ts +23 -5
- package/src/errors.ts +1 -1
- package/src/index.ts +131 -0
- package/src/interaction.ts +95 -0
- package/src/organization-private-session-settings.ts +33 -0
- package/src/pr-review-client.ts +84 -0
- package/src/pr-review.ts +15 -0
- package/src/preference-registry.ts +9 -0
- package/src/retained-artifacts.ts +101 -0
- package/src/stream.ts +13 -2
- package/src/types.ts +1101 -12
- package/src/workspace-instruction-policies.ts +24 -0
- package/src/workspace-learning.ts +138 -0
- package/dist/chunk-4DV37UUA.js.map +0 -1
- package/dist/chunk-A5DC5WEM.js.map +0 -1
- package/dist/chunk-ST5DDKJP.js.map +0 -1
- package/dist/chunk-VWE2QIVO.js.map +0 -1
- package/dist/chunk-YGH5P47G.js.map +0 -1
- /package/dist/{chunk-TYZ4JL4J.js.map → chunk-G6LBVWKT.js.map} +0 -0
|
@@ -53,6 +53,12 @@ export type WorkspaceInstructionPolicyHead = WorkspaceInstructionPolicyTarget &
|
|
|
53
53
|
activatedAt: string;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
+
export type WorkspaceInstructionPolicyInactiveHead = WorkspaceInstructionPolicyTarget & {
|
|
57
|
+
workspaceId: string;
|
|
58
|
+
activationVersion: number;
|
|
59
|
+
deactivatedAt: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
56
62
|
export type WorkspaceInstructionPolicyActivationEvent = WorkspaceInstructionPolicyTarget & {
|
|
57
63
|
id: string;
|
|
58
64
|
operationId: string;
|
|
@@ -67,6 +73,19 @@ export type WorkspaceInstructionPolicyActivationEvent = WorkspaceInstructionPoli
|
|
|
67
73
|
createdAt: string;
|
|
68
74
|
};
|
|
69
75
|
|
|
76
|
+
export type WorkspaceInstructionPolicyDeactivationEvent = WorkspaceInstructionPolicyTarget & {
|
|
77
|
+
id: string;
|
|
78
|
+
operationId: string;
|
|
79
|
+
accountId: string;
|
|
80
|
+
workspaceId: string;
|
|
81
|
+
type: "automatic_deactivate";
|
|
82
|
+
activationVersion: number;
|
|
83
|
+
oldRevision: WorkspaceInstructionPolicyRevisionIdentity;
|
|
84
|
+
actorSubjectId: string;
|
|
85
|
+
reason: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
};
|
|
88
|
+
|
|
70
89
|
export type CreateWorkspaceInstructionPolicyDraftRequest = WorkspaceInstructionPolicyTarget & {
|
|
71
90
|
operationId?: string;
|
|
72
91
|
content: string;
|
|
@@ -91,7 +110,12 @@ export type WorkspaceInstructionPolicyListOptions = {
|
|
|
91
110
|
export type WorkspaceInstructionPolicyListResponse = {
|
|
92
111
|
revisions: WorkspaceInstructionPolicyRevision[];
|
|
93
112
|
activeHeads: WorkspaceInstructionPolicyHead[];
|
|
113
|
+
/** Additive current inactive target boundaries; absent on pre-controller servers. */
|
|
114
|
+
inactiveHeads?: WorkspaceInstructionPolicyInactiveHead[];
|
|
115
|
+
inactiveHeadsTruncated?: boolean;
|
|
94
116
|
activationEvents: WorkspaceInstructionPolicyActivationEvent[];
|
|
117
|
+
/** Additive lifecycle history; absent on pre-controller servers. */
|
|
118
|
+
deactivationEvents?: WorkspaceInstructionPolicyDeactivationEvent[];
|
|
95
119
|
nextAfterRevision: number | null;
|
|
96
120
|
};
|
|
97
121
|
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export type WorkspaceLearningMode = "off" | "suggest" | "automatic";
|
|
2
|
+
export type WorkspaceLearningOverrideMode = WorkspaceLearningMode | "inherit";
|
|
3
|
+
|
|
4
|
+
export type WorkspaceLearningSourceOverrideInput = {
|
|
5
|
+
kind: string;
|
|
6
|
+
id: string;
|
|
7
|
+
mode: WorkspaceLearningOverrideMode;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type WorkspaceLearningSourceOverride = Omit<WorkspaceLearningSourceOverrideInput, "mode"> & {
|
|
11
|
+
mode: WorkspaceLearningMode;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type WorkspaceLearningPolicyRevisionIdentity = {
|
|
15
|
+
id: string;
|
|
16
|
+
revision: number;
|
|
17
|
+
policyHash: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type WorkspaceLearningPolicyRevision = WorkspaceLearningPolicyRevisionIdentity & {
|
|
21
|
+
operationId: string;
|
|
22
|
+
accountId: string;
|
|
23
|
+
workspaceId: string;
|
|
24
|
+
workspaceMode: WorkspaceLearningMode;
|
|
25
|
+
sourceOverrides: WorkspaceLearningSourceOverride[];
|
|
26
|
+
supersedesRevisionId: string | null;
|
|
27
|
+
createdBySubjectId: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type WorkspaceLearningPolicyHead = Omit<WorkspaceLearningPolicyRevisionIdentity, "id"> & {
|
|
32
|
+
accountId: string;
|
|
33
|
+
workspaceId: string;
|
|
34
|
+
revisionId: string;
|
|
35
|
+
activationVersion: number;
|
|
36
|
+
activatedAt: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type WorkspaceLearningPolicyEvent = {
|
|
40
|
+
id: string;
|
|
41
|
+
operationId: string;
|
|
42
|
+
accountId: string;
|
|
43
|
+
workspaceId: string;
|
|
44
|
+
type: "activate" | "rollback";
|
|
45
|
+
activationVersion: number;
|
|
46
|
+
oldRevision: WorkspaceLearningPolicyRevisionIdentity | null;
|
|
47
|
+
newRevision: WorkspaceLearningPolicyRevisionIdentity;
|
|
48
|
+
actorSubjectId: string;
|
|
49
|
+
reason: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type GovernedLearningDecisionReceipt = {
|
|
54
|
+
id: string;
|
|
55
|
+
sourceKind: "scoped-knowledge-evidence" | "task-note";
|
|
56
|
+
sourceId: string;
|
|
57
|
+
proposalId: string;
|
|
58
|
+
policySnapshotId: string;
|
|
59
|
+
policyRevisionId: string | null;
|
|
60
|
+
policyActivationVersion: number;
|
|
61
|
+
effectiveMode: WorkspaceLearningMode;
|
|
62
|
+
confidenceBps: number;
|
|
63
|
+
conflictCount: number;
|
|
64
|
+
outcome: "off" | "suggest" | "automatic" | "confidence" | "conflict" | "stale" | "revoked";
|
|
65
|
+
reasons: string[];
|
|
66
|
+
automaticEligible: boolean;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type GovernedLearningActivationReceipt = {
|
|
71
|
+
id: string;
|
|
72
|
+
decisionReceiptId: string;
|
|
73
|
+
initiatingHumanSubjectId: string;
|
|
74
|
+
serviceActorSubjectId: string;
|
|
75
|
+
sourceKind: "scoped-knowledge-evidence" | "task-note";
|
|
76
|
+
sourceId: string;
|
|
77
|
+
destination: "instruction_policy" | "preference";
|
|
78
|
+
destinationRevisionId: string;
|
|
79
|
+
destinationOldRevisionId: string | null;
|
|
80
|
+
destinationOldContentHash: string | null;
|
|
81
|
+
destinationOldVersion: number;
|
|
82
|
+
destinationNewContentHash: string;
|
|
83
|
+
destinationNewVersion: number;
|
|
84
|
+
effectiveAt: string;
|
|
85
|
+
createdAt: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type GovernedLearningActivationUndoReceipt = {
|
|
89
|
+
id: string;
|
|
90
|
+
activationReceiptId: string;
|
|
91
|
+
initiatingHumanSubjectId: string;
|
|
92
|
+
serviceActorSubjectId: string;
|
|
93
|
+
destination: "instruction_policy" | "preference";
|
|
94
|
+
destinationActivatedRevisionId: string;
|
|
95
|
+
destinationRestoredRevisionId: string | null;
|
|
96
|
+
destinationOldVersion: number;
|
|
97
|
+
destinationNewVersion: number;
|
|
98
|
+
effectiveAt: string;
|
|
99
|
+
createdAt: string;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type WorkspaceLearningHistoryResponse = {
|
|
103
|
+
head: WorkspaceLearningPolicyHead | null;
|
|
104
|
+
revisions: WorkspaceLearningPolicyRevision[];
|
|
105
|
+
policyEvents: WorkspaceLearningPolicyEvent[];
|
|
106
|
+
decisions: GovernedLearningDecisionReceipt[];
|
|
107
|
+
activations: GovernedLearningActivationReceipt[];
|
|
108
|
+
undos: GovernedLearningActivationUndoReceipt[];
|
|
109
|
+
truncated: boolean;
|
|
110
|
+
effectiveBoundary: "next_accepted_attempt";
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export type CreateWorkspaceLearningPolicyRevisionRequest = {
|
|
114
|
+
operationId?: string;
|
|
115
|
+
workspaceMode: WorkspaceLearningMode;
|
|
116
|
+
sourceOverrides?: WorkspaceLearningSourceOverrideInput[];
|
|
117
|
+
supersedesRevisionId?: string | null;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export type ActivateWorkspaceLearningPolicyRevisionRequest = {
|
|
121
|
+
operationId?: string;
|
|
122
|
+
expectedCurrentRevisionId: string | null;
|
|
123
|
+
expectedActivationVersion: number;
|
|
124
|
+
reason: string;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export type RollbackWorkspaceLearningPolicyRevisionRequest =
|
|
128
|
+
ActivateWorkspaceLearningPolicyRevisionRequest & {
|
|
129
|
+
targetRevisionId: string;
|
|
130
|
+
expectedCurrentRevisionId: string;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export type WorkspaceLearningPolicyMutationResponse = {
|
|
134
|
+
head: WorkspaceLearningPolicyHead;
|
|
135
|
+
event: WorkspaceLearningPolicyEvent;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export type WorkspaceLearningHistoryOptions = { limit?: number };
|