@overaihq/cli 0.13.2 → 0.13.4
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.
|
@@ -396,7 +396,7 @@ var webPageConfigSchema = external_exports.object({
|
|
|
396
396
|
filter: itemFilterExpressionRootSchema.nullish().catch(null),
|
|
397
397
|
/* Drops the iframe's sandbox attribute — needed for storage, cookies, forms. */
|
|
398
398
|
noSandbox: configFlag,
|
|
399
|
-
/* Renders the page fullscreen for
|
|
399
|
+
/* Renders the page fullscreen for end users by hiding the workspace top bar. */
|
|
400
400
|
hideTopBar: configFlag,
|
|
401
401
|
/*
|
|
402
402
|
* Which iframe runtime renders the page. "v1" is the sandboxed srcdoc
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
itemFilterExpressionRootSchema,
|
|
7
7
|
webPageConfigSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M2NX2CHG.js";
|
|
9
9
|
import {
|
|
10
10
|
external_exports
|
|
11
11
|
} from "./chunk-XCJJTK3H.js";
|
|
@@ -27224,7 +27224,7 @@ var validateAutomationElements = async (elements) => {
|
|
|
27224
27224
|
return findings(automationNodesSchema.safeParse(elements));
|
|
27225
27225
|
};
|
|
27226
27226
|
var validateWebPageConfig = async (config) => {
|
|
27227
|
-
const { webPageConfigWriteSchema } = await import("./webPage-
|
|
27227
|
+
const { webPageConfigWriteSchema } = await import("./webPage-3MNCKCRX.js");
|
|
27228
27228
|
return findings(webPageConfigWriteSchema.safeParse(config));
|
|
27229
27229
|
};
|
|
27230
27230
|
|
|
@@ -27649,6 +27649,15 @@ var agentFiles = (id, name2, version) => ({
|
|
|
27649
27649
|
rateLimitTokensPerMinute: version.rateLimitTokensPerMinute,
|
|
27650
27650
|
functionIds: version.agentVersionFunctionsByAgentIdAndVersionNumber.nodes.map(
|
|
27651
27651
|
(link) => link.functionId
|
|
27652
|
+
),
|
|
27653
|
+
tableSpaceBindings: version.agentVersionTableSpacesByAgentIdAndVersionNumber.nodes.map(
|
|
27654
|
+
(link) => ({
|
|
27655
|
+
tableSpaceId: link.tableSpaceId,
|
|
27656
|
+
accessMode: link.accessMode
|
|
27657
|
+
})
|
|
27658
|
+
),
|
|
27659
|
+
agentIds: version.agentVersionAgentsByAgentIdAndVersionNumber.nodes.map(
|
|
27660
|
+
(link) => link.attachedAgentId
|
|
27652
27661
|
)
|
|
27653
27662
|
})
|
|
27654
27663
|
});
|
|
@@ -27658,6 +27667,12 @@ var agentVersionFields = `
|
|
|
27658
27667
|
agentVersionFunctionsByAgentIdAndVersionNumber(orderBy: [FUNCTION_ID_ASC]) {
|
|
27659
27668
|
nodes { functionId }
|
|
27660
27669
|
}
|
|
27670
|
+
agentVersionTableSpacesByAgentIdAndVersionNumber(orderBy: [TABLE_SPACE_ID_ASC]) {
|
|
27671
|
+
nodes { tableSpaceId accessMode }
|
|
27672
|
+
}
|
|
27673
|
+
agentVersionAgentsByAgentIdAndVersionNumber(orderBy: [ATTACHED_AGENT_ID_ASC]) {
|
|
27674
|
+
nodes { attachedAgentId }
|
|
27675
|
+
}
|
|
27661
27676
|
`;
|
|
27662
27677
|
var agentAdapter = {
|
|
27663
27678
|
type: "agent",
|
|
@@ -27728,21 +27743,29 @@ var agentAdapter = {
|
|
|
27728
27743
|
$agentId: String!, $message: String!, $systemPrompt: String!,
|
|
27729
27744
|
$model: String!, $temperature: Float!, $maxTokens: Int!,
|
|
27730
27745
|
$rateLimitRequestsPerMinute: Int!, $rateLimitTokensPerMinute: Int!,
|
|
27731
|
-
$functionIds: [String]
|
|
27746
|
+
$functionIds: [String], $tableSpaceBindings: JSON, $agentIds: [String]
|
|
27732
27747
|
) {
|
|
27733
|
-
|
|
27748
|
+
createAgentVersionWithAttachments(input: { expectedLatestVersion: $expectedLatestVersion,
|
|
27734
27749
|
agentId: $agentId, message: $message, systemPrompt: $systemPrompt,
|
|
27735
27750
|
model: $model, temperature: $temperature, maxTokens: $maxTokens,
|
|
27736
27751
|
rateLimitRequestsPerMinute: $rateLimitRequestsPerMinute,
|
|
27737
27752
|
rateLimitTokensPerMinute: $rateLimitTokensPerMinute,
|
|
27738
|
-
functionIds: $functionIds
|
|
27753
|
+
functionIds: $functionIds, tableSpaceBindings: $tableSpaceBindings,
|
|
27754
|
+
agentIds: $agentIds
|
|
27739
27755
|
}) { result { versionNumber } }
|
|
27740
27756
|
}`,
|
|
27741
|
-
{
|
|
27757
|
+
{
|
|
27758
|
+
agentId: id,
|
|
27759
|
+
message,
|
|
27760
|
+
...config,
|
|
27761
|
+
tableSpaceBindings: config.tableSpaceBindings ?? [],
|
|
27762
|
+
agentIds: config.agentIds ?? [],
|
|
27763
|
+
expectedLatestVersion
|
|
27764
|
+
}
|
|
27742
27765
|
);
|
|
27743
|
-
const versionNumber = data.
|
|
27766
|
+
const versionNumber = data.createAgentVersionWithAttachments?.result?.versionNumber;
|
|
27744
27767
|
if (versionNumber == null) {
|
|
27745
|
-
throw new Error("
|
|
27768
|
+
throw new Error("createAgentVersionWithAttachments returned no version.");
|
|
27746
27769
|
}
|
|
27747
27770
|
return versionNumber;
|
|
27748
27771
|
},
|
|
@@ -29180,6 +29203,7 @@ var defaultAgentVersionConfig = {
|
|
|
29180
29203
|
rateLimitRequestsPerMinute: 20,
|
|
29181
29204
|
rateLimitTokensPerMinute: 2e5
|
|
29182
29205
|
};
|
|
29206
|
+
var agentTableSpaceAccessModeSchema = external_exports.enum(["read", "read_write"]);
|
|
29183
29207
|
var agentEditableConfigSchema = agentVersionConfigSchema.extend({
|
|
29184
29208
|
agentVersionFunctionsByAgentIdAndVersionNumber: external_exports.object({
|
|
29185
29209
|
nodes: external_exports.array(
|
|
@@ -29187,6 +29211,21 @@ var agentEditableConfigSchema = agentVersionConfigSchema.extend({
|
|
|
29187
29211
|
functionId: external_exports.string()
|
|
29188
29212
|
})
|
|
29189
29213
|
)
|
|
29214
|
+
}),
|
|
29215
|
+
agentVersionTableSpacesByAgentIdAndVersionNumber: external_exports.object({
|
|
29216
|
+
nodes: external_exports.array(
|
|
29217
|
+
external_exports.object({
|
|
29218
|
+
tableSpaceId: external_exports.string(),
|
|
29219
|
+
accessMode: agentTableSpaceAccessModeSchema
|
|
29220
|
+
})
|
|
29221
|
+
)
|
|
29222
|
+
}),
|
|
29223
|
+
agentVersionAgentsByAgentIdAndVersionNumber: external_exports.object({
|
|
29224
|
+
nodes: external_exports.array(
|
|
29225
|
+
external_exports.object({
|
|
29226
|
+
attachedAgentId: external_exports.string()
|
|
29227
|
+
})
|
|
29228
|
+
)
|
|
29190
29229
|
})
|
|
29191
29230
|
});
|
|
29192
29231
|
var agentToolHttpMethodSchema = external_exports.enum([
|
|
@@ -34606,7 +34645,9 @@ var addToClone = async (root, manifest, type, id) => {
|
|
|
34606
34645
|
(resource) => resource.id === id
|
|
34607
34646
|
);
|
|
34608
34647
|
if (remote == null) {
|
|
34609
|
-
throw new Error(
|
|
34648
|
+
throw new Error(
|
|
34649
|
+
`Created ${id}, but could not read it back into the clone.`
|
|
34650
|
+
);
|
|
34610
34651
|
}
|
|
34611
34652
|
Object.entries(remote.files).forEach(([path, content]) => {
|
|
34612
34653
|
writeSynced(root, path, content);
|
|
@@ -34681,7 +34722,8 @@ var runCreate2 = async (args) => {
|
|
|
34681
34722
|
{ workspaceId, name: name2, description }
|
|
34682
34723
|
);
|
|
34683
34724
|
const id2 = created.createAutomation?.automation?.id;
|
|
34684
|
-
if (id2 == null)
|
|
34725
|
+
if (id2 == null)
|
|
34726
|
+
throw new Error("createAutomation returned no automation.");
|
|
34685
34727
|
const version = await gqlRequest(
|
|
34686
34728
|
`mutation CliCreateAutomationVersion($automationId: String!) {
|
|
34687
34729
|
createAutomationVersion(input: { automationVersion: {
|
|
@@ -34769,12 +34811,13 @@ var runCreate2 = async (args) => {
|
|
|
34769
34811
|
$temperature: Float!, $maxTokens: Int!,
|
|
34770
34812
|
$rateLimitRequestsPerMinute: Int!, $rateLimitTokensPerMinute: Int!
|
|
34771
34813
|
) {
|
|
34772
|
-
|
|
34814
|
+
createAgentVersionWithAttachments(input: {
|
|
34773
34815
|
agentId: $agentId, message: "Initial version",
|
|
34774
34816
|
systemPrompt: $systemPrompt, model: $model,
|
|
34775
34817
|
temperature: $temperature, maxTokens: $maxTokens,
|
|
34776
34818
|
rateLimitRequestsPerMinute: $rateLimitRequestsPerMinute,
|
|
34777
|
-
rateLimitTokensPerMinute: $rateLimitTokensPerMinute,
|
|
34819
|
+
rateLimitTokensPerMinute: $rateLimitTokensPerMinute,
|
|
34820
|
+
functionIds: [], tableSpaceBindings: [], agentIds: []
|
|
34778
34821
|
}) { result { versionNumber } }
|
|
34779
34822
|
}`,
|
|
34780
34823
|
{ agentId: id2, ...defaultAgentVersionConfig }
|
|
@@ -34800,7 +34843,8 @@ var runCreate2 = async (args) => {
|
|
|
34800
34843
|
}
|
|
34801
34844
|
);
|
|
34802
34845
|
const id2 = data.createIntegration?.integration?.id;
|
|
34803
|
-
if (id2 == null)
|
|
34846
|
+
if (id2 == null)
|
|
34847
|
+
throw new Error("createIntegration returned no integration.");
|
|
34804
34848
|
return id2;
|
|
34805
34849
|
}
|
|
34806
34850
|
if (type === "table-space") {
|
|
@@ -34815,7 +34859,8 @@ var runCreate2 = async (args) => {
|
|
|
34815
34859
|
{ workspaceId, name: name2, description }
|
|
34816
34860
|
);
|
|
34817
34861
|
const id2 = data.createTableSpaceDatabase?.tableSpace?.id;
|
|
34818
|
-
if (id2 == null)
|
|
34862
|
+
if (id2 == null)
|
|
34863
|
+
throw new Error("createTableSpaceDatabase returned no table space.");
|
|
34819
34864
|
return id2;
|
|
34820
34865
|
}
|
|
34821
34866
|
if (type === "data-stream") {
|
|
@@ -34828,7 +34873,8 @@ var runCreate2 = async (args) => {
|
|
|
34828
34873
|
{ workspaceId, name: name2, description }
|
|
34829
34874
|
);
|
|
34830
34875
|
const id2 = data.createDataStream?.dataStream?.id;
|
|
34831
|
-
if (id2 == null)
|
|
34876
|
+
if (id2 == null)
|
|
34877
|
+
throw new Error("createDataStream returned no data stream.");
|
|
34832
34878
|
return id2;
|
|
34833
34879
|
}
|
|
34834
34880
|
if (type === "data-file") {
|
|
@@ -34838,7 +34884,12 @@ var runCreate2 = async (args) => {
|
|
|
34838
34884
|
workspaceId: $workspaceId, name: $name, description: $description, mimeType: $mimeType
|
|
34839
34885
|
}}) { dataFile { id } }
|
|
34840
34886
|
}`,
|
|
34841
|
-
{
|
|
34887
|
+
{
|
|
34888
|
+
workspaceId,
|
|
34889
|
+
name: name2,
|
|
34890
|
+
description,
|
|
34891
|
+
mimeType: flagValue(args, "--mime-type") ?? "application/octet-stream"
|
|
34892
|
+
}
|
|
34842
34893
|
);
|
|
34843
34894
|
const id2 = data.createDataFile?.dataFile?.id;
|
|
34844
34895
|
if (id2 == null) throw new Error("createDataFile returned no data file.");
|