@agent-native/core 0.75.1 → 0.75.2

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.
Files changed (30) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/core/CHANGELOG.md +30 -0
  3. package/corpus/core/package.json +1 -1
  4. package/corpus/core/src/agent/durable-background.ts +56 -0
  5. package/corpus/core/src/agent/production-agent.ts +16 -3
  6. package/corpus/core/src/deploy/build.ts +87 -40
  7. package/corpus/templates/analytics/actions/get-sql-dashboard.ts +0 -8
  8. package/corpus/templates/analytics/actions/update-dashboard.ts +3 -1
  9. package/corpus/templates/analytics/app/components/SqlEditor.tsx +57 -0
  10. package/corpus/templates/analytics/app/components/SqlHighlight.tsx +27 -28
  11. package/corpus/templates/analytics/app/components/dashboard/SqlChart.tsx +130 -8
  12. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/PanelEditorDialog.tsx +2 -3
  13. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/ViewSqlPopover.tsx +4 -4
  14. package/corpus/templates/analytics/changelog/2026-06-24-active-user-dashboard-panels-classify-templates-more-accurat.md +6 -0
  15. package/corpus/templates/analytics/changelog/2026-06-24-dashboard-panel-deletes-now-stay-deleted-after-refresh.md +6 -0
  16. package/corpus/templates/analytics/changelog/2026-06-24-sql-panel-editors-now-highlight-query-syntax-and-keep-one-cl.md +6 -0
  17. package/corpus/templates/analytics/seeds/dashboards/agent-native-templates-first-party.json +2 -2
  18. package/corpus/templates/analytics/server/lib/first-party-metric-catalog.ts +9 -11
  19. package/dist/agent/durable-background.d.ts +44 -0
  20. package/dist/agent/durable-background.d.ts.map +1 -1
  21. package/dist/agent/durable-background.js +51 -0
  22. package/dist/agent/durable-background.js.map +1 -1
  23. package/dist/agent/production-agent.d.ts.map +1 -1
  24. package/dist/agent/production-agent.js +16 -3
  25. package/dist/agent/production-agent.js.map +1 -1
  26. package/dist/deploy/build.d.ts +37 -21
  27. package/dist/deploy/build.d.ts.map +1 -1
  28. package/dist/deploy/build.js +84 -40
  29. package/dist/deploy/build.js.map +1 -1
  30. package/package.json +1 -1
@@ -12,7 +12,7 @@ import { isDemoModeEnabled } from "../demo/config.js";
12
12
  import { redactDemoData, redactDemoString } from "../demo/redact.js";
13
13
  import { redactSensitiveFields, sanitizeToolErrorText, sanitizeToolErrorValue, } from "./tool-error-redaction.js";
14
14
  import { startRun, subscribeToRun, getActiveRunForThread, getActiveRunForThreadAsync, getRun, abortRun, tryClaimRunSlot, } from "./run-manager.js";
15
- import { AGENT_CHAT_PROCESS_RUN_PATH, AGENT_CHAT_BACKGROUND_RUN_FIELD, isAgentChatDurableBackgroundEnabled, isInBackgroundFunctionRuntime, } from "./durable-background.js";
15
+ import { AGENT_CHAT_BACKGROUND_RUN_FIELD, isAgentChatDurableBackgroundEnabled, isInBackgroundFunctionRuntime, resolveAgentChatProcessRunDispatchPath, } from "./durable-background.js";
16
16
  import { fireInternalDispatch } from "../server/self-dispatch.js";
17
17
  import { readBody } from "../server/h3-helpers.js";
18
18
  import { isReadOnlyShellCommand } from "../coding-tools/index.js";
@@ -3349,7 +3349,15 @@ export function createProductionAgentHandler(options) {
3349
3349
  try {
3350
3350
  await fireInternalDispatch({
3351
3351
  event,
3352
- path: AGENT_CHAT_PROCESS_RUN_PATH,
3352
+ // On hosted Netlify this is the standalone background function's DIRECT
3353
+ // url (`/.netlify/functions/server-agent-background`) — POSTing the
3354
+ // framework `_process-run` path would land on Nitro's synchronous `/*`
3355
+ // catch-all and never get the 15-min budget. The function's entry
3356
+ // rewrites the path back to AGENT_CHAT_PROCESS_RUN_PATH before
3357
+ // delegating to Nitro, so the `_process-run` plugin still runs and the
3358
+ // Authorization Bearer HMAC survives. Off-Netlify it stays the
3359
+ // framework path (handled in-process).
3360
+ path: resolveAgentChatProcessRunDispatchPath(),
3353
3361
  taskId: runId,
3354
3362
  body: {
3355
3363
  ...body,
@@ -3567,7 +3575,12 @@ export function createProductionAgentHandler(options) {
3567
3575
  try {
3568
3576
  await fireInternalDispatch({
3569
3577
  event,
3570
- path: AGENT_CHAT_PROCESS_RUN_PATH,
3578
+ // Continuation chunks must also land on the standalone async
3579
+ // background function (its direct url on hosted Netlify) so
3580
+ // each chunk keeps the 15-min budget; same path-resolution as
3581
+ // the initial dispatch. The function entry rewrites the path
3582
+ // back to `_process-run` for the Nitro router.
3583
+ path: resolveAgentChatProcessRunDispatchPath(),
3571
3584
  taskId: nextRunId,
3572
3585
  body: {
3573
3586
  ...body,