@xanots/sdk 0.0.3 → 0.0.4
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 +80 -0
- package/README.md +34 -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-7DKX2SPN.js → chunk-ACQCK4DT.js} +4 -4
- package/dist/{chunk-XQ22GLYS.js → chunk-AJ7JQ4OU.js} +5 -5
- package/dist/{chunk-ZO3HJOCJ.js → chunk-ALNQCWAW.js} +2 -2
- 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-3NFUWXOC.js → chunk-DUC3PXDG.js} +142 -45
- package/dist/{chunk-HQ2CBRVI.js → chunk-EAIR6VUL.js} +10 -8
- package/dist/chunk-ERQZFWIW.js +22 -0
- package/dist/{chunk-TQUO2OXY.js → chunk-FN4OQT2J.js} +4 -4
- package/dist/{chunk-6USV65XA.js → chunk-KGNJM4LN.js} +2 -2
- package/dist/{chunk-HJPTWBLH.js → chunk-MFIHIS6B.js} +2 -2
- package/dist/{chunk-F6JCFRKO.js → chunk-PXXLBXOP.js} +2 -2
- package/dist/{chunk-YZ4GU6F5.js → chunk-QUUB7HYK.js} +5 -838
- package/dist/{chunk-W2G2WPTB.js → chunk-SWIXWJIY.js} +3 -3
- package/dist/{chunk-76QBEIGO.js → chunk-T4XPCJRF.js} +3 -2
- package/dist/chunk-T6N3VMMO.js +173 -0
- package/dist/{chunk-2V4YE6QC.js → chunk-VKD3EBKG.js} +112 -21
- package/dist/{chunk-BT2CSEC5.js → chunk-VWGJQTNA.js} +3 -3
- package/dist/chunk-WGDAOOXG.js +845 -0
- 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-DYCLVQXW.js → chunk-YYSJAAJM.js} +25 -1
- package/dist/{chunk-P3TTMWUP.js → chunk-ZOYMZZ3S.js} +8 -1
- package/dist/chunk-ZSYZTGJH.js +81 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.js +8 -8
- package/dist/{codegen-command-FIADGXRN.js → codegen-command-Z7WQMOJ7.js} +21 -20
- package/dist/{completion-BKAFCZBE.js → completion-4GYN752B.js} +2 -2
- package/dist/{deploy-command-4R6BYC6G.js → deploy-command-M2S4HHLC.js} +26 -26
- package/dist/{env-target-XWS2ZZ2Y.js → env-target-GSFCYHKZ.js} +6 -6
- package/dist/{ephemeral-command-JL4TPIRQ.js → ephemeral-command-6WJW7LP6.js} +24 -24
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -7
- package/dist/init-command-GJUPWTKA.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-7IH7RSSP.js} +9 -9
- package/dist/{login-command-ACJF6KWQ.js → login-command-QM5SBBI2.js} +2 -2
- package/dist/{logout-command-MX3MJS5U.js → logout-command-THPASOHM.js} +2 -2
- package/dist/{loop-SAWAOUFO.js → loop-7SAIGRCZ.js} +3 -3
- package/dist/{marketplace-command-UVV3XAOL.js → marketplace-command-463DT7O7.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-EUWPVWED.js} +6 -6
- package/dist/{release-command-HZUY2XZX.js → release-command-M4CVNTWL.js} +25 -25
- package/dist/{sandbox-details-command-HJE5SPVG.js → sandbox-details-command-BRII3QHG.js} +5 -5
- package/dist/{sandbox-export-command-QCJY4GMV.js → sandbox-export-command-PCZ5FL4U.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-U4G5Y3UM.js} +10 -10
- package/dist/upgrade-command-CKJ4BS2P.js +177 -0
- package/dist/{validate-command-KDGH537H.js → validate-command-S5N37JRP.js} +12 -12
- package/dist/{workspace-command-ICSI6PKO.js → workspace-command-RALSEJSW.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 +191 -0
- package/guides/codegen.md +83 -0
- package/guides/coverage.md +67 -0
- package/guides/deploying.md +340 -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 +26 -3
- package/package.json +5 -2
- package/dist/.build-fingerprint +0 -1
- package/dist/chunk-WUSKBXXD.js +0 -25
- package/dist/init-command-LOK75W64.js +0 -29
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ef as Condition, eg as FilterResults, eh as ElementResult, ei as SameArrayResult, ej as GroupedArrayResult, ek as AgentResultOf, b3 as AddonDef, el as OutputPath, cZ as TableDef, em as QualifiedCol, bx as DbEval, cY as SortDirective, bz as DbWhere, en as OutputRoot, bM as InferRow, eo as AggregateRow, ep as EvalFields, eq as OutputAuthored, cb as MicroserviceDef, ah as generated, F as FunctionDef, co as QueryHandle } from './store-BJONDJoZ.js';
|
|
2
|
+
export { b4 as AddonXdo, A as AdoptChange, a as AdoptResult, b5 as AgentDef, b6 as AgentHandle, b7 as AgentOutput, b8 as AgentSettingsXdo, b9 as AgentXdo, ba as AmbientBindings, bb as AnthropicLlm, bc as ApiGroupDef, bd as ApiGroupXdo, be as AuthRef, bf as Authored, B as Bundle, b as BundlePayload, c as BundleType, bg as Capturable, b0 as CaptureRecord, a_ as CaptureValue, bh as ChannelConversationDef, bi as ChannelDeliveryDef, bj as ChannelDeliveryGuarantee, bk as ChannelPublishDef, bl as ChannelPublishWho, bm as ChannelRateLimitDef, bn as ColumnDef, bo as Comparison, bp as ContainerEnv, bq as ContainerPort, br as ContainerResources, bs as ContainerVolume, bt as CorsConfig, bu as CorsMode, bv as DatabaseActions, bw as DatabaseInputs, by as DbEvalFilter, bA as ErrorInputs, bB as ExceptionPolicy, bC as FieldAccessor, bD as FieldRule, bE as GoogleGenAiLlm, bF as HistoryInput, bG as HttpVerb, bH as IndexDef, bI as IndexLang, bJ as IndexOp, bK as IndexType, bL as IndexXdo, bN as InputDescriptor, bO as InputOptions, bP as IteratingBindings, bQ as KnowledgeDef, bR as KnowledgeDirSource, bS as KnowledgeFileSource, bT as KnowledgeMode, bU as KnowledgeType, bV as LAMBDA_BINDINGS, bW as LAMBDA_CODE_FILTERS, bX as LAMBDA_GLOBALS, bY as LAMBDA_MODULE_GLOBALS, bZ as LAMBDA_STATEMENTS, b1 as LambdaBindings, b_ as LambdaBody, aZ as LambdaOptions, a$ as LambdaSurface, b$ as LlmPrompt, c0 as LlmProvider, c1 as LlmSettings, g as LockEntry, h as LockExportContext, i as LockFile, M as Manifest, j as ManifestField, k as ManifestKind, l as ManifestStatement, c2 as ManifestValue, c3 as McpPathOptions, c4 as McpServerDef, c5 as McpServerHandle, c6 as McpServerXdo, m as MergeResult, c7 as MessageDeliverTo, c8 as MicroserviceChart, c9 as MicroserviceConfig, ca as MicroserviceContainer, cc as MicroserviceDeployment, cd as MicroserviceIngress, ce as MicroserviceRegistryAuth, cf as MicroserviceVolume, cg as MicroserviceXdo, ch as MiddlewareAttach, ci as MiddlewareAttachEntry, cj as MiddlewareDef, ck as MiddlewareXdo, O as ObjectKind, cl as OpenAiLlm, n as PayloadArrayKey, cm as QueryDef, cn as QueryFilterName, cp as QueryResponseType, cq as QueryXdo, cr as RealtimeActions, cs as RealtimeChannelActions, ct as RealtimeChannelDef, cu as RealtimeChannelHandle, cv as RealtimeChannelRef, cw as RealtimeChannelTriggerInputs, cx as RealtimeChannelXdo, cy as RealtimeClient, cz as RealtimeInputs, cA as RealtimeMessageDef, cB as RealtimeMessageXdo, cC as RealtimeServerActions, cD as RealtimeServerDef, cE as RealtimeServerHandle, cF as RealtimeServerRef, cG as RealtimeServerTriggerInputs, cH as RealtimeServerXdo, cI as RealtimeUrlOptions, R as RenameResult, cJ as ResultStrategy, cK as Route, cL as RowOf, cM as ScheduleDef, cN as SchemaCols, cO as SchemaDef, cP as SearchComparison, cQ as SearchGroup, cR as SearchNode, cS as SearchOp, cT as SearchParamValue, cU as SeedFileSource, cV as SeedRow, cW as SeedSource, cX as SortDir, S as StatementSpec, c_ as TableXdo, c$ as TaskDef, d0 as TaskXdo, d1 as ToolDef, d2 as ToolXdo, d3 as ToolsetBaseDef, d4 as ToolsetBaseXdo, d5 as ToolsetInputs, d6 as ToolsetToolEntry, d7 as ToolsetToolRef, d8 as TriggerDef, d9 as TriggerObjType, da as TriggerXdo, db as ViewDef, dc as ViewXdo, dd as WorkflowTestDef, de as WorkflowTestXdo, df as WorkspaceActions, dg as WorkspaceConfigDef, dh as WorkspaceConfigXdo, di as WorkspaceHistoryDef, dj as WorkspaceHistoryXdo, dk as WorkspaceInputs, dl as WorkspaceMiddlewareDef, dm as WorkspaceMiddlewareXdo, b2 as Xano, dn as XanoFreeLlm, dp as addon, dq as agent, dr as agentTrigger, ds as and, dt as apiGroup, du as assertLambdaBody, dv as bitwiseAnd, dw as bitwiseOr, dx as bitwiseXor, dy as cmp, dz as defineFunction, dA as emit, dB as emitBundle, dC as errorTrigger, dD as expr, dE as fl, dF as input, dG as knowledge, dH as knowledgeDir, dI as knowledgeFile, er as lam, dJ as mathAdd, dK as mathDiv, dL as mathMul, dM as mathSub, dN as mcpServer, dO as mcpServerTrigger, dP as microservice, dQ as middleware, dR as mixed, dS as objectEntries, dT as objectKeys, dU as objectValues, dV as or, dW as query, dX as realtimeChannel, dY as realtimeChannelTrigger, dZ as realtimeMessage, d_ as realtimeServer, d$ as realtimeServerTrigger, e0 as realtimeTrigger, e1 as resetLockOverrides, e2 as seedFile, e3 as seedLockOverrides, e4 as table, e5 as tableTrigger, e6 as task, e7 as textAppend, e8 as textPrepend, e9 as toSearchParams, ea as tool, eb as workflowTest, ec as workspace, ed as workspaceConfig, ee as workspaceTrigger } from './store-BJONDJoZ.js';
|
|
3
3
|
import { a2 as StatementAnnotations, a1 as Statement, y as FromFieldMap, w as FilterXdo, V as Value, S as ObjValue, aH as Prettify, x as FilteredValue, X as RefValue, aM as AsShapeBrand, aj as XanoFileRef, a4 as StatementOptions, T as ObjectRef, P as ObjInput, F as FunctionXdo } from './response-CVAE2kMj.js';
|
|
4
4
|
export { B as BrandOpts, c as BrandValue, C as CacheXdo, f as CaughtField, h as ConditionalContext, j as ConditionalElifContext, D as DecimalMethod, E as EmailMethod, k as ExprGroup, l as ExprNode, m as ExprOperand, n as ExprStatement, o as FieldAccess, p as FieldDescriptor, q as FieldMap, s as FieldOpts, u as FieldStyleType, v as FieldXdo, H as HistoryXdo, I as InputXdo, z as IntMethod, L as ListBoundsXdo, M as MethodArg, A as MethodOpts, G as MethodSpec, J as MethodXdo, K as MockEntry, N as MockMap, O as MockXdo, Q as ObjMember, U as PasswordMethod, W as PersistedFunctionRow, Y as RegexValue, Z as ResponseDef, _ as ResultItemXdo, $ as RowFromFieldMap, a0 as StackItemXdo, a3 as StatementInputXdo, a5 as TAGS, a6 as TEST_EXPECT_TYPES, a7 as TableRefMethod, a8 as Tag, a9 as TaggedValue, aa as TestDef, ab as TestExpect, ac as TestExpectType, ad as TestXdo, ae as TextFormat, af as TextMethod, ag as TypeBrand, ah as ValueOf, ai as VectorMethod, ak as XanoGeoPosition, al as XanoGeoValue, am as annotate, an as auth, ao as c, ap as caught, aq as col, ar as env, as as expect, at as f, au as filter, av as inp, aw as obj, ax as out, ay as ref, az as resp, aA as setting, aB as statements, aC as sys, aD as test, aE as toolset, aF as withFilters } from './response-CVAE2kMj.js';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineFunction,
|
|
3
3
|
fileUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XHEXOES3.js";
|
|
5
5
|
import {
|
|
6
6
|
TEST_EXPECT_TYPES,
|
|
7
7
|
expect
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PXXLBXOP.js";
|
|
9
9
|
import {
|
|
10
10
|
addon,
|
|
11
11
|
agent,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
task,
|
|
18
18
|
tool,
|
|
19
19
|
workflowTest
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FN4OQT2J.js";
|
|
21
21
|
import {
|
|
22
22
|
actionCall,
|
|
23
23
|
actionPackageCall,
|
|
@@ -100,11 +100,11 @@ import {
|
|
|
100
100
|
workflowTestCall,
|
|
101
101
|
workspaceConfig,
|
|
102
102
|
workspaceTrigger
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-CYJ7R3AD.js";
|
|
104
104
|
import {
|
|
105
105
|
Xano,
|
|
106
106
|
workspace
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-BPEEGJJA.js";
|
|
108
108
|
import {
|
|
109
109
|
LAMBDA_BINDINGS,
|
|
110
110
|
LAMBDA_CODE_FILTERS,
|
|
@@ -129,6 +129,9 @@ import {
|
|
|
129
129
|
fl,
|
|
130
130
|
inp,
|
|
131
131
|
input,
|
|
132
|
+
knowledge,
|
|
133
|
+
knowledgeDir,
|
|
134
|
+
knowledgeFile,
|
|
132
135
|
lam,
|
|
133
136
|
mixed,
|
|
134
137
|
obj,
|
|
@@ -145,7 +148,7 @@ import {
|
|
|
145
148
|
toSearchParams,
|
|
146
149
|
toolset,
|
|
147
150
|
withFilters
|
|
148
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-YUPQOLFX.js";
|
|
149
152
|
import "./chunk-WHOJWOSV.js";
|
|
150
153
|
import {
|
|
151
154
|
annotate,
|
|
@@ -154,7 +157,7 @@ import {
|
|
|
154
157
|
import {
|
|
155
158
|
resetLockOverrides,
|
|
156
159
|
seedLockOverrides
|
|
157
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-YUBJLB6G.js";
|
|
158
161
|
export {
|
|
159
162
|
LAMBDA_BINDINGS,
|
|
160
163
|
LAMBDA_CODE_FILTERS,
|
|
@@ -236,6 +239,9 @@ export {
|
|
|
236
239
|
inp,
|
|
237
240
|
input,
|
|
238
241
|
ipLookup,
|
|
242
|
+
knowledge,
|
|
243
|
+
knowledgeDir,
|
|
244
|
+
knowledgeFile,
|
|
239
245
|
lam,
|
|
240
246
|
mathAdd,
|
|
241
247
|
mathDiv,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
projectShellFiles,
|
|
3
|
+
runInitCommand,
|
|
4
|
+
sanitizeAppName
|
|
5
|
+
} from "./chunk-EAIR6VUL.js";
|
|
6
|
+
import {
|
|
7
|
+
resolveAiFlags
|
|
8
|
+
} from "./chunk-7SISR3CS.js";
|
|
9
|
+
import "./chunk-ZSYZTGJH.js";
|
|
10
|
+
import "./chunk-WGDAOOXG.js";
|
|
11
|
+
import "./chunk-QUUB7HYK.js";
|
|
12
|
+
import "./chunk-6DHJVLYP.js";
|
|
13
|
+
import "./chunk-DUC3PXDG.js";
|
|
14
|
+
import "./chunk-KGNJM4LN.js";
|
|
15
|
+
import "./chunk-MFIHIS6B.js";
|
|
16
|
+
import "./chunk-GNPVYOPB.js";
|
|
17
|
+
import "./chunk-EZG76F7R.js";
|
|
18
|
+
import "./chunk-BPEEGJJA.js";
|
|
19
|
+
import "./chunk-YYSJAAJM.js";
|
|
20
|
+
import "./chunk-YUPQOLFX.js";
|
|
21
|
+
import "./chunk-WHOJWOSV.js";
|
|
22
|
+
import "./chunk-5XZ744TS.js";
|
|
23
|
+
import "./chunk-YUBJLB6G.js";
|
|
24
|
+
export {
|
|
25
|
+
projectShellFiles,
|
|
26
|
+
resolveAiFlags,
|
|
27
|
+
runInitCommand,
|
|
28
|
+
sanitizeAppName
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=init-command-GJUPWTKA.js.map
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as FunctionXdo } from './response-CVAE2kMj.js';
|
|
2
2
|
export { a as FIELD_METHODS, R as REFERENCEABLE_KINDS, d as deriveGuid, e as encodeResponse, b as encodeStatement, g as getStatementFactory, i as isRegisteredStatement, r as resolveRef, t as toNestedFields } from './response-CVAE2kMj.js';
|
|
3
|
-
import { S as StatementSpec, F as FunctionDef, O as ObjectKind } from './store-
|
|
4
|
-
export { A as AdoptChange, a as AdoptResult, B as Bundle, b as BundlePayload, c as BundleType, d as FILTER_NAMES, G as GENERATED_STATEMENT_NAMES, L as LLMS_TXT,
|
|
3
|
+
import { S as StatementSpec, F as FunctionDef, O as ObjectKind } from './store-BJONDJoZ.js';
|
|
4
|
+
export { A as AdoptChange, a as AdoptResult, B as Bundle, b as BundlePayload, c as BundleType, d as FILTER_NAMES, G as GENERATED_STATEMENT_NAMES, K as KNOWLEDGE_DIR, e as KNOWLEDGE_FILE, L as LLMS_TXT, f as LOCK_VERSION, g as LockEntry, h as LockExportContext, i as LockFile, M as Manifest, j as ManifestField, k as ManifestKind, l as ManifestStatement, m as MergeResult, P as PAYLOAD_ARRAY_KEYS, n as PayloadArrayKey, Q as QUERY_EXPRESSION_FILTERS, R as RenameResult, T as TOTAL_OBJECT_KINDS, V as VECTOR_FILTERS, W as WORKSPACE_KEY, o as addonKind, p as adoptFromBundle, q as agentKind, r as apiGroupKind, s as buildBundle, t as buildManifest, u as buildMiddlewareBlock, v as buildWorkspaceHistory, w as calcSignatureJson, x as channelPathParams, y as createLockContext, z as declaredServicePorts, C as emptyLock, D as encodeAddon, E as encodeAgent, H as encodeApiGroup, I as encodeColumn, J as encodeContainerHistory, N as encodeFromSpec, U as encodeHistory, X as encodeIndex, Y as encodeKnowledge, Z as encodeMcpServer, _ as encodeMicroservice, $ as encodeMiddleware, a0 as encodeMiddlewareEntry, a1 as encodeMiddlewareList, a2 as encodeObject, a3 as encodeQuery, a4 as encodeRealtimeChannel, a5 as encodeRealtimeMessage, a6 as encodeRealtimeServer, a7 as encodeSchedule, a8 as encodeTable, a9 as encodeTask, aa as encodeTool, ab as encodeToolRefs, ac as encodeToolsetBase, ad as encodeTrigger, ae as encodeView, af as encodeWorkflowTest, ag as encodeWorkspaceConfig, ah as generatedStatements, ai as getKind, aj as getLockedCanonical, ak as getLockedGuid, al as isKnowledgeDirSource, am as isKnowledgeFileSource, an as isLockSeeded, ao as isQueryExpressionFilter, ap as isRegisteredKind, aq as knowledgeKind, ar as lockKey, as as mcpServerKind, at as mergeObserved, au as microserviceKind, av as middlewareKind, aw as mintCanonical, ax as parseLock, ay as phpJsonEncode, az as queryKind, aA as realtimeChannelGuid, aB as realtimeChannelKind, aC as realtimeMessageGuid, aD as realtimeMessageKind, aE as realtimeServerKind, aF as recordObserved, aG as registerKind, aH as registerSpec, aI as registeredKinds, aJ as renameLockEntry, aK as renderDocs, aL as renderLlmsTxt, aM as resolveAuthRef, aN as resolvePayloadKey, aO as resolveRealtimeServerCanonical, aP as resolveToolsetCanonical, aQ as serializeBundle, aR as serializeLock, aS as tableKind, aT as taskKind, aU as toolKind, aV as triggerKind, aW as validateLockModel, aX as workflowTestKind, aY as workspaceKind } from './store-BJONDJoZ.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* AUTO-GENERATED by scripts/codegen.ts — DO NOT EDIT BY HAND.
|
package/dist/internal.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
taskKind,
|
|
34
34
|
toolKind,
|
|
35
35
|
workflowTestKind
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FN4OQT2J.js";
|
|
37
37
|
import {
|
|
38
38
|
GENERATED_SPECS,
|
|
39
39
|
GENERATED_STATEMENT_NAMES,
|
|
@@ -55,18 +55,20 @@ import {
|
|
|
55
55
|
registerSpec,
|
|
56
56
|
triggerKind,
|
|
57
57
|
workspaceKind
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-CYJ7R3AD.js";
|
|
59
59
|
import {
|
|
60
60
|
COMMANDS,
|
|
61
61
|
FLAGS,
|
|
62
62
|
GLOBAL_FLAGS,
|
|
63
63
|
flagKey,
|
|
64
64
|
flagSummary
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-YYSJAAJM.js";
|
|
66
66
|
import {
|
|
67
67
|
DECODE_ONLY_STATEMENTS,
|
|
68
68
|
FILTER_NAMES,
|
|
69
69
|
FILTER_SPECS,
|
|
70
|
+
KNOWLEDGE_DIR,
|
|
71
|
+
KNOWLEDGE_FILE,
|
|
70
72
|
LAMBDA_BINDINGS,
|
|
71
73
|
LAMBDA_GLOBALS,
|
|
72
74
|
LAMBDA_MODULE_GLOBALS,
|
|
@@ -83,6 +85,7 @@ import {
|
|
|
83
85
|
encodeFunction,
|
|
84
86
|
encodeHistory,
|
|
85
87
|
encodeIndex,
|
|
88
|
+
encodeKnowledge,
|
|
86
89
|
encodeMiddlewareEntry,
|
|
87
90
|
encodeMiddlewareList,
|
|
88
91
|
encodeObject,
|
|
@@ -92,8 +95,11 @@ import {
|
|
|
92
95
|
encodeView,
|
|
93
96
|
functionKind,
|
|
94
97
|
getKind,
|
|
98
|
+
isKnowledgeDirSource,
|
|
99
|
+
isKnowledgeFileSource,
|
|
95
100
|
isQueryExpressionFilter,
|
|
96
101
|
isRegisteredKind,
|
|
102
|
+
knowledgeKind,
|
|
97
103
|
phpJsonEncode,
|
|
98
104
|
queryKind,
|
|
99
105
|
registerKind,
|
|
@@ -102,7 +108,7 @@ import {
|
|
|
102
108
|
serializeBundle,
|
|
103
109
|
tableKind,
|
|
104
110
|
toNestedFields
|
|
105
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-YUPQOLFX.js";
|
|
106
112
|
import "./chunk-WHOJWOSV.js";
|
|
107
113
|
import {
|
|
108
114
|
encodeStatement,
|
|
@@ -130,7 +136,7 @@ import {
|
|
|
130
136
|
resolveRef,
|
|
131
137
|
serializeLock,
|
|
132
138
|
validateLockModel
|
|
133
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-YUBJLB6G.js";
|
|
134
140
|
|
|
135
141
|
// src/statements/byte-evidence.ts
|
|
136
142
|
var UNCONFIRMED_STATEMENTS = /* @__PURE__ */ new Set([]);
|
|
@@ -213,6 +219,13 @@ var KIND_DESCRIPTORS = [
|
|
|
213
219
|
{ kind: "channel", payloadKey: "channel", authorFactory: "realtimeChannel", description: "A realtime channel: a joinable path on a realtime server (`rooms/{room_id}`) with typed path params, join/publish policy, a client-visible conversation transcript, and delivery semantics. Owns message handlers. Returns a handle with `getChannel(params)` for the path a client joins.", registerMethod: "registerRealtimeChannels" },
|
|
214
220
|
{ kind: "message", payloadKey: "message", authorFactory: "realtimeMessage", description: "A realtime message handler: a named message type on a channel with its own typed payload and stack \u2014 the realtime analogue of a query. Pass the `realtimeChannel()` handle as `channel` and the owning server comes with it.", registerMethod: "registerRealtimeMessages" },
|
|
215
221
|
{ kind: "microservice", payloadKey: "microservice", authorFactory: "microservice", description: "A container workload deployed alongside the workspace, called from a stack with `s.microservice.request`. Two mutually exclusive shapes via `kind`: `builtin` declares containers (image/ports/resources/env/command/args) plus optional `ingresses`, and `helm` points at a chart and its `values` \u2014 passing both throws. EARLY SURFACE, expected to change \u2014 every export of a workspace declaring one prints a notice saying so. `configs`/`volumes` are typed and `@deprecated` but NOT deployable: the engine rejects an import carrying either, so `export()` fails the build rather than letting the deploy fatal. Put a value the workload reads in a container's `env`, and storage in a container's own `volumes` (`emptyDir`/`persistent`/`config`). Container names are free-form \u2014 they need not match the microservice name, which is what a stack addresses. SECRETS RIDE ALONG \u2014 `chart.values` and `registryAuth.dockerconfigjson` are carried into the bundle, and into a pulled tree, verbatim (they must be, or a pulled microservice could not be redeployed). Both are stored strings with NO deploy-time indirection: `process.env.X` in the def resolves at EXPORT and writes the literal into the bundle, so it is not a way to keep the credential out. Either leave `registryAuth` unset (public image, or a credential attached outside this workspace) or treat the bundle and any pulled tree as secret material \u2014 keep them out of git, or rotate after. Export prints a notice per microservice carrying either field; `--strict` does not promote it. For a secret a STACK reads, the mapped surface is `workspaceConfig({ env })` + `env(\"NAME\")`.", registerMethod: "registerMicroservices" },
|
|
222
|
+
{
|
|
223
|
+
kind: "knowledge",
|
|
224
|
+
payloadKey: "knowledge",
|
|
225
|
+
authorFactory: "knowledge",
|
|
226
|
+
description: 'Markdown the workspace\'s AI agents read before they act \u2014 an `agents.md` of standing instructions, a `skill`, or a `doc`. The body is a real markdown FILE via `knowledgeFile("./x.md", import.meta.url)`, and `mode` decides how much of it reaches the agent.',
|
|
227
|
+
registerMethod: "registerKnowledge"
|
|
228
|
+
},
|
|
216
229
|
{ kind: "workspace", payloadKey: "workspace", authorFactory: "workspaceConfig", description: "Workspace-level configuration such as default middleware chains and request-history defaults per host kind.", registerMethod: "registerWorkspace" }
|
|
217
230
|
];
|
|
218
231
|
var ENGINE_OBJECT_KINDS = [
|
|
@@ -230,6 +243,7 @@ var ENGINE_OBJECT_KINDS = [
|
|
|
230
243
|
{ kind: "mcp_server_trigger", authorFactory: "mcpServerTrigger" },
|
|
231
244
|
{ kind: "message", authorFactory: "realtimeMessage" },
|
|
232
245
|
{ kind: "microservice", authorFactory: "microservice" },
|
|
246
|
+
{ kind: "knowledge", authorFactory: "knowledge" },
|
|
233
247
|
{ kind: "middleware", authorFactory: "middleware" },
|
|
234
248
|
{ kind: "query", authorFactory: "query" },
|
|
235
249
|
{
|
|
@@ -1291,6 +1305,24 @@ function renderSections(m) {
|
|
|
1291
1305
|
'- e.g. `db.query({ table: posts, where: expr(col("author"), "=", auth("id")), as: "rows" })`.',
|
|
1292
1306
|
""
|
|
1293
1307
|
];
|
|
1308
|
+
const kindsKnowledge = [
|
|
1309
|
+
"- `knowledge({ name, description?, type?, mode?, enabled?, body, refs?, guid?, tags? })` \u2014 markdown the workspace's AI agents read before they act. Takes `registerKnowledge`.",
|
|
1310
|
+
' - `body` (REQUIRED): `knowledgeFile("./runbook.md", import.meta.url)` \u2014 a path to a real markdown FILE. There is no inline-string form. The path resolves relative to the MODULE THAT DECLARES the item, not the process working directory and not the workspace entry; `import.meta.url` is required and is what makes that true.',
|
|
1311
|
+
' - `refs?`: `knowledgeDir("./runbook", import.meta.url)` \u2014 a directory whose WHOLE tree ships as reference files, recursively, POSIX-relative paths preserved. Keep the body OUT of that directory: everything under it is collected, so a body beside its refs would ship as one of its own reference files.',
|
|
1312
|
+
' - `type?`: `"skill"` (default) | `"doc"` | `"agents.md"`. `skill` and `doc` differ in how they are filed, not in what an agent receives.',
|
|
1313
|
+
' - `mode?`: `"auto"` (default) | `"always"` | `"referenced"`.',
|
|
1314
|
+
" - `enabled?` defaults `true`. A disabled item is stored and never reaches an agent.",
|
|
1315
|
+
"",
|
|
1316
|
+
"### What reaches the agent",
|
|
1317
|
+
"",
|
|
1318
|
+
'- `type: "agents.md"` \u2014 full body on EVERY turn, whatever `mode` says. At most ONE per workspace; a second is an export error. Setting `mode` on one warns, because nothing reads it.',
|
|
1319
|
+
'- `mode: "always"` \u2014 full body on every turn.',
|
|
1320
|
+
'- `mode: "referenced"` \u2014 full body only on turns whose message names the item (bare name or `@name`).',
|
|
1321
|
+
'- `mode: "auto"` \u2014 name and `description` only; the agent loads the body when a request matches.',
|
|
1322
|
+
'- Reference files are never injected wholesale \u2014 an agent searches them on demand. That is what makes a large `mode: "auto"` item cheap.',
|
|
1323
|
+
'- \u26A0 `mode: "always"` on a long body spends its whole length on every request, and nothing in the types says so. `"auto"` is the default for that reason. For an `auto` item `description` is ALL the agent sees until it decides to load the body, so write it to be matched against a request rather than as a title.',
|
|
1324
|
+
"- `name` takes letters, digits, and `/ _ - { } . ` or a space; anything else is an export error."
|
|
1325
|
+
];
|
|
1294
1326
|
const kindsAgentMcp = [
|
|
1295
1327
|
"- `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
1328
|
" - `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.",
|
|
@@ -1817,6 +1849,7 @@ function renderSections(m) {
|
|
|
1817
1849
|
objectKinds,
|
|
1818
1850
|
kindsCore,
|
|
1819
1851
|
kindsAgentMcp,
|
|
1852
|
+
kindsKnowledge,
|
|
1820
1853
|
kindsRealtime,
|
|
1821
1854
|
triggers,
|
|
1822
1855
|
stmtData,
|
|
@@ -1871,6 +1904,12 @@ function renderDocs(m) {
|
|
|
1871
1904
|
readWhen: "Read when the workspace defines an `agent()` or an `mcpServer()`.",
|
|
1872
1905
|
body: s.kindsAgentMcp
|
|
1873
1906
|
},
|
|
1907
|
+
{
|
|
1908
|
+
path: "llms/kinds-knowledge.md",
|
|
1909
|
+
title: "Knowledge def shape",
|
|
1910
|
+
readWhen: "Read when the workspace defines a `knowledge()` item \u2014 the markdown its AI agents read.",
|
|
1911
|
+
body: s.kindsKnowledge
|
|
1912
|
+
},
|
|
1874
1913
|
{
|
|
1875
1914
|
path: "llms/kinds-realtime.md",
|
|
1876
1915
|
title: "Realtime def shapes",
|
|
@@ -1978,6 +2017,8 @@ export {
|
|
|
1978
2017
|
GENERATED_SPECS,
|
|
1979
2018
|
GENERATED_STATEMENT_NAMES,
|
|
1980
2019
|
IMPLEMENTED_STATEMENTS,
|
|
2020
|
+
KNOWLEDGE_DIR,
|
|
2021
|
+
KNOWLEDGE_FILE,
|
|
1981
2022
|
LLMS_TXT,
|
|
1982
2023
|
LOCK_VERSION,
|
|
1983
2024
|
PAYLOAD_ARRAY_KEYS,
|
|
@@ -2011,6 +2052,7 @@ export {
|
|
|
2011
2052
|
encodeFunction,
|
|
2012
2053
|
encodeHistory,
|
|
2013
2054
|
encodeIndex,
|
|
2055
|
+
encodeKnowledge,
|
|
2014
2056
|
encodeMcpServer,
|
|
2015
2057
|
encodeMicroservice,
|
|
2016
2058
|
encodeMiddleware,
|
|
@@ -2039,10 +2081,13 @@ export {
|
|
|
2039
2081
|
getLockedCanonical,
|
|
2040
2082
|
getLockedGuid,
|
|
2041
2083
|
getStatementFactory,
|
|
2084
|
+
isKnowledgeDirSource,
|
|
2085
|
+
isKnowledgeFileSource,
|
|
2042
2086
|
isLockSeeded,
|
|
2043
2087
|
isQueryExpressionFilter,
|
|
2044
2088
|
isRegisteredKind,
|
|
2045
2089
|
isRegisteredStatement,
|
|
2090
|
+
knowledgeKind,
|
|
2046
2091
|
lockKey,
|
|
2047
2092
|
mcpServerKind,
|
|
2048
2093
|
mergeObserved,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readLockFile,
|
|
3
3
|
writeLockFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MFIHIS6B.js";
|
|
5
5
|
import "./chunk-GNPVYOPB.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-YUBJLB6G.js";
|
|
7
7
|
export {
|
|
8
8
|
readLockFile,
|
|
9
9
|
writeLockFile
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=io-
|
|
11
|
+
//# sourceMappingURL=io-7VIA5SON.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deepEqual,
|
|
3
3
|
normalize
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZOYMZZ3S.js";
|
|
5
5
|
|
|
6
6
|
// src/deploy/live-diff.ts
|
|
7
7
|
function rows(bundle, key) {
|
|
@@ -193,4 +193,4 @@ export {
|
|
|
193
193
|
compareToLive,
|
|
194
194
|
diffAgainstLive
|
|
195
195
|
};
|
|
196
|
-
//# sourceMappingURL=live-diff-
|
|
196
|
+
//# sourceMappingURL=live-diff-FP4SFNT4.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
resolvePayloadKey,
|
|
16
16
|
serializeLock,
|
|
17
17
|
validateLockModel
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YUBJLB6G.js";
|
|
19
19
|
export {
|
|
20
20
|
CANONICAL_PAYLOAD_KEYS,
|
|
21
21
|
LOCK_PAYLOAD_KEYS,
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
serializeLock,
|
|
35
35
|
validateLockModel
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=lock-
|
|
37
|
+
//# sourceMappingURL=lock-KXOJIGCG.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadDefault
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DUC3PXDG.js";
|
|
4
4
|
import {
|
|
5
5
|
UsageError,
|
|
6
6
|
missingArgument,
|
|
7
7
|
unknownSubcommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KGNJM4LN.js";
|
|
9
9
|
import {
|
|
10
10
|
readLockFile,
|
|
11
11
|
writeLockFile
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-EZG76F7R.js";
|
|
12
|
+
} from "./chunk-MFIHIS6B.js";
|
|
14
13
|
import "./chunk-GNPVYOPB.js";
|
|
14
|
+
import "./chunk-EZG76F7R.js";
|
|
15
15
|
import {
|
|
16
16
|
Xano
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-BPEEGJJA.js";
|
|
18
|
+
import "./chunk-YYSJAAJM.js";
|
|
19
|
+
import "./chunk-YUPQOLFX.js";
|
|
20
20
|
import "./chunk-WHOJWOSV.js";
|
|
21
21
|
import "./chunk-5XZ744TS.js";
|
|
22
22
|
import {
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resetLockOverrides,
|
|
28
28
|
resolvePayloadKey,
|
|
29
29
|
seedLockOverrides
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YUBJLB6G.js";
|
|
31
31
|
|
|
32
32
|
// src/emit/lock-commands.ts
|
|
33
33
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -229,4 +229,4 @@ ${lines}
|
|
|
229
229
|
export {
|
|
230
230
|
runLockCommand
|
|
231
231
|
};
|
|
232
|
-
//# sourceMappingURL=lock-commands-
|
|
232
|
+
//# sourceMappingURL=lock-commands-7IH7RSSP.js.map
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
resolveScope,
|
|
21
21
|
writeCredential
|
|
22
22
|
} from "./chunk-7REDODS2.js";
|
|
23
|
+
import "./chunk-GNPVYOPB.js";
|
|
23
24
|
import {
|
|
24
25
|
blank,
|
|
25
26
|
detail,
|
|
@@ -29,7 +30,6 @@ import {
|
|
|
29
30
|
success,
|
|
30
31
|
warn
|
|
31
32
|
} from "./chunk-EZG76F7R.js";
|
|
32
|
-
import "./chunk-GNPVYOPB.js";
|
|
33
33
|
|
|
34
34
|
// src/emit/login-command.ts
|
|
35
35
|
import * as client from "openid-client";
|
|
@@ -164,4 +164,4 @@ async function attemptLogin(p) {
|
|
|
164
164
|
export {
|
|
165
165
|
runLoginCommand
|
|
166
166
|
};
|
|
167
|
-
//# sourceMappingURL=login-command-
|
|
167
|
+
//# sourceMappingURL=login-command-QM5SBBI2.js.map
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
resolveAuthFilePath,
|
|
7
7
|
resolveScope
|
|
8
8
|
} from "./chunk-7REDODS2.js";
|
|
9
|
+
import "./chunk-GNPVYOPB.js";
|
|
9
10
|
import {
|
|
10
11
|
detail,
|
|
11
12
|
hostLabel,
|
|
@@ -13,7 +14,6 @@ import {
|
|
|
13
14
|
success,
|
|
14
15
|
warn
|
|
15
16
|
} from "./chunk-EZG76F7R.js";
|
|
16
|
-
import "./chunk-GNPVYOPB.js";
|
|
17
17
|
|
|
18
18
|
// src/emit/logout-command.ts
|
|
19
19
|
async function runLogoutCommand(args) {
|
|
@@ -65,4 +65,4 @@ async function runLogoutCommand(args) {
|
|
|
65
65
|
export {
|
|
66
66
|
runLogoutCommand
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=logout-command-
|
|
68
|
+
//# sourceMappingURL=logout-command-THPASOHM.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
indexByIdentity,
|
|
4
4
|
kindIsRunnable,
|
|
5
5
|
resolveMatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-T4XPCJRF.js";
|
|
7
7
|
import {
|
|
8
8
|
normalize
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZOYMZZ3S.js";
|
|
10
10
|
|
|
11
11
|
// src/validate/loop.ts
|
|
12
12
|
async function runValidateLoop(client, bundleText) {
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
runValidateLoop,
|
|
91
91
|
runnableFunctionNames
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=loop-
|
|
93
|
+
//# sourceMappingURL=loop-7SAIGRCZ.js.map
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
assertProjectDir
|
|
3
|
+
} from "./chunk-ERQZFWIW.js";
|
|
1
4
|
import {
|
|
2
5
|
isMachineOutput,
|
|
3
6
|
writeJson
|
|
4
7
|
} from "./chunk-NUQCEOKA.js";
|
|
5
8
|
import {
|
|
6
9
|
runNpm
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZSYZTGJH.js";
|
|
8
11
|
import {
|
|
9
12
|
serverMessage
|
|
10
13
|
} from "./chunk-3IGNIP6R.js";
|
|
@@ -12,7 +15,7 @@ import {
|
|
|
12
15
|
UsageError,
|
|
13
16
|
indentBlock,
|
|
14
17
|
missingArgument
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KGNJM4LN.js";
|
|
16
19
|
import {
|
|
17
20
|
blank,
|
|
18
21
|
detail,
|
|
@@ -23,11 +26,7 @@ import {
|
|
|
23
26
|
success,
|
|
24
27
|
warn
|
|
25
28
|
} from "./chunk-EZG76F7R.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
|
|
28
|
-
// src/emit/marketplace-command.ts
|
|
29
|
-
import { existsSync, readFileSync } from "fs";
|
|
30
|
-
import { join } from "path";
|
|
29
|
+
import "./chunk-YYSJAAJM.js";
|
|
31
30
|
|
|
32
31
|
// src/emit/marketplace-catalogue.ts
|
|
33
32
|
var DEFAULT_BASE_URL = "https://xare-rvr8-mnnt.dev.xano.io";
|
|
@@ -188,22 +187,6 @@ async function fetchModule(pkg) {
|
|
|
188
187
|
}
|
|
189
188
|
|
|
190
189
|
// src/emit/marketplace-command.ts
|
|
191
|
-
function assertProjectDir(dir) {
|
|
192
|
-
const manifest = join(dir, "package.json");
|
|
193
|
-
if (!existsSync(manifest)) {
|
|
194
|
-
throw new Error(
|
|
195
|
-
`No package.json in ${dir} \u2014 \`xanots marketplace install\` runs inside a XanoTS project.
|
|
196
|
-
cd into your project first, or run \`xanots init\` to create one.`
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
try {
|
|
200
|
-
JSON.parse(readFileSync(manifest, "utf8"));
|
|
201
|
-
} catch (err) {
|
|
202
|
-
throw new Error(
|
|
203
|
-
`${manifest} is not valid JSON, so npm cannot install into it \u2014 fix it and re-run. (${err instanceof Error ? err.message : String(err)})`
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
190
|
function resolvePackage(args, verb = "install") {
|
|
208
191
|
const pkg = args.positionals[0];
|
|
209
192
|
if (pkg === void 0 || pkg === "") {
|
|
@@ -221,7 +204,10 @@ async function runMarketplaceInstallCommand(args) {
|
|
|
221
204
|
refusePromptFlag(args, "install");
|
|
222
205
|
const pkg = resolvePackage(args);
|
|
223
206
|
const dir = process.cwd();
|
|
224
|
-
assertProjectDir(dir
|
|
207
|
+
assertProjectDir(dir, {
|
|
208
|
+
what: "`xanots marketplace install` runs inside a XanoTS project",
|
|
209
|
+
remedy: "cd into your project first, or run `xanots init` to create one."
|
|
210
|
+
});
|
|
225
211
|
step(`Installing ${style.bold(pkg)}`);
|
|
226
212
|
const status = runNpm(["install", pkg], dir);
|
|
227
213
|
if (status !== 0) {
|
|
@@ -376,4 +362,4 @@ export {
|
|
|
376
362
|
runMarketplaceListCommand,
|
|
377
363
|
runMarketplaceSearchCommand
|
|
378
364
|
};
|
|
379
|
-
//# sourceMappingURL=marketplace-command-
|
|
365
|
+
//# sourceMappingURL=marketplace-command-463DT7O7.js.map
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
decodeWorkspaceArchive,
|
|
12
12
|
encodeWorkspaceArchive
|
|
13
13
|
} from "./chunk-ZUTSMMAG.js";
|
|
14
|
-
import "./chunk-3IGNIP6R.js";
|
|
15
14
|
import "./chunk-X4DVXBFY.js";
|
|
15
|
+
import "./chunk-3IGNIP6R.js";
|
|
16
16
|
|
|
17
17
|
// src/validate/meta-client.ts
|
|
18
18
|
var REQUEST_TIMEOUT_MS = 6e4;
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { aZ as LambdaOptions, a_ as CaptureValue, a$ as LambdaSurface, b0 as CaptureRecord, b1 as LambdaBindings, F as FunctionDef, b2 as Xano, i as LockFile } from './store-BJONDJoZ.js';
|
|
2
|
+
export { b3 as AddonDef, b4 as AddonXdo, A as AdoptChange, a as AdoptResult, b5 as AgentDef, b6 as AgentHandle, b7 as AgentOutput, b8 as AgentSettingsXdo, b9 as AgentXdo, ba as AmbientBindings, bb as AnthropicLlm, bc as ApiGroupDef, bd as ApiGroupXdo, be as AuthRef, bf as Authored, B as Bundle, b as BundlePayload, c as BundleType, bg as Capturable, bh as ChannelConversationDef, bi as ChannelDeliveryDef, bj as ChannelDeliveryGuarantee, bk as ChannelPublishDef, bl as ChannelPublishWho, bm as ChannelRateLimitDef, bn as ColumnDef, bo as Comparison, bp as ContainerEnv, bq as ContainerPort, br as ContainerResources, bs as ContainerVolume, bt as CorsConfig, bu as CorsMode, bv as DatabaseActions, bw as DatabaseInputs, bx as DbEval, by as DbEvalFilter, bz as DbWhere, bA as ErrorInputs, bB as ExceptionPolicy, bC as FieldAccessor, bD as FieldRule, bE as GoogleGenAiLlm, bF as HistoryInput, bG as HttpVerb, bH as IndexDef, bI as IndexLang, bJ as IndexOp, bK as IndexType, bL as IndexXdo, bM as InferRow, bN as InputDescriptor, bO as InputOptions, bP as IteratingBindings, bQ as KnowledgeDef, bR as KnowledgeDirSource, bS as KnowledgeFileSource, bT as KnowledgeMode, bU as KnowledgeType, bV as LAMBDA_BINDINGS, bW as LAMBDA_CODE_FILTERS, bX as LAMBDA_GLOBALS, bY as LAMBDA_MODULE_GLOBALS, bZ as LAMBDA_STATEMENTS, b_ as LambdaBody, b$ as LlmPrompt, c0 as LlmProvider, c1 as LlmSettings, g as LockEntry, h as LockExportContext, M as Manifest, j as ManifestField, k as ManifestKind, l as ManifestStatement, c2 as ManifestValue, c3 as McpPathOptions, c4 as McpServerDef, c5 as McpServerHandle, c6 as McpServerXdo, m as MergeResult, c7 as MessageDeliverTo, c8 as MicroserviceChart, c9 as MicroserviceConfig, ca as MicroserviceContainer, cb as MicroserviceDef, cc as MicroserviceDeployment, cd as MicroserviceIngress, ce as MicroserviceRegistryAuth, cf as MicroserviceVolume, cg as MicroserviceXdo, ch as MiddlewareAttach, ci as MiddlewareAttachEntry, cj as MiddlewareDef, ck as MiddlewareXdo, O as ObjectKind, cl as OpenAiLlm, n as PayloadArrayKey, cm as QueryDef, cn as QueryFilterName, co as QueryHandle, cp as QueryResponseType, cq as QueryXdo, cr as RealtimeActions, cs as RealtimeChannelActions, ct as RealtimeChannelDef, cu as RealtimeChannelHandle, cv as RealtimeChannelRef, cw as RealtimeChannelTriggerInputs, cx as RealtimeChannelXdo, cy as RealtimeClient, cz as RealtimeInputs, cA as RealtimeMessageDef, cB as RealtimeMessageXdo, cC as RealtimeServerActions, cD as RealtimeServerDef, cE as RealtimeServerHandle, cF as RealtimeServerRef, cG as RealtimeServerTriggerInputs, cH as RealtimeServerXdo, cI as RealtimeUrlOptions, R as RenameResult, cJ as ResultStrategy, cK as Route, cL as RowOf, cM as ScheduleDef, cN as SchemaCols, cO as SchemaDef, cP as SearchComparison, cQ as SearchGroup, cR as SearchNode, cS as SearchOp, cT as SearchParamValue, cU as SeedFileSource, cV as SeedRow, cW as SeedSource, cX as SortDir, cY as SortDirective, S as StatementSpec, cZ as TableDef, c_ as TableXdo, c$ as TaskDef, d0 as TaskXdo, d1 as ToolDef, d2 as ToolXdo, d3 as ToolsetBaseDef, d4 as ToolsetBaseXdo, d5 as ToolsetInputs, d6 as ToolsetToolEntry, d7 as ToolsetToolRef, d8 as TriggerDef, d9 as TriggerObjType, da as TriggerXdo, db as ViewDef, dc as ViewXdo, dd as WorkflowTestDef, de as WorkflowTestXdo, df as WorkspaceActions, dg as WorkspaceConfigDef, dh as WorkspaceConfigXdo, di as WorkspaceHistoryDef, dj as WorkspaceHistoryXdo, dk as WorkspaceInputs, dl as WorkspaceMiddlewareDef, dm as WorkspaceMiddlewareXdo, dn as XanoFreeLlm, dp as addon, dq as agent, dr as agentTrigger, ds as and, dt as apiGroup, du as assertLambdaBody, dv as bitwiseAnd, dw as bitwiseOr, dx as bitwiseXor, dy as cmp, dz as defineFunction, dA as emit, dB as emitBundle, dC as errorTrigger, dD as expr, dE as fl, dF as input, dG as knowledge, dH as knowledgeDir, dI as knowledgeFile, dJ as mathAdd, dK as mathDiv, dL as mathMul, dM as mathSub, dN as mcpServer, dO as mcpServerTrigger, dP as microservice, dQ as middleware, dR as mixed, dS as objectEntries, dT as objectKeys, dU as objectValues, dV as or, dW as query, dX as realtimeChannel, dY as realtimeChannelTrigger, dZ as realtimeMessage, d_ as realtimeServer, d$ as realtimeServerTrigger, e0 as realtimeTrigger, e1 as resetLockOverrides, e2 as seedFile, e3 as seedLockOverrides, e4 as table, e5 as tableTrigger, e6 as task, e7 as textAppend, e8 as textPrepend, e9 as toSearchParams, ea as tool, eb as workflowTest, ec as workspace, ed as workspaceConfig, ee as workspaceTrigger } from './store-BJONDJoZ.js';
|
|
3
3
|
export { ActionCallArgs, AddonCallArgs, AddonSpec, AgentRunResult, AiAgentRunArgs, AnyAddonDef, AnyFunctionDef, AnyQueryDef, AnyTableDef, ApiCallArgs, ApplyFilter, ApplyFilters, ArrayMapArgs, CloudJobArgs, CloudJobAwaitArgs, CloudJobStatusArgs, CreateAuthTokenArgs, DbAddArgs, DbAddOrEditArgs, DbAggregate, DbAggregatePaging, DbBind, DbBulkAddArgs, DbBulkDeleteArgs, DbBulkWriteArgs, DbDelArgs, DbDirectQueryArgs, DbDistinct, DbEditArgs, DbExternal, DbExternalPermissions, DbExternalQueryArgs, DbField, DbGetArgs, DbHasArgs, DbJoin, DbPaging, DbPatchArgs, DbQueryArgs, DbResponseType, DbReturnType, DbSchemaArgs, DbTransactionArgs, DbTruncateArgs, ExpectToThrowArgs, ExternalSqlEngine, ForArgs, ForeachArgs, FunctionCallArgs, FunctionRunArgs, GetRawInputArgs, HeaderMap, HttpMethod, InferInput, InferResponse, IpLookupArgs, IpLookupResult, MiddlewareCallArgs, RealtimeEventArgs, StackTupleWidened, SwitchArgs, SwitchCaseArgs, TaskCallArgs, ToolCallArgs, TriggerCallArgs, TryCatchArgs, WhileArgs, WorkflowTestCallArgs, actionCall, actionPackageCall, addonCall, aiAgentRun, apiCall, arrayMap, arrayUnion, cloudJob, cloudJobAwait, cloudJobStatus, comment, compile, conditional, createAuthToken, dbAdd, dbAddOrEdit, dbBulkAdd, dbBulkDelete, dbBulkPatch, dbBulkUpdate, dbDel, dbDirectQuery, dbEdit, dbExternalQuery, dbGet, dbHas, dbPatch, dbQuery, dbSchema, dbTransaction, dbTruncate, debugLog, die, expectToThrow, fileUrl, forLoop, foreachBreak, foreachContinue, foreachLoop, foreachRemove, functionCall, functionRun, getRawInput, group, ignored, ipLookup, middlewareCall, postProcess, realtimeEvent, returnValue, s, setVar, switchCase, switchStatement, taskCall, toolCall, triggerCall, tryCatch, updateVar, whileLoop, workflowTestCall } from './index.js';
|
|
4
4
|
import { V as Value } from './response-CVAE2kMj.js';
|
|
5
5
|
export { B as BrandOpts, c as BrandValue, C as CacheXdo, f as CaughtField, h as ConditionalContext, j as ConditionalElifContext, D as DecimalMethod, E as EmailMethod, k as ExprGroup, l as ExprNode, m as ExprOperand, n as ExprStatement, o as FieldAccess, p as FieldDescriptor, q as FieldMap, s as FieldOpts, u as FieldStyleType, v as FieldXdo, w as FilterXdo, x as FilteredValue, y as FromFieldMap, F as FunctionXdo, H as HistoryXdo, I as InputXdo, z as IntMethod, L as ListBoundsXdo, M as MethodArg, A as MethodOpts, G as MethodSpec, J as MethodXdo, K as MockEntry, N as MockMap, O as MockXdo, P as ObjInput, Q as ObjMember, S as ObjValue, T as ObjectRef, U as PasswordMethod, W as PersistedFunctionRow, X as RefValue, Y as RegexValue, Z as ResponseDef, _ as ResultItemXdo, $ as RowFromFieldMap, a0 as StackItemXdo, a1 as Statement, a2 as StatementAnnotations, a3 as StatementInputXdo, a4 as StatementOptions, a5 as TAGS, a6 as TEST_EXPECT_TYPES, a7 as TableRefMethod, a8 as Tag, a9 as TaggedValue, aa as TestDef, ab as TestExpect, ac as TestExpectType, ad as TestXdo, ae as TextFormat, af as TextMethod, ag as TypeBrand, ah as ValueOf, ai as VectorMethod, aj as XanoFileRef, ak as XanoGeoPosition, al as XanoGeoValue, am as annotate, an as auth, ao as c, ap as caught, aq as col, ar as env, as as expect, at as f, au as filter, av as inp, aw as obj, ax as out, ay as ref, az as resp, aA as setting, aB as statements, aC as sys, aD as test, aE as toolset, aF as withFilters } from './response-CVAE2kMj.js';
|