@burdenoff/microfe-healthybowl 2026.918.3 → 2026.918.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkspaceWriteAccess.js","names":[],"sources":["../../src/hooks/useWorkspaceWriteAccess.ts"],"sourcesContent":["/**\n * HealthyBowl's write-access probe.\n *\n * ★ The mechanism moved to `fe-libs/shared/assistant`; the RESOURCE TYPES stay\n * here, because which resources prove \"this user can write in this workspace\"\n * is the product's answer. The shared hook takes them with no default, so\n * another product cannot accidentally probe crops.\n */\nimport { useWorkspaceWriteAccess as useShared } from '@burdenoff/fe-libs/shared/assistant/useWorkspaceWriteAccess';\nexport type { WorkspaceWriteAccess } from '@burdenoff/fe-libs/shared/assistant/useWorkspaceWriteAccess';\n\n/**\n * Resources a Take-action turn is most likely to write. Not exhaustive — the\n * assistant can reach far more — but a representative probe.\n */\nconst PROBE_RESOURCES = ['healthybowl_crop', 'healthybowl_field', 'healthybowl_task'] as const;\n\nexport function useWorkspaceWriteAccess(actorId: string | null, workspaceId: string | null) {\n return useShared(actorId, workspaceId, PROBE_RESOURCES);\n}\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useWorkspaceWriteAccess.js","names":[],"sources":["../../src/hooks/useWorkspaceWriteAccess.ts"],"sourcesContent":["/**\n * HealthyBowl's write-access probe.\n *\n * ★ The mechanism moved to `fe-libs/shared/assistant`; the RESOURCE TYPES stay\n * here, because which resources prove \"this user can write in this workspace\"\n * is the product's answer. The shared hook takes them with no default, so\n * another product cannot accidentally probe crops.\n */\nimport { useWorkspaceWriteAccess as useShared } from '@burdenoff/fe-libs/shared/assistant/useWorkspaceWriteAccess';\nimport type { WorkspaceWriteAccess } from '@burdenoff/fe-libs/shared/assistant/useWorkspaceWriteAccess';\nexport type { WorkspaceWriteAccess } from '@burdenoff/fe-libs/shared/assistant/useWorkspaceWriteAccess';\n\n/**\n * Resources a Take-action turn is most likely to write. Not exhaustive — the\n * assistant can reach far more — but a representative probe.\n */\nconst PROBE_RESOURCES = ['healthybowl_crop', 'healthybowl_field', 'healthybowl_task'] as const;\n\n// ★ Annotated on purpose. Without it the return type is whatever fe-libs currently infers, so an\n// upstream shape change surfaces at every CALL SITE rather than here at the seam — the one file\n// whose job is to be where that break is noticed.\nexport function useWorkspaceWriteAccess(actorId: string | null, workspaceId: string | null): WorkspaceWriteAccess {\n return useShared(actorId, workspaceId, PROBE_RESOURCES);\n}\n"],"mappings":";;AAgBA,IAAM,IAAkB;CAAC;CAAoB;CAAqB;AAAkB;AAKpF,SAAgB,EAAwB,GAAwB,GAAkD;CAChH,OAAO,EAAU,GAAS,GAAa,CAAe;AACxD"}
|
package/package.json
CHANGED