@xanots/sdk 0.0.3 → 0.0.5
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/CHANGELOG.md +79 -0
- package/README.md +38 -1
- package/dist/.build-fingerprint +1 -1
- package/dist/agent-file-refresh-IJ7GN2FJ.js +17 -0
- package/dist/bin.js +12 -153
- package/dist/{capture-HUV5BNTC.js → capture-7PO6SGB4.js} +2 -2
- package/dist/{chunk-CMZLPTGW.js → chunk-7SISR3CS.js} +2 -2
- package/dist/{chunk-XQ22GLYS.js → chunk-AAFBSOSD.js} +6 -6
- package/dist/{chunk-BT2CSEC5.js → chunk-APOR6TCV.js} +4 -4
- package/dist/{chunk-55VHDNW5.js → chunk-BPEEGJJA.js} +108 -3
- package/dist/{chunk-U3G2UW65.js → chunk-CYJ7R3AD.js} +3 -3
- package/dist/{agent-file-refresh-6M5M7T24.js → chunk-D6OGU2AI.js} +5 -6
- package/dist/chunk-ERQZFWIW.js +22 -0
- package/dist/{chunk-DYCLVQXW.js → chunk-F5T45NAM.js} +31 -2
- package/dist/{chunk-TQUO2OXY.js → chunk-FN4OQT2J.js} +4 -4
- package/dist/{chunk-6USV65XA.js → chunk-IVP6TS26.js} +2 -2
- package/dist/{chunk-HQ2CBRVI.js → chunk-KXCPZUUM.js} +10 -8
- package/dist/{chunk-7REDODS2.js → chunk-LLWK6H77.js} +20 -2
- package/dist/{chunk-HJPTWBLH.js → chunk-MFIHIS6B.js} +2 -2
- package/dist/{chunk-3NFUWXOC.js → chunk-MS3BRZAZ.js} +146 -45
- package/dist/{chunk-2V4YE6QC.js → chunk-OARSPAIE.js} +112 -21
- package/dist/{chunk-7DKX2SPN.js → chunk-OR43PDCW.js} +4 -4
- package/dist/chunk-PGBK64U5.js +59 -0
- package/dist/{chunk-F6JCFRKO.js → chunk-PXXLBXOP.js} +2 -2
- package/dist/{chunk-W2G2WPTB.js → chunk-QA5ICJ4M.js} +3 -3
- package/dist/{chunk-YZ4GU6F5.js → chunk-QUUB7HYK.js} +5 -838
- package/dist/{chunk-C56BC2FY.js → chunk-SG4UBJ47.js} +2 -2
- package/dist/{chunk-76QBEIGO.js → chunk-T4XPCJRF.js} +3 -2
- package/dist/{chunk-VTIL47DT.js → chunk-W5NOKYEG.js} +6 -2
- package/dist/chunk-WGDAOOXG.js +845 -0
- package/dist/{chunk-DGSF2Q5H.js → chunk-WJYB7DSI.js} +2 -2
- package/dist/{chunk-4YMD2OOZ.js → chunk-XHEXOES3.js} +1 -1
- package/dist/{chunk-4HT3BNZ7.js → chunk-YUBJLB6G.js} +10 -2
- package/dist/{chunk-5L4X5LS6.js → chunk-YUPQOLFX.js} +77 -2
- package/dist/chunk-ZGA5MUNC.js +173 -0
- package/dist/{chunk-P3TTMWUP.js → chunk-ZOYMZZ3S.js} +8 -1
- package/dist/chunk-ZSYZTGJH.js +81 -0
- package/dist/cli.d.ts +14 -1
- package/dist/cli.js +8 -8
- package/dist/codegen-command-BLOS3GR3.js +43 -0
- package/dist/{completion-BKAFCZBE.js → completion-GHP5RRLQ.js} +2 -2
- package/dist/{deploy-command-4R6BYC6G.js → deploy-command-XOH76USO.js} +27 -27
- package/dist/{env-target-XWS2ZZ2Y.js → env-target-POGJMD6Q.js} +7 -7
- package/dist/{ephemeral-command-JL4TPIRQ.js → ephemeral-command-46SL27GJ.js} +25 -25
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -7
- package/dist/init-command-NCRPVFGE.js +30 -0
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +50 -5
- package/dist/{io-AMIKRLPC.js → io-7VIA5SON.js} +3 -3
- package/dist/{live-diff-RXSJCVJ7.js → live-diff-FP4SFNT4.js} +2 -2
- package/dist/{lock-3CVKALKT.js → lock-KXOJIGCG.js} +2 -2
- package/dist/{lock-commands-XOYS75YQ.js → lock-commands-6UONZW26.js} +9 -9
- package/dist/{login-command-ACJF6KWQ.js → login-command-SG7IWTHW.js} +140 -37
- package/dist/{logout-command-MX3MJS5U.js → logout-command-J2AG5NKC.js} +3 -3
- package/dist/{loop-SAWAOUFO.js → loop-7SAIGRCZ.js} +3 -3
- package/dist/{marketplace-command-UVV3XAOL.js → marketplace-command-NKTQ3VPS.js} +11 -25
- package/dist/meta-client-OW5WKWW7.js +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.js +18 -12
- package/dist/onboard-command-EHOHKQQU.js +36 -0
- package/dist/{profile-command-SWJ3SPKR.js → profile-command-ZPC2DPFV.js} +6 -6
- package/dist/{release-command-HZUY2XZX.js → release-command-FKQ6E3TD.js} +25 -25
- package/dist/{sandbox-details-command-HJE5SPVG.js → sandbox-details-command-DMY2KGA2.js} +5 -5
- package/dist/{sandbox-export-command-QCJY4GMV.js → sandbox-export-command-R6QMEK3D.js} +8 -8
- package/dist/scaffold.js +4 -2
- package/dist/{store-g45zwB33.d.ts → store-BJONDJoZ.d.ts} +171 -2
- package/dist/{test-command-72Y5S22H.js → test-command-56IAEYHX.js} +11 -11
- package/dist/upgrade-command-M2DZ3ZPD.js +177 -0
- package/dist/{validate-command-KDGH537H.js → validate-command-CIBQJND7.js} +12 -12
- package/dist/{workspace-command-ICSI6PKO.js → workspace-command-HZS43PHJ.js} +28 -27
- package/dist/workspace-export-AJMGN3CQ.js +1 -1
- package/guides/README.md +30 -0
- package/guides/authoring.md +642 -0
- package/guides/cli.md +192 -0
- package/guides/codegen.md +83 -0
- package/guides/coverage.md +67 -0
- package/guides/deploying.md +358 -0
- package/guides/environment.md +132 -0
- package/guides/object-kinds.md +376 -0
- package/guides/project-structure.md +43 -0
- package/guides/scaffold.md +198 -0
- package/guides/typed-frontend.md +201 -0
- package/llms/kinds-knowledge.md +20 -0
- package/llms/object-kinds.md +1 -0
- package/llms-full.txt +25 -2
- package/llms.txt +3 -2
- package/manifest.json +31 -4
- package/package.json +5 -2
- package/dist/chunk-WUSKBXXD.js +0 -25
- package/dist/chunk-ZO3HJOCJ.js +0 -29
- package/dist/codegen-command-FIADGXRN.js +0 -42
- package/dist/init-command-LOK75W64.js +0 -29
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import {
|
|
2
|
+
assertProjectDir
|
|
3
|
+
} from "./chunk-ERQZFWIW.js";
|
|
4
|
+
import {
|
|
5
|
+
isMachineOutput,
|
|
6
|
+
writeJson
|
|
7
|
+
} from "./chunk-NUQCEOKA.js";
|
|
8
|
+
import {
|
|
9
|
+
refreshAgentFiles
|
|
10
|
+
} from "./chunk-D6OGU2AI.js";
|
|
11
|
+
import "./chunk-7SISR3CS.js";
|
|
12
|
+
import {
|
|
13
|
+
runNpm
|
|
14
|
+
} from "./chunk-ZSYZTGJH.js";
|
|
15
|
+
import {
|
|
16
|
+
sdkDep
|
|
17
|
+
} from "./chunk-QUUB7HYK.js";
|
|
18
|
+
import "./chunk-6DHJVLYP.js";
|
|
19
|
+
import {
|
|
20
|
+
checkForUpgrade,
|
|
21
|
+
detectInstallMode,
|
|
22
|
+
registryUrl,
|
|
23
|
+
suppressUpdateNotice,
|
|
24
|
+
upgradeCommand
|
|
25
|
+
} from "./chunk-ZGA5MUNC.js";
|
|
26
|
+
import "./chunk-MS3BRZAZ.js";
|
|
27
|
+
import "./chunk-IVP6TS26.js";
|
|
28
|
+
import "./chunk-MFIHIS6B.js";
|
|
29
|
+
import "./chunk-GNPVYOPB.js";
|
|
30
|
+
import {
|
|
31
|
+
blank,
|
|
32
|
+
detail,
|
|
33
|
+
step,
|
|
34
|
+
style,
|
|
35
|
+
success,
|
|
36
|
+
warn
|
|
37
|
+
} from "./chunk-EZG76F7R.js";
|
|
38
|
+
import "./chunk-BPEEGJJA.js";
|
|
39
|
+
import "./chunk-F5T45NAM.js";
|
|
40
|
+
import "./chunk-YUPQOLFX.js";
|
|
41
|
+
import "./chunk-WHOJWOSV.js";
|
|
42
|
+
import "./chunk-5XZ744TS.js";
|
|
43
|
+
import "./chunk-YUBJLB6G.js";
|
|
44
|
+
|
|
45
|
+
// src/emit/upgrade-command.ts
|
|
46
|
+
import { readFileSync, writeFileSync } from "fs";
|
|
47
|
+
import { createRequire } from "module";
|
|
48
|
+
import { join } from "path";
|
|
49
|
+
var EXIT_UPGRADE_AVAILABLE = 7;
|
|
50
|
+
var PACKAGE = "@xanots/sdk";
|
|
51
|
+
async function runUpgradeCommand(args) {
|
|
52
|
+
suppressUpdateNotice();
|
|
53
|
+
const mode = detectInstallMode();
|
|
54
|
+
const dir = process.cwd();
|
|
55
|
+
const installed = mode === "local" ? projectSdkVersion(dir) : void 0;
|
|
56
|
+
const result = await checkForUpgrade(installed === void 0 ? void 0 : { current: installed });
|
|
57
|
+
if (result.status === "unknown") throw new Error(explainUnknown(result.reason));
|
|
58
|
+
if (result.status === "current") {
|
|
59
|
+
if (isMachineOutput(args)) {
|
|
60
|
+
writeJson({ status: "current", current: result.current, latest: result.latest, installMode: mode });
|
|
61
|
+
} else {
|
|
62
|
+
success(`@xanots/sdk ${style.bold(result.current)} is the latest published version.`);
|
|
63
|
+
}
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (args.check) {
|
|
67
|
+
if (isMachineOutput(args)) {
|
|
68
|
+
writeJson({
|
|
69
|
+
status: "available",
|
|
70
|
+
current: result.current,
|
|
71
|
+
latest: result.latest,
|
|
72
|
+
installMode: mode,
|
|
73
|
+
command: suggestedCommand(dir, mode)
|
|
74
|
+
});
|
|
75
|
+
} else {
|
|
76
|
+
warn(
|
|
77
|
+
`A new @xanots/sdk is available: ${style.dim(result.current)} \u2192 ${style.green(result.latest)}`
|
|
78
|
+
);
|
|
79
|
+
detail(`run \`xanots upgrade\`, or: ${suggestedCommand(dir, mode)}`);
|
|
80
|
+
}
|
|
81
|
+
process.exitCode = EXIT_UPGRADE_AVAILABLE;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
await applyUpgrade(args, dir, result.current, result.latest, mode);
|
|
85
|
+
}
|
|
86
|
+
function suggestedCommand(dir, mode) {
|
|
87
|
+
return mode === "global" ? upgradeCommand("global") : `npm i ${saveFlagFor(dir)} ${PACKAGE}@latest`;
|
|
88
|
+
}
|
|
89
|
+
function explainUnknown(reason) {
|
|
90
|
+
return reason === "registry" ? `xanots upgrade: could not reach the npm registry at ${registryUrl()}.
|
|
91
|
+
Check your connection, or point XANOTS_UPDATE_REGISTRY at a reachable mirror.` : `xanots upgrade: could not resolve the installed @xanots/sdk version, so there is nothing to compare against.
|
|
92
|
+
This is expected for a git build or a linked checkout \u2014 upgrade with npm directly.`;
|
|
93
|
+
}
|
|
94
|
+
async function applyUpgrade(args, dir, current, latest, mode) {
|
|
95
|
+
if (mode === "local") {
|
|
96
|
+
assertProjectDir(dir, {
|
|
97
|
+
what: "`xanots upgrade` installs into a XanoTS project",
|
|
98
|
+
remedy: "cd into your project first, or set XANOTS_INSTALL_MODE=global to upgrade the global CLI."
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
step(`Upgrading ${style.bold(PACKAGE)} ${style.dim(current)} \u2192 ${style.green(latest)}`);
|
|
102
|
+
const flag = mode === "global" ? "-g" : saveFlagFor(dir);
|
|
103
|
+
const status = runNpm(["i", flag, `${PACKAGE}@latest`], dir, { stdout: "stderr" });
|
|
104
|
+
if (status !== 0) {
|
|
105
|
+
throw new Error(`npm i ${flag} ${PACKAGE}@latest failed (exit ${status}).`);
|
|
106
|
+
}
|
|
107
|
+
const reconciled = mode === "local" ? reconcileProject(dir, latest) : [];
|
|
108
|
+
if (isMachineOutput(args)) {
|
|
109
|
+
writeJson({ status: "upgraded", current, latest, installMode: mode, reconciled });
|
|
110
|
+
} else {
|
|
111
|
+
blank();
|
|
112
|
+
success(`Upgraded to @xanots/sdk ${style.bold(latest)}.`);
|
|
113
|
+
for (const path of reconciled) detail(`reconciled ${path}`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function reconcileProject(dir, version) {
|
|
117
|
+
const changed = [];
|
|
118
|
+
try {
|
|
119
|
+
if (restoreSdkRange(dir, version)) changed.push("package.json");
|
|
120
|
+
} catch (err) {
|
|
121
|
+
warn(`Could not restore the ${PACKAGE} range in package.json: ${messageOf(err)}`);
|
|
122
|
+
}
|
|
123
|
+
try {
|
|
124
|
+
changed.push(...refreshAgentFiles({ projectDir: dir, sdkVersion: version, explicit: true }));
|
|
125
|
+
} catch (err) {
|
|
126
|
+
warn(`Could not refresh the agent guidance blocks: ${messageOf(err)}`);
|
|
127
|
+
}
|
|
128
|
+
return changed;
|
|
129
|
+
}
|
|
130
|
+
function restoreSdkRange(dir, version) {
|
|
131
|
+
const manifest = join(dir, "package.json");
|
|
132
|
+
const raw = readFileSync(manifest, "utf8");
|
|
133
|
+
const pkg = JSON.parse(raw);
|
|
134
|
+
const block = sdkBlock(pkg);
|
|
135
|
+
if (block === void 0) return false;
|
|
136
|
+
const deps = pkg[block];
|
|
137
|
+
const want = sdkDep(version);
|
|
138
|
+
if (deps[PACKAGE] === want) return false;
|
|
139
|
+
deps[PACKAGE] = want;
|
|
140
|
+
writeFileSync(manifest, JSON.stringify(pkg, null, indentOf(raw)) + (raw.endsWith("\n") ? "\n" : ""));
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
function sdkBlock(pkg) {
|
|
144
|
+
return ["devDependencies", "dependencies"].find((key) => {
|
|
145
|
+
const deps = pkg[key];
|
|
146
|
+
return typeof deps === "object" && deps !== null && PACKAGE in deps;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function saveFlagFor(dir) {
|
|
150
|
+
try {
|
|
151
|
+
const pkg = JSON.parse(readFileSync(join(dir, "package.json"), "utf8"));
|
|
152
|
+
return sdkBlock(pkg) === "dependencies" ? "--save-prod" : "--save-dev";
|
|
153
|
+
} catch {
|
|
154
|
+
return "--save-dev";
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function indentOf(raw) {
|
|
158
|
+
return /^(\t+)"/m.exec(raw)?.[1] ?? /^( +)"/m.exec(raw)?.[1]?.length ?? 2;
|
|
159
|
+
}
|
|
160
|
+
function projectSdkVersion(dir) {
|
|
161
|
+
try {
|
|
162
|
+
const requireFromDir = createRequire(join(dir, "package.json"));
|
|
163
|
+
const pkg = JSON.parse(
|
|
164
|
+
readFileSync(requireFromDir.resolve(`${PACKAGE}/package.json`), "utf8")
|
|
165
|
+
);
|
|
166
|
+
return typeof pkg.version === "string" ? pkg.version : void 0;
|
|
167
|
+
} catch {
|
|
168
|
+
return void 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function messageOf(err) {
|
|
172
|
+
return err instanceof Error ? err.message : String(err);
|
|
173
|
+
}
|
|
174
|
+
export {
|
|
175
|
+
runUpgradeCommand
|
|
176
|
+
};
|
|
177
|
+
//# sourceMappingURL=upgrade-command-M2DZ3ZPD.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertBundleInput,
|
|
3
3
|
loadBundleText
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-QA5ICJ4M.js";
|
|
5
|
+
import "./chunk-MS3BRZAZ.js";
|
|
6
|
+
import "./chunk-IVP6TS26.js";
|
|
7
|
+
import "./chunk-MFIHIS6B.js";
|
|
8
|
+
import "./chunk-GNPVYOPB.js";
|
|
8
9
|
import {
|
|
9
10
|
blank,
|
|
10
11
|
detail,
|
|
@@ -13,13 +14,12 @@ import {
|
|
|
13
14
|
success,
|
|
14
15
|
warn
|
|
15
16
|
} from "./chunk-EZG76F7R.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-5L4X5LS6.js";
|
|
17
|
+
import "./chunk-BPEEGJJA.js";
|
|
18
|
+
import "./chunk-F5T45NAM.js";
|
|
19
|
+
import "./chunk-YUPQOLFX.js";
|
|
20
20
|
import "./chunk-WHOJWOSV.js";
|
|
21
21
|
import "./chunk-5XZ744TS.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-YUBJLB6G.js";
|
|
23
23
|
|
|
24
24
|
// src/emit/validate-command.ts
|
|
25
25
|
var EXIT_VALIDATION_FAILED = 2;
|
|
@@ -44,7 +44,7 @@ async function runValidateCommand(args) {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
async function validateWithClient(args, client, bundle) {
|
|
47
|
-
const { runValidateLoop, runnableFunctionNames } = await import("./loop-
|
|
47
|
+
const { runValidateLoop, runnableFunctionNames } = await import("./loop-7SAIGRCZ.js");
|
|
48
48
|
const result = await runValidateLoop(client, bundle);
|
|
49
49
|
if (!result.accepted) {
|
|
50
50
|
warn("Import rejected by the engine:");
|
|
@@ -95,7 +95,7 @@ async function validateWithClient(args, client, bundle) {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
if (args.capture) {
|
|
98
|
-
const { captureFixtures } = await import("./capture-
|
|
98
|
+
const { captureFixtures } = await import("./capture-7PO6SGB4.js");
|
|
99
99
|
const written = captureFixtures(result.roundTrip, args.out);
|
|
100
100
|
if (written.length === 0) warn("nothing to capture (no objects round-tripped)");
|
|
101
101
|
for (const w of written) detail(`captured ${w.name} \u2192 ${w.path}`);
|
|
@@ -119,4 +119,4 @@ function fmt(v) {
|
|
|
119
119
|
export {
|
|
120
120
|
runValidateCommand
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=validate-command-
|
|
122
|
+
//# sourceMappingURL=validate-command-CIBQJND7.js.map
|
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchWorkspaceBundle,
|
|
3
3
|
runCodegenCommand
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-OARSPAIE.js";
|
|
5
|
+
import "./chunk-ZOYMZZ3S.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveOutputTarget
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-ZUTSMMAG.js";
|
|
11
|
-
import "./chunk-7DKX2SPN.js";
|
|
8
|
+
} from "./chunk-AAFBSOSD.js";
|
|
9
|
+
import "./chunk-OR43PDCW.js";
|
|
12
10
|
import {
|
|
13
11
|
printMicroserviceSection,
|
|
14
12
|
readMicroservices
|
|
15
13
|
} from "./chunk-NDZFBZHC.js";
|
|
14
|
+
import {
|
|
15
|
+
ENV_WORKSPACE,
|
|
16
|
+
getAccessToken
|
|
17
|
+
} from "./chunk-SG4UBJ47.js";
|
|
18
|
+
import "./chunk-LLWK6H77.js";
|
|
19
|
+
import "./chunk-QTNO2WD6.js";
|
|
20
|
+
import "./chunk-ZUTSMMAG.js";
|
|
21
|
+
import "./chunk-X4DVXBFY.js";
|
|
22
|
+
import "./chunk-KXCPZUUM.js";
|
|
16
23
|
import {
|
|
17
24
|
isMachineOutput,
|
|
18
25
|
writeJson
|
|
19
26
|
} from "./chunk-NUQCEOKA.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-WUSKBXXD.js";
|
|
27
|
+
import "./chunk-7SISR3CS.js";
|
|
28
|
+
import "./chunk-ZSYZTGJH.js";
|
|
23
29
|
import {
|
|
24
30
|
fetchOrExplain,
|
|
25
31
|
httpFailure
|
|
26
32
|
} from "./chunk-3IGNIP6R.js";
|
|
27
|
-
import
|
|
28
|
-
ENV_WORKSPACE,
|
|
29
|
-
getAccessToken
|
|
30
|
-
} from "./chunk-C56BC2FY.js";
|
|
31
|
-
import "./chunk-7REDODS2.js";
|
|
32
|
-
import "./chunk-X4DVXBFY.js";
|
|
33
|
-
import "./chunk-F6JCFRKO.js";
|
|
33
|
+
import "./chunk-PXXLBXOP.js";
|
|
34
34
|
import "./chunk-LU7TRWMC.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-WGDAOOXG.js";
|
|
36
|
+
import "./chunk-QUUB7HYK.js";
|
|
36
37
|
import "./chunk-6DHJVLYP.js";
|
|
37
38
|
import "./chunk-4BXJGVZ3.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-CYJ7R3AD.js";
|
|
40
|
+
import "./chunk-MS3BRZAZ.js";
|
|
40
41
|
import {
|
|
41
42
|
removedSubcommand,
|
|
42
43
|
unknownSubcommand
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-IVP6TS26.js";
|
|
45
|
+
import "./chunk-MFIHIS6B.js";
|
|
46
|
+
import "./chunk-GNPVYOPB.js";
|
|
45
47
|
import {
|
|
46
48
|
formatFields,
|
|
47
49
|
stdoutStyle,
|
|
48
50
|
step,
|
|
49
51
|
success
|
|
50
52
|
} from "./chunk-EZG76F7R.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-5L4X5LS6.js";
|
|
53
|
+
import "./chunk-BPEEGJJA.js";
|
|
54
|
+
import "./chunk-F5T45NAM.js";
|
|
55
|
+
import "./chunk-YUPQOLFX.js";
|
|
55
56
|
import "./chunk-WHOJWOSV.js";
|
|
56
57
|
import "./chunk-5XZ744TS.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-YUBJLB6G.js";
|
|
58
59
|
|
|
59
60
|
// src/emit/workspace-command.ts
|
|
60
61
|
import { writeFileSync } from "fs";
|
|
@@ -155,4 +156,4 @@ async function runExport(args) {
|
|
|
155
156
|
export {
|
|
156
157
|
runWorkspaceCommand
|
|
157
158
|
};
|
|
158
|
-
//# sourceMappingURL=workspace-command-
|
|
159
|
+
//# sourceMappingURL=workspace-command-HZS43PHJ.js.map
|
package/guides/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# XanoTS guides
|
|
2
|
+
|
|
3
|
+
The written reference for people. Every kind, statement, filter, and field type is also
|
|
4
|
+
typed, so your editor's autocomplete is usually the faster lookup — tab-complete `s.`,
|
|
5
|
+
`f.`, `c.`, `fl.`, `input.`.
|
|
6
|
+
|
|
7
|
+
| Guide | What's in it |
|
|
8
|
+
|---|---|
|
|
9
|
+
| [The scaffolded project](scaffold.md) | What `xanots init` writes, the two frontend presets, add-ons, SvelteKit rules |
|
|
10
|
+
| [Project structure](project-structure.md) | How a `xano/` project is laid out, and why registration is explicit |
|
|
11
|
+
| [Object kinds](object-kinds.md) | Every authorable kind, and splitting a workspace across microservices |
|
|
12
|
+
| [Authoring reference](authoring.md) | Tables and fields, statements, values, inputs, middleware, request history |
|
|
13
|
+
| [CLI](cli.md) | Every command, shell completion, and what failures look like |
|
|
14
|
+
| [Signing in & deploying](deploying.md) | Auth, ephemerals, `--static`, releasing to production, `xanots validate` |
|
|
15
|
+
| [Environment & identity](environment.md) | Every environment variable, and how `xano.lock` pins identity |
|
|
16
|
+
| [The typed frontend surface](typed-frontend.md) | Path resolution, input/response inference, bundle cost, the route manifest |
|
|
17
|
+
| [Pulling an existing workspace](codegen.md) | What `xanots codegen` writes, how faithful it is, and how to read its report |
|
|
18
|
+
| [Coverage & agent grounding](coverage.md) | What's covered, what's out of scope, and the files agents read |
|
|
19
|
+
|
|
20
|
+
## The agent-facing surface
|
|
21
|
+
|
|
22
|
+
These guides are for humans. Agents read a different set, generated from the SDK's own
|
|
23
|
+
sources so it cannot drift from what the code does:
|
|
24
|
+
|
|
25
|
+
- **`llms.txt`** — a small always-read router: the mental model, the deploy contract, and
|
|
26
|
+
every gotcha, ending in a map of the topic files.
|
|
27
|
+
- **`llms/*.md`** — one file per surface, opened only when that surface is in play.
|
|
28
|
+
- **`manifest.json`** — the exhaustive per-entry catalog, reached by targeted lookup.
|
|
29
|
+
|
|
30
|
+
See [Coverage & agent grounding](coverage.md) for what each one carries.
|