@xanots/sdk 0.0.1
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/LICENSE +21 -0
- package/README.md +384 -0
- package/dist/agent-file-refresh-7XCACU34.js +95 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +184 -0
- package/dist/capture-HUV5BNTC.js +32 -0
- package/dist/chunk-26CNBZE2.js +963 -0
- package/dist/chunk-33ND6LKO.js +78 -0
- package/dist/chunk-3DUAGYGP.js +1550 -0
- package/dist/chunk-3IGNIP6R.js +89 -0
- package/dist/chunk-47WDWMBJ.js +14 -0
- package/dist/chunk-4BXJGVZ3.js +318 -0
- package/dist/chunk-4HT3BNZ7.js +675 -0
- package/dist/chunk-4YMD2OOZ.js +23 -0
- package/dist/chunk-5WGEURVI.js +156 -0
- package/dist/chunk-5YTBTF25.js +29 -0
- package/dist/chunk-6DHBYBTO.js +166 -0
- package/dist/chunk-76QBEIGO.js +66 -0
- package/dist/chunk-7DKX2SPN.js +100 -0
- package/dist/chunk-7REDODS2.js +468 -0
- package/dist/chunk-C56BC2FY.js +254 -0
- package/dist/chunk-DGSF2Q5H.js +60 -0
- package/dist/chunk-EMCAWMHC.js +3982 -0
- package/dist/chunk-EZG76F7R.js +159 -0
- package/dist/chunk-FJ6ZS5KB.js +3607 -0
- package/dist/chunk-GNPVYOPB.js +17 -0
- package/dist/chunk-HJPTWBLH.js +38 -0
- package/dist/chunk-IZW6MK3U.js +248 -0
- package/dist/chunk-LH6Z6KFV.js +247 -0
- package/dist/chunk-MZUI3JNX.js +93 -0
- package/dist/chunk-NDZFBZHC.js +167 -0
- package/dist/chunk-NOO35BQ2.js +37 -0
- package/dist/chunk-NUQCEOKA.js +13 -0
- package/dist/chunk-QTNO2WD6.js +56 -0
- package/dist/chunk-RVB7ITKN.js +49 -0
- package/dist/chunk-TRU5OHQ5.js +6904 -0
- package/dist/chunk-VKFQJEMW.js +814 -0
- package/dist/chunk-VTIL47DT.js +125 -0
- package/dist/chunk-WHOJWOSV.js +112 -0
- package/dist/chunk-WKP4D5MO.js +1692 -0
- package/dist/chunk-X4DVXBFY.js +38 -0
- package/dist/chunk-XQ22GLYS.js +118 -0
- package/dist/chunk-YDZYMZBE.js +670 -0
- package/dist/chunk-YGPIY3WT.js +1146 -0
- package/dist/chunk-YYRDLFSJ.js +602 -0
- package/dist/chunk-ZUTSMMAG.js +46 -0
- package/dist/cli.d.ts +331 -0
- package/dist/cli.js +33 -0
- package/dist/codegen-command-OOKK6AZK.js +40 -0
- package/dist/codegen.d.ts +114 -0
- package/dist/codegen.js +71 -0
- package/dist/completion-TIPPZN7H.js +298 -0
- package/dist/config-NL33PN4D.js +84 -0
- package/dist/deploy-command-4EQ7XX5G.js +451 -0
- package/dist/env-target-IFJ5QDHC.js +16 -0
- package/dist/ephemeral-command-3X3I4ULC.js +242 -0
- package/dist/index.d.ts +4477 -0
- package/dist/index.js +300 -0
- package/dist/init-command-R6H7ZXW5.js +27 -0
- package/dist/internal.d.ts +74 -0
- package/dist/internal.js +2065 -0
- package/dist/io-AMIKRLPC.js +11 -0
- package/dist/live-diff-Y3AKETHE.js +196 -0
- package/dist/lock-3CVKALKT.js +37 -0
- package/dist/lock-commands-XTR2YKLY.js +232 -0
- package/dist/login-command-ACJF6KWQ.js +167 -0
- package/dist/logout-command-MX3MJS5U.js +68 -0
- package/dist/loop-OM3P2Z6O.js +93 -0
- package/dist/marketplace-command-RATXTKXN.js +379 -0
- package/dist/meta-client-OW5WKWW7.js +170 -0
- package/dist/node.d.ts +59 -0
- package/dist/node.js +442 -0
- package/dist/profile-command-SWJ3SPKR.js +77 -0
- package/dist/release-command-VV5UVZKL.js +427 -0
- package/dist/response-CVAE2kMj.d.ts +1915 -0
- package/dist/routes-manifest-SP3ZXLMR.js +244 -0
- package/dist/runtime-V4C3AC3A.js +13 -0
- package/dist/sandbox-details-command-HJE5SPVG.js +18 -0
- package/dist/sandbox-export-command-QCJY4GMV.js +24 -0
- package/dist/static-host-D6KS7X45.js +138 -0
- package/dist/store-BQ97nKIF.d.ts +7760 -0
- package/dist/test-command-TSPBQHBM.js +383 -0
- package/dist/validate-command-4ERHJSCO.js +122 -0
- package/dist/verify-rollout-FAVQ6EJY.js +40 -0
- package/dist/workspace-K72NP7SX.js +49 -0
- package/dist/workspace-command-OF23DPNI.js +156 -0
- package/dist/workspace-export-AJMGN3CQ.js +10 -0
- package/llms/fields.md +104 -0
- package/llms/filters.md +183 -0
- package/llms/kinds-agent-mcp.md +11 -0
- package/llms/kinds-core.md +68 -0
- package/llms/kinds-realtime.md +76 -0
- package/llms/lambda.md +111 -0
- package/llms/legacy.md +43 -0
- package/llms/object-kinds.md +31 -0
- package/llms/statements-calls.md +23 -0
- package/llms/statements-catalog.md +309 -0
- package/llms/statements-data.md +58 -0
- package/llms/statements-runtime.md +48 -0
- package/llms/tests.md +58 -0
- package/llms/triggers.md +22 -0
- package/llms/values.md +29 -0
- package/llms-full.txt +1672 -0
- package/llms.txt +483 -0
- package/manifest.json +9592 -0
- package/package.json +110 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// src/util/http.ts
|
|
2
|
+
var MAX_DETAIL_CHARS = 500;
|
|
3
|
+
function debugEnabled() {
|
|
4
|
+
const v = process.env.XANOTS_DEBUG;
|
|
5
|
+
return v !== void 0 && v !== "" && v !== "0" && v.toLowerCase() !== "false";
|
|
6
|
+
}
|
|
7
|
+
function serverMessage(text) {
|
|
8
|
+
let detail = text;
|
|
9
|
+
try {
|
|
10
|
+
const parsed = JSON.parse(text);
|
|
11
|
+
if (parsed !== null && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
12
|
+
const message = parsed.message;
|
|
13
|
+
if (typeof message === "string" && message !== "") detail = message;
|
|
14
|
+
}
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
const flat = detail.replace(/\s+/g, " ").trim();
|
|
18
|
+
if (flat === "") return void 0;
|
|
19
|
+
return flat.length > MAX_DETAIL_CHARS ? `${flat.slice(0, MAX_DETAIL_CHARS)}\u2026` : flat;
|
|
20
|
+
}
|
|
21
|
+
function httpFailure(action, res, body) {
|
|
22
|
+
const detail = serverMessage(body);
|
|
23
|
+
const head = `${action} failed (${res.status} ${res.statusText})${detail !== void 0 ? `: ${detail}` : "."}`;
|
|
24
|
+
return debugEnabled() && body.trim() !== "" ? `${head}
|
|
25
|
+
${body}` : head;
|
|
26
|
+
}
|
|
27
|
+
function describeTransportFailure(err) {
|
|
28
|
+
const cause = err?.cause;
|
|
29
|
+
const code = cause?.code;
|
|
30
|
+
const outer = err instanceof Error ? err.message : String(err);
|
|
31
|
+
if (typeof code === "string") return `${outer} (${code})`;
|
|
32
|
+
if (cause instanceof Error && cause.message !== "") return `${outer} (${cause.message})`;
|
|
33
|
+
if (cause !== void 0 && cause !== null) return `${outer} (${String(cause)})`;
|
|
34
|
+
return outer;
|
|
35
|
+
}
|
|
36
|
+
function isTimeoutError(err) {
|
|
37
|
+
return typeof err?.name === "string" && err.name === "TimeoutError";
|
|
38
|
+
}
|
|
39
|
+
function seconds(ms) {
|
|
40
|
+
return `${Number((ms / 1e3).toFixed(1))}s`;
|
|
41
|
+
}
|
|
42
|
+
function explainFetchFailure(err, opts) {
|
|
43
|
+
const message = isTimeoutError(err) ? `${opts.what}: ${opts.url} did not answer` + (opts.timeoutMs !== void 0 ? ` within ${seconds(opts.timeoutMs)}` : "") + `. The instance may still be starting up or under load \u2014 retry, or raise the wait.` : `${opts.what} could not reach ${opts.url}: ${describeTransportFailure(err)}`;
|
|
44
|
+
return new Error(message, { cause: err });
|
|
45
|
+
}
|
|
46
|
+
async function fetchOrExplain(url, init, what, timeoutMs) {
|
|
47
|
+
try {
|
|
48
|
+
return await fetch(url, init);
|
|
49
|
+
} catch (err) {
|
|
50
|
+
throw explainFetchFailure(err, { url, what, timeoutMs });
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
var READ_ATTEMPTS = 3;
|
|
54
|
+
var READ_BACKOFF_MS = 400;
|
|
55
|
+
function isRetryableTransportFailure(err) {
|
|
56
|
+
if (isTimeoutError(err)) return false;
|
|
57
|
+
const code = err?.cause?.code;
|
|
58
|
+
return typeof code === "string" && ["ECONNREFUSED", "ECONNRESET", "ENOTFOUND", "EAI_AGAIN", "EPIPE", "ETIMEDOUT", "ENETUNREACH"].includes(code);
|
|
59
|
+
}
|
|
60
|
+
async function fetchReadOrExplain(url, init, what, timeoutMs) {
|
|
61
|
+
try {
|
|
62
|
+
return await retryingFetch(url, init);
|
|
63
|
+
} catch (err) {
|
|
64
|
+
throw explainFetchFailure(err, { url, what, timeoutMs });
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async function retryingFetch(url, init) {
|
|
68
|
+
let last;
|
|
69
|
+
for (let attempt = 0; attempt < READ_ATTEMPTS; attempt++) {
|
|
70
|
+
try {
|
|
71
|
+
return await fetch(url, init);
|
|
72
|
+
} catch (err) {
|
|
73
|
+
last = err;
|
|
74
|
+
if (!isRetryableTransportFailure(err) || attempt === READ_ATTEMPTS - 1) break;
|
|
75
|
+
await new Promise((r) => setTimeout(r, READ_BACKOFF_MS * 2 ** attempt));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
throw last;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
serverMessage,
|
|
83
|
+
httpFailure,
|
|
84
|
+
describeTransportFailure,
|
|
85
|
+
fetchOrExplain,
|
|
86
|
+
fetchReadOrExplain,
|
|
87
|
+
retryingFetch
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=chunk-3IGNIP6R.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/emit/npm.ts
|
|
2
|
+
import { spawnSync } from "child_process";
|
|
3
|
+
function npmBinary() {
|
|
4
|
+
return process.platform === "win32" ? "npm.cmd" : "npm";
|
|
5
|
+
}
|
|
6
|
+
function runNpm(args, cwd) {
|
|
7
|
+
const res = spawnSync(npmBinary(), [...args], { cwd, stdio: "inherit" });
|
|
8
|
+
return res.status ?? 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
runNpm
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=chunk-47WDWMBJ.js.map
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
// src/fields/generated/field-methods.generated.ts
|
|
2
|
+
var FIELD_METHODS = {
|
|
3
|
+
"decimal": {
|
|
4
|
+
"max": "int",
|
|
5
|
+
"min": "int"
|
|
6
|
+
},
|
|
7
|
+
"email": {
|
|
8
|
+
"lower": "bool",
|
|
9
|
+
"trim": "bool"
|
|
10
|
+
},
|
|
11
|
+
"int": {
|
|
12
|
+
"max": "int",
|
|
13
|
+
"min": "int"
|
|
14
|
+
},
|
|
15
|
+
"password": {
|
|
16
|
+
"max": "int",
|
|
17
|
+
"min": "int",
|
|
18
|
+
"minAlpha": "int",
|
|
19
|
+
"minDigit": "int",
|
|
20
|
+
"minLowerAlpha": "int",
|
|
21
|
+
"minSymbol": "int",
|
|
22
|
+
"minUpperAlpha": "int",
|
|
23
|
+
"salt": "text"
|
|
24
|
+
},
|
|
25
|
+
"tableRef": {
|
|
26
|
+
"max": "int",
|
|
27
|
+
"min": "int"
|
|
28
|
+
},
|
|
29
|
+
"text": {
|
|
30
|
+
"alphaOk": "bool",
|
|
31
|
+
"digitOk": "bool",
|
|
32
|
+
"lower": "bool",
|
|
33
|
+
"max": "int",
|
|
34
|
+
"min": "int",
|
|
35
|
+
"ok": "text",
|
|
36
|
+
"pattern": "text",
|
|
37
|
+
"startsWith": "text",
|
|
38
|
+
"trim": "bool",
|
|
39
|
+
"upper": "bool"
|
|
40
|
+
},
|
|
41
|
+
"vector": {
|
|
42
|
+
"max": "int",
|
|
43
|
+
"min": "int"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// src/statements/surfaces.ts
|
|
48
|
+
var STATEMENT_SURFACES = [
|
|
49
|
+
["action.call", "mvp:action"],
|
|
50
|
+
["action.package.call", "mvp:action_package"],
|
|
51
|
+
["addon.call", "mvp:workspace_run_addon"],
|
|
52
|
+
["ai.agent.run", "mvp:call_agent"],
|
|
53
|
+
["ai.external.mcp.server_details", "mvp:mcp_server_details"],
|
|
54
|
+
["ai.external.mcp.tool.list", "mvp:mcp_list_tools"],
|
|
55
|
+
["ai.external.mcp.tool.run", "mvp:mcp_call_tool"],
|
|
56
|
+
["api.call", "mvp:workspace_run_endpoint"],
|
|
57
|
+
["api.realtime_event", "mvp:realtime_event"],
|
|
58
|
+
["api.request", "mvp:api_request"],
|
|
59
|
+
["api.stream", "mvp:streaming_api_response"],
|
|
60
|
+
["array.difference", "mvp:array_difference"],
|
|
61
|
+
["array.every", "mvp:array_every"],
|
|
62
|
+
["array.filter_count", "mvp:array_filter_count"],
|
|
63
|
+
["array.filter", "mvp:array_filter"],
|
|
64
|
+
["array.find_index", "mvp:array_find_index"],
|
|
65
|
+
["array.find", "mvp:array_find"],
|
|
66
|
+
["array.group_by", "mvp:array_group_by"],
|
|
67
|
+
["array.has", "mvp:array_has"],
|
|
68
|
+
["array.intersection", "mvp:array_intersection"],
|
|
69
|
+
["array.map", "mvp:array_map"],
|
|
70
|
+
["array.merge", "mvp:array_merge"],
|
|
71
|
+
["array.partition", "mvp:array_partition"],
|
|
72
|
+
["array.pop", "mvp:array_pop"],
|
|
73
|
+
["array.push", "mvp:array_push"],
|
|
74
|
+
["array.shift", "mvp:array_shift"],
|
|
75
|
+
["array.union", "mvp:array_union"],
|
|
76
|
+
["array.unshift", "mvp:array_unshift"],
|
|
77
|
+
["await", "mvp:async_function_await"],
|
|
78
|
+
["break", "mvp:foreach_break"],
|
|
79
|
+
["cloud.algolia.request", "mvp:algolia_request"],
|
|
80
|
+
["cloud.aws.opensearch.document", "mvp:amazon_opensearch_document"],
|
|
81
|
+
["cloud.aws.opensearch.query", "mvp:amazon_opensearch_query"],
|
|
82
|
+
["cloud.aws.opensearch.request", "mvp:amazon_opensearch_request"],
|
|
83
|
+
["cloud.aws.s3.delete_file", "mvp:amazon_s3_delete_file"],
|
|
84
|
+
["cloud.aws.s3.get_file_info", "mvp:amazon_s3_get_file_metadata"],
|
|
85
|
+
["cloud.aws.s3.list_directory", "mvp:amazon_s3_list_directory"],
|
|
86
|
+
["cloud.aws.s3.read_file", "mvp:amazon_s3_create_var_from_file_resource"],
|
|
87
|
+
["cloud.aws.s3.sign_url", "mvp:amazon_s3_signed_url"],
|
|
88
|
+
["cloud.aws.s3.upload_file", "mvp:amazon_s3_upload_file"],
|
|
89
|
+
["cloud.azure.storage.delete_file", "mvp:azure_blob_storage_delete_file"],
|
|
90
|
+
["cloud.azure.storage.get_file_info", "mvp:azure_blob_storage_get_file_metadata"],
|
|
91
|
+
["cloud.azure.storage.list_directory", "mvp:azure_blob_storage_list_directory"],
|
|
92
|
+
["cloud.azure.storage.read_file", "mvp:azure_blob_storage_create_var_from_file_resource"],
|
|
93
|
+
["cloud.azure.storage.sign_url", "mvp:azure_blob_storage_signed_url"],
|
|
94
|
+
["cloud.azure.storage.upload_file", "mvp:azure_blob_storage_upload_file"],
|
|
95
|
+
["cloud.elasticsearch.document", "mvp:elasticsearch_document"],
|
|
96
|
+
["cloud.elasticsearch.query", "mvp:elasticsearch_query"],
|
|
97
|
+
["cloud.elasticsearch.request", "mvp:elasticsearch_request"],
|
|
98
|
+
["cloud.google.storage.delete_file", "mvp:google_cloud_storage_delete_file"],
|
|
99
|
+
["cloud.google.storage.get_file_info", "mvp:google_cloud_storage_get_file_metadata"],
|
|
100
|
+
["cloud.google.storage.list_directory", "mvp:google_cloud_storage_list_directory"],
|
|
101
|
+
["cloud.google.storage.read_file", "mvp:google_cloud_storage_create_var_from_file_resource"],
|
|
102
|
+
["cloud.google.storage.sign_url", "mvp:google_cloud_storage_signed_url"],
|
|
103
|
+
["cloud.google.storage.upload_file", "mvp:google_cloud_storage_upload_file"],
|
|
104
|
+
["cloud.job.await", "mvp:cloud_job_await"],
|
|
105
|
+
["cloud.job.status", "mvp:cloud_job_status"],
|
|
106
|
+
["cloud.job", "mvp:cloud_job"],
|
|
107
|
+
["comment", "mvp:comment"],
|
|
108
|
+
["conditional", "mvp:conditional"],
|
|
109
|
+
["continue", "mvp:foreach_continue"],
|
|
110
|
+
["datadog.log_bulk", "mvp:datadog_log_bulk"],
|
|
111
|
+
["datadog.log", "mvp:datadog_log"],
|
|
112
|
+
["datadog.metric_bulk", "mvp:datadog_metric_bulk"],
|
|
113
|
+
["datadog.metric", "mvp:datadog_metric"],
|
|
114
|
+
["db.add_or_edit", "mvp:dbo_addoreditby"],
|
|
115
|
+
["db.add", "mvp:dbo_add"],
|
|
116
|
+
["db.bulk.add", "mvp:dbo_bulkadd"],
|
|
117
|
+
["db.bulk.delete", "mvp:dbo_bulkdelete"],
|
|
118
|
+
["db.bulk.patch", "mvp:dbo_bulkpatch"],
|
|
119
|
+
["db.bulk.update", "mvp:dbo_bulkupdate"],
|
|
120
|
+
["db.del", "mvp:dbo_delby"],
|
|
121
|
+
["db.direct_query", "mvp:dbo_direct_query"],
|
|
122
|
+
["db.edit", "mvp:dbo_editby"],
|
|
123
|
+
["db.external.mssql.direct_query", "mvp:dbo_external_mssql_query"],
|
|
124
|
+
["db.external.mysql.direct_query", "mvp:dbo_external_mysql_query"],
|
|
125
|
+
["db.external.oracle.direct_query", "mvp:dbo_external_oracle_query"],
|
|
126
|
+
["db.external.postgres.direct_query", "mvp:dbo_external_postgres_query"],
|
|
127
|
+
["db.external.snowflake.direct_query", "mvp:dbo_external_snowflake_query"],
|
|
128
|
+
["db.get_by_id", "mvp:dbo_get"],
|
|
129
|
+
["db.get", "mvp:dbo_getby"],
|
|
130
|
+
["db.has", "mvp:dbo_hasby"],
|
|
131
|
+
["db.patch", "mvp:dbo_patch"],
|
|
132
|
+
["db.query", "mvp:dbo_view"],
|
|
133
|
+
["db.schema", "mvp:dbo_get_schema"],
|
|
134
|
+
["db.set_datasource", "mvp:set_data_source"],
|
|
135
|
+
["db.transaction", "mvp:db_transaction"],
|
|
136
|
+
["db.truncate", "mvp:dbo_truncate"],
|
|
137
|
+
["debug.log", "mvp:debug_log"],
|
|
138
|
+
["debug.stop", "mvp:die"],
|
|
139
|
+
["for", "mvp:for"],
|
|
140
|
+
["foreach.remove", "mvp:foreach_remove"],
|
|
141
|
+
["foreach", "mvp:foreach"],
|
|
142
|
+
["function.call", "mvp:workspace_run_function"],
|
|
143
|
+
["function.run", "mvp:function"],
|
|
144
|
+
["group", "mvp:group"],
|
|
145
|
+
["lambda", "mvp:lambda"],
|
|
146
|
+
["math.add", "mvp:math_add"],
|
|
147
|
+
["math.bitwise.and", "mvp:bitwise_and"],
|
|
148
|
+
["math.bitwise.or", "mvp:bitwise_or"],
|
|
149
|
+
["math.bitwise.xor", "mvp:bitwise_xor"],
|
|
150
|
+
["math.div", "mvp:math_div"],
|
|
151
|
+
["math.mod", "mvp:math_mod"],
|
|
152
|
+
["math.mul", "mvp:math_mul"],
|
|
153
|
+
["math.sub", "mvp:math_sub"],
|
|
154
|
+
["middleware.call", "mvp:workspace_run_middleware"],
|
|
155
|
+
["microservice.request", "mvp:microservice_request"],
|
|
156
|
+
["object.entries", "mvp:object_entries"],
|
|
157
|
+
["object.keys", "mvp:object_keys"],
|
|
158
|
+
["object.values", "mvp:object_values"],
|
|
159
|
+
// `mvp:placeholder` has no surface on purpose. The engine writes one in place
|
|
160
|
+
// of a statement it could not resolve and then refuses the same bytes on
|
|
161
|
+
// import, so authoring one can only produce an un-deployable workspace. It is
|
|
162
|
+
// listed in {@link DECODE_ONLY_STATEMENTS}, carried through `raw()`, and
|
|
163
|
+
// blocked at `export()` — the same treatment retired versions get, and for the
|
|
164
|
+
// same reason: keeping it out of this catalog keeps it out of the manifest an
|
|
165
|
+
// agent authors from.
|
|
166
|
+
["precondition", "mvp:precondition"],
|
|
167
|
+
["realtime.get_session", "mvp:get_session"],
|
|
168
|
+
["realtime.publish", "mvp:realtime_publish"],
|
|
169
|
+
["redis.count", "mvp:redis_countlist"],
|
|
170
|
+
["redis.decr", "mvp:redis_decr"],
|
|
171
|
+
["redis.del", "mvp:redis_del"],
|
|
172
|
+
["redis.get", "mvp:redis_get"],
|
|
173
|
+
["redis.has", "mvp:redis_has"],
|
|
174
|
+
["redis.incr", "mvp:redis_incr"],
|
|
175
|
+
["redis.keys", "mvp:redis_keys"],
|
|
176
|
+
["redis.pop", "mvp:redis_poplist"],
|
|
177
|
+
["redis.push", "mvp:redis_pushlist"],
|
|
178
|
+
["redis.range", "mvp:redis_rangelist"],
|
|
179
|
+
["redis.ratelimit", "mvp:redis_ratelimit"],
|
|
180
|
+
["redis.remove", "mvp:redis_remove_list"],
|
|
181
|
+
["redis.set", "mvp:redis_set"],
|
|
182
|
+
["redis.shift", "mvp:redis_shiftlist"],
|
|
183
|
+
["redis.unshift", "mvp:redis_unshiftlist"],
|
|
184
|
+
["return", "mvp:return"],
|
|
185
|
+
["security.check_password", "mvp:check_pass"],
|
|
186
|
+
["security.create_auth_token", "mvp:create_auth"],
|
|
187
|
+
["security.create_curve_key", "mvp:crypto_create_ec_key"],
|
|
188
|
+
["security.create_guid", "mvp:guid"],
|
|
189
|
+
["security.create_password", "mvp:generate_pass"],
|
|
190
|
+
["security.create_rsa_key", "mvp:crypto_create_rsa_key"],
|
|
191
|
+
["security.create_secret_key", "mvp:crypto_create_octet_key"],
|
|
192
|
+
["security.create_uuid", "mvp:uuid4"],
|
|
193
|
+
["security.decrypt", "mvp:crypto_decrypt"],
|
|
194
|
+
["security.encrypt", "mvp:crypto_encrypt"],
|
|
195
|
+
// Only the LATEST of each versioned crypto family is authorable. The earlier
|
|
196
|
+
// spellings still run and still appear in pulled workspaces, but each version
|
|
197
|
+
// was a breaking change to the one before it, so offering them would invite
|
|
198
|
+
// authoring against a retired contract. They are listed in
|
|
199
|
+
// {@link SUPERSEDED_STATEMENTS} and carried through `raw()` instead — which
|
|
200
|
+
// also keeps them out of the agent-grounding manifest, since that is built
|
|
201
|
+
// from this catalog.
|
|
202
|
+
["security.jwe_decode", "mvp:crypto_jwe_decode2"],
|
|
203
|
+
["security.jwe_encode", "mvp:crypto_jwe_encode3"],
|
|
204
|
+
["security.jws_decode", "mvp:crypto_jws_decode2"],
|
|
205
|
+
["security.jws_encode", "mvp:crypto_jws_encode2"],
|
|
206
|
+
["security.random_bytes", "mvp:random_bytes"],
|
|
207
|
+
["security.random_number", "mvp:rand"],
|
|
208
|
+
["stack|expect.to_be_defined", "mvp:test_expect_to_be_defined"],
|
|
209
|
+
["stack|expect.to_be_empty", "mvp:test_expect_to_be_empty"],
|
|
210
|
+
["stack|expect.to_be_false", "mvp:test_expect_to_be_false"],
|
|
211
|
+
["stack|expect.to_be_greater_than", "mvp:test_expect_to_be_greater_than"],
|
|
212
|
+
["stack|expect.to_be_in_the_future", "mvp:test_expect_to_be_in_the_future"],
|
|
213
|
+
["stack|expect.to_be_in_the_past", "mvp:test_expect_to_be_in_the_past"],
|
|
214
|
+
["stack|expect.to_be_less_than", "mvp:test_expect_to_be_less_than"],
|
|
215
|
+
["stack|expect.to_be_null", "mvp:test_expect_to_be_null"],
|
|
216
|
+
["stack|expect.to_be_true", "mvp:test_expect_to_be_true"],
|
|
217
|
+
["stack|expect.to_be_within", "mvp:test_expect_to_be_within"],
|
|
218
|
+
["stack|expect.to_contain", "mvp:test_expect_to_contain"],
|
|
219
|
+
["stack|expect.to_end_with", "mvp:test_expect_to_end_with"],
|
|
220
|
+
["stack|expect.to_equal", "mvp:test_expect_to_equal"],
|
|
221
|
+
["stack|expect.to_match", "mvp:test_expect_to_match"],
|
|
222
|
+
["stack|expect.to_not_be_defined", "mvp:test_expect_to_not_be_defined"],
|
|
223
|
+
["stack|expect.to_not_be_null", "mvp:test_expect_to_not_be_null"],
|
|
224
|
+
["stack|expect.to_not_equal", "mvp:test_expect_to_not_equal"],
|
|
225
|
+
["stack|expect.to_start_with", "mvp:test_expect_to_start_with"],
|
|
226
|
+
["stack|expect.to_throw", "mvp:test_expect_to_throw"],
|
|
227
|
+
["storage.create_attachment", "mvp:create_attachment"],
|
|
228
|
+
["storage.create_audio", "mvp:create_audio"],
|
|
229
|
+
["storage.create_file_resource", "mvp:create_file_resource"],
|
|
230
|
+
["storage.create_image", "mvp:create_image"],
|
|
231
|
+
["storage.create_video", "mvp:create_video"],
|
|
232
|
+
["storage.delete_file", "mvp:delete_file"],
|
|
233
|
+
["storage.read_file_resource", "mvp:create_var_from_file_resource"],
|
|
234
|
+
["storage.sign_private_url", "mvp:vault_sign_url"],
|
|
235
|
+
["stream.from_csv", "mvp:csv_stream"],
|
|
236
|
+
["stream.from_jsonl", "mvp:jsonl_stream"],
|
|
237
|
+
["stream.from_request", "mvp:streaming_api_request"],
|
|
238
|
+
["switch", "mvp:switch"],
|
|
239
|
+
["task.call", "mvp:workspace_run_task"],
|
|
240
|
+
["text.append", "mvp:text_append"],
|
|
241
|
+
["text.contains", "mvp:text_contains"],
|
|
242
|
+
["text.ends_with", "mvp:text_ends_with"],
|
|
243
|
+
["text.icontains", "mvp:text_icontains"],
|
|
244
|
+
["text.iends_with", "mvp:text_iends_with"],
|
|
245
|
+
["text.istarts_with", "mvp:text_istarts_with"],
|
|
246
|
+
["text.ltrim", "mvp:text_ltrim"],
|
|
247
|
+
["text.prepend", "mvp:text_prepend"],
|
|
248
|
+
["text.rtrim", "mvp:text_rtrim"],
|
|
249
|
+
["text.starts_with", "mvp:text_starts_with"],
|
|
250
|
+
["text.trim", "mvp:text_trim"],
|
|
251
|
+
["throw", "mvp:throw_error"],
|
|
252
|
+
["tool.call", "mvp:workspace_run_tool"],
|
|
253
|
+
["trigger.call", "mvp:workspace_run_trigger"],
|
|
254
|
+
["try_catch", "mvp:try_catch"],
|
|
255
|
+
["util.geo_distance", "mvp:calculate_geo_distance"],
|
|
256
|
+
["util.get_all_input", "mvp:get_all_input"],
|
|
257
|
+
["util.get_env", "mvp:get_env"],
|
|
258
|
+
["util.get_input", "mvp:get_input"],
|
|
259
|
+
["util.get_raw_input", "mvp:get_input"],
|
|
260
|
+
["util.get_vars", "mvp:get_vars"],
|
|
261
|
+
["util.ip_lookup", "mvp:ipaddress_lookup"],
|
|
262
|
+
["util.post_process", "mvp:post_process"],
|
|
263
|
+
["util.send_email", "mvp:send_email"],
|
|
264
|
+
["util.set_header", "mvp:setheader"],
|
|
265
|
+
["util.sleep", "mvp:sleep"],
|
|
266
|
+
["util.template_engine", "mvp:template_string"],
|
|
267
|
+
["var.update", "mvp:update_var"],
|
|
268
|
+
["var", "mvp:set_var"],
|
|
269
|
+
["webflow.request", "mvp:connect_webflow_api_request"],
|
|
270
|
+
["while", "mvp:while"],
|
|
271
|
+
["workflow_test.call", "mvp:workspace_run_workflow_test"],
|
|
272
|
+
["zip.add_to_archive", "mvp:zip_add_file_resource"],
|
|
273
|
+
["zip.create_archive", "mvp:zip_create_file_resource"],
|
|
274
|
+
["zip.delete_from_archive", "mvp:zip_delete_file_resource"],
|
|
275
|
+
["zip.extract", "mvp:zip_extract_file_resource"],
|
|
276
|
+
["zip.view_contents", "mvp:zip_view_contents"]
|
|
277
|
+
];
|
|
278
|
+
var TOTAL_STATEMENTS = STATEMENT_SURFACES.length;
|
|
279
|
+
var IMPLEMENTED_STATEMENTS = STATEMENT_SURFACES.map(([key]) => key);
|
|
280
|
+
var SPATH_OVERRIDES = {
|
|
281
|
+
break: "foreach_break",
|
|
282
|
+
continue: "foreach_continue",
|
|
283
|
+
"foreach.remove": "foreach_remove",
|
|
284
|
+
"var.update": "update_var",
|
|
285
|
+
var: "set_var"
|
|
286
|
+
};
|
|
287
|
+
function sPathOf(surfaceKey) {
|
|
288
|
+
return SPATH_OVERRIDES[surfaceKey] ?? surfaceKey.replace(/^stack\|/, "");
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// src/statements/superseded.ts
|
|
292
|
+
var SUPERSEDED_STATEMENTS = /* @__PURE__ */ new Map([
|
|
293
|
+
// Four crypto families, each phased forward with breaking changes between
|
|
294
|
+
// versions. The engine still registers a class for every one of them.
|
|
295
|
+
["mvp:crypto_jwe_decode", "mvp:crypto_jwe_decode2"],
|
|
296
|
+
["mvp:crypto_jwe_encode", "mvp:crypto_jwe_encode3"],
|
|
297
|
+
["mvp:crypto_jwe_encode2", "mvp:crypto_jwe_encode3"],
|
|
298
|
+
["mvp:crypto_jws_decode", "mvp:crypto_jws_decode2"],
|
|
299
|
+
["mvp:crypto_jws_encode", "mvp:crypto_jws_encode2"],
|
|
300
|
+
// Retired outright — an old third-party log connector with no successor.
|
|
301
|
+
["mvp:connect_ncscale_send_log", ""]
|
|
302
|
+
]);
|
|
303
|
+
function supersededBy(storedName, surfaceOf) {
|
|
304
|
+
const successor = SUPERSEDED_STATEMENTS.get(storedName);
|
|
305
|
+
if (successor === void 0 || successor === "") return null;
|
|
306
|
+
return surfaceOf(successor) ?? successor;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export {
|
|
310
|
+
FIELD_METHODS,
|
|
311
|
+
STATEMENT_SURFACES,
|
|
312
|
+
TOTAL_STATEMENTS,
|
|
313
|
+
IMPLEMENTED_STATEMENTS,
|
|
314
|
+
sPathOf,
|
|
315
|
+
SUPERSEDED_STATEMENTS,
|
|
316
|
+
supersededBy
|
|
317
|
+
};
|
|
318
|
+
//# sourceMappingURL=chunk-4BXJGVZ3.js.map
|