@walkeros/server-transformer-file 4.7.0-next-1790245733116 → 4.7.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 CHANGED
@@ -1,23 +1,34 @@
1
1
  # @walkeros/server-transformer-file
2
2
 
3
- ## 4.7.0-next-1790245733116
3
+ ## 4.7.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [57788bc]
7
+ - 74821ed: Simulate records every vendor call through one recorder, `observeEnv`
8
+ from `@walkeros/core`, and runs offline: BigQuery, Data Manager and the
9
+ Sheets, GCS and S3 stores reach the network through `env`. Client and `Env`
10
+ types of BigQuery, Firehose, PostHog, SQS and Pub/Sub are structural.
11
+ `@walkeros/cli` exports `resolveExportName` and `selectDevExamples` and drops
12
+ `findExample` and `compareOutput`.
13
+ - Updated dependencies [74821ed]
8
14
  - Updated dependencies [06b498a]
9
- - Updated dependencies [f5a1cfd]
10
- - Updated dependencies [ef02916]
15
+ - Updated dependencies [74821ed]
16
+ - Updated dependencies [64b06de]
17
+ - Updated dependencies [4b4937f]
18
+ - Updated dependencies [74821ed]
19
+ - Updated dependencies [74821ed]
20
+ - Updated dependencies [74821ed]
11
21
  - Updated dependencies [06b498a]
12
- - Updated dependencies [ef02916]
13
- - Updated dependencies [2aebc53]
14
- - Updated dependencies [f5a1cfd]
15
- - Updated dependencies [f5a1cfd]
16
- - Updated dependencies [2aebc53]
17
- - Updated dependencies [8f8aea6]
18
- - Updated dependencies [2aebc53]
19
- - Updated dependencies [2aebc53]
20
- - @walkeros/core@4.7.0-next-1790245733116
22
+ - Updated dependencies [74821ed]
23
+ - Updated dependencies [74821ed]
24
+ - Updated dependencies [74821ed]
25
+ - Updated dependencies [74821ed]
26
+ - Updated dependencies [74821ed]
27
+ - Updated dependencies [e860006]
28
+ - Updated dependencies [74821ed]
29
+ - Updated dependencies [74821ed]
30
+ - Updated dependencies [4f89234]
31
+ - @walkeros/core@4.7.0
21
32
 
22
33
  ## 4.6.1
23
34
 
package/dist/dev.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=(e,r)=>{for(var a in r)t(e,a,{get:r[a],enumerable:!0})},s={};i(s,{examples:()=>v,schemas:()=>n}),module.exports=(e=s,((e,i,s,n)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let p of a(i))o.call(e,p)||p===s||t(e,p,{get:()=>i[p],enumerable:!(n=r(i,p))||n.enumerable});return e})(t({},"__esModule",{value:!0}),e));var n={};i(n,{SettingsSchema:()=>l,settings:()=>d});var p=require("@walkeros/core/dev"),c=require("@walkeros/core/dev"),l=c.z.object({prefix:c.z.string().optional().describe('URL prefix to strip before store lookup. E.g., "/static" → /static/walker.js looks up "walker.js"'),headers:c.z.record(c.z.string(),c.z.string()).optional().describe("Default response headers (e.g., Cache-Control, X-Frame-Options)"),mimeTypes:c.z.record(c.z.string(),c.z.string()).optional().describe('Extension → Content-Type overrides. Keys include dot: { ".wasm": "application/wasm" }')}).describe("File transformer: serves static files via pluggable Store backend"),d=(0,p.zodToSchema)(l),v={};i(v,{env:()=>g,step:()=>m});var m={};i(m,{serveStaticFile:()=>u});var u={title:"Serve static file",description:'Serve a static JavaScript file from store. Config: prefix: "/static", headers: { "Cache-Control": "public, max-age=3600" }',in:{name:"page view",data:{path:"/static/walker.js"},id:"ev-1700000600",trigger:"load",entity:"page",action:"view",timestamp:1700000600,source:{type:"express",platform:"server"}},out:[["respond",{status:200,headers:{"Content-Type":"application/javascript","Cache-Control":"public, max-age=3600"}}]]},g={};i(g,{init:()=>f,push:()=>b,simulation:()=>h});var f=void 0,b={store:void 0,respond:void 0},h=["call:respond"];//# sourceMappingURL=dev.js.map
1
+ "use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,r)=>{for(var a in r)t(e,a,{get:r[a],enumerable:!0})},i={};s(i,{examples:()=>v,schemas:()=>n}),module.exports=(e=i,((e,s,i,n)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let p of a(s))o.call(e,p)||p===i||t(e,p,{get:()=>s[p],enumerable:!(n=r(s,p))||n.enumerable});return e})(t({},"__esModule",{value:!0}),e));var n={};s(n,{SettingsSchema:()=>l,settings:()=>d});var p=require("@walkeros/core/dev"),c=require("@walkeros/core/dev"),l=c.z.object({prefix:c.z.string().optional().describe('URL prefix to strip before store lookup. E.g., "/static" → /static/walker.js looks up "walker.js"'),headers:c.z.record(c.z.string(),c.z.string()).optional().describe("Default response headers (e.g., Cache-Control, X-Frame-Options)"),mimeTypes:c.z.record(c.z.string(),c.z.string()).optional().describe('Extension → Content-Type overrides. Keys include dot: { ".wasm": "application/wasm" }')}).describe("File transformer: serves static files via pluggable Store backend"),d=(0,p.zodToSchema)(l),v={};s(v,{env:()=>g,step:()=>m});var m={};s(m,{serveStaticFile:()=>u});var u={title:"Serve static file",description:'Serve a static JavaScript file from store. Config: prefix: "/static", headers: { "Cache-Control": "public, max-age=3600" }',in:{name:"page view",data:{path:"/static/walker.js"},id:"ev-1700000600",trigger:"load",entity:"page",action:"view",timestamp:1700000600,source:{type:"express",platform:"server"}},out:[["respond",{status:200,headers:{"Content-Type":"application/javascript","Cache-Control":"public, max-age=3600"}}]]},g={};s(g,{init:()=>f,push:()=>b,simulation:()=>h});var f=void 0,b={store:void 0,respond:()=>{}},h=["call:respond"];//# sourceMappingURL=dev.js.map
package/dist/dev.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/dev.ts","../src/schemas/index.ts","../src/schemas/settings.ts","../src/examples/index.ts","../src/examples/step.ts","../src/examples/env.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport const settings = zodToSchema(SettingsSchema);\n","import { z } from '@walkeros/core/dev';\n\n/**\n * File transformer settings schema.\n *\n * Mirrors: types.ts FileSettings\n */\nexport const SettingsSchema = z\n .object({\n prefix: z\n .string()\n .optional()\n .describe(\n 'URL prefix to strip before store lookup. E.g., \"/static\" → /static/walker.js looks up \"walker.js\"',\n ),\n headers: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Default response headers (e.g., Cache-Control, X-Frame-Options)',\n ),\n mimeTypes: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Extension → Content-Type overrides. Keys include dot: { \".wasm\": \"application/wasm\" }',\n ),\n })\n .describe(\n 'File transformer: serves static files via pluggable Store backend',\n );\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","export * as step from './step';\nexport * as env from './env';\n","import type { Flow } from '@walkeros/core';\n\nexport const serveStaticFile: Flow.StepExample = {\n title: 'Serve static file',\n description:\n 'Serve a static JavaScript file from store. ' +\n 'Config: prefix: \"/static\", headers: { \"Cache-Control\": \"public, max-age=3600\" }',\n in: {\n name: 'page view',\n data: { path: '/static/walker.js' },\n id: 'ev-1700000600',\n trigger: 'load',\n entity: 'page',\n action: 'view',\n timestamp: 1700000600,\n source: { type: 'express', platform: 'server' },\n },\n out: [\n [\n 'respond',\n {\n status: 200,\n headers: {\n 'Content-Type': 'application/javascript',\n 'Cache-Control': 'public, max-age=3600',\n },\n },\n ],\n ],\n};\n","import type { FileEnv } from '../types';\n\nexport const init: FileEnv | undefined = undefined;\n\nexport const push: FileEnv = {\n store: undefined,\n respond: undefined,\n};\n\nexport const simulation = ['call:respond'];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,cAA4B;;;ACA5B,iBAAkB;AAOX,IAAM,iBAAiB,aAC3B,OAAO;AAAA,EACN,QAAQ,aACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,SAAS,aACN,OAAO,aAAE,OAAO,GAAG,aAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,aACR,OAAO,aAAE,OAAO,GAAG,aAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA;AAAA,EACC;AACF;;;AD1BK,IAAM,eAAW,yBAAY,cAAc;;;AEJlD;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAEO,IAAM,kBAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,aACE;AAAA,EAEF,IAAI;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,oBAAoB;AAAA,IAClC,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ,EAAE,MAAM,WAAW,UAAU,SAAS;AAAA,EAChD;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,QACE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgB;AAAA,UAChB,iBAAiB;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC7BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,OAA4B;AAElC,IAAM,OAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,SAAS;AACX;AAEO,IAAM,aAAa,CAAC,cAAc;","names":["import_dev"]}
1
+ {"version":3,"sources":["../src/dev.ts","../src/schemas/index.ts","../src/schemas/settings.ts","../src/examples/index.ts","../src/examples/step.ts","../src/examples/env.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport const settings = zodToSchema(SettingsSchema);\n","import { z } from '@walkeros/core/dev';\n\n/**\n * File transformer settings schema.\n *\n * Mirrors: types.ts FileSettings\n */\nexport const SettingsSchema = z\n .object({\n prefix: z\n .string()\n .optional()\n .describe(\n 'URL prefix to strip before store lookup. E.g., \"/static\" → /static/walker.js looks up \"walker.js\"',\n ),\n headers: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Default response headers (e.g., Cache-Control, X-Frame-Options)',\n ),\n mimeTypes: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Extension → Content-Type overrides. Keys include dot: { \".wasm\": \"application/wasm\" }',\n ),\n })\n .describe(\n 'File transformer: serves static files via pluggable Store backend',\n );\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","export * as step from './step';\nexport * as env from './env';\n","import type { Flow } from '@walkeros/core';\n\nexport const serveStaticFile: Flow.StepExample = {\n title: 'Serve static file',\n description:\n 'Serve a static JavaScript file from store. ' +\n 'Config: prefix: \"/static\", headers: { \"Cache-Control\": \"public, max-age=3600\" }',\n in: {\n name: 'page view',\n data: { path: '/static/walker.js' },\n id: 'ev-1700000600',\n trigger: 'load',\n entity: 'page',\n action: 'view',\n timestamp: 1700000600,\n source: { type: 'express', platform: 'server' },\n },\n out: [\n [\n 'respond',\n {\n status: 200,\n headers: {\n 'Content-Type': 'application/javascript',\n 'Cache-Control': 'public, max-age=3600',\n },\n },\n ],\n ],\n};\n","import type { FileEnv } from '../types';\n\nexport const init: FileEnv | undefined = undefined;\n\nexport const push: FileEnv = {\n store: undefined,\n respond: () => undefined,\n};\n\nexport const simulation = ['call:respond'];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,cAA4B;;;ACA5B,iBAAkB;AAOX,IAAM,iBAAiB,aAC3B,OAAO;AAAA,EACN,QAAQ,aACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,SAAS,aACN,OAAO,aAAE,OAAO,GAAG,aAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,aACR,OAAO,aAAE,OAAO,GAAG,aAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA;AAAA,EACC;AACF;;;AD1BK,IAAM,eAAW,yBAAY,cAAc;;;AEJlD;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAEO,IAAM,kBAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,aACE;AAAA,EAEF,IAAI;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,oBAAoB;AAAA,IAClC,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ,EAAE,MAAM,WAAW,UAAU,SAAS;AAAA,EAChD;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,QACE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgB;AAAA,UAChB,iBAAiB;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC7BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,OAA4B;AAElC,IAAM,OAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,SAAS,MAAM;AACjB;AAEO,IAAM,aAAa,CAAC,cAAc;","names":["import_dev"]}
package/dist/dev.mjs CHANGED
@@ -1 +1 @@
1
- var e=Object.defineProperty,r=(r,t)=>{for(var a in t)e(r,a,{get:t[a],enumerable:!0})},t={};r(t,{SettingsSchema:()=>s,settings:()=>o});import{zodToSchema as a}from"@walkeros/core/dev";import{z as i}from"@walkeros/core/dev";var s=i.object({prefix:i.string().optional().describe('URL prefix to strip before store lookup. E.g., "/static" → /static/walker.js looks up "walker.js"'),headers:i.record(i.string(),i.string()).optional().describe("Default response headers (e.g., Cache-Control, X-Frame-Options)"),mimeTypes:i.record(i.string(),i.string()).optional().describe('Extension → Content-Type overrides. Keys include dot: { ".wasm": "application/wasm" }')}).describe("File transformer: serves static files via pluggable Store backend"),o=a(s),n={};r(n,{env:()=>l,step:()=>p});var p={};r(p,{serveStaticFile:()=>c});var c={title:"Serve static file",description:'Serve a static JavaScript file from store. Config: prefix: "/static", headers: { "Cache-Control": "public, max-age=3600" }',in:{name:"page view",data:{path:"/static/walker.js"},id:"ev-1700000600",trigger:"load",entity:"page",action:"view",timestamp:1700000600,source:{type:"express",platform:"server"}},out:[["respond",{status:200,headers:{"Content-Type":"application/javascript","Cache-Control":"public, max-age=3600"}}]]},l={};r(l,{init:()=>d,push:()=>v,simulation:()=>m});var d=void 0,v={store:void 0,respond:void 0},m=["call:respond"];export{n as examples,t as schemas};//# sourceMappingURL=dev.mjs.map
1
+ var e=Object.defineProperty,r=(r,t)=>{for(var a in t)e(r,a,{get:t[a],enumerable:!0})},t={};r(t,{SettingsSchema:()=>s,settings:()=>o});import{zodToSchema as a}from"@walkeros/core/dev";import{z as i}from"@walkeros/core/dev";var s=i.object({prefix:i.string().optional().describe('URL prefix to strip before store lookup. E.g., "/static" → /static/walker.js looks up "walker.js"'),headers:i.record(i.string(),i.string()).optional().describe("Default response headers (e.g., Cache-Control, X-Frame-Options)"),mimeTypes:i.record(i.string(),i.string()).optional().describe('Extension → Content-Type overrides. Keys include dot: { ".wasm": "application/wasm" }')}).describe("File transformer: serves static files via pluggable Store backend"),o=a(s),n={};r(n,{env:()=>l,step:()=>p});var p={};r(p,{serveStaticFile:()=>c});var c={title:"Serve static file",description:'Serve a static JavaScript file from store. Config: prefix: "/static", headers: { "Cache-Control": "public, max-age=3600" }',in:{name:"page view",data:{path:"/static/walker.js"},id:"ev-1700000600",trigger:"load",entity:"page",action:"view",timestamp:1700000600,source:{type:"express",platform:"server"}},out:[["respond",{status:200,headers:{"Content-Type":"application/javascript","Cache-Control":"public, max-age=3600"}}]]},l={};r(l,{init:()=>d,push:()=>v,simulation:()=>m});var d=void 0,v={store:void 0,respond:()=>{}},m=["call:respond"];export{n as examples,t as schemas};//# sourceMappingURL=dev.mjs.map
package/dist/dev.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schemas/index.ts","../src/schemas/settings.ts","../src/examples/index.ts","../src/examples/step.ts","../src/examples/env.ts"],"sourcesContent":["import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport const settings = zodToSchema(SettingsSchema);\n","import { z } from '@walkeros/core/dev';\n\n/**\n * File transformer settings schema.\n *\n * Mirrors: types.ts FileSettings\n */\nexport const SettingsSchema = z\n .object({\n prefix: z\n .string()\n .optional()\n .describe(\n 'URL prefix to strip before store lookup. E.g., \"/static\" → /static/walker.js looks up \"walker.js\"',\n ),\n headers: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Default response headers (e.g., Cache-Control, X-Frame-Options)',\n ),\n mimeTypes: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Extension → Content-Type overrides. Keys include dot: { \".wasm\": \"application/wasm\" }',\n ),\n })\n .describe(\n 'File transformer: serves static files via pluggable Store backend',\n );\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","export * as step from './step';\nexport * as env from './env';\n","import type { Flow } from '@walkeros/core';\n\nexport const serveStaticFile: Flow.StepExample = {\n title: 'Serve static file',\n description:\n 'Serve a static JavaScript file from store. ' +\n 'Config: prefix: \"/static\", headers: { \"Cache-Control\": \"public, max-age=3600\" }',\n in: {\n name: 'page view',\n data: { path: '/static/walker.js' },\n id: 'ev-1700000600',\n trigger: 'load',\n entity: 'page',\n action: 'view',\n timestamp: 1700000600,\n source: { type: 'express', platform: 'server' },\n },\n out: [\n [\n 'respond',\n {\n status: 200,\n headers: {\n 'Content-Type': 'application/javascript',\n 'Cache-Control': 'public, max-age=3600',\n },\n },\n ],\n ],\n};\n","import type { FileEnv } from '../types';\n\nexport const init: FileEnv | undefined = undefined;\n\nexport const push: FileEnv = {\n store: undefined,\n respond: undefined,\n};\n\nexport const simulation = ['call:respond'];\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAS,mBAAmB;;;ACA5B,SAAS,SAAS;AAOX,IAAM,iBAAiB,EAC3B,OAAO;AAAA,EACN,QAAQ,EACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,SAAS,EACN,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,EACR,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA;AAAA,EACC;AACF;;;AD1BK,IAAM,WAAW,YAAY,cAAc;;;AEJlD;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAEO,IAAM,kBAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,aACE;AAAA,EAEF,IAAI;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,oBAAoB;AAAA,IAClC,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ,EAAE,MAAM,WAAW,UAAU,SAAS;AAAA,EAChD;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,QACE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgB;AAAA,UAChB,iBAAiB;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC7BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,OAA4B;AAElC,IAAM,OAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,SAAS;AACX;AAEO,IAAM,aAAa,CAAC,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/schemas/index.ts","../src/schemas/settings.ts","../src/examples/index.ts","../src/examples/step.ts","../src/examples/env.ts"],"sourcesContent":["import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport const settings = zodToSchema(SettingsSchema);\n","import { z } from '@walkeros/core/dev';\n\n/**\n * File transformer settings schema.\n *\n * Mirrors: types.ts FileSettings\n */\nexport const SettingsSchema = z\n .object({\n prefix: z\n .string()\n .optional()\n .describe(\n 'URL prefix to strip before store lookup. E.g., \"/static\" → /static/walker.js looks up \"walker.js\"',\n ),\n headers: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Default response headers (e.g., Cache-Control, X-Frame-Options)',\n ),\n mimeTypes: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Extension → Content-Type overrides. Keys include dot: { \".wasm\": \"application/wasm\" }',\n ),\n })\n .describe(\n 'File transformer: serves static files via pluggable Store backend',\n );\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","export * as step from './step';\nexport * as env from './env';\n","import type { Flow } from '@walkeros/core';\n\nexport const serveStaticFile: Flow.StepExample = {\n title: 'Serve static file',\n description:\n 'Serve a static JavaScript file from store. ' +\n 'Config: prefix: \"/static\", headers: { \"Cache-Control\": \"public, max-age=3600\" }',\n in: {\n name: 'page view',\n data: { path: '/static/walker.js' },\n id: 'ev-1700000600',\n trigger: 'load',\n entity: 'page',\n action: 'view',\n timestamp: 1700000600,\n source: { type: 'express', platform: 'server' },\n },\n out: [\n [\n 'respond',\n {\n status: 200,\n headers: {\n 'Content-Type': 'application/javascript',\n 'Cache-Control': 'public, max-age=3600',\n },\n },\n ],\n ],\n};\n","import type { FileEnv } from '../types';\n\nexport const init: FileEnv | undefined = undefined;\n\nexport const push: FileEnv = {\n store: undefined,\n respond: () => undefined,\n};\n\nexport const simulation = ['call:respond'];\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAS,mBAAmB;;;ACA5B,SAAS,SAAS;AAOX,IAAM,iBAAiB,EAC3B,OAAO;AAAA,EACN,QAAQ,EACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,SAAS,EACN,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,EACR,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA;AAAA,EACC;AACF;;;AD1BK,IAAM,WAAW,YAAY,cAAc;;;AEJlD;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAEO,IAAM,kBAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,aACE;AAAA,EAEF,IAAI;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,oBAAoB;AAAA,IAClC,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ,EAAE,MAAM,WAAW,UAAU,SAAS;AAAA,EAChD;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,QACE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgB;AAAA,UAChB,iBAAiB;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC7BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,OAA4B;AAElC,IAAM,OAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,SAAS,MAAM;AACjB;AAEO,IAAM,aAAa,CAAC,cAAc;","names":[]}
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/server-transformer-file",
4
- "version": "4.7.0-next-1790245733116",
4
+ "version": "4.7.0",
5
5
  "type": "transformer",
6
6
  "platform": [
7
7
  "server"
8
8
  ],
9
+ "exports": {},
9
10
  "docs": "https://www.walkeros.io/docs/transformers/file",
10
11
  "source": "https://github.com/elbwalker/walkerOS/tree/main/packages/server/transformers/file/src"
11
12
  },
@@ -45,7 +46,11 @@
45
46
  },
46
47
  "examples": {
47
48
  "env": {
48
- "push": {},
49
+ "push": {
50
+ "respond": {
51
+ "$code": "()=>{}"
52
+ }
53
+ },
49
54
  "simulation": [
50
55
  "call:respond"
51
56
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/server-transformer-file",
3
3
  "description": "File serving transformer for walkerOS - serves static files via pluggable Store backend",
4
- "version": "4.7.0-next-1790245733116",
4
+ "version": "4.7.0",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -28,10 +28,10 @@
28
28
  "update": "npx npm-check-updates -u && npm update"
29
29
  },
30
30
  "dependencies": {
31
- "@walkeros/core": "4.7.0-next-1790245733116"
31
+ "@walkeros/core": "4.7.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@walkeros/core": "4.7.0-next-1790245733116"
34
+ "@walkeros/core": "4.7.0"
35
35
  },
36
36
  "repository": {
37
37
  "url": "git+https://github.com/elbwalker/walkerOS.git",