@agent-native/core 0.180.0 → 0.180.1-nightly-20260915205111

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 (24) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/calendar/app/hooks/use-events.ts +11 -2
  3. package/corpus/templates/design/.generated/bridge/editor-chrome.generated.ts +14 -20
  4. package/corpus/templates/design/app/components/design/DesignCanvas.tsx +323 -109
  5. package/corpus/templates/design/app/components/design/ResponsiveInteractBar.tsx +48 -18
  6. package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +22 -20
  7. package/corpus/templates/design/app/components/design/design-canvas/LocalNetworkAccessPrompt.tsx +92 -0
  8. package/corpus/templates/design/app/components/design/design-canvas/external-preview.ts +41 -0
  9. package/corpus/templates/design/app/pages/DesignEditor.tsx +55 -3
  10. package/corpus/templates/design/changelog/2026-09-15-fixed-padding-indicator-tick-marks-so-they-render-at-the-sam.md +6 -0
  11. package/dist/collab/awareness.d.ts +2 -2
  12. package/dist/collab/routes.d.ts +1 -1
  13. package/dist/collab/struct-routes.d.ts +1 -1
  14. package/dist/file-upload/actions/upload-image.d.ts +3 -3
  15. package/dist/notifications/routes.d.ts +3 -3
  16. package/dist/observability/routes.d.ts +3 -3
  17. package/dist/org/handlers.d.ts +1 -1
  18. package/dist/progress/routes.d.ts +1 -1
  19. package/dist/server/core-routes-plugin.d.ts +1 -1
  20. package/dist/vite/sentry-source-maps.js +12 -20
  21. package/docs/content/template-plan-automations.mdx +30 -30
  22. package/docs/content/template-plan-developers.mdx +10 -10
  23. package/docs/content/template-plan-review-workflow.mdx +2 -2
  24. package/package.json +3 -3
package/corpus/README.md CHANGED
@@ -31,4 +31,4 @@ rg -n "defineAction|useActionQuery" node_modules/@agent-native/core/corpus
31
31
 
32
32
  ## Generated Counts
33
33
 
34
- - template files: 9484
34
+ - template files: 9486
@@ -243,19 +243,28 @@ export function shouldDeferOptimisticEventUpdate(
243
243
  );
244
244
  }
245
245
 
246
- function updateListEventQueries(
246
+ export function updateListEventQueries(
247
247
  queryClient: ReturnType<typeof useQueryClient>,
248
248
  updater: (
249
249
  old: CalendarEvent[] | undefined,
250
250
  params: Record<string, string> | undefined,
251
251
  ) => CalendarEvent[] | undefined,
252
252
  ) {
253
+ // The "list-events" query key prefix is shared with useOverlayCalendarStatus,
254
+ // which requests `format: "inventory"` and caches an `OverlayStatusResult`
255
+ // object instead of a `CalendarEvent[]`. Skip those by their params — not by
256
+ // checking whether the current data is an array — because an inventory
257
+ // query can sit in the cache with `data === undefined` (still loading, or
258
+ // reset) and would otherwise get seeded with a `CalendarEvent[]` the first
259
+ // time this runs.
253
260
  const queries = queryClient.getQueriesData<CalendarEvent[]>({
254
261
  queryKey: LIST_EVENTS_QUERY_KEY,
255
262
  });
256
263
 
257
- for (const [queryKey] of queries) {
264
+ for (const [queryKey, data] of queries) {
258
265
  const params = getListEventsParams(queryKey);
266
+ if (params?.format === "inventory") continue;
267
+ if (data !== undefined && !Array.isArray(data)) continue;
259
268
  queryClient.setQueryData<CalendarEvent[]>(queryKey, (old) =>
260
269
  updater(old, params),
261
270
  );
@@ -4957,11 +4957,8 @@ export const editorChromeBridgeScript: string = `"use strict";
4957
4957
  var paddingRight = readPx(cs.paddingRight);
4958
4958
  var paddingBottom = readPx(cs.paddingBottom);
4959
4959
  var paddingLeft = readPx(cs.paddingLeft);
4960
- var sx = chromeScaleX();
4961
- var sy = chromeScaleY();
4962
4960
  var line = chromeLineScale();
4963
- var hLineWidth = Math.max(6, Math.min(18, rect.width * 0.12)) * sx;
4964
- var vLineHeight = Math.max(6, Math.min(18, rect.height * 0.12)) * sy;
4961
+ var tickLength = Math.max(6, Math.min(18, Math.min(rect.width, rect.height) * 0.12)) * line;
4965
4962
  var innerLeft = borderLeft;
4966
4963
  var innerTop = borderTop;
4967
4964
  var innerWidth = Math.max(1, rect.width - borderLeft - borderRight);
@@ -4983,9 +4980,9 @@ export const editorChromeBridgeScript: string = `"use strict";
4983
4980
  height: paddingTop
4984
4981
  },
4985
4982
  line: {
4986
- x: rect.width / 2 - hLineWidth / 2,
4983
+ x: rect.width / 2 - tickLength / 2,
4987
4984
  y: innerTop + paddingTop / 2 - line / 2,
4988
- width: hLineWidth,
4985
+ width: tickLength,
4989
4986
  height: line
4990
4987
  }
4991
4988
  })
@@ -5008,9 +5005,9 @@ export const editorChromeBridgeScript: string = `"use strict";
5008
5005
  height: paddingBottom
5009
5006
  },
5010
5007
  line: {
5011
- x: rect.width / 2 - hLineWidth / 2,
5008
+ x: rect.width / 2 - tickLength / 2,
5012
5009
  y: rect.height - borderBottom - paddingBottom / 2 - line / 2,
5013
- width: hLineWidth,
5010
+ width: tickLength,
5014
5011
  height: line
5015
5012
  }
5016
5013
  })
@@ -5034,9 +5031,9 @@ export const editorChromeBridgeScript: string = `"use strict";
5034
5031
  },
5035
5032
  line: {
5036
5033
  x: innerLeft + paddingLeft / 2 - line / 2,
5037
- y: rect.height / 2 - vLineHeight / 2,
5034
+ y: rect.height / 2 - tickLength / 2,
5038
5035
  width: line,
5039
- height: vLineHeight
5036
+ height: tickLength
5040
5037
  }
5041
5038
  })
5042
5039
  );
@@ -5059,9 +5056,9 @@ export const editorChromeBridgeScript: string = `"use strict";
5059
5056
  },
5060
5057
  line: {
5061
5058
  x: rect.width - borderRight - paddingRight / 2 - line / 2,
5062
- y: rect.height / 2 - vLineHeight / 2,
5059
+ y: rect.height / 2 - tickLength / 2,
5063
5060
  width: line,
5064
- height: vLineHeight
5061
+ height: tickLength
5065
5062
  }
5066
5063
  })
5067
5064
  );
@@ -5072,11 +5069,8 @@ export const editorChromeBridgeScript: string = `"use strict";
5072
5069
  var children = visibleLayoutChildren(el);
5073
5070
  if (children.length < 2) return [];
5074
5071
  var handles = [];
5075
- var sx = chromeScaleX();
5076
- var sy = chromeScaleY();
5077
5072
  var line = chromeLineScale();
5078
- var hLineWidth = 8 * sx;
5079
- var vLineHeight = 8 * sy;
5073
+ var tickLength = 8 * line;
5080
5074
  var isFlex = cs.display === "flex" || cs.display === "inline-flex";
5081
5075
  var isGrid = cs.display === "grid" || cs.display === "inline-grid";
5082
5076
  if (!isFlex && !isGrid) return handles;
@@ -5112,9 +5106,9 @@ export const editorChromeBridgeScript: string = `"use strict";
5112
5106
  region: { x: a.right, y: top, width: gap, height },
5113
5107
  line: {
5114
5108
  x: a.right + gap / 2 - line / 2,
5115
- y: top + height / 2 - vLineHeight / 2,
5109
+ y: top + height / 2 - tickLength / 2,
5116
5110
  width: line,
5117
- height: vLineHeight
5111
+ height: tickLength
5118
5112
  }
5119
5113
  })
5120
5114
  );
@@ -5132,9 +5126,9 @@ export const editorChromeBridgeScript: string = `"use strict";
5132
5126
  value: cssGap,
5133
5127
  region: { x: left, y: a.bottom, width, height: gap },
5134
5128
  line: {
5135
- x: left + width / 2 - hLineWidth / 2,
5129
+ x: left + width / 2 - tickLength / 2,
5136
5130
  y: a.bottom + gap / 2 - line / 2,
5137
- width: hLineWidth,
5131
+ width: tickLength,
5138
5132
  height: line
5139
5133
  }
5140
5134
  })