@xano/sdk 1.0.0
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 +788 -0
- package/LICENSE +21 -0
- package/README.md +541 -0
- package/dist/.build-fingerprint +1 -0
- package/dist/agent-file-refresh-ZEMK33AX.js +38 -0
- package/dist/answer-shape-K67TAAPY.js +33 -0
- package/dist/backend-dir-2U53CIAL.js +39 -0
- package/dist/backend-slot-7QXW2QYC.js +28 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +255 -0
- package/dist/branch-NCRNWQBQ.js +61 -0
- package/dist/branch-commands-ACIRCEQJ.js +79 -0
- package/dist/bundle.d.ts +223 -0
- package/dist/bundle.js +153 -0
- package/dist/capture-WAXPD7DR.js +41 -0
- package/dist/chunk-27GWNP2I.js +23 -0
- package/dist/chunk-2CMJZDCL.js +177 -0
- package/dist/chunk-2EZ3ZJZZ.js +302 -0
- package/dist/chunk-2GNFDZA2.js +390 -0
- package/dist/chunk-2MNLRIOX.js +11 -0
- package/dist/chunk-2TFRR6JV.js +104 -0
- package/dist/chunk-2ZUEE4EK.js +408 -0
- package/dist/chunk-36JUQZVQ.js +22 -0
- package/dist/chunk-3DRXWLJ5.js +83 -0
- package/dist/chunk-3JDU4VRL.js +137 -0
- package/dist/chunk-3KZCLN4Z.js +241 -0
- package/dist/chunk-3LDULPRE.js +168 -0
- package/dist/chunk-3M4LFYNQ.js +111 -0
- package/dist/chunk-3XI5CTUE.js +22 -0
- package/dist/chunk-3YW23UFH.js +50 -0
- package/dist/chunk-45UIT5T2.js +862 -0
- package/dist/chunk-4BW2SG2N.js +46 -0
- package/dist/chunk-4KHEMC32.js +79 -0
- package/dist/chunk-4POWHT2K.js +321 -0
- package/dist/chunk-4Q2GN7NW.js +192 -0
- package/dist/chunk-5A2PLKZB.js +70 -0
- package/dist/chunk-5FBYXK5P.js +159 -0
- package/dist/chunk-5HVXPTU4.js +323 -0
- package/dist/chunk-5QU2P5CA.js +304 -0
- package/dist/chunk-5V5XU32D.js +191 -0
- package/dist/chunk-5ZSO4T2G.js +10 -0
- package/dist/chunk-622HUCZT.js +10 -0
- package/dist/chunk-65HWOMGV.js +177 -0
- package/dist/chunk-6ELFRN3P.js +365 -0
- package/dist/chunk-6HO3NCSJ.js +1055 -0
- package/dist/chunk-6IUMKYWI.js +457 -0
- package/dist/chunk-6KEB3C3U.js +65 -0
- package/dist/chunk-6MR5TI5V.js +987 -0
- package/dist/chunk-6NNTNXN7.js +157 -0
- package/dist/chunk-6PBR37LN.js +97 -0
- package/dist/chunk-6QXLMMT3.js +155 -0
- package/dist/chunk-6ZGJCBZS.js +224 -0
- package/dist/chunk-73IVBKMA.js +250 -0
- package/dist/chunk-7G3CTU7I.js +286 -0
- package/dist/chunk-A3UDOZB6.js +222 -0
- package/dist/chunk-A6E77GDW.js +85 -0
- package/dist/chunk-AHJWCYQO.js +660 -0
- package/dist/chunk-AKNCFVKZ.js +36 -0
- package/dist/chunk-AM4FKL4J.js +237 -0
- package/dist/chunk-AN6BL47T.js +26 -0
- package/dist/chunk-AOSYVMUS.js +147 -0
- package/dist/chunk-APWXY5SL.js +182 -0
- package/dist/chunk-AWEIIR2U.js +218 -0
- package/dist/chunk-AWQ7BQTQ.js +73 -0
- package/dist/chunk-BAUZOWGX.js +393 -0
- package/dist/chunk-BHACRS6R.js +940 -0
- package/dist/chunk-BWPNT55T.js +680 -0
- package/dist/chunk-C6RIMRU4.js +187 -0
- package/dist/chunk-CGVQZXYG.js +263 -0
- package/dist/chunk-CIMQZRRE.js +162 -0
- package/dist/chunk-CJHQKJU4.js +113 -0
- package/dist/chunk-CTMO46PK.js +1897 -0
- package/dist/chunk-D53J55C5.js +106 -0
- package/dist/chunk-D7VGG3WS.js +90 -0
- package/dist/chunk-DAD3ONIS.js +245 -0
- package/dist/chunk-DGWHAVRG.js +162 -0
- package/dist/chunk-DX4QR4B2.js +483 -0
- package/dist/chunk-EHP3WPEG.js +21 -0
- package/dist/chunk-ELP2HMXC.js +432 -0
- package/dist/chunk-ERVIASGL.js +21 -0
- package/dist/chunk-ET4Y4XCB.js +865 -0
- package/dist/chunk-ETO6LGLD.js +4750 -0
- package/dist/chunk-EUUUMY7J.js +24 -0
- package/dist/chunk-FQJ2TTHP.js +218 -0
- package/dist/chunk-FQOF7E2E.js +133 -0
- package/dist/chunk-FWD7AL6N.js +21 -0
- package/dist/chunk-FXFV3KU6.js +138 -0
- package/dist/chunk-FXRQOWTE.js +171 -0
- package/dist/chunk-G554NZNI.js +210 -0
- package/dist/chunk-GSGDWJB5.js +13 -0
- package/dist/chunk-H2V3N23D.js +66 -0
- package/dist/chunk-H5C7MBCR.js +159 -0
- package/dist/chunk-HHN734BU.js +371 -0
- package/dist/chunk-HRVBLCVJ.js +243 -0
- package/dist/chunk-HVRUQXGD.js +1264 -0
- package/dist/chunk-I4F5TCJH.js +130 -0
- package/dist/chunk-IDOTCMDV.js +57 -0
- package/dist/chunk-IGOLHKWF.js +427 -0
- package/dist/chunk-JGE7CAWB.js +148 -0
- package/dist/chunk-JTUKLCXS.js +92 -0
- package/dist/chunk-JZGVVJSI.js +66 -0
- package/dist/chunk-K4WX6UUU.js +923 -0
- package/dist/chunk-K5BBGTYZ.js +217 -0
- package/dist/chunk-K6RXBGUB.js +427 -0
- package/dist/chunk-KTSDSD36.js +165 -0
- package/dist/chunk-L5JYN3NM.js +1038 -0
- package/dist/chunk-LIEOKXKD.js +354 -0
- package/dist/chunk-LLNZGEFK.js +51 -0
- package/dist/chunk-LPECSJ2J.js +55 -0
- package/dist/chunk-LQCMKAJ7.js +413 -0
- package/dist/chunk-LRN4ZJCQ.js +1145 -0
- package/dist/chunk-MJ4ZVHKN.js +17 -0
- package/dist/chunk-MXHSQOC4.js +3061 -0
- package/dist/chunk-N5GKCWE5.js +367 -0
- package/dist/chunk-NA3PXMEF.js +10 -0
- package/dist/chunk-NAQDMEHV.js +76 -0
- package/dist/chunk-NWKXM5RD.js +109 -0
- package/dist/chunk-NZOWWHU5.js +196 -0
- package/dist/chunk-OHX6MIUZ.js +184 -0
- package/dist/chunk-OOXWYAA4.js +15 -0
- package/dist/chunk-OPHB5ORL.js +1990 -0
- package/dist/chunk-OXA6PSZT.js +1725 -0
- package/dist/chunk-P2HAGF6H.js +73 -0
- package/dist/chunk-PTHVMXZI.js +3036 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-Q325JKYB.js +189 -0
- package/dist/chunk-Q7DGTQ5G.js +255 -0
- package/dist/chunk-QCNYHBL7.js +601 -0
- package/dist/chunk-QO6BVGS5.js +145 -0
- package/dist/chunk-QXTKSOFI.js +76 -0
- package/dist/chunk-ROY4YAEQ.js +66 -0
- package/dist/chunk-RTJRZFFY.js +447 -0
- package/dist/chunk-SAVJUS2X.js +128 -0
- package/dist/chunk-SFLHVCKX.js +173 -0
- package/dist/chunk-STSFNCY4.js +127 -0
- package/dist/chunk-SWBF2LTK.js +170 -0
- package/dist/chunk-T5KELPAR.js +109 -0
- package/dist/chunk-TFFGOFVZ.js +1481 -0
- package/dist/chunk-TLHIFK4M.js +256 -0
- package/dist/chunk-TLQE7ZN3.js +156 -0
- package/dist/chunk-TPHWJ7UG.js +1981 -0
- package/dist/chunk-TRJCALW3.js +291 -0
- package/dist/chunk-TTEIYD5P.js +133 -0
- package/dist/chunk-U64O2MXY.js +407 -0
- package/dist/chunk-UCQ2VUTG.js +630 -0
- package/dist/chunk-UTI5G6OJ.js +44 -0
- package/dist/chunk-UVHDMMIP.js +188 -0
- package/dist/chunk-UZ6QQWJT.js +120 -0
- package/dist/chunk-VAX3UZOY.js +686 -0
- package/dist/chunk-W3HBUKFO.js +57 -0
- package/dist/chunk-WKQLGKCL.js +2823 -0
- package/dist/chunk-WQFNASK4.js +560 -0
- package/dist/chunk-WRBKLYSJ.js +224 -0
- package/dist/chunk-WTPZRR4I.js +17 -0
- package/dist/chunk-WZDJ2LLX.js +2385 -0
- package/dist/chunk-X2NL4KUO.js +14 -0
- package/dist/chunk-X4DVXBFY.js +38 -0
- package/dist/chunk-X677DMZM.js +7050 -0
- package/dist/chunk-XBKMWY7F.js +612 -0
- package/dist/chunk-XNCP4KYO.js +78 -0
- package/dist/chunk-XVBGLISP.js +35 -0
- package/dist/chunk-XW6KISBB.js +1192 -0
- package/dist/chunk-YGZHHAAB.js +8156 -0
- package/dist/chunk-YHEFQUQB.js +186 -0
- package/dist/chunk-YLDALTWZ.js +653 -0
- package/dist/chunk-YU4HSQW7.js +229 -0
- package/dist/chunk-ZDPP6RKB.js +27 -0
- package/dist/chunk-ZFDZKNGG.js +194 -0
- package/dist/chunk-ZIY7RNUT.js +49 -0
- package/dist/chunk-ZYJP6BOO.js +30 -0
- package/dist/cli.d.ts +1111 -0
- package/dist/cli.js +165 -0
- package/dist/codegen-command-VR2GWR6C.js +173 -0
- package/dist/codegen.d.ts +115 -0
- package/dist/codegen.js +19 -0
- package/dist/commands-GJMJ4XYZ.js +76 -0
- package/dist/completion-ZQLO6PB6.js +738 -0
- package/dist/config-MBYGCAFK.js +136 -0
- package/dist/deploy-command-JVZPWHMK.js +180 -0
- package/dist/deploy-source-3W45CXMP.js +81 -0
- package/dist/dev-env-sync-HN44K4D5.js +188 -0
- package/dist/diagnostics-UEAAHWVF.js +30 -0
- package/dist/display-name-hint-ABBPVQIR.js +46 -0
- package/dist/emit-CyhBDxli.d.ts +7007 -0
- package/dist/env-example-refresh-ET5HMMDW.js +126 -0
- package/dist/env-pull-command-TNMNB3CV.js +323 -0
- package/dist/env-target-O4HRKTGZ.js +40 -0
- package/dist/env-var-command-ZIRDCAZA.js +427 -0
- package/dist/ephemeral-P7F3PMAD.js +54 -0
- package/dist/ephemeral-command-CLJJKOFT.js +592 -0
- package/dist/ephemeral-state-PYCBSOGX.js +61 -0
- package/dist/file-lock-PT74GWYW.js +10 -0
- package/dist/generate-command-AYEOLA26.js +510 -0
- package/dist/gitignore-3SJ3WNRG.js +51 -0
- package/dist/guards-4EBNCZDC.js +162 -0
- package/dist/hosted-file-PSHJB3HX.js +28 -0
- package/dist/impersonate-command-5JAS3WSV.js +152 -0
- package/dist/import-EQSFU6JC.js +19 -0
- package/dist/index.d.ts +5470 -0
- package/dist/index.js +371 -0
- package/dist/init-command-X2FR4UAK.js +125 -0
- package/dist/init-modules-RY7UHAOL.js +50 -0
- package/dist/init-web-M4YZSZK6.js +42 -0
- package/dist/internal.d.ts +179 -0
- package/dist/internal.js +2634 -0
- package/dist/io-RC56QSN5.js +26 -0
- package/dist/keep-data-merge-7MPLVAVI.js +1119 -0
- package/dist/lambda-config-reconcile-OUZ4OYAB.js +116 -0
- package/dist/landed-753YLJ5H.js +40 -0
- package/dist/landing-record-SU52SKXU.js +61 -0
- package/dist/live-diff-YONW2VI3.js +65 -0
- package/dist/local-engine-choice-CH5X3W7E.js +79 -0
- package/dist/local-engine-command-Z3OL7VOD.js +766 -0
- package/dist/local-engine-config-5U3SC434.js +39 -0
- package/dist/local-engine-deploy-PCQ4SNPB.js +39 -0
- package/dist/local-engine-process-EHTE5LLU.js +63 -0
- package/dist/local-engine-state-A4FTRFAF.js +32 -0
- package/dist/local-engine-update-check-6L645VBL.js +162 -0
- package/dist/lock-MRRHW5GS.js +87 -0
- package/dist/lock-commands-2QG25HL7.js +963 -0
- package/dist/login-command-QPYRWOXZ.js +538 -0
- package/dist/logout-command-WOIQLDP6.js +56 -0
- package/dist/loop-ALIZLOSX.js +191 -0
- package/dist/marketplace-command-K5YL42NO.js +977 -0
- package/dist/marketplace-resolve-LY32JES5.js +40 -0
- package/dist/meta-client-YXGPW53C.js +244 -0
- package/dist/module-manifest-JFGHU2TC.js +38 -0
- package/dist/near-key.d.ts +13 -0
- package/dist/near-key.js +8 -0
- package/dist/node.d.ts +95 -0
- package/dist/node.js +969 -0
- package/dist/operation-outcome-TZSESNC7.js +51 -0
- package/dist/output-target-AL3I44GG.js +47 -0
- package/dist/package-manager-PRAHUSCN.js +34 -0
- package/dist/plan-disclosure-6G4MLZKD.js +114 -0
- package/dist/plugin-contributions-WRNY5ABG.js +28 -0
- package/dist/plugin-prompt-4VA3B4FF.js +20 -0
- package/dist/plugin-questions-JTSYA74Q.js +24 -0
- package/dist/plugin.d.ts +396 -0
- package/dist/plugin.js +1 -0
- package/dist/preflight-command-2T5Z36MI.js +321 -0
- package/dist/profile-command-AH3PIM4X.js +800 -0
- package/dist/profile-pointer-GRWJU3YD.js +31 -0
- package/dist/profile-select-74TRDEPD.js +23 -0
- package/dist/project-dependency-KSH63ODT.js +35 -0
- package/dist/project-sdk-REPPOIBD.js +24 -0
- package/dist/promote-command-PCWT5N6S.js +140 -0
- package/dist/prompt-II3F3LND.js +27 -0
- package/dist/publish-command-TTDUUJI5.js +414 -0
- package/dist/pull-command-VBO7C4S3.js +161 -0
- package/dist/pull-superseded-GJWLG7XO.js +20 -0
- package/dist/release-command-N4ZPKMHR.js +146 -0
- package/dist/release-ns-command-3KFDMZ6G.js +1745 -0
- package/dist/response-HlXahv4K.d.ts +925 -0
- package/dist/retry-command-AS5EVREX.js +34 -0
- package/dist/routes-manifest-SNWUVBT6.js +43 -0
- package/dist/runtime-XETHVF33.js +14 -0
- package/dist/scaffold.d.ts +1911 -0
- package/dist/scaffold.js +107 -0
- package/dist/secrets-file-LVZD6IIM.js +56 -0
- package/dist/secrets-fill-command-TTCPSVXN.js +218 -0
- package/dist/seed-VU7C3QYS.js +46 -0
- package/dist/sent-writes-N7X4OVXT.js +22 -0
- package/dist/source-resolve-S2XA3XZF.js +83 -0
- package/dist/static-host-B2Y6AG3W.js +352 -0
- package/dist/status-command-RUDXTF7I.js +554 -0
- package/dist/store-6VNCD4D7.js +20 -0
- package/dist/store-ARM6VMO5.js +98 -0
- package/dist/store-DuYfzKlW.d.ts +3144 -0
- package/dist/suggest-6FOOYKHG.js +12 -0
- package/dist/sveltekit.d.ts +154 -0
- package/dist/sveltekit.js +109 -0
- package/dist/sync-contributions-UCEROO26.js +415 -0
- package/dist/table-ENAVMITR.js +42 -0
- package/dist/tables-command-GUPXXSB5.js +156 -0
- package/dist/tenant-IIHPOHGP.js +42 -0
- package/dist/tenant-command-D5HGI2X4.js +965 -0
- package/dist/test-command-TIKZMDPZ.js +476 -0
- package/dist/tests-BGGIOK3L.js +26 -0
- package/dist/token-NICJUTMT.js +72 -0
- package/dist/toolchain-hooks-GHKLUJOH.js +96 -0
- package/dist/toolchain-modules-5EAZUONB.js +24 -0
- package/dist/tracked-backend-EIBUMDZA.js +80 -0
- package/dist/update-check-2W2NLDTC.js +136 -0
- package/dist/upgrade-command-QHNFWM7O.js +531 -0
- package/dist/verify-rollout-DRCK5TDD.js +61 -0
- package/dist/whoami-command-STGINTXH.js +51 -0
- package/dist/workspace-2CLHU2LK.js +93 -0
- package/dist/workspace-binding-56PIIPCP.js +54 -0
- package/dist/workspace-command-JEXQETJD.js +535 -0
- package/dist/workspace-env-F2RFMSC5.js +70 -0
- package/dist/workspace-export-OJSH2HIW.js +21 -0
- package/dist/writable-VA7OISSK.js +25 -0
- package/dist/xano-ICFUSPFR.js +42 -0
- package/dist/xanosdk-import-GN42TO2B.js +56 -0
- package/dist/xanosdk-project-S6DXJONQ.js +41 -0
- package/dist/xdo-CxDr2Q1C.d.ts +1371 -0
- package/guides/README.md +33 -0
- package/guides/authoring.md +921 -0
- package/guides/cli.md +401 -0
- package/guides/codegen.md +177 -0
- package/guides/codes.md +404 -0
- package/guides/coverage.md +74 -0
- package/guides/deploying.md +1525 -0
- package/guides/environment.md +400 -0
- package/guides/marketplace.md +415 -0
- package/guides/module-contract.md +558 -0
- package/guides/object-kinds.md +433 -0
- package/guides/project-structure.md +43 -0
- package/guides/scaffold.md +351 -0
- package/guides/typed-frontend.md +242 -0
- package/llms/client.md +63 -0
- package/llms/errors.md +56 -0
- package/llms/fields.md +176 -0
- package/llms/filters.md +183 -0
- package/llms/kinds-agent-mcp.md +30 -0
- package/llms/kinds-core.md +100 -0
- package/llms/kinds-knowledge.md +20 -0
- package/llms/kinds-realtime.md +76 -0
- package/llms/lambda.md +94 -0
- package/llms/legacy.md +44 -0
- package/llms/lock.md +40 -0
- package/llms/object-kinds.md +34 -0
- package/llms/statements-calls.md +62 -0
- package/llms/statements-catalog.md +320 -0
- package/llms/statements-data.md +66 -0
- package/llms/statements-runtime.md +68 -0
- package/llms/tests.md +59 -0
- package/llms/toolchain.md +16 -0
- package/llms/triggers.md +36 -0
- package/llms/values.md +29 -0
- package/llms-full.txt +2085 -0
- package/llms.txt +493 -0
- package/manifest.json +11224 -0
- package/package.json +162 -0
- package/types/lambda-globals.d.ts +129 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LOCAL_ENGINE_HOME_ENV,
|
|
3
|
+
LOCAL_ENGINE_OVERRIDE_ENV,
|
|
4
|
+
MISSING_ARCHIVE,
|
|
5
|
+
SUPPORTED_PLATFORMS,
|
|
6
|
+
engineCacheDir,
|
|
7
|
+
engineOverrideFromEnv,
|
|
8
|
+
engineOverrideRefusal,
|
|
9
|
+
engineRunHome,
|
|
10
|
+
engineSourceRefusal,
|
|
11
|
+
expandArchivePath,
|
|
12
|
+
isTrustedEngineUrl,
|
|
13
|
+
legacyRuntimeDirs,
|
|
14
|
+
localEngineBinDir,
|
|
15
|
+
localEngineHome,
|
|
16
|
+
resolveEnginePlatform,
|
|
17
|
+
resolveEngineSource
|
|
18
|
+
} from "./chunk-AM4FKL4J.js";
|
|
19
|
+
import "./chunk-X2NL4KUO.js";
|
|
20
|
+
import "./chunk-PZ5AY32C.js";
|
|
21
|
+
export {
|
|
22
|
+
LOCAL_ENGINE_HOME_ENV,
|
|
23
|
+
LOCAL_ENGINE_OVERRIDE_ENV,
|
|
24
|
+
MISSING_ARCHIVE,
|
|
25
|
+
SUPPORTED_PLATFORMS,
|
|
26
|
+
engineCacheDir,
|
|
27
|
+
engineOverrideFromEnv,
|
|
28
|
+
engineOverrideRefusal,
|
|
29
|
+
engineRunHome,
|
|
30
|
+
engineSourceRefusal,
|
|
31
|
+
expandArchivePath,
|
|
32
|
+
isTrustedEngineUrl,
|
|
33
|
+
legacyRuntimeDirs,
|
|
34
|
+
localEngineBinDir,
|
|
35
|
+
localEngineHome,
|
|
36
|
+
resolveEnginePlatform,
|
|
37
|
+
resolveEngineSource
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=local-engine-config-5U3SC434.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEPLOY_FALLBACK_NOTE,
|
|
3
|
+
ensureProjectEngine,
|
|
4
|
+
explainUnsupportedEngineImport,
|
|
5
|
+
restartMismatchedEngine
|
|
6
|
+
} from "./chunk-XBKMWY7F.js";
|
|
7
|
+
import "./chunk-BAUZOWGX.js";
|
|
8
|
+
import "./chunk-6ELFRN3P.js";
|
|
9
|
+
import "./chunk-NA3PXMEF.js";
|
|
10
|
+
import "./chunk-APWXY5SL.js";
|
|
11
|
+
import "./chunk-2TFRR6JV.js";
|
|
12
|
+
import "./chunk-LPECSJ2J.js";
|
|
13
|
+
import "./chunk-AN6BL47T.js";
|
|
14
|
+
import "./chunk-3M4LFYNQ.js";
|
|
15
|
+
import "./chunk-AM4FKL4J.js";
|
|
16
|
+
import "./chunk-ZYJP6BOO.js";
|
|
17
|
+
import "./chunk-JTUKLCXS.js";
|
|
18
|
+
import "./chunk-XW6KISBB.js";
|
|
19
|
+
import "./chunk-AWQ7BQTQ.js";
|
|
20
|
+
import "./chunk-EUUUMY7J.js";
|
|
21
|
+
import "./chunk-YLDALTWZ.js";
|
|
22
|
+
import "./chunk-5FBYXK5P.js";
|
|
23
|
+
import "./chunk-LLNZGEFK.js";
|
|
24
|
+
import "./chunk-QXTKSOFI.js";
|
|
25
|
+
import "./chunk-X2NL4KUO.js";
|
|
26
|
+
import "./chunk-PTHVMXZI.js";
|
|
27
|
+
import "./chunk-UTI5G6OJ.js";
|
|
28
|
+
import "./chunk-2EZ3ZJZZ.js";
|
|
29
|
+
import "./chunk-5ZSO4T2G.js";
|
|
30
|
+
import "./chunk-TFFGOFVZ.js";
|
|
31
|
+
import "./chunk-36JUQZVQ.js";
|
|
32
|
+
import "./chunk-PZ5AY32C.js";
|
|
33
|
+
export {
|
|
34
|
+
DEPLOY_FALLBACK_NOTE,
|
|
35
|
+
ensureProjectEngine,
|
|
36
|
+
explainUnsupportedEngineImport,
|
|
37
|
+
restartMismatchedEngine
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=local-engine-deploy-PCQ4SNPB.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ENGINE_ENV_ALLOWLIST,
|
|
3
|
+
HANDSHAKE_TIMEOUT_MS,
|
|
4
|
+
LOGIN_LINK_TIMEOUT_MS,
|
|
5
|
+
MAX_HANDSHAKE_BYTES,
|
|
6
|
+
bootFailure,
|
|
7
|
+
cachedEngineEntry,
|
|
8
|
+
engineChildEnv,
|
|
9
|
+
engineExpiresEphemerals,
|
|
10
|
+
engineLogPath,
|
|
11
|
+
engineOwnLogs,
|
|
12
|
+
engineVersion,
|
|
13
|
+
engineVersionToken,
|
|
14
|
+
findOrphanedEngineProcesses,
|
|
15
|
+
listEngines,
|
|
16
|
+
mintEngineLoginLink,
|
|
17
|
+
resolveRecordedEngine,
|
|
18
|
+
startEngine,
|
|
19
|
+
stopAllEngines,
|
|
20
|
+
stopEngineNamed,
|
|
21
|
+
stopOrphanedEngineProcesses
|
|
22
|
+
} from "./chunk-BAUZOWGX.js";
|
|
23
|
+
import "./chunk-6ELFRN3P.js";
|
|
24
|
+
import "./chunk-NA3PXMEF.js";
|
|
25
|
+
import "./chunk-APWXY5SL.js";
|
|
26
|
+
import "./chunk-3M4LFYNQ.js";
|
|
27
|
+
import "./chunk-AM4FKL4J.js";
|
|
28
|
+
import "./chunk-ZYJP6BOO.js";
|
|
29
|
+
import "./chunk-JTUKLCXS.js";
|
|
30
|
+
import "./chunk-YLDALTWZ.js";
|
|
31
|
+
import "./chunk-LLNZGEFK.js";
|
|
32
|
+
import "./chunk-QXTKSOFI.js";
|
|
33
|
+
import "./chunk-X2NL4KUO.js";
|
|
34
|
+
import "./chunk-PTHVMXZI.js";
|
|
35
|
+
import "./chunk-UTI5G6OJ.js";
|
|
36
|
+
import "./chunk-2EZ3ZJZZ.js";
|
|
37
|
+
import "./chunk-5ZSO4T2G.js";
|
|
38
|
+
import "./chunk-TFFGOFVZ.js";
|
|
39
|
+
import "./chunk-36JUQZVQ.js";
|
|
40
|
+
import "./chunk-PZ5AY32C.js";
|
|
41
|
+
export {
|
|
42
|
+
ENGINE_ENV_ALLOWLIST,
|
|
43
|
+
HANDSHAKE_TIMEOUT_MS,
|
|
44
|
+
LOGIN_LINK_TIMEOUT_MS,
|
|
45
|
+
MAX_HANDSHAKE_BYTES,
|
|
46
|
+
bootFailure,
|
|
47
|
+
cachedEngineEntry,
|
|
48
|
+
engineChildEnv,
|
|
49
|
+
engineExpiresEphemerals,
|
|
50
|
+
engineLogPath,
|
|
51
|
+
engineOwnLogs,
|
|
52
|
+
engineVersion,
|
|
53
|
+
engineVersionToken,
|
|
54
|
+
findOrphanedEngineProcesses,
|
|
55
|
+
listEngines,
|
|
56
|
+
mintEngineLoginLink,
|
|
57
|
+
resolveRecordedEngine,
|
|
58
|
+
startEngine,
|
|
59
|
+
stopAllEngines,
|
|
60
|
+
stopEngineNamed,
|
|
61
|
+
stopOrphanedEngineProcesses
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=local-engine-process-EHTE5LLU.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LOCAL_ENGINE_STATE_FILE,
|
|
3
|
+
clearEngineRecord,
|
|
4
|
+
clearEngineRecordsNamed,
|
|
5
|
+
engineNameForProject,
|
|
6
|
+
getEngineRecord,
|
|
7
|
+
listEngineRecords,
|
|
8
|
+
localEngineStatePath,
|
|
9
|
+
markEngineFilled,
|
|
10
|
+
projectKey,
|
|
11
|
+
readLocalEngineState,
|
|
12
|
+
setEngineRecord
|
|
13
|
+
} from "./chunk-3M4LFYNQ.js";
|
|
14
|
+
import "./chunk-AM4FKL4J.js";
|
|
15
|
+
import "./chunk-ZYJP6BOO.js";
|
|
16
|
+
import "./chunk-LLNZGEFK.js";
|
|
17
|
+
import "./chunk-X2NL4KUO.js";
|
|
18
|
+
import "./chunk-PZ5AY32C.js";
|
|
19
|
+
export {
|
|
20
|
+
LOCAL_ENGINE_STATE_FILE,
|
|
21
|
+
clearEngineRecord,
|
|
22
|
+
clearEngineRecordsNamed,
|
|
23
|
+
engineNameForProject,
|
|
24
|
+
getEngineRecord,
|
|
25
|
+
listEngineRecords,
|
|
26
|
+
localEngineStatePath,
|
|
27
|
+
markEngineFilled,
|
|
28
|
+
projectKey,
|
|
29
|
+
readLocalEngineState,
|
|
30
|
+
setEngineRecord
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=local-engine-state-A4FTRFAF.js.map
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalizeEngineVersion,
|
|
3
|
+
resolveEngineRelease
|
|
4
|
+
} from "./chunk-APWXY5SL.js";
|
|
5
|
+
import {
|
|
6
|
+
compareSemver,
|
|
7
|
+
parseSemver
|
|
8
|
+
} from "./chunk-2TFRR6JV.js";
|
|
9
|
+
import {
|
|
10
|
+
localEngineHome
|
|
11
|
+
} from "./chunk-AM4FKL4J.js";
|
|
12
|
+
import "./chunk-YLDALTWZ.js";
|
|
13
|
+
import {
|
|
14
|
+
atomicWrite
|
|
15
|
+
} from "./chunk-LLNZGEFK.js";
|
|
16
|
+
import "./chunk-QXTKSOFI.js";
|
|
17
|
+
import {
|
|
18
|
+
envFlagSet
|
|
19
|
+
} from "./chunk-X2NL4KUO.js";
|
|
20
|
+
import "./chunk-PTHVMXZI.js";
|
|
21
|
+
import "./chunk-UTI5G6OJ.js";
|
|
22
|
+
import "./chunk-2EZ3ZJZZ.js";
|
|
23
|
+
import "./chunk-5ZSO4T2G.js";
|
|
24
|
+
import "./chunk-TFFGOFVZ.js";
|
|
25
|
+
import "./chunk-36JUQZVQ.js";
|
|
26
|
+
import "./chunk-PZ5AY32C.js";
|
|
27
|
+
|
|
28
|
+
// src/deploy/local-engine-update-check.ts
|
|
29
|
+
import { mkdirSync, readFileSync } from "fs";
|
|
30
|
+
import { join, resolve } from "path";
|
|
31
|
+
var UPDATE_CHECK_TTL_MS = 60 * 60 * 1e3;
|
|
32
|
+
var UPDATE_CHECK_TIMEOUT_MS = 3e3;
|
|
33
|
+
var UPDATE_CHECK_FAILURE_BACKOFF_MS = 15 * 60 * 1e3;
|
|
34
|
+
var latestPath = (env) => join(localEngineHome(env), "latest.json");
|
|
35
|
+
var isObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
36
|
+
function readLatest(env) {
|
|
37
|
+
try {
|
|
38
|
+
const parsed = JSON.parse(readFileSync(latestPath(env), "utf8"));
|
|
39
|
+
if (!isObject(parsed)) return {};
|
|
40
|
+
const out = {};
|
|
41
|
+
if (isObject(parsed.platforms)) {
|
|
42
|
+
out.platforms = {};
|
|
43
|
+
for (const [platform, entry] of Object.entries(parsed.platforms)) {
|
|
44
|
+
if (!isObject(entry)) continue;
|
|
45
|
+
const kept = {};
|
|
46
|
+
if (typeof entry.version === "string" && typeof entry.checkedAt === "number") {
|
|
47
|
+
kept.version = entry.version;
|
|
48
|
+
kept.checkedAt = entry.checkedAt;
|
|
49
|
+
}
|
|
50
|
+
if (typeof entry.failedAt === "number") kept.failedAt = entry.failedAt;
|
|
51
|
+
if (Object.keys(kept).length > 0) out.platforms[platform] = kept;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (isObject(parsed.declined)) {
|
|
55
|
+
out.declined = {};
|
|
56
|
+
for (const [key, v] of Object.entries(parsed.declined)) if (typeof v === "string") out.declined[key] = v;
|
|
57
|
+
}
|
|
58
|
+
return out;
|
|
59
|
+
} catch {
|
|
60
|
+
return {};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function writeLatest(env, file) {
|
|
64
|
+
mkdirSync(localEngineHome(env), { recursive: true, mode: 448 });
|
|
65
|
+
atomicWrite(latestPath(env), JSON.stringify(file, null, 2) + "\n", { mode: 384 });
|
|
66
|
+
}
|
|
67
|
+
function optedOut(env) {
|
|
68
|
+
return envFlagSet("XANOSDK_NO_UPDATE_CHECK", env) || envFlagSet("NO_UPDATE_NOTIFIER", env);
|
|
69
|
+
}
|
|
70
|
+
async function withDeadline(fetch, timeoutMs, lookup) {
|
|
71
|
+
const base = fetch ?? ((url, init) => globalThis.fetch(url, init));
|
|
72
|
+
const deadline = new AbortController();
|
|
73
|
+
const signalled = (url, init) => base(url, { ...init, signal: init?.signal ? AbortSignal.any([init.signal, deadline.signal]) : deadline.signal });
|
|
74
|
+
let timer;
|
|
75
|
+
const timeout = new Promise((_, reject) => {
|
|
76
|
+
timer = setTimeout(() => {
|
|
77
|
+
const err = new Error("engine update check timed out");
|
|
78
|
+
deadline.abort(err);
|
|
79
|
+
reject(err);
|
|
80
|
+
}, timeoutMs);
|
|
81
|
+
timer.unref?.();
|
|
82
|
+
});
|
|
83
|
+
try {
|
|
84
|
+
return await Promise.race([lookup(signalled), timeout]);
|
|
85
|
+
} finally {
|
|
86
|
+
clearTimeout(timer);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
async function latestKnownVersion(opts) {
|
|
90
|
+
const env = opts.env ?? process.env;
|
|
91
|
+
if (optedOut(env)) return void 0;
|
|
92
|
+
const now = opts.now ?? Date.now();
|
|
93
|
+
let cached;
|
|
94
|
+
try {
|
|
95
|
+
const entry = readLatest(env).platforms?.[opts.platform];
|
|
96
|
+
cached = entry?.version;
|
|
97
|
+
if (entry?.checkedAt !== void 0 && now - entry.checkedAt < UPDATE_CHECK_TTL_MS) return cached;
|
|
98
|
+
if (entry?.failedAt !== void 0 && now - entry.failedAt < UPDATE_CHECK_FAILURE_BACKOFF_MS) return cached;
|
|
99
|
+
const { version } = await withDeadline(
|
|
100
|
+
opts.fetch,
|
|
101
|
+
opts.timeoutMs ?? UPDATE_CHECK_TIMEOUT_MS,
|
|
102
|
+
(fetch) => resolveEngineRelease({ platform: opts.platform, env, fetch })
|
|
103
|
+
);
|
|
104
|
+
writePlatform(env, opts.platform, () => ({ version, checkedAt: now }));
|
|
105
|
+
return version;
|
|
106
|
+
} catch {
|
|
107
|
+
writePlatform(env, opts.platform, (prev) => ({ ...prev, failedAt: now }));
|
|
108
|
+
return cached;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function writePlatform(env, platform, next) {
|
|
112
|
+
try {
|
|
113
|
+
const file = readLatest(env);
|
|
114
|
+
writeLatest(env, { ...file, platforms: { ...file.platforms, [platform]: next(file.platforms?.[platform]) } });
|
|
115
|
+
} catch {
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function recordDeclined(projectDir, version, env = process.env) {
|
|
119
|
+
try {
|
|
120
|
+
const file = readLatest(env);
|
|
121
|
+
writeLatest(env, { ...file, declined: { ...file.declined, [resolve(projectDir)]: normalizeEngineVersion(version) } });
|
|
122
|
+
} catch {
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
function declinedVersion(projectDir, env = process.env) {
|
|
126
|
+
return readLatest(env).declined?.[resolve(projectDir)];
|
|
127
|
+
}
|
|
128
|
+
function decideUpdate(input) {
|
|
129
|
+
if (input.latest === void 0) return "keep";
|
|
130
|
+
const pin = parseSemver(input.pin);
|
|
131
|
+
const latest = parseSemver(input.latest);
|
|
132
|
+
if (!pin || !latest || compareSemver(latest, pin) <= 0) return "keep";
|
|
133
|
+
const declined = input.declined === void 0 ? null : parseSemver(input.declined);
|
|
134
|
+
const alreadyDeclined = declined !== null && compareSemver(declined, latest) === 0;
|
|
135
|
+
return input.interactive && !alreadyDeclined ? "offer" : "notify";
|
|
136
|
+
}
|
|
137
|
+
function isInteractive(opts) {
|
|
138
|
+
const env = opts.env ?? process.env;
|
|
139
|
+
const stdin = opts.stdin ?? process.stdin;
|
|
140
|
+
const stderr = opts.stderr ?? process.stderr;
|
|
141
|
+
return !opts.machineOutput && !env.CI && stdin.isTTY === true && stderr.isTTY === true;
|
|
142
|
+
}
|
|
143
|
+
var withV = (v) => v.trim().startsWith("v") ? v.trim() : `v${v.trim()}`;
|
|
144
|
+
function updatePromptText(pin, latest) {
|
|
145
|
+
return `Engine ${withV(latest)} is available (this project is pinned to ${withV(pin)}). Update now? The engine restarts empty, so local rows are dropped and re-seeded, even with --keep-data.`;
|
|
146
|
+
}
|
|
147
|
+
function updateNoticeText(pin, latest) {
|
|
148
|
+
return `Engine ${withV(latest)} is available (pinned: ${withV(pin)}). Run \`xanosdk local-engine update\` to move to it.`;
|
|
149
|
+
}
|
|
150
|
+
export {
|
|
151
|
+
UPDATE_CHECK_FAILURE_BACKOFF_MS,
|
|
152
|
+
UPDATE_CHECK_TIMEOUT_MS,
|
|
153
|
+
UPDATE_CHECK_TTL_MS,
|
|
154
|
+
decideUpdate,
|
|
155
|
+
declinedVersion,
|
|
156
|
+
isInteractive,
|
|
157
|
+
latestKnownVersion,
|
|
158
|
+
recordDeclined,
|
|
159
|
+
updateNoticeText,
|
|
160
|
+
updatePromptText
|
|
161
|
+
};
|
|
162
|
+
//# sourceMappingURL=local-engine-update-check-6L645VBL.js.map
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CANONICAL_PAYLOAD_KEYS,
|
|
3
|
+
DESTINATION_KEY,
|
|
4
|
+
LOCK_PAYLOAD_KEYS,
|
|
5
|
+
LOCK_VERSION,
|
|
6
|
+
LockEntryNotFoundError,
|
|
7
|
+
LockImportConflictError,
|
|
8
|
+
LockRenameConflictError,
|
|
9
|
+
NotABundleError,
|
|
10
|
+
UnknownLockKindError,
|
|
11
|
+
WORKSPACE_KEY,
|
|
12
|
+
acceptedLockKinds,
|
|
13
|
+
adoptFromBundle,
|
|
14
|
+
appNamesByGuid,
|
|
15
|
+
checkRenameTarget,
|
|
16
|
+
codePinnedTables,
|
|
17
|
+
createLockContext,
|
|
18
|
+
displayLockKey,
|
|
19
|
+
emptyLock,
|
|
20
|
+
fileSpellingNote,
|
|
21
|
+
identityNamesByGuid,
|
|
22
|
+
lockKey,
|
|
23
|
+
lockNameForObject,
|
|
24
|
+
mergeObserved,
|
|
25
|
+
mintCanonical,
|
|
26
|
+
normalizeLockKey,
|
|
27
|
+
parseLock,
|
|
28
|
+
parseLockReport,
|
|
29
|
+
recordObserved,
|
|
30
|
+
renameLockEntry,
|
|
31
|
+
resolvePayloadKey,
|
|
32
|
+
sdkKindName2 as sdkKindName,
|
|
33
|
+
serializeLock,
|
|
34
|
+
toolsetKindsFromLock,
|
|
35
|
+
toolsetKindsFromPayload,
|
|
36
|
+
validateLockModel,
|
|
37
|
+
withObjects,
|
|
38
|
+
withoutGuidSources
|
|
39
|
+
} from "./chunk-6MR5TI5V.js";
|
|
40
|
+
import "./chunk-5ZSO4T2G.js";
|
|
41
|
+
import "./chunk-XNCP4KYO.js";
|
|
42
|
+
import "./chunk-NZOWWHU5.js";
|
|
43
|
+
import "./chunk-4BW2SG2N.js";
|
|
44
|
+
import "./chunk-CIMQZRRE.js";
|
|
45
|
+
import "./chunk-OHX6MIUZ.js";
|
|
46
|
+
import "./chunk-36JUQZVQ.js";
|
|
47
|
+
import "./chunk-PZ5AY32C.js";
|
|
48
|
+
export {
|
|
49
|
+
CANONICAL_PAYLOAD_KEYS,
|
|
50
|
+
DESTINATION_KEY,
|
|
51
|
+
LOCK_PAYLOAD_KEYS,
|
|
52
|
+
LOCK_VERSION,
|
|
53
|
+
LockEntryNotFoundError,
|
|
54
|
+
LockImportConflictError,
|
|
55
|
+
LockRenameConflictError,
|
|
56
|
+
NotABundleError,
|
|
57
|
+
UnknownLockKindError,
|
|
58
|
+
WORKSPACE_KEY,
|
|
59
|
+
acceptedLockKinds,
|
|
60
|
+
adoptFromBundle,
|
|
61
|
+
appNamesByGuid,
|
|
62
|
+
checkRenameTarget,
|
|
63
|
+
codePinnedTables,
|
|
64
|
+
createLockContext,
|
|
65
|
+
displayLockKey,
|
|
66
|
+
emptyLock,
|
|
67
|
+
fileSpellingNote,
|
|
68
|
+
identityNamesByGuid,
|
|
69
|
+
lockKey,
|
|
70
|
+
lockNameForObject,
|
|
71
|
+
mergeObserved,
|
|
72
|
+
mintCanonical,
|
|
73
|
+
normalizeLockKey,
|
|
74
|
+
parseLock,
|
|
75
|
+
parseLockReport,
|
|
76
|
+
recordObserved,
|
|
77
|
+
renameLockEntry,
|
|
78
|
+
resolvePayloadKey,
|
|
79
|
+
sdkKindName,
|
|
80
|
+
serializeLock,
|
|
81
|
+
toolsetKindsFromLock,
|
|
82
|
+
toolsetKindsFromPayload,
|
|
83
|
+
validateLockModel,
|
|
84
|
+
withObjects,
|
|
85
|
+
withoutGuidSources
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=lock-MRRHW5GS.js.map
|