@fjall/generator 28.0.0 → 28.1.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/dist/.build-source-hash
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"package.json",
|
|
10
10
|
"tsconfig.json"
|
|
11
11
|
],
|
|
12
|
-
"hash": "
|
|
12
|
+
"hash": "19b90a7a09fb9c66087b50b8a42f7a01124525268239541f7dde9e8129fa099d",
|
|
13
13
|
"files": {
|
|
14
14
|
"src/ast/astTestHelpers.ts": "026cac849eb88bdb",
|
|
15
15
|
"src/ast/domain/astDomainParser.ts": "12107a9864c6670c",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"src/codemod/llmFallback/telemetryEvents.ts": "827282cb185eea6c",
|
|
94
94
|
"src/codemod/llmFallback/tierRunner.ts": "a26094accd78cf15",
|
|
95
95
|
"src/codemod/llmFallback/types.ts": "0b528ccbab7d48b8",
|
|
96
|
-
"src/codemod/registry.ts": "
|
|
96
|
+
"src/codemod/registry.ts": "6bf27884c4dea32a",
|
|
97
97
|
"src/codemod/semanticIndex/classifyControlFlow.ts": "ed96215d91a3cae3",
|
|
98
98
|
"src/codemod/semanticIndex/findReferences.ts": "96aea37418d1e91a",
|
|
99
99
|
"src/codemod/semanticIndex/index.ts": "cfcd212d34ab20fb",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"src/codemod/validationGate/gates/locate.ts": "2c186c32edbb97ce",
|
|
109
109
|
"src/codemod/validationGate/gates/parse.ts": "5433c5c8ffa35324",
|
|
110
110
|
"src/codemod/validationGate/gates/projection.ts": "461051f3dc6bf6b2",
|
|
111
|
-
"src/codemod/validationGate/gates/schema.ts": "
|
|
111
|
+
"src/codemod/validationGate/gates/schema.ts": "46d4aacde1f2b9bc",
|
|
112
112
|
"src/codemod/validationGate/index.ts": "bbe1f460330a11cf",
|
|
113
113
|
"src/codemod/validationGate/types.ts": "4a1cfa054e3383d5",
|
|
114
114
|
"src/detection/index.ts": "cd321fd291b7388b",
|
|
@@ -181,11 +181,11 @@
|
|
|
181
181
|
"src/validation/patterns.ts": "f9629eafdad7ac3e",
|
|
182
182
|
"src/validation/validationMessages.ts": "b03413b3953c3e79",
|
|
183
183
|
"src/validation/validationPatterns.ts": "865f3d688975b7c8",
|
|
184
|
-
"src/version.ts": "
|
|
184
|
+
"src/version.ts": "1866e6e4722190d0",
|
|
185
185
|
"../scripts/minify-dist.mjs": "6b2e4b0df8aec601",
|
|
186
|
-
"package.json": "
|
|
186
|
+
"package.json": "da4922cd6ee01aee",
|
|
187
187
|
"tsconfig.json": "1929cf3f99fe9b1e"
|
|
188
188
|
},
|
|
189
|
-
"outputHash": "
|
|
189
|
+
"outputHash": "d11cc8e1f0457782687decd0c46442616bfef4298e71cd750af93abfd92e3ff9",
|
|
190
190
|
"outputFileCount": 343
|
|
191
191
|
}
|
package/dist/.minified
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
171 files minified at 2026-
|
|
1
|
+
171 files minified at 2026-09-01T09:01:25.384Z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var k=Object.defineProperty;var r=(e,t)=>k(e,"name",{value:t,configurable:!0});import{DEPLOYABLE_PATTERN_TYPES as N,PATTERN_TYPE_VALUES as R,isPatternType as v,patternConstructId as m}from"@fjall/util";import{z as s}from"zod";import{BuildkitePropsObjectSchema as u,CDNResourcePlanSchema as l,ComputeResourcePlanSchema as h,CrossPlanConnectionResourcePlanSchema as g,DatabaseResourcePlanSchema as y,NetworkResourcePlanSchema as C,NextJSPatternConfigSchema as w,OrganisationResourcePlanSchema as P,PayloadPatternConfigSchema as M,S3ResourcePlanSchema as S,SQSResourcePlanSchema as f,StaticSitePatternConfigSchema as O,VpcPeerAccepterResourcePlanSchema as F,VpcPeerResourcePlanSchema as W}from"../schemas/index.js";import{failure as x}from"../types/Result.js";import{whenAbsent as b}from"./emitGuard.js";const n={database:"DatabaseFactory",storage:"StorageFactory",compute:"ComputeFactory",messaging:"MessagingFactory",cdn:"CdnFactory",network:"NetworkFactory",pattern:"PatternFactory","vpc-peer":"VpcPeerFactory","vpc-peer-accepter":"VpcPeerAccepterFactory","cross-plan-connection":"CrossPlanConnectionFactory",organisation:"OrganisationFactory",buildkite:"BuildkiteFactory"};function c(e){const{name:t,...a}=e.shape;return s.object(a).partial().strict()}r(c,"fragmentOf");function p(e){const{name:t,...a}=e.shape;return s.object(a).strict()}r(p,"completeFragmentOf");const j=c(y),V=c(S),B=(()=>{const{name:e,...t}=h.shape;return s.object(t).partial().strict()})(),D=(()=>{const{name:e,...t}=h.shape;return s.object(t).strict()})(),L=c(f),Y=c(l),G=c(C),A=(()=>{const{name:e,type:t,cdn:a,...E}=M.shape,{name:te,type:re,cdn:ae,...T}=w.shape,{name:ne,type:oe,domain:ce,cdn:I,..._}=O.shape;return{...E,...T,..._,cdn:s.union([a,I]),type:s.enum(N)}})(),q=s.object(A).partial().strict(),Q=s.object(A).partial().required({type:!0}).strict(),U={emitConstructId:r((e,t)=>v(t.type)?m(e,t.type):e,"emitConstructId"),locateCandidates:r(e=>[e,...R.map(t=>m(e,t))],"locateCandidates")},$=c(W),z=c(F),J=c(g),H=c(P),K=c(u);function d(e,t){return x({kind:"SemanticQueryError",reason:`StatementTypeEntry.${e} for ${t} is not wired; existing types dispatch through the shared locator/generator.`})}r(d,"notWiredError");function X(e){return{factoryIdentifier:e,findByShape:r(()=>d("locator.findByShape",e),"findByShape"),validateContext:r(()=>d("locator.validateContext",e),"validateContext")}}r(X,"createLocator");function Z(e){return{build:r(()=>{const t=d("generator.build",e);throw new Error(t.success?"unreachable":t.error.reason)},"build")}}r(Z,"createGenerator");const ee=[{property:"peerAppName",refuseWhen:b("peerAppName"),reason:"`peerAppName` is required: it is the SSM prefix every remote lookup is built from, and omitting it does NOT fail \u2014 synth succeeds and the app deploys a peering connection pointed at `/fjall/default/undefined/vpc-id`. Provide `peerAppName`, the remote application to peer with (CLI: `--peerAppName <remote app>`)."},{property:"peerAccountId",refuseWhen:b("peerAccountId"),reason:"`peerAccountId` is required: omitting it does NOT fail, it deploys a VPC peering connection with no `PeerOwnerId`. Provide `peerAccountId`, the 12-digit account that owns the remote VPC (CLI: `--peerAccountId <12-digit account>`)."}];function o(e,t,a={}){return{factoryIdentifier:e,locator:X(e),generator:Z(e),schemaFragment:t,...a}}r(o,"createEntry");const i={database:o(n.database,j,{emitWrapper:{appMethod:"addDatabase"},addContract:p(y)}),storage:o(n.storage,V,{emitWrapper:{appMethod:"addStorage"},addContract:p(S)}),compute:o(n.compute,B,{emitWrapper:{appMethod:"addCompute"},addContract:D}),messaging:o(n.messaging,L,{emitWrapper:{appMethod:"addMessaging"},addContract:p(f)}),cdn:o(n.cdn,Y,{emitWrapper:{appMethod:"addCdn"},addContract:p(l)}),network:o(n.network,G,{emitWrapper:{appMethod:"addNetwork"},addContract:p(C)}),pattern:o(n.pattern,q,{emitWrapper:{appMethod:"addPattern"},addContract:Q,statementIdentity:U}),"vpc-peer":o(n["vpc-peer"],$,{emitWrapper:{appMethod:"addVpcPeer"},emitGuard:ee}),"vpc-peer-accepter":o(n["vpc-peer-accepter"],z,{emitWrapper:{appMethod:"addVpcPeerAccepter"},addContract:p(F)}),"cross-plan-connection":o(n["cross-plan-connection"],J,{addContract:p(g)}),organisation:o(n.organisation,H,{addContract:p(P)}),buildkite:o(n.buildkite,K,{emitWrapper:{appMethod:"addBuildkite",propsOverloadConstructId:"Buildkite"},addContract:p(u)})},le=Object.keys(i);function he(e,t,a){return i[e].statementIdentity?.emitConstructId(t,a)??t}r(he,"constructIdFor");function ge(e,t){return i[e].statementIdentity?.locateCandidates(t)??[t]}r(ge,"locateNamesFor");function ye(e){const t=Object.keys(i);for(const a of t)if(i[a].factoryIdentifier===e)return a}r(ye,"findTypeByIdentifier");export{n as FACTORY_IDENTIFIERS,le as REGISTERED_STATEMENT_TYPES,i as STATEMENT_REGISTRY,he as constructIdFor,ye as findTypeByIdentifier,ge as locateNamesFor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var u=Object.defineProperty;var o=(e,r)=>u(e,"name",{value:r,configurable:!0});import{failure as c,success as d}from"../../../types/Result.js";import{STATEMENT_REGISTRY as f}from"../../registry.js";const k={id:"schema",run(e){const r=f[e.plan.type],i=e.plan.op==="add"?r.addContract??r.schemaFragment:r.schemaFragment,t=i.safeParse(e.plan.properties);return t.success?d({action:"proceed"}):c(y(e,t.error,i))}};function y(e,r,i){const t=h(e,r);if(t.length>0)return{kind:"InvalidPropertyError",property:t[0]??"<unknown>",reason:`required for a new ${e.plan.type} and not provided (missing: ${s(t)}). Nothing has been written.`};const n=r.issues[0];if(n!==void 0&&n.code==="unrecognized_keys"){const a=s(n.keys),p=s(Object.keys(i.shape));return{kind:"InvalidPropertyError",property:n.keys[0]??"<unknown>",reason:`not a ${e.plan.type} property (unrecognised: ${a}; permitted: ${p}). Nothing has been written.`}}return{kind:"InvalidPropertyError",property:n!==void 0&&n.path.length>0?String(n.path[0]):Object.keys(e.plan.properties)[0]??"<unknown>",reason:`${n?.message??"Schema validation failed"}. Nothing has been written.`}}o(y,"toInvalidPropertyError");function s(e){return e.map(r=>`\`${r}\``).join(", ")}o(s,"formatKeyList");function h(e,r){const i=[];for(const t of r.issues){if(t.path.length!==1)continue;const n=t.path[0];typeof n=="string"&&(n in e.plan.properties||i.includes(n)||i.push(n))}return i}o(h,"missingRequiredKeys");export{k as schemaGate};
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const GENERATOR_VERSION = "28.
|
|
1
|
+
export declare const GENERATOR_VERSION = "28.1.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const E="28.
|
|
1
|
+
const E="28.1.0";export{E as GENERATOR_VERSION};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fjall/generator",
|
|
3
|
-
"version": "28.
|
|
3
|
+
"version": "28.1.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/fjall-tech/fjall.git",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"license": "SEE LICENSE IN LICENSE",
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/parser": "^7.29.8",
|
|
61
|
-
"@fjall/util": "^28.
|
|
61
|
+
"@fjall/util": "^28.1.0",
|
|
62
62
|
"ast-types": "^0.16.1",
|
|
63
63
|
"recast": "^0.23.12",
|
|
64
64
|
"ts-morph": "^28.0.0",
|