@overaihq/cli 0.13.2 → 0.13.3
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,12 @@ 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
|
+
})
|
|
27652
27658
|
)
|
|
27653
27659
|
})
|
|
27654
27660
|
});
|
|
@@ -27658,6 +27664,9 @@ var agentVersionFields = `
|
|
|
27658
27664
|
agentVersionFunctionsByAgentIdAndVersionNumber(orderBy: [FUNCTION_ID_ASC]) {
|
|
27659
27665
|
nodes { functionId }
|
|
27660
27666
|
}
|
|
27667
|
+
agentVersionTableSpacesByAgentIdAndVersionNumber(orderBy: [TABLE_SPACE_ID_ASC]) {
|
|
27668
|
+
nodes { tableSpaceId accessMode }
|
|
27669
|
+
}
|
|
27661
27670
|
`;
|
|
27662
27671
|
var agentAdapter = {
|
|
27663
27672
|
type: "agent",
|
|
@@ -27728,21 +27737,27 @@ var agentAdapter = {
|
|
|
27728
27737
|
$agentId: String!, $message: String!, $systemPrompt: String!,
|
|
27729
27738
|
$model: String!, $temperature: Float!, $maxTokens: Int!,
|
|
27730
27739
|
$rateLimitRequestsPerMinute: Int!, $rateLimitTokensPerMinute: Int!,
|
|
27731
|
-
$functionIds: [String]
|
|
27740
|
+
$functionIds: [String], $tableSpaceBindings: JSON
|
|
27732
27741
|
) {
|
|
27733
|
-
|
|
27742
|
+
createAgentVersionWithAttachments(input: { expectedLatestVersion: $expectedLatestVersion,
|
|
27734
27743
|
agentId: $agentId, message: $message, systemPrompt: $systemPrompt,
|
|
27735
27744
|
model: $model, temperature: $temperature, maxTokens: $maxTokens,
|
|
27736
27745
|
rateLimitRequestsPerMinute: $rateLimitRequestsPerMinute,
|
|
27737
27746
|
rateLimitTokensPerMinute: $rateLimitTokensPerMinute,
|
|
27738
|
-
functionIds: $functionIds
|
|
27747
|
+
functionIds: $functionIds, tableSpaceBindings: $tableSpaceBindings
|
|
27739
27748
|
}) { result { versionNumber } }
|
|
27740
27749
|
}`,
|
|
27741
|
-
{
|
|
27750
|
+
{
|
|
27751
|
+
agentId: id,
|
|
27752
|
+
message,
|
|
27753
|
+
...config,
|
|
27754
|
+
tableSpaceBindings: config.tableSpaceBindings ?? [],
|
|
27755
|
+
expectedLatestVersion
|
|
27756
|
+
}
|
|
27742
27757
|
);
|
|
27743
|
-
const versionNumber = data.
|
|
27758
|
+
const versionNumber = data.createAgentVersionWithAttachments?.result?.versionNumber;
|
|
27744
27759
|
if (versionNumber == null) {
|
|
27745
|
-
throw new Error("
|
|
27760
|
+
throw new Error("createAgentVersionWithAttachments returned no version.");
|
|
27746
27761
|
}
|
|
27747
27762
|
return versionNumber;
|
|
27748
27763
|
},
|
|
@@ -29180,6 +29195,7 @@ var defaultAgentVersionConfig = {
|
|
|
29180
29195
|
rateLimitRequestsPerMinute: 20,
|
|
29181
29196
|
rateLimitTokensPerMinute: 2e5
|
|
29182
29197
|
};
|
|
29198
|
+
var agentTableSpaceAccessModeSchema = external_exports.enum(["read", "read_write"]);
|
|
29183
29199
|
var agentEditableConfigSchema = agentVersionConfigSchema.extend({
|
|
29184
29200
|
agentVersionFunctionsByAgentIdAndVersionNumber: external_exports.object({
|
|
29185
29201
|
nodes: external_exports.array(
|
|
@@ -29187,6 +29203,14 @@ var agentEditableConfigSchema = agentVersionConfigSchema.extend({
|
|
|
29187
29203
|
functionId: external_exports.string()
|
|
29188
29204
|
})
|
|
29189
29205
|
)
|
|
29206
|
+
}),
|
|
29207
|
+
agentVersionTableSpacesByAgentIdAndVersionNumber: external_exports.object({
|
|
29208
|
+
nodes: external_exports.array(
|
|
29209
|
+
external_exports.object({
|
|
29210
|
+
tableSpaceId: external_exports.string(),
|
|
29211
|
+
accessMode: agentTableSpaceAccessModeSchema
|
|
29212
|
+
})
|
|
29213
|
+
)
|
|
29190
29214
|
})
|
|
29191
29215
|
});
|
|
29192
29216
|
var agentToolHttpMethodSchema = external_exports.enum([
|
|
@@ -34606,7 +34630,9 @@ var addToClone = async (root, manifest, type, id) => {
|
|
|
34606
34630
|
(resource) => resource.id === id
|
|
34607
34631
|
);
|
|
34608
34632
|
if (remote == null) {
|
|
34609
|
-
throw new Error(
|
|
34633
|
+
throw new Error(
|
|
34634
|
+
`Created ${id}, but could not read it back into the clone.`
|
|
34635
|
+
);
|
|
34610
34636
|
}
|
|
34611
34637
|
Object.entries(remote.files).forEach(([path, content]) => {
|
|
34612
34638
|
writeSynced(root, path, content);
|
|
@@ -34681,7 +34707,8 @@ var runCreate2 = async (args) => {
|
|
|
34681
34707
|
{ workspaceId, name: name2, description }
|
|
34682
34708
|
);
|
|
34683
34709
|
const id2 = created.createAutomation?.automation?.id;
|
|
34684
|
-
if (id2 == null)
|
|
34710
|
+
if (id2 == null)
|
|
34711
|
+
throw new Error("createAutomation returned no automation.");
|
|
34685
34712
|
const version = await gqlRequest(
|
|
34686
34713
|
`mutation CliCreateAutomationVersion($automationId: String!) {
|
|
34687
34714
|
createAutomationVersion(input: { automationVersion: {
|
|
@@ -34769,12 +34796,13 @@ var runCreate2 = async (args) => {
|
|
|
34769
34796
|
$temperature: Float!, $maxTokens: Int!,
|
|
34770
34797
|
$rateLimitRequestsPerMinute: Int!, $rateLimitTokensPerMinute: Int!
|
|
34771
34798
|
) {
|
|
34772
|
-
|
|
34799
|
+
createAgentVersionWithAttachments(input: {
|
|
34773
34800
|
agentId: $agentId, message: "Initial version",
|
|
34774
34801
|
systemPrompt: $systemPrompt, model: $model,
|
|
34775
34802
|
temperature: $temperature, maxTokens: $maxTokens,
|
|
34776
34803
|
rateLimitRequestsPerMinute: $rateLimitRequestsPerMinute,
|
|
34777
|
-
rateLimitTokensPerMinute: $rateLimitTokensPerMinute,
|
|
34804
|
+
rateLimitTokensPerMinute: $rateLimitTokensPerMinute,
|
|
34805
|
+
functionIds: [], tableSpaceBindings: []
|
|
34778
34806
|
}) { result { versionNumber } }
|
|
34779
34807
|
}`,
|
|
34780
34808
|
{ agentId: id2, ...defaultAgentVersionConfig }
|
|
@@ -34800,7 +34828,8 @@ var runCreate2 = async (args) => {
|
|
|
34800
34828
|
}
|
|
34801
34829
|
);
|
|
34802
34830
|
const id2 = data.createIntegration?.integration?.id;
|
|
34803
|
-
if (id2 == null)
|
|
34831
|
+
if (id2 == null)
|
|
34832
|
+
throw new Error("createIntegration returned no integration.");
|
|
34804
34833
|
return id2;
|
|
34805
34834
|
}
|
|
34806
34835
|
if (type === "table-space") {
|
|
@@ -34815,7 +34844,8 @@ var runCreate2 = async (args) => {
|
|
|
34815
34844
|
{ workspaceId, name: name2, description }
|
|
34816
34845
|
);
|
|
34817
34846
|
const id2 = data.createTableSpaceDatabase?.tableSpace?.id;
|
|
34818
|
-
if (id2 == null)
|
|
34847
|
+
if (id2 == null)
|
|
34848
|
+
throw new Error("createTableSpaceDatabase returned no table space.");
|
|
34819
34849
|
return id2;
|
|
34820
34850
|
}
|
|
34821
34851
|
if (type === "data-stream") {
|
|
@@ -34828,7 +34858,8 @@ var runCreate2 = async (args) => {
|
|
|
34828
34858
|
{ workspaceId, name: name2, description }
|
|
34829
34859
|
);
|
|
34830
34860
|
const id2 = data.createDataStream?.dataStream?.id;
|
|
34831
|
-
if (id2 == null)
|
|
34861
|
+
if (id2 == null)
|
|
34862
|
+
throw new Error("createDataStream returned no data stream.");
|
|
34832
34863
|
return id2;
|
|
34833
34864
|
}
|
|
34834
34865
|
if (type === "data-file") {
|
|
@@ -34838,7 +34869,12 @@ var runCreate2 = async (args) => {
|
|
|
34838
34869
|
workspaceId: $workspaceId, name: $name, description: $description, mimeType: $mimeType
|
|
34839
34870
|
}}) { dataFile { id } }
|
|
34840
34871
|
}`,
|
|
34841
|
-
{
|
|
34872
|
+
{
|
|
34873
|
+
workspaceId,
|
|
34874
|
+
name: name2,
|
|
34875
|
+
description,
|
|
34876
|
+
mimeType: flagValue(args, "--mime-type") ?? "application/octet-stream"
|
|
34877
|
+
}
|
|
34842
34878
|
);
|
|
34843
34879
|
const id2 = data.createDataFile?.dataFile?.id;
|
|
34844
34880
|
if (id2 == null) throw new Error("createDataFile returned no data file.");
|