@frontera-sdk/cli 1.52.25 → 1.52.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontera-sdk/cli",
3
- "version": "1.52.25",
3
+ "version": "1.52.27",
4
4
  "description": "The frontera CLI — scaffold, pull, save and deploy Frontera apps and automations.",
5
5
  "keywords": [
6
6
  "frontera",
@@ -39,14 +39,14 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@anthropic-ai/claude-agent-sdk": "^0.3.251",
42
- "@frontera-sdk/functions": "1.52.25",
43
- "@frontera-sdk/core": "1.52.25",
42
+ "@frontera-sdk/functions": "1.52.27",
43
+ "@frontera-sdk/core": "1.52.27",
44
44
  "ai": "^6.0.116",
45
45
  "gray-matter": "^4.0.3",
46
46
  "yaml": "^2.9.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@frontera-sdk/forge-contracts": "1.52.25",
49
+ "@frontera-sdk/forge-contracts": "1.52.27",
50
50
  "@types/bun": "^1.3.14",
51
51
  "typescript": "^5.9.3"
52
52
  }
package/src/adopt.ts CHANGED
@@ -192,7 +192,7 @@ const NEXT_CONFIG_KEYS = [
192
192
  ['output', "'export'"],
193
193
  ['trailingSlash', 'true'],
194
194
  ['images', '{ unoptimized: true }'],
195
- ['transpilePackages', "['@frontera-sdk/core', '@frontera-sdk/blueprint']"],
195
+ ['transpilePackages', "['@frontera-sdk/core', '@frontera-sdk/blueprint', '@frontera-sdk/agents']"],
196
196
  ] as const
197
197
 
198
198
  export function planAdoption(target: AdoptionTarget): AdoptionPlan {
@@ -321,7 +321,7 @@ const nextConfig: NextConfig = {
321
321
  output: 'export',
322
322
  trailingSlash: true,
323
323
  images: { unoptimized: true },
324
- transpilePackages: ['@frontera-sdk/core', '@frontera-sdk/blueprint'],
324
+ transpilePackages: ['@frontera-sdk/core', '@frontera-sdk/blueprint', '@frontera-sdk/agents'],
325
325
  }
326
326
 
327
327
  export default nextConfig
package/src/template.ts CHANGED
@@ -467,7 +467,8 @@ Show a count from \`useAggregate\` over the same object set if you need one.
467
467
  ## Metrics the organization already defined
468
468
 
469
469
  \`\`\`tsx
470
- const revenue = useMetric('codShare', { from, to })
470
+ const revenue = useMetric('codShare', { timeRange: { isoDuration: 'P30D' }, compare: true })
471
+ const rows = revenue.data?.data ?? []
471
472
  \`\`\`
472
473
 
473
474
  A metric exists so every reader computes it the same way. Prefer one over
@@ -126,7 +126,7 @@ const nextConfig: NextConfig = {
126
126
  images: { unoptimized: true },
127
127
  // Current Frontera SDK packages publish TypeScript source. This is Next's
128
128
  // supported boundary for compiling those dependencies inside the App build.
129
- transpilePackages: ['@frontera-sdk/core', '@frontera-sdk/blueprint'],
129
+ transpilePackages: ['@frontera-sdk/core', '@frontera-sdk/blueprint', '@frontera-sdk/agents'],
130
130
  }
131
131
 
132
132
  export default nextConfig
@@ -162,9 +162,10 @@ const project: Skill = {
162
162
  ' - `.frontera/state.json` — environment binding written by the CLI. Gitignored; never author it.',
163
163
  ' - `.env*` — public build values only. A credential here ships to the browser.',
164
164
  '- Keep the required Next configuration: `output: "export"`, `trailingSlash: true`,',
165
- ' `images.unoptimized: true`, and `transpilePackages` for both SDK packages. The artifact',
165
+ ' `images.unoptimized: true`, and `transpilePackages` for every `@frontera-sdk/*` package the App',
166
+ ' uses (`core`, `blueprint`, `agents`): they publish TypeScript source. The artifact',
166
167
  ' contract is `outputDirectory: "out"` with `routing: "filesystem"` — it describes files, not a framework.',
167
- '- Use the public versioned `@frontera-sdk/core` and `@frontera-sdk/blueprint` packages. Do not',
168
+ '- Use the public versioned `@frontera-sdk/core`, `@frontera-sdk/blueprint` and `@frontera-sdk/agents` packages. Do not',
168
169
  ' vendor, copy or patch SDK source into a Next App — that is the legacy Vite scaffold only.',
169
170
  '- Scripts are a fixed set with fixed meanings. `dev` MUST stay `next dev`: `frontera app dev`',
170
171
  ' spawns `bun run dev` and passes the host and port it chose.',