@burdenoff/microfe-healthybowl 2026.814.16 → 2026.815.1
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/dist/healthybowl/pages/tasks/defaultTaskProjectDecision.js +25 -0
- package/dist/healthybowl/pages/tasks/defaultTaskProjectDecision.js.map +1 -0
- package/dist/healthybowl/pages/tasks/useDefaultTaskProject.js +50 -46
- package/dist/healthybowl/pages/tasks/useDefaultTaskProject.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/healthybowl/pages/tasks/defaultTaskProjectDecision.ts
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
let r = e.data?.planmagnetCreateProject?.id;
|
|
4
|
+
if (r) return {
|
|
5
|
+
ok: !0,
|
|
6
|
+
id: r
|
|
7
|
+
};
|
|
8
|
+
let i = t.find((e) => e.key === n) ?? t[0];
|
|
9
|
+
if (i) return {
|
|
10
|
+
ok: !0,
|
|
11
|
+
id: i.id
|
|
12
|
+
};
|
|
13
|
+
let a = e.error?.message?.trim();
|
|
14
|
+
return a ? {
|
|
15
|
+
ok: !1,
|
|
16
|
+
message: `Could not create the Farm Tasks project: ${a}`
|
|
17
|
+
} : {
|
|
18
|
+
ok: !1,
|
|
19
|
+
message: "Could not create the Farm Tasks project: the server reported success but returned no project id."
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { e as decideAfterCreate };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=defaultTaskProjectDecision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultTaskProjectDecision.js","names":[],"sources":["../../../../src/healthybowl/pages/tasks/defaultTaskProjectDecision.ts"],"sourcesContent":["/**\n * What to do when creating the default Farm Tasks project does not return an id (BOFF-6316).\n *\n * ★ WHY THIS IS ITS OWN MODULE. `defaultTaskProjectErrors.test.ts` currently MIRRORS the hook's\n * failure branch in a local copy, because the hook needs an Apollo client and a React renderer to\n * drive and this repo has no component-test harness. A mirror drifts. Pulling the decision into a\n * React-free, Apollo-free module lets the hook and the test share ONE implementation, so the test\n * can no longer pass against logic the product does not run.\n *\n * ★ WHY IT ADOPTS RATHER THAN CLASSIFIES. `Project` carries `@@unique([workspaceId, key])`, so a\n * second \"FARM\" is refused — and the refusal arrives as a gateway-masked\n * `INTERNAL_SERVER_ERROR: \"Unexpected error.\"` that no client can tell apart from a real fault.\n * Proven in prod with a controlled A/B/C: the identical mutation with a UNIQUE key succeeds.\n *\n * So this does not try to recognise the error. It asks a better question — *is there a project\n * NOW?* — and adopts one if so. That closes the race whatever the server says, which matters\n * because today the server says nothing usable.\n */\n\nexport interface ProjectLike {\n id: string;\n key?: string | null;\n}\n\nexport interface CreateProjectResultLike {\n data?: { planmagnetCreateProject?: { id?: string } | null } | null;\n error?: { message?: string } | null;\n}\n\nexport type ProjectDecision = { ok: true; id: string } | { ok: false; message: string };\n\n/**\n * Decide the outcome after a create that produced no id.\n *\n * @param created the Apollo result of the create mutation\n * @param relisted projects visible RIGHT NOW, re-read after the failed create\n * @param preferredKey the canonical key to prefer when adopting\n */\nexport function decideAfterCreate(\n created: CreateProjectResultLike,\n relisted: ProjectLike[],\n preferredKey: string\n): ProjectDecision {\n const newId = created.data?.planmagnetCreateProject?.id;\n if (newId) {\n // Partial success is still success: an id beats an accompanying error.\n return { ok: true, id: newId };\n }\n\n // ★ The adopt path. A project existing now means the create collided with it (or the earlier\n // list simply missed it) — either way the caller wanted \"a project\", and there is one.\n const adopted = relisted.find((p) => p.key === preferredKey) ?? relisted[0];\n if (adopted) {\n return { ok: true, id: adopted.id };\n }\n\n // Nothing to adopt: this is a real failure. Surface the gateway's own words, which the hook\n // used to discard in favour of \"createProject did not return a project id.\"\n const reason = created.error?.message?.trim();\n if (reason) {\n return { ok: false, message: `Could not create the Farm Tasks project: ${reason}` };\n }\n // No error AND no id AND nothing to adopt — a genuinely different failure worth naming, since\n // it points at the selection set or the resolver rather than at the caller.\n return {\n ok: false,\n message: 'Could not create the Farm Tasks project: the server reported success but returned no project id.',\n };\n}\n"],"mappings":";AAsCA,SAAgB,EACd,GACA,GACA,GACiB;CACjB,IAAM,IAAQ,EAAQ,MAAM,yBAAyB;AACrD,KAAI,EAEF,QAAO;EAAE,IAAI;EAAM,IAAI;EAAO;CAKhC,IAAM,IAAU,EAAS,MAAM,MAAM,EAAE,QAAQ,EAAa,IAAI,EAAS;AACzE,KAAI,EACF,QAAO;EAAE,IAAI;EAAM,IAAI,EAAQ;EAAI;CAKrC,IAAM,IAAS,EAAQ,OAAO,SAAS,MAAM;AAM7C,QALI,IACK;EAAE,IAAI;EAAO,SAAS,4CAA4C;EAAU,GAI9E;EACL,IAAI;EACJ,SAAS;EACV"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { decideAfterCreate as e } from "./defaultTaskProjectDecision.js";
|
|
2
|
+
import { useCallback as t, useEffect as n, useRef as r, useState as i } from "react";
|
|
3
|
+
import { gql as a } from "@apollo/client";
|
|
3
4
|
//#region src/healthybowl/pages/tasks/useDefaultTaskProject.ts
|
|
4
|
-
var
|
|
5
|
+
var o = "FARM", s = "Farm Tasks", c = a`
|
|
5
6
|
query HealthyBowlListTaskProjects($workspaceId: ID!) {
|
|
6
7
|
planmagnetProjects(workspaceId: $workspaceId) {
|
|
7
8
|
items {
|
|
@@ -11,7 +12,7 @@ var a = "FARM", o = "Farm Tasks", s = i`
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
`,
|
|
15
|
+
`, l = a`
|
|
15
16
|
mutation HealthyBowlCreateTaskProject($input: PlanmagnetCreateProjectInput!) {
|
|
16
17
|
planmagnetCreateProject(input: $input) {
|
|
17
18
|
id
|
|
@@ -20,63 +21,66 @@ var a = "FARM", o = "Farm Tasks", s = i`
|
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
`;
|
|
23
|
-
function
|
|
24
|
-
let [
|
|
25
|
-
|
|
24
|
+
function u(a, u, d) {
|
|
25
|
+
let [f, p] = i(null), [m, h] = i(!1), [g, _] = i(null), [v, y] = i(0), b = r(null), x = t(() => {
|
|
26
|
+
_(null), p(null), y((e) => e + 1);
|
|
26
27
|
}, []);
|
|
27
|
-
return
|
|
28
|
-
if (!
|
|
29
|
-
|
|
28
|
+
return n(() => {
|
|
29
|
+
if (!a || !u) {
|
|
30
|
+
h(!1);
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
let
|
|
35
|
-
let
|
|
36
|
-
query:
|
|
37
|
-
variables: { workspaceId:
|
|
33
|
+
let t = !1;
|
|
34
|
+
h(!0), _(null);
|
|
35
|
+
let n = async () => {
|
|
36
|
+
let t = (await a.query({
|
|
37
|
+
query: c,
|
|
38
|
+
variables: { workspaceId: u },
|
|
38
39
|
fetchPolicy: "network-only"
|
|
39
|
-
})).data?.planmagnetProjects?.items ?? [],
|
|
40
|
-
if (
|
|
41
|
-
if (!
|
|
42
|
-
let
|
|
43
|
-
mutation:
|
|
40
|
+
})).data?.planmagnetProjects?.items ?? [], n = t.find((e) => e.key === "FARM") ?? t[0];
|
|
41
|
+
if (n) return n.id;
|
|
42
|
+
if (!d) throw Error("Cannot create the Farm Tasks project without a current user.");
|
|
43
|
+
let r = e(await a.mutate({
|
|
44
|
+
mutation: l,
|
|
44
45
|
variables: { input: {
|
|
45
|
-
name:
|
|
46
|
-
key:
|
|
47
|
-
ownerId:
|
|
46
|
+
name: s,
|
|
47
|
+
key: o,
|
|
48
|
+
ownerId: d,
|
|
48
49
|
methodology: "KANBAN"
|
|
49
50
|
} }
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
}), (await a.query({
|
|
52
|
+
query: c,
|
|
53
|
+
variables: { workspaceId: u },
|
|
54
|
+
fetchPolicy: "network-only"
|
|
55
|
+
})).data?.planmagnetProjects?.items ?? [], o);
|
|
56
|
+
if (r.ok) return r.id;
|
|
57
|
+
throw Error(r.message);
|
|
58
|
+
}, r = `${u}::${d ?? ""}::${v}`;
|
|
59
|
+
return (!b.current || b.current.key !== r) && (b.current = {
|
|
60
|
+
key: r,
|
|
61
|
+
promise: n()
|
|
62
|
+
}), b.current.promise.then((e) => {
|
|
63
|
+
t || p(e);
|
|
64
|
+
}).catch((e) => {
|
|
65
|
+
b.current?.key === r && (b.current = null), t || _(e instanceof Error ? e : Error(String(e)));
|
|
62
66
|
}).finally(() => {
|
|
63
|
-
|
|
67
|
+
t || h(!1);
|
|
64
68
|
}), () => {
|
|
65
|
-
|
|
69
|
+
t = !0;
|
|
66
70
|
};
|
|
67
71
|
}, [
|
|
68
|
-
|
|
69
|
-
l,
|
|
72
|
+
a,
|
|
70
73
|
u,
|
|
71
|
-
|
|
74
|
+
d,
|
|
75
|
+
v
|
|
72
76
|
]), {
|
|
73
|
-
projectId:
|
|
74
|
-
loading:
|
|
75
|
-
error:
|
|
76
|
-
retry:
|
|
77
|
+
projectId: f,
|
|
78
|
+
loading: m,
|
|
79
|
+
error: g,
|
|
80
|
+
retry: x
|
|
77
81
|
};
|
|
78
82
|
}
|
|
79
83
|
//#endregion
|
|
80
|
-
export {
|
|
84
|
+
export { u as useDefaultTaskProject };
|
|
81
85
|
|
|
82
86
|
//# sourceMappingURL=useDefaultTaskProject.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDefaultTaskProject.js","names":[],"sources":["../../../../src/healthybowl/pages/tasks/useDefaultTaskProject.ts"],"sourcesContent":["/**\n * useDefaultTaskProject — resolves the workspace's default PlanMagnet project\n * that Farm Tasks are created in.\n *\n * The embedded `<TasksPageCore/>` (from `@burdenoff/planmagnet-fe-sdk`) needs a\n * non-null `projectId` to enable the create flow (the backend\n * `PlanmagnetCreateWorkItemInput.projectId` is required). HealthyBowl farmers\n * never see PlanMagnet's project concept, so we transparently get-or-create a\n * single per-workspace \"Farm Tasks\" project and hand its id to the SDK.\n *\n * Strategy:\n * 1. Query `planmagnetProjects(workspaceId)` (prefixed composed root).\n * 2. Reuse the first project whose `key` is FARM_TASKS_PROJECT_KEY, else the\n * first project of any kind (a workspace usually has just this one).\n * 3. If none exist, `planmagnetCreateProject` a \"Farm Tasks\" project.\n *\n * BYO-Apollo: takes the workspace Apollo client as an arg (the same client the\n * SDK board uses) so both the project bootstrap and the board hit the same\n * workspaces gateway with identical auth/context.\n *\n * @module healthybowl\n */\n\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { gql, type ApolloClient } from '@apollo/client';\n\n/**\n * Deterministic key for the single HealthyBowl \"Farm Tasks\" project per\n * workspace. Used both to create the project and to recognise it on re-load so\n * we never create a second one.\n */\nexport const FARM_TASKS_PROJECT_KEY = 'FARM';\nconst FARM_TASKS_PROJECT_NAME = 'Farm Tasks';\n\n// The composed supergraph exposes PlanMagnet project ops under the\n// `planmagnet*` prefix (WorkItem/Project ops are prefixed post-federation).\nconst LIST_PROJECTS = gql`\n query HealthyBowlListTaskProjects($workspaceId: ID!) {\n planmagnetProjects(workspaceId: $workspaceId) {\n items {\n id\n key\n name\n }\n }\n }\n`;\n\nconst CREATE_PROJECT = gql`\n mutation HealthyBowlCreateTaskProject($input: PlanmagnetCreateProjectInput!) {\n planmagnetCreateProject(input: $input) {\n id\n key\n name\n }\n }\n`;\n\ninterface ProjectRow {\n id: string;\n key: string;\n name: string;\n}\n\ninterface ListProjectsData {\n planmagnetProjects: { items: ProjectRow[] } | null;\n}\n\ninterface CreateProjectData {\n planmagnetCreateProject: ProjectRow;\n}\n\nexport interface UseDefaultTaskProjectResult {\n /** The resolved default-project id, or null while resolving / on error. */\n projectId: string | null;\n loading: boolean;\n error: Error | null;\n /** Re-run the get-or-create flow (e.g. after an error). */\n retry: () => void;\n}\n\n/**\n * Resolve (and lazily create) the workspace's default Farm Tasks project.\n *\n * @param client Workspace Apollo client (BYO — same client the SDK board uses).\n * @param workspaceId Active workspace id (empty string = not ready; hook idles).\n * @param ownerId Actor id to own a freshly-created project (current user).\n */\nexport function useDefaultTaskProject(\n client: ApolloClient | null,\n workspaceId: string,\n ownerId: string | undefined\n): UseDefaultTaskProjectResult {\n const [projectId, setProjectId] = useState<string | null>(null);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n const [attempt, setAttempt] = useState(0);\n\n /**\n * Dedupes the get-or-create across concurrent mounts and React's StrictMode\n * double-invoke, so two resolvers cannot race and create two \"Farm Tasks\"\n * projects for one workspace.\n *\n * ★ This used to be a plain `useRef(false)` that was assigned on entry and\n * cleared in `finally` and **never read** — the comment promised a guard that\n * did not exist (BOFF-6316). Holding the in-flight promise instead of a\n * boolean is what makes it real: a second caller awaits the first rather than\n * being dropped, so cancelling one mount cannot strand the other.\n *\n * Keyed so that changing workspace/owner, or pressing Retry, genuinely\n * re-resolves instead of reusing a stale answer.\n */\n const inFlightRef = useRef<{ key: string; promise: Promise<string> } | null>(null);\n\n const retry = useCallback(() => {\n setError(null);\n setProjectId(null);\n setAttempt((n) => n + 1);\n }, []);\n\n useEffect(() => {\n if (!client || !workspaceId) {\n setLoading(false);\n return;\n }\n\n let cancelled = false;\n setLoading(true);\n setError(null);\n\n const resolveProject = async (): Promise<string> => {\n // 1. Look for an existing project (prefer the canonical FARM key).\n const listed = await client.query<ListProjectsData>({\n query: LIST_PROJECTS,\n variables: { workspaceId },\n fetchPolicy: 'network-only',\n });\n const items = listed.data?.planmagnetProjects?.items ?? [];\n const existing = items.find((p) => p.key === FARM_TASKS_PROJECT_KEY) ?? items[0];\n if (existing) {\n return existing.id;\n }\n\n // 2. None exist — create the default Farm Tasks project. ownerId is\n // required by the backend; without a current user we can't create.\n if (!ownerId) {\n throw new Error('Cannot create the Farm Tasks project without a current user.');\n }\n\n const created = await client.mutate<CreateProjectData>({\n mutation: CREATE_PROJECT,\n variables: {\n input: {\n name: FARM_TASKS_PROJECT_NAME,\n key: FARM_TASKS_PROJECT_KEY,\n ownerId,\n methodology: 'KANBAN',\n },\n },\n });\n\n
|
|
1
|
+
{"version":3,"file":"useDefaultTaskProject.js","names":[],"sources":["../../../../src/healthybowl/pages/tasks/useDefaultTaskProject.ts"],"sourcesContent":["/**\n * useDefaultTaskProject — resolves the workspace's default PlanMagnet project\n * that Farm Tasks are created in.\n *\n * The embedded `<TasksPageCore/>` (from `@burdenoff/planmagnet-fe-sdk`) needs a\n * non-null `projectId` to enable the create flow (the backend\n * `PlanmagnetCreateWorkItemInput.projectId` is required). HealthyBowl farmers\n * never see PlanMagnet's project concept, so we transparently get-or-create a\n * single per-workspace \"Farm Tasks\" project and hand its id to the SDK.\n *\n * Strategy:\n * 1. Query `planmagnetProjects(workspaceId)` (prefixed composed root).\n * 2. Reuse the first project whose `key` is FARM_TASKS_PROJECT_KEY, else the\n * first project of any kind (a workspace usually has just this one).\n * 3. If none exist, `planmagnetCreateProject` a \"Farm Tasks\" project.\n *\n * BYO-Apollo: takes the workspace Apollo client as an arg (the same client the\n * SDK board uses) so both the project bootstrap and the board hit the same\n * workspaces gateway with identical auth/context.\n *\n * @module healthybowl\n */\n\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { gql, type ApolloClient } from '@apollo/client';\n\nimport { decideAfterCreate } from './defaultTaskProjectDecision';\n\n/**\n * Deterministic key for the single HealthyBowl \"Farm Tasks\" project per\n * workspace. Used both to create the project and to recognise it on re-load so\n * we never create a second one.\n */\nexport const FARM_TASKS_PROJECT_KEY = 'FARM';\nconst FARM_TASKS_PROJECT_NAME = 'Farm Tasks';\n\n// The composed supergraph exposes PlanMagnet project ops under the\n// `planmagnet*` prefix (WorkItem/Project ops are prefixed post-federation).\nconst LIST_PROJECTS = gql`\n query HealthyBowlListTaskProjects($workspaceId: ID!) {\n planmagnetProjects(workspaceId: $workspaceId) {\n items {\n id\n key\n name\n }\n }\n }\n`;\n\nconst CREATE_PROJECT = gql`\n mutation HealthyBowlCreateTaskProject($input: PlanmagnetCreateProjectInput!) {\n planmagnetCreateProject(input: $input) {\n id\n key\n name\n }\n }\n`;\n\ninterface ProjectRow {\n id: string;\n key: string;\n name: string;\n}\n\ninterface ListProjectsData {\n planmagnetProjects: { items: ProjectRow[] } | null;\n}\n\ninterface CreateProjectData {\n planmagnetCreateProject: ProjectRow;\n}\n\nexport interface UseDefaultTaskProjectResult {\n /** The resolved default-project id, or null while resolving / on error. */\n projectId: string | null;\n loading: boolean;\n error: Error | null;\n /** Re-run the get-or-create flow (e.g. after an error). */\n retry: () => void;\n}\n\n/**\n * Resolve (and lazily create) the workspace's default Farm Tasks project.\n *\n * @param client Workspace Apollo client (BYO — same client the SDK board uses).\n * @param workspaceId Active workspace id (empty string = not ready; hook idles).\n * @param ownerId Actor id to own a freshly-created project (current user).\n */\nexport function useDefaultTaskProject(\n client: ApolloClient | null,\n workspaceId: string,\n ownerId: string | undefined\n): UseDefaultTaskProjectResult {\n const [projectId, setProjectId] = useState<string | null>(null);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n const [attempt, setAttempt] = useState(0);\n\n /**\n * Dedupes the get-or-create across concurrent mounts and React's StrictMode\n * double-invoke, so two resolvers cannot race and create two \"Farm Tasks\"\n * projects for one workspace.\n *\n * ★ This used to be a plain `useRef(false)` that was assigned on entry and\n * cleared in `finally` and **never read** — the comment promised a guard that\n * did not exist (BOFF-6316). Holding the in-flight promise instead of a\n * boolean is what makes it real: a second caller awaits the first rather than\n * being dropped, so cancelling one mount cannot strand the other.\n *\n * Keyed so that changing workspace/owner, or pressing Retry, genuinely\n * re-resolves instead of reusing a stale answer.\n */\n const inFlightRef = useRef<{ key: string; promise: Promise<string> } | null>(null);\n\n const retry = useCallback(() => {\n setError(null);\n setProjectId(null);\n setAttempt((n) => n + 1);\n }, []);\n\n useEffect(() => {\n if (!client || !workspaceId) {\n setLoading(false);\n return;\n }\n\n let cancelled = false;\n setLoading(true);\n setError(null);\n\n const resolveProject = async (): Promise<string> => {\n // 1. Look for an existing project (prefer the canonical FARM key).\n const listed = await client.query<ListProjectsData>({\n query: LIST_PROJECTS,\n variables: { workspaceId },\n fetchPolicy: 'network-only',\n });\n const items = listed.data?.planmagnetProjects?.items ?? [];\n const existing = items.find((p) => p.key === FARM_TASKS_PROJECT_KEY) ?? items[0];\n if (existing) {\n return existing.id;\n }\n\n // 2. None exist — create the default Farm Tasks project. ownerId is\n // required by the backend; without a current user we can't create.\n if (!ownerId) {\n throw new Error('Cannot create the Farm Tasks project without a current user.');\n }\n\n const created = await client.mutate<CreateProjectData>({\n mutation: CREATE_PROJECT,\n variables: {\n input: {\n name: FARM_TASKS_PROJECT_NAME,\n key: FARM_TASKS_PROJECT_KEY,\n ownerId,\n methodology: 'KANBAN',\n },\n },\n });\n\n // Re-read before deciding: a project existing NOW means this create collided with it, and\n // the right answer is to adopt rather than fail. See defaultTaskProjectDecision.ts for why\n // this does not attempt to classify the error.\n const relisted = await client.query<ListProjectsData>({\n query: LIST_PROJECTS,\n variables: { workspaceId },\n fetchPolicy: 'network-only',\n });\n\n const decision = decideAfterCreate(\n created,\n relisted.data?.planmagnetProjects?.items ?? [],\n FARM_TASKS_PROJECT_KEY\n );\n if (decision.ok) {\n return decision.id;\n }\n throw new Error(decision.message);\n };\n\n const key = `${workspaceId}::${ownerId ?? ''}::${attempt}`;\n if (!inFlightRef.current || inFlightRef.current.key !== key) {\n inFlightRef.current = { key, promise: resolveProject() };\n }\n\n void inFlightRef.current.promise\n .then((id) => {\n if (!cancelled) setProjectId(id);\n })\n .catch((err: unknown) => {\n // Clear the cache so Retry re-runs rather than replaying the rejection.\n if (inFlightRef.current?.key === key) inFlightRef.current = null;\n if (!cancelled) setError(err instanceof Error ? err : new Error(String(err)));\n })\n .finally(() => {\n if (!cancelled) setLoading(false);\n });\n\n return () => {\n cancelled = true;\n };\n // `attempt` is the retry trigger; ownerId/workspaceId/client re-resolve on change.\n }, [client, workspaceId, ownerId, attempt]);\n\n return { projectId, loading, error, retry };\n}\n"],"mappings":";;;;AAiCA,IAAa,IAAyB,QAChC,IAA0B,cAI1B,IAAgB,CAAG;;;;;;;;;;GAYnB,IAAiB,CAAG;;;;;;;;;AAwC1B,SAAgB,EACd,GACA,GACA,GAC6B;CAC7B,IAAM,CAAC,GAAW,KAAgB,EAAwB,KAAK,EACzD,CAAC,GAAS,KAAc,EAAS,GAAM,EACvC,CAAC,GAAO,KAAY,EAAuB,KAAK,EAChD,CAAC,GAAS,KAAc,EAAS,EAAE,EAgBnC,IAAc,EAAyD,KAAK,EAE5E,IAAQ,QAAkB;AAG9B,EAFA,EAAS,KAAK,EACd,EAAa,KAAK,EAClB,GAAY,MAAM,IAAI,EAAE;IACvB,EAAE,CAAC;AAuFN,QArFA,QAAgB;AACd,MAAI,CAAC,KAAU,CAAC,GAAa;AAC3B,KAAW,GAAM;AACjB;;EAGF,IAAI,IAAY;AAEhB,EADA,EAAW,GAAK,EAChB,EAAS,KAAK;EAEd,IAAM,IAAiB,YAA6B;GAOlD,IAAM,KALS,MAAM,EAAO,MAAwB;IAClD,OAAO;IACP,WAAW,EAAE,gBAAa;IAC1B,aAAa;IACd,CAAC,EACmB,MAAM,oBAAoB,SAAS,EAAE,EACpD,IAAW,EAAM,MAAM,MAAM,EAAE,QAAA,OAA+B,IAAI,EAAM;AAC9E,OAAI,EACF,QAAO,EAAS;AAKlB,OAAI,CAAC,EACH,OAAU,MAAM,+DAA+D;GAwBjF,IAAM,IAAW,EArBD,MAAM,EAAO,OAA0B;IACrD,UAAU;IACV,WAAW,EACT,OAAO;KACL,MAAM;KACN,KAAK;KACL;KACA,aAAa;KACd,EACF;IACF,CAAC,GAKe,MAAM,EAAO,MAAwB;IACpD,OAAO;IACP,WAAW,EAAE,gBAAa;IAC1B,aAAa;IACd,CAAC,EAIS,MAAM,oBAAoB,SAAS,EAAE,EAC9C,EACD;AACD,OAAI,EAAS,GACX,QAAO,EAAS;AAElB,SAAU,MAAM,EAAS,QAAQ;KAG7B,IAAM,GAAG,EAAY,IAAI,KAAW,GAAG,IAAI;AAkBjD,UAjBI,CAAC,EAAY,WAAW,EAAY,QAAQ,QAAQ,OACtD,EAAY,UAAU;GAAE;GAAK,SAAS,GAAgB;GAAE,GAGrD,EAAY,QAAQ,QACtB,MAAM,MAAO;AACZ,GAAK,KAAW,EAAa,EAAG;IAChC,CACD,OAAO,MAAiB;AAGvB,GADI,EAAY,SAAS,QAAQ,MAAK,EAAY,UAAU,OACvD,KAAW,EAAS,aAAe,QAAQ,IAAU,MAAM,OAAO,EAAI,CAAC,CAAC;IAC7E,CACD,cAAc;AACb,GAAK,KAAW,EAAW,GAAM;IACjC,QAES;AACX,OAAY;;IAGb;EAAC;EAAQ;EAAa;EAAS;EAAQ,CAAC,EAEpC;EAAE;EAAW;EAAS;EAAO;EAAO"}
|
package/package.json
CHANGED