@xanots/sdk 0.0.2 → 0.0.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.
- package/README.md +11 -2
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-7XCACU34.js → agent-file-refresh-6M5M7T24.js} +4 -3
- package/dist/bin.js +7 -7
- package/dist/{chunk-MUDLJG2O.js → chunk-2V4YE6QC.js} +25 -15
- package/dist/{chunk-UVLVQWWF.js → chunk-3NFUWXOC.js} +70 -20
- package/dist/chunk-6DHJVLYP.js +2044 -0
- package/dist/{chunk-IZW6MK3U.js → chunk-6USV65XA.js} +2 -2
- package/dist/{chunk-XLD4BUTF.js → chunk-BT2CSEC5.js} +2 -2
- package/dist/{chunk-VKFQJEMW.js → chunk-CMZLPTGW.js} +37 -406
- package/dist/{chunk-YYRDLFSJ.js → chunk-DYCLVQXW.js} +50 -3
- package/dist/chunk-HQ2CBRVI.js +530 -0
- package/dist/{chunk-ZPEY5WE4.js → chunk-W2G2WPTB.js} +3 -3
- package/dist/chunk-WUSKBXXD.js +25 -0
- package/dist/{chunk-ODNMVJ6H.js → chunk-YZ4GU6F5.js} +283 -252
- package/dist/{chunk-5YTBTF25.js → chunk-ZO3HJOCJ.js} +2 -2
- package/dist/cli.d.ts +31 -0
- package/dist/cli.js +5 -5
- package/dist/{codegen-command-RY2GWDLX.js → codegen-command-FIADGXRN.js} +13 -11
- package/dist/{completion-TIPPZN7H.js → completion-BKAFCZBE.js} +2 -2
- package/dist/{deploy-command-DSISLUW5.js → deploy-command-4R6BYC6G.js} +13 -13
- package/dist/{env-target-7C2GKBCY.js → env-target-XWS2ZZ2Y.js} +2 -2
- package/dist/{ephemeral-command-5K573ZSG.js → ephemeral-command-JL4TPIRQ.js} +15 -15
- package/dist/{init-command-4AWL6CLW.js → init-command-LOK75W64.js} +11 -9
- package/dist/internal.js +4 -3
- package/dist/{lock-commands-7Q5LNZKL.js → lock-commands-XOYS75YQ.js} +9 -9
- package/dist/{marketplace-command-RATXTKXN.js → marketplace-command-UVV3XAOL.js} +6 -6
- package/dist/meta-client-OW5WKWW7.js +1 -1
- package/dist/node.js +8 -8
- package/dist/{release-command-QXLRJMY7.js → release-command-HZUY2XZX.js} +15 -15
- package/dist/sandbox-export-command-QCJY4GMV.js +1 -1
- package/dist/scaffold.d.ts +1896 -0
- package/dist/scaffold.js +101 -0
- package/dist/{test-command-BOLIU57E.js → test-command-72Y5S22H.js} +4 -4
- package/dist/{validate-command-SYCFEYZN.js → validate-command-KDGH537H.js} +7 -7
- package/dist/{workspace-command-TOB2AJ6X.js → workspace-command-ICSI6PKO.js} +13 -11
- package/dist/workspace-export-AJMGN3CQ.js +1 -1
- package/llms/kinds-agent-mcp.md +2 -1
- package/llms-full.txt +3 -2
- package/llms.txt +1 -1
- package/manifest.json +145 -1
- package/package.json +7 -1
- package/dist/chunk-47WDWMBJ.js +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UsageError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6USV65XA.js";
|
|
4
4
|
import {
|
|
5
5
|
style
|
|
6
6
|
} from "./chunk-EZG76F7R.js";
|
|
@@ -26,4 +26,4 @@ async function confirm(message, opts) {
|
|
|
26
26
|
export {
|
|
27
27
|
confirm
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-ZO3HJOCJ.js.map
|
package/dist/cli.d.ts
CHANGED
|
@@ -159,12 +159,43 @@ interface ParsedArgs {
|
|
|
159
159
|
* else write none. Validated in the init command, not at parse time.
|
|
160
160
|
*/
|
|
161
161
|
ai: string[];
|
|
162
|
+
/**
|
|
163
|
+
* `init` `--marketplace <pkg>` (repeatable, comma-separated): marketplace
|
|
164
|
+
* add-ons to install into the new project and register in `xano/index.ts`.
|
|
165
|
+
*
|
|
166
|
+
* One flag rather than a follow-up command so that the whole project is one
|
|
167
|
+
* reproducible line — which is the promise onboarding makes when it prints
|
|
168
|
+
* the command it ran. Validated in `init-modules.ts`, not at parse time.
|
|
169
|
+
*/
|
|
170
|
+
marketplace: string[];
|
|
162
171
|
/**
|
|
163
172
|
* `init`/`codegen` `--framework <id>`: which frontend to scaffold
|
|
164
173
|
* (`react`/`svelte`). Undefined = prompt in a TTY, else the default.
|
|
165
174
|
* Validated in `frontend-presets.ts`, not at parse time.
|
|
166
175
|
*/
|
|
167
176
|
framework: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* `init`/`codegen` `--theme <id>`: the shadcn/ui palette to render into the
|
|
179
|
+
* scaffold's stylesheet — a `<base>` or `<base>-<accent>` pair, a registry
|
|
180
|
+
* theme URL, or a path to a registry item JSON file. Undefined = prompt in a
|
|
181
|
+
* TTY, else plain shadcn. Validated in `theme-presets.ts`, not at parse time.
|
|
182
|
+
*/
|
|
183
|
+
theme: string | undefined;
|
|
184
|
+
/** `init`/`codegen` `--radius <len>`: corner radius override, bare number = rem. */
|
|
185
|
+
radius: string | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* `init`/`codegen` `--dark <mode>`: what switches the scaffold into its dark
|
|
188
|
+
* palette — `system` (default), `toggle`, or `off`.
|
|
189
|
+
*/
|
|
190
|
+
dark: string | undefined;
|
|
191
|
+
/** `init`/`codegen` `--font <id>`: the body typeface (Tailwind's `--font-sans`). */
|
|
192
|
+
font: string | undefined;
|
|
193
|
+
/** `init`/`codegen` `--font-mono <id>`: the code typeface. */
|
|
194
|
+
fontMono: string | undefined;
|
|
195
|
+
/** `init`/`codegen` `--font-heading <id>`: the heading typeface; absent inherits the body face. */
|
|
196
|
+
fontHeading: string | undefined;
|
|
197
|
+
/** `init`/`codegen` `--icons <id>`: the icon set (`lucide` default, `tabler`, `phosphor`). */
|
|
198
|
+
icons: string | undefined;
|
|
168
199
|
/** `init`/`codegen` `--force`: scaffold into a non-empty target directory (overwrite our own files). */
|
|
169
200
|
force: boolean;
|
|
170
201
|
/** `init`/`codegen` `--no-install`: skip the post-scaffold `npm install`. For `codegen` this also means the round trip cannot be verified, since loading the tree needs its dependencies. */
|
package/dist/cli.js
CHANGED
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
resolveHelpRequest,
|
|
9
9
|
resolveLockPath,
|
|
10
10
|
run
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-3NFUWXOC.js";
|
|
12
|
+
import "./chunk-6USV65XA.js";
|
|
13
|
+
import "./chunk-HJPTWBLH.js";
|
|
13
14
|
import "./chunk-EZG76F7R.js";
|
|
15
|
+
import "./chunk-GNPVYOPB.js";
|
|
14
16
|
import "./chunk-55VHDNW5.js";
|
|
15
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-DYCLVQXW.js";
|
|
16
18
|
import "./chunk-5L4X5LS6.js";
|
|
17
19
|
import "./chunk-WHOJWOSV.js";
|
|
18
20
|
import "./chunk-5XZ744TS.js";
|
|
19
|
-
import "./chunk-HJPTWBLH.js";
|
|
20
|
-
import "./chunk-GNPVYOPB.js";
|
|
21
21
|
import "./chunk-4HT3BNZ7.js";
|
|
22
22
|
export {
|
|
23
23
|
compileBundle,
|
|
@@ -4,31 +4,33 @@ import {
|
|
|
4
4
|
isMissingDependencyError,
|
|
5
5
|
runCodegenCommand,
|
|
6
6
|
verifyCrashEntry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2V4YE6QC.js";
|
|
8
8
|
import "./chunk-P3TTMWUP.js";
|
|
9
9
|
import "./chunk-QTNO2WD6.js";
|
|
10
10
|
import "./chunk-ZUTSMMAG.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-X4DVXBFY.js";
|
|
11
|
+
import "./chunk-HQ2CBRVI.js";
|
|
12
|
+
import "./chunk-CMZLPTGW.js";
|
|
13
|
+
import "./chunk-WUSKBXXD.js";
|
|
15
14
|
import "./chunk-3IGNIP6R.js";
|
|
16
15
|
import "./chunk-C56BC2FY.js";
|
|
17
16
|
import "./chunk-7REDODS2.js";
|
|
17
|
+
import "./chunk-X4DVXBFY.js";
|
|
18
18
|
import "./chunk-F6JCFRKO.js";
|
|
19
19
|
import "./chunk-LU7TRWMC.js";
|
|
20
|
+
import "./chunk-YZ4GU6F5.js";
|
|
21
|
+
import "./chunk-6DHJVLYP.js";
|
|
20
22
|
import "./chunk-4BXJGVZ3.js";
|
|
21
23
|
import "./chunk-U3G2UW65.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-3NFUWXOC.js";
|
|
25
|
+
import "./chunk-6USV65XA.js";
|
|
26
|
+
import "./chunk-HJPTWBLH.js";
|
|
24
27
|
import "./chunk-EZG76F7R.js";
|
|
28
|
+
import "./chunk-GNPVYOPB.js";
|
|
25
29
|
import "./chunk-55VHDNW5.js";
|
|
26
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-DYCLVQXW.js";
|
|
27
31
|
import "./chunk-5L4X5LS6.js";
|
|
28
32
|
import "./chunk-WHOJWOSV.js";
|
|
29
33
|
import "./chunk-5XZ744TS.js";
|
|
30
|
-
import "./chunk-HJPTWBLH.js";
|
|
31
|
-
import "./chunk-GNPVYOPB.js";
|
|
32
34
|
import "./chunk-4HT3BNZ7.js";
|
|
33
35
|
export {
|
|
34
36
|
blameGeneratedFile,
|
|
@@ -37,4 +39,4 @@ export {
|
|
|
37
39
|
runCodegenCommand,
|
|
38
40
|
verifyCrashEntry
|
|
39
41
|
};
|
|
40
|
-
//# sourceMappingURL=codegen-command-
|
|
42
|
+
//# sourceMappingURL=codegen-command-FIADGXRN.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getCommand,
|
|
6
6
|
liveCommandNames,
|
|
7
7
|
liveSubcommandNames
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DYCLVQXW.js";
|
|
9
9
|
|
|
10
10
|
// src/emit/completion.ts
|
|
11
11
|
var COMPLETION_SHELLS = ["bash", "zsh", "fish"];
|
|
@@ -295,4 +295,4 @@ export {
|
|
|
295
295
|
renderCompletion,
|
|
296
296
|
runCompletionCommand
|
|
297
297
|
};
|
|
298
|
-
//# sourceMappingURL=completion-
|
|
298
|
+
//# sourceMappingURL=completion-BKAFCZBE.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertBundleInput,
|
|
3
3
|
loadBundleText
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W2G2WPTB.js";
|
|
5
5
|
import {
|
|
6
6
|
importWorkspaceArchive
|
|
7
7
|
} from "./chunk-5WGEURVI.js";
|
|
@@ -21,10 +21,6 @@ import {
|
|
|
21
21
|
readEphemeralState,
|
|
22
22
|
setEnvironment
|
|
23
23
|
} from "./chunk-DGSF2Q5H.js";
|
|
24
|
-
import {
|
|
25
|
-
openBrowser
|
|
26
|
-
} from "./chunk-VTIL47DT.js";
|
|
27
|
-
import "./chunk-X4DVXBFY.js";
|
|
28
24
|
import {
|
|
29
25
|
microserviceLine,
|
|
30
26
|
readyRatio,
|
|
@@ -38,14 +34,19 @@ import {
|
|
|
38
34
|
fetchOrExplain,
|
|
39
35
|
httpFailure
|
|
40
36
|
} from "./chunk-3IGNIP6R.js";
|
|
37
|
+
import {
|
|
38
|
+
openBrowser
|
|
39
|
+
} from "./chunk-VTIL47DT.js";
|
|
41
40
|
import {
|
|
42
41
|
getAccessToken
|
|
43
42
|
} from "./chunk-C56BC2FY.js";
|
|
44
43
|
import "./chunk-7REDODS2.js";
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-X4DVXBFY.js";
|
|
45
|
+
import "./chunk-3NFUWXOC.js";
|
|
46
46
|
import {
|
|
47
47
|
assertWritableDest
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-6USV65XA.js";
|
|
49
|
+
import "./chunk-HJPTWBLH.js";
|
|
49
50
|
import {
|
|
50
51
|
blank,
|
|
51
52
|
detail,
|
|
@@ -60,13 +61,12 @@ import {
|
|
|
60
61
|
warn,
|
|
61
62
|
withSpinner
|
|
62
63
|
} from "./chunk-EZG76F7R.js";
|
|
64
|
+
import "./chunk-GNPVYOPB.js";
|
|
63
65
|
import "./chunk-55VHDNW5.js";
|
|
64
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-DYCLVQXW.js";
|
|
65
67
|
import "./chunk-5L4X5LS6.js";
|
|
66
68
|
import "./chunk-WHOJWOSV.js";
|
|
67
69
|
import "./chunk-5XZ744TS.js";
|
|
68
|
-
import "./chunk-HJPTWBLH.js";
|
|
69
|
-
import "./chunk-GNPVYOPB.js";
|
|
70
70
|
import "./chunk-4HT3BNZ7.js";
|
|
71
71
|
|
|
72
72
|
// src/emit/deploy-command.ts
|
|
@@ -158,7 +158,7 @@ async function runDeployedTests(auth, dest, summary, args) {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
async function runTestsOrThrow(auth, dest, summary, args) {
|
|
161
|
-
const { runSuite, EXIT_TESTS_FAILED } = await import("./test-command-
|
|
161
|
+
const { runSuite, EXIT_TESTS_FAILED } = await import("./test-command-72Y5S22H.js");
|
|
162
162
|
let target;
|
|
163
163
|
if (dest === "ephemeral") {
|
|
164
164
|
if (summary.url === void 0) {
|
|
@@ -168,7 +168,7 @@ async function runTestsOrThrow(auth, dest, summary, args) {
|
|
|
168
168
|
const name = summary.ephemeral?.name;
|
|
169
169
|
target = { base: summary.url, workspaceId: 1, label: name ? `ephemeral ${name}` : "the ephemeral", env: name };
|
|
170
170
|
} else {
|
|
171
|
-
const { resolveMetaTarget } = await import("./env-target-
|
|
171
|
+
const { resolveMetaTarget } = await import("./env-target-XWS2ZZ2Y.js");
|
|
172
172
|
target = await resolveMetaTarget(auth, { dest: "sandbox" });
|
|
173
173
|
}
|
|
174
174
|
const outcomes = await runSuite(auth, target, {
|
|
@@ -448,4 +448,4 @@ export {
|
|
|
448
448
|
runDeployedTests,
|
|
449
449
|
verifyMicroservices
|
|
450
450
|
};
|
|
451
|
-
//# sourceMappingURL=deploy-command-
|
|
451
|
+
//# sourceMappingURL=deploy-command-4R6BYC6G.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveMetaTarget
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BT2CSEC5.js";
|
|
4
4
|
import "./chunk-DGSF2Q5H.js";
|
|
5
5
|
import "./chunk-7DKX2SPN.js";
|
|
6
6
|
import "./chunk-NDZFBZHC.js";
|
|
@@ -13,4 +13,4 @@ import "./chunk-GNPVYOPB.js";
|
|
|
13
13
|
export {
|
|
14
14
|
resolveMetaTarget
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=env-target-
|
|
16
|
+
//# sourceMappingURL=env-target-XWS2ZZ2Y.js.map
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
confirm
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
resolveOutputTarget
|
|
6
|
-
} from "./chunk-XQ22GLYS.js";
|
|
7
|
-
import {
|
|
8
|
-
exportWorkspaceBundle
|
|
9
|
-
} from "./chunk-QTNO2WD6.js";
|
|
3
|
+
} from "./chunk-ZO3HJOCJ.js";
|
|
10
4
|
import {
|
|
11
5
|
deleteEphemeral,
|
|
12
6
|
getEphemeral,
|
|
@@ -15,16 +9,18 @@ import {
|
|
|
15
9
|
listAllEphemeral,
|
|
16
10
|
listEphemeral
|
|
17
11
|
} from "./chunk-6DHBYBTO.js";
|
|
12
|
+
import {
|
|
13
|
+
resolveOutputTarget
|
|
14
|
+
} from "./chunk-XQ22GLYS.js";
|
|
15
|
+
import {
|
|
16
|
+
exportWorkspaceBundle
|
|
17
|
+
} from "./chunk-QTNO2WD6.js";
|
|
18
18
|
import "./chunk-ZUTSMMAG.js";
|
|
19
19
|
import {
|
|
20
20
|
clearEnvironment,
|
|
21
21
|
getEnvironment,
|
|
22
22
|
readEphemeralState
|
|
23
23
|
} from "./chunk-DGSF2Q5H.js";
|
|
24
|
-
import {
|
|
25
|
-
openBrowser
|
|
26
|
-
} from "./chunk-VTIL47DT.js";
|
|
27
|
-
import "./chunk-X4DVXBFY.js";
|
|
28
24
|
import "./chunk-7DKX2SPN.js";
|
|
29
25
|
import {
|
|
30
26
|
printMicroserviceSection,
|
|
@@ -35,13 +31,17 @@ import {
|
|
|
35
31
|
writeJson
|
|
36
32
|
} from "./chunk-NUQCEOKA.js";
|
|
37
33
|
import "./chunk-3IGNIP6R.js";
|
|
34
|
+
import {
|
|
35
|
+
openBrowser
|
|
36
|
+
} from "./chunk-VTIL47DT.js";
|
|
38
37
|
import {
|
|
39
38
|
getAccessToken
|
|
40
39
|
} from "./chunk-C56BC2FY.js";
|
|
41
40
|
import "./chunk-7REDODS2.js";
|
|
41
|
+
import "./chunk-X4DVXBFY.js";
|
|
42
42
|
import {
|
|
43
43
|
unknownSubcommand
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6USV65XA.js";
|
|
45
45
|
import {
|
|
46
46
|
detail,
|
|
47
47
|
formatExpiration,
|
|
@@ -52,8 +52,8 @@ import {
|
|
|
52
52
|
success,
|
|
53
53
|
warn
|
|
54
54
|
} from "./chunk-EZG76F7R.js";
|
|
55
|
-
import "./chunk-YYRDLFSJ.js";
|
|
56
55
|
import "./chunk-GNPVYOPB.js";
|
|
56
|
+
import "./chunk-DYCLVQXW.js";
|
|
57
57
|
|
|
58
58
|
// src/emit/ephemeral-command.ts
|
|
59
59
|
import { writeFileSync } from "fs";
|
|
@@ -90,7 +90,7 @@ async function runEphemeralCommand(args) {
|
|
|
90
90
|
case "impersonate":
|
|
91
91
|
return runImpersonate(args);
|
|
92
92
|
case "codegen": {
|
|
93
|
-
const { runCodegenCommand } = await import("./codegen-command-
|
|
93
|
+
const { runCodegenCommand } = await import("./codegen-command-FIADGXRN.js");
|
|
94
94
|
return runCodegenCommand(args, { kind: "ephemeral" });
|
|
95
95
|
}
|
|
96
96
|
default:
|
|
@@ -239,4 +239,4 @@ export {
|
|
|
239
239
|
resolveLive,
|
|
240
240
|
runEphemeralCommand
|
|
241
241
|
};
|
|
242
|
-
//# sourceMappingURL=ephemeral-command-
|
|
242
|
+
//# sourceMappingURL=ephemeral-command-JL4TPIRQ.js.map
|
|
@@ -2,21 +2,23 @@ import {
|
|
|
2
2
|
projectShellFiles,
|
|
3
3
|
runInitCommand,
|
|
4
4
|
sanitizeAppName
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HQ2CBRVI.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveAiFlags
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-CMZLPTGW.js";
|
|
9
|
+
import "./chunk-WUSKBXXD.js";
|
|
10
|
+
import "./chunk-YZ4GU6F5.js";
|
|
11
|
+
import "./chunk-6DHJVLYP.js";
|
|
12
|
+
import "./chunk-3NFUWXOC.js";
|
|
13
|
+
import "./chunk-6USV65XA.js";
|
|
14
|
+
import "./chunk-HJPTWBLH.js";
|
|
12
15
|
import "./chunk-EZG76F7R.js";
|
|
16
|
+
import "./chunk-GNPVYOPB.js";
|
|
13
17
|
import "./chunk-55VHDNW5.js";
|
|
14
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-DYCLVQXW.js";
|
|
15
19
|
import "./chunk-5L4X5LS6.js";
|
|
16
20
|
import "./chunk-WHOJWOSV.js";
|
|
17
21
|
import "./chunk-5XZ744TS.js";
|
|
18
|
-
import "./chunk-HJPTWBLH.js";
|
|
19
|
-
import "./chunk-GNPVYOPB.js";
|
|
20
22
|
import "./chunk-4HT3BNZ7.js";
|
|
21
23
|
export {
|
|
22
24
|
projectShellFiles,
|
|
@@ -24,4 +26,4 @@ export {
|
|
|
24
26
|
runInitCommand,
|
|
25
27
|
sanitizeAppName
|
|
26
28
|
};
|
|
27
|
-
//# sourceMappingURL=init-command-
|
|
29
|
+
//# sourceMappingURL=init-command-LOK75W64.js.map
|
package/dist/internal.js
CHANGED
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
GLOBAL_FLAGS,
|
|
63
63
|
flagKey,
|
|
64
64
|
flagSummary
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-DYCLVQXW.js";
|
|
66
66
|
import {
|
|
67
67
|
DECODE_ONLY_STATEMENTS,
|
|
68
68
|
FILTER_NAMES,
|
|
@@ -1292,13 +1292,14 @@ function renderSections(m) {
|
|
|
1292
1292
|
""
|
|
1293
1293
|
];
|
|
1294
1294
|
const kindsAgentMcp = [
|
|
1295
|
-
"- `mcpServer({ name, guid?, description?, instructions?, docs?, enabled?, canonical?, spec?, tags?, history?, tools?, llm?, output? })` \u2014 an MCP toolset. `llm?`/`output?` are the same blocks `agent()` takes and are usually absent: an MCP server and an agent are ONE stored object distinguished by `type
|
|
1295
|
+
"- `mcpServer({ name, guid?, description?, instructions?, docs?, enabled?, canonical?, spec?, tags?, history?, tools?, llm?, output? })` \u2014 an MCP toolset. `llm?`/`output?` are the same blocks `agent()` takes and are usually absent: an MCP server and an agent are ONE stored object distinguished by `type`. Returns a handle with `getPath()`/`getUrl(baseUrl)` for the Streamable-HTTP endpoint \u2014 `getUrl` is NOT idempotent, a `baseUrl` already carrying an `/x2/mcp/<\u2026>/stream` path THROWS, so resolve ONCE from the instance base URL. Fires on an ephemeral; not in sandbox.",
|
|
1296
1296
|
" - `tools?`: a `ToolsetToolEntry[]`. Pass the `tool()` HANDLES directly (`tools: [saveNote]`), like every other collection in the SDK; use the `{ tool, enabled?, auth? }` wrapper only when a tool needs `enabled: false` or per-tool `auth`. `auth` names an auth **table** (a `table({ auth: true })` handle or its name) \u2014 Xano's ONLY MCP auth surface (per-tool; there is no server-level gate). An entry that names no tool (no handle, no `id`) THROWS at export rather than emitting the `id: 0` null reference it used to; a deliberate raw `id: 0` warns and is carried through, so a pulled workspace still round-trips.",
|
|
1297
1297
|
"- `agent({ name, guid?, description?, docs?, enabled?, canonical?, tags?, history?, llm, tools?, output? })` \u2014 an LLM orchestrator. No top-level `instructions`/`prompt`/`spec` \u2014 the prompt lives under `llm`. Invoke from a stack with `s.ai.agent.run({ agent, args })`.",
|
|
1298
1298
|
' - `llm` (REQUIRED): typed provider settings, a discriminated union on `type` (`"xano-free" | "anthropic" | "openai" | "google-genai"`). Shared fields: `systemPrompt?`, `maxSteps?` (default `5`), and `prompt?` XOR `messages?` (genuinely exclusive: both is a type error and throws \u2014 the engine stores ONE `prompt_type`, so one would be dropped); plus provider fields (`apiKey?`, `model?`, `temperature?`, `reasoningEffort?`, \u2026). String fields accept Twig placeholders \u2014 `{{ $args.x }}` for run inputs (the `args` of `s.ai.agent.run`), `{{ $env.NAME }}` for env vars.',
|
|
1299
1299
|
" - `tools?`: same `ToolsetToolEntry[]` as `mcpServer` \u2014 bare `tool()` handles, or a `{ tool, enabled?, auth? }` wrapper when one needs `enabled`/`auth`.",
|
|
1300
1300
|
' - `output?`: `{ schema: Record<string, input.*>, enabled? }` \u2014 structured-output schema. `schema` is a named-field record authored with the `input.*` catalog, exactly like a `defineFunction`/`query` `input:` map (the stored `structuredOutputsSchema` is the same wire shape as function inputs). e.g. `output: { schema: { priority: input.enum(["low","high"]), summary: input.text() } }`. When you pass the agent *handle* to `s.ai.agent.run({ agent })`, `.result` is typed straight from this schema \u2014 no `resultShape` witness needed (the shape is declared once). `resultShape` remains only to override that, or to type an agent referenced by bare name.',
|
|
1301
|
-
' - **Run + read recipe (`s.ai.agent.run`):** bind the run to a var (`s.ai.agent.run({ agent, args, as: "run" })`) \u2014 it produces a rich envelope, and the completion is at **`.result`**. Read one structured field with a dotted ref (`response: ref("run.result.priority")`) or the whole completion (`ref("run.result")`, typed from `output.schema`); persist it in a later step the same way (`s.set_var({ name, value: ref("run.result.summary") })`). `args` is a plain object of run inputs (`{ topic: inp("topic") }` \u2014 raw literals are fine, e.g. `{ max_steps: 3 }`) surfaced to the agent as `{{ $args.topic }}`. Tool-call / per-step data (when tools ran) rides `.toolCalls` / `.steps` on the same envelope \u2014 both optional, absent or empty when no tools executed.'
|
|
1301
|
+
' - **Run + read recipe (`s.ai.agent.run`):** bind the run to a var (`s.ai.agent.run({ agent, args, as: "run" })`) \u2014 it produces a rich envelope, and the completion is at **`.result`**. Read one structured field with a dotted ref (`response: ref("run.result.priority")`) or the whole completion (`ref("run.result")`, typed from `output.schema`); persist it in a later step the same way (`s.set_var({ name, value: ref("run.result.summary") })`). `args` is a plain object of run inputs (`{ topic: inp("topic") }` \u2014 raw literals are fine, e.g. `{ max_steps: 3 }`) surfaced to the agent as `{{ $args.topic }}`. Tool-call / per-step data (when tools ran) rides `.toolCalls` / `.steps` on the same envelope \u2014 both optional, absent or empty when no tools executed.',
|
|
1302
|
+
" - **Marketplace:** for chat history, use `@xanots/chatbot`; for vector RAG, use `@xanots/vector` (`tools: [vector.searchTool]`). Find add-ons with `xanots marketplace search <q>`."
|
|
1302
1303
|
];
|
|
1303
1304
|
const kindsRealtime = [
|
|
1304
1305
|
"- **Realtime** \u2014 the only three-level chain: `realtimeServer` owns `realtimeChannel`s, which own `realtimeMessage` handlers. Pass the HANDLE, not a name (a channel path is unique only within its server).",
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadDefault
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3NFUWXOC.js";
|
|
4
4
|
import {
|
|
5
5
|
UsageError,
|
|
6
6
|
missingArgument,
|
|
7
7
|
unknownSubcommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6USV65XA.js";
|
|
9
|
+
import {
|
|
10
|
+
readLockFile,
|
|
11
|
+
writeLockFile
|
|
12
|
+
} from "./chunk-HJPTWBLH.js";
|
|
9
13
|
import "./chunk-EZG76F7R.js";
|
|
14
|
+
import "./chunk-GNPVYOPB.js";
|
|
10
15
|
import {
|
|
11
16
|
Xano
|
|
12
17
|
} from "./chunk-55VHDNW5.js";
|
|
13
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-DYCLVQXW.js";
|
|
14
19
|
import "./chunk-5L4X5LS6.js";
|
|
15
20
|
import "./chunk-WHOJWOSV.js";
|
|
16
21
|
import "./chunk-5XZ744TS.js";
|
|
17
|
-
import {
|
|
18
|
-
readLockFile,
|
|
19
|
-
writeLockFile
|
|
20
|
-
} from "./chunk-HJPTWBLH.js";
|
|
21
|
-
import "./chunk-GNPVYOPB.js";
|
|
22
22
|
import {
|
|
23
23
|
adoptFromBundle,
|
|
24
24
|
createLockContext,
|
|
@@ -229,4 +229,4 @@ ${lines}
|
|
|
229
229
|
export {
|
|
230
230
|
runLockCommand
|
|
231
231
|
};
|
|
232
|
-
//# sourceMappingURL=lock-commands-
|
|
232
|
+
//# sourceMappingURL=lock-commands-XOYS75YQ.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
runNpm
|
|
3
|
-
} from "./chunk-47WDWMBJ.js";
|
|
4
1
|
import {
|
|
5
2
|
isMachineOutput,
|
|
6
3
|
writeJson
|
|
7
4
|
} from "./chunk-NUQCEOKA.js";
|
|
5
|
+
import {
|
|
6
|
+
runNpm
|
|
7
|
+
} from "./chunk-WUSKBXXD.js";
|
|
8
8
|
import {
|
|
9
9
|
serverMessage
|
|
10
10
|
} from "./chunk-3IGNIP6R.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
UsageError,
|
|
13
13
|
indentBlock,
|
|
14
14
|
missingArgument
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6USV65XA.js";
|
|
16
16
|
import {
|
|
17
17
|
blank,
|
|
18
18
|
detail,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
success,
|
|
24
24
|
warn
|
|
25
25
|
} from "./chunk-EZG76F7R.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-DYCLVQXW.js";
|
|
27
27
|
|
|
28
28
|
// src/emit/marketplace-command.ts
|
|
29
29
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -376,4 +376,4 @@ export {
|
|
|
376
376
|
runMarketplaceListCommand,
|
|
377
377
|
runMarketplaceSearchCommand
|
|
378
378
|
};
|
|
379
|
-
//# sourceMappingURL=marketplace-command-
|
|
379
|
+
//# sourceMappingURL=marketplace-command-UVV3XAOL.js.map
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
decodeWorkspaceArchive,
|
|
12
12
|
encodeWorkspaceArchive
|
|
13
13
|
} from "./chunk-ZUTSMMAG.js";
|
|
14
|
-
import "./chunk-X4DVXBFY.js";
|
|
15
14
|
import "./chunk-3IGNIP6R.js";
|
|
15
|
+
import "./chunk-X4DVXBFY.js";
|
|
16
16
|
|
|
17
17
|
// src/validate/meta-client.ts
|
|
18
18
|
var REQUEST_TIMEOUT_MS = 6e4;
|
package/dist/node.js
CHANGED
|
@@ -108,14 +108,19 @@ import {
|
|
|
108
108
|
run,
|
|
109
109
|
writeArtifact,
|
|
110
110
|
writeBundle
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-
|
|
111
|
+
} from "./chunk-3NFUWXOC.js";
|
|
112
|
+
import "./chunk-6USV65XA.js";
|
|
113
|
+
import {
|
|
114
|
+
readLockFile,
|
|
115
|
+
writeLockFile
|
|
116
|
+
} from "./chunk-HJPTWBLH.js";
|
|
113
117
|
import "./chunk-EZG76F7R.js";
|
|
118
|
+
import "./chunk-GNPVYOPB.js";
|
|
114
119
|
import {
|
|
115
120
|
Xano,
|
|
116
121
|
workspace
|
|
117
122
|
} from "./chunk-55VHDNW5.js";
|
|
118
|
-
import "./chunk-
|
|
123
|
+
import "./chunk-DYCLVQXW.js";
|
|
119
124
|
import {
|
|
120
125
|
LAMBDA_BINDINGS,
|
|
121
126
|
LAMBDA_CODE_FILTERS,
|
|
@@ -165,11 +170,6 @@ import {
|
|
|
165
170
|
annotate,
|
|
166
171
|
statements
|
|
167
172
|
} from "./chunk-5XZ744TS.js";
|
|
168
|
-
import {
|
|
169
|
-
readLockFile,
|
|
170
|
-
writeLockFile
|
|
171
|
-
} from "./chunk-HJPTWBLH.js";
|
|
172
|
-
import "./chunk-GNPVYOPB.js";
|
|
173
173
|
import {
|
|
174
174
|
resetLockOverrides,
|
|
175
175
|
seedLockOverrides
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
confirm
|
|
3
|
-
} from "./chunk-5YTBTF25.js";
|
|
4
1
|
import {
|
|
5
2
|
assertBundleInput,
|
|
6
3
|
loadBundleText
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W2G2WPTB.js";
|
|
8
5
|
import {
|
|
9
6
|
importWorkspaceArchive,
|
|
10
7
|
planWorkspaceImport
|
|
11
8
|
} from "./chunk-5WGEURVI.js";
|
|
9
|
+
import {
|
|
10
|
+
confirm
|
|
11
|
+
} from "./chunk-ZO3HJOCJ.js";
|
|
12
12
|
import {
|
|
13
13
|
encodeWorkspaceArchive
|
|
14
14
|
} from "./chunk-ZUTSMMAG.js";
|
|
15
|
-
import "./chunk-X4DVXBFY.js";
|
|
16
15
|
import {
|
|
17
16
|
isMachineOutput,
|
|
18
17
|
writeJson
|
|
@@ -22,13 +21,17 @@ import {
|
|
|
22
21
|
getAccessToken
|
|
23
22
|
} from "./chunk-C56BC2FY.js";
|
|
24
23
|
import "./chunk-7REDODS2.js";
|
|
24
|
+
import "./chunk-X4DVXBFY.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveLockPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3NFUWXOC.js";
|
|
28
28
|
import {
|
|
29
29
|
UsageError,
|
|
30
30
|
assertWritableDest
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6USV65XA.js";
|
|
32
|
+
import {
|
|
33
|
+
readLockFile
|
|
34
|
+
} from "./chunk-HJPTWBLH.js";
|
|
32
35
|
import {
|
|
33
36
|
blank,
|
|
34
37
|
detail,
|
|
@@ -38,15 +41,12 @@ import {
|
|
|
38
41
|
success,
|
|
39
42
|
warn
|
|
40
43
|
} from "./chunk-EZG76F7R.js";
|
|
44
|
+
import "./chunk-GNPVYOPB.js";
|
|
41
45
|
import "./chunk-55VHDNW5.js";
|
|
42
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-DYCLVQXW.js";
|
|
43
47
|
import "./chunk-5L4X5LS6.js";
|
|
44
48
|
import "./chunk-WHOJWOSV.js";
|
|
45
49
|
import "./chunk-5XZ744TS.js";
|
|
46
|
-
import {
|
|
47
|
-
readLockFile
|
|
48
|
-
} from "./chunk-HJPTWBLH.js";
|
|
49
|
-
import "./chunk-GNPVYOPB.js";
|
|
50
50
|
import {
|
|
51
51
|
REFERENCEABLE_KIND_PAYLOAD_KEYS,
|
|
52
52
|
lockKey
|
|
@@ -338,7 +338,7 @@ async function runReleaseCommand(args) {
|
|
|
338
338
|
{ withSeed: req.records === true }
|
|
339
339
|
);
|
|
340
340
|
if (args.static !== void 0) {
|
|
341
|
-
const { assertNoSeedLeaks } = await import("./deploy-command-
|
|
341
|
+
const { assertNoSeedLeaks } = await import("./deploy-command-4R6BYC6G.js");
|
|
342
342
|
await assertNoSeedLeaks(args.static, nonPublicSeedValues, args.allowSeedInStatic);
|
|
343
343
|
}
|
|
344
344
|
const workspaceId = auth.workspaceId;
|
|
@@ -405,7 +405,7 @@ async function runReleaseCommand(args) {
|
|
|
405
405
|
unchangedEnv: losses.unchangedEnv
|
|
406
406
|
};
|
|
407
407
|
if (args.static !== void 0) {
|
|
408
|
-
const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-
|
|
408
|
+
const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-4R6BYC6G.js");
|
|
409
409
|
const env = buildStaticEnv(auth.instance, args.staticEnv);
|
|
410
410
|
const explicit = Object.keys(args.staticEnv).length > 0;
|
|
411
411
|
summary.static = await deployStaticTo(
|
|
@@ -424,4 +424,4 @@ async function runReleaseCommand(args) {
|
|
|
424
424
|
export {
|
|
425
425
|
runReleaseCommand
|
|
426
426
|
};
|
|
427
|
-
//# sourceMappingURL=release-command-
|
|
427
|
+
//# sourceMappingURL=release-command-HZUY2XZX.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-XQ22GLYS.js";
|
|
7
7
|
import "./chunk-QTNO2WD6.js";
|
|
8
8
|
import "./chunk-ZUTSMMAG.js";
|
|
9
|
-
import "./chunk-X4DVXBFY.js";
|
|
10
9
|
import "./chunk-7DKX2SPN.js";
|
|
11
10
|
import "./chunk-NDZFBZHC.js";
|
|
12
11
|
import "./chunk-NUQCEOKA.js";
|
|
13
12
|
import "./chunk-3IGNIP6R.js";
|
|
14
13
|
import "./chunk-C56BC2FY.js";
|
|
15
14
|
import "./chunk-7REDODS2.js";
|
|
15
|
+
import "./chunk-X4DVXBFY.js";
|
|
16
16
|
import "./chunk-EZG76F7R.js";
|
|
17
17
|
import "./chunk-GNPVYOPB.js";
|
|
18
18
|
export {
|