@w6w/embed 0.2.29 → 0.2.30

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 (36) hide show
  1. package/dist/{DocumentFormModal-CCIgA7pR.js → DocumentFormModal-B3VudaLb.js} +2 -2
  2. package/dist/{DocumentFormModal-CCIgA7pR.js.map → DocumentFormModal-B3VudaLb.js.map} +1 -1
  3. package/dist/{ImportSpecModal-DoxsVxru.js → ImportSpecModal-C-B8Jwxk.js} +2 -2
  4. package/dist/{ImportSpecModal-DoxsVxru.js.map → ImportSpecModal-C-B8Jwxk.js.map} +1 -1
  5. package/dist/WorkflowEditor-8NAcpjO_.js +1140 -0
  6. package/dist/WorkflowEditor-8NAcpjO_.js.map +1 -0
  7. package/dist/{editor-tools--Y3wlBZE.js → editor-tools-BIAW-wzt.js} +53 -53
  8. package/dist/{editor-tools--Y3wlBZE.js.map → editor-tools-BIAW-wzt.js.map} +1 -1
  9. package/dist/editor.mjs +1 -1
  10. package/dist/editors.mjs +50 -51
  11. package/dist/editors.mjs.map +1 -1
  12. package/dist/lib/recent-activity.d.ts +2 -2
  13. package/dist/lib/workflow-version.d.ts +19 -2
  14. package/dist/lists/AiKeyCreate.d.ts +20 -0
  15. package/dist/lists/CallableKindList.d.ts +17 -1
  16. package/dist/lists/CallableRowParts.d.ts +33 -0
  17. package/dist/lists/CredentialCreate.d.ts +17 -17
  18. package/dist/lists/CredentialFields.d.ts +18 -0
  19. package/dist/lists/CredentialList.d.ts +35 -3
  20. package/dist/lists.d.ts +2 -0
  21. package/dist/lists.mjs +1989 -1507
  22. package/dist/lists.mjs.map +1 -1
  23. package/dist/rail.mjs +1 -1
  24. package/dist/repos.mjs +59 -59
  25. package/dist/spec-export-BtnoV0ex.js +33 -0
  26. package/dist/spec-export-BtnoV0ex.js.map +1 -0
  27. package/dist/spec-import-FygyV8sy.js +272 -0
  28. package/dist/spec-import-FygyV8sy.js.map +1 -0
  29. package/package.json +5 -5
  30. package/src/styles.css +56 -0
  31. package/dist/WorkflowEditor-CBUwh85L.js +0 -1117
  32. package/dist/WorkflowEditor-CBUwh85L.js.map +0 -1
  33. package/dist/spec-export-DMMET5VM.js +0 -189
  34. package/dist/spec-export-DMMET5VM.js.map +0 -1
  35. package/dist/spec-import-0B6oUewa.js +0 -116
  36. package/dist/spec-import-0B6oUewa.js.map +0 -1
@@ -1,116 +0,0 @@
1
- import { useQueryClient as c, useMutation as o, useQuery as r } from "@tanstack/react-query";
2
- import { path as m } from "@w6w/sdk";
3
- import { u } from "./client-context-CX61Bgw-.js";
4
- import { i as d } from "./spec-import-invalidation-D3retX4Q.js";
5
- function b(e) {
6
- return e.shared ? e.sourceRepo == null ? "pending" : "synced" : "private";
7
- }
8
- function p(e) {
9
- return ["documents", e];
10
- }
11
- function y(e, t) {
12
- return ["documents", "detail", e, t];
13
- }
14
- function j(e, t, n = !0) {
15
- const s = u();
16
- return r({
17
- queryKey: y(e, t),
18
- queryFn: async () => await s.documents.get(e, { project: t }),
19
- enabled: n
20
- });
21
- }
22
- function F(e, t = !0) {
23
- const n = u();
24
- return r({
25
- queryKey: p(e),
26
- // Cast to DocWithProvenance[], same as useDocumentQuery above: the wire
27
- // response already carries `shared`/`source*`/`syncedAt` (repo.list()
28
- // serializes every document the same way repo.get() does), but the SDK's
29
- // own `Doc` type doesn't declare them yet (D-5). Without this cast,
30
- // DocumentsPage.tsx's list rows have no type-visible way to branch on
31
- // `d.shared` the way DocumentDetailPage.tsx already does.
32
- queryFn: async () => await n.documents.list({ project: e }),
33
- enabled: t
34
- });
35
- }
36
- function K() {
37
- const e = u(), t = c();
38
- return o({
39
- mutationFn: (n) => e.documents.create(n.input, { project: n.project }),
40
- onSuccess: () => t.invalidateQueries({ queryKey: ["documents"] })
41
- });
42
- }
43
- function Q() {
44
- const e = u(), t = c();
45
- return o({
46
- mutationFn: (n) => e.documents.update(n.id, n.patch, { project: n.project }),
47
- onSuccess: () => t.invalidateQueries({ queryKey: ["documents"] })
48
- });
49
- }
50
- function w() {
51
- const e = u(), t = c();
52
- return o({
53
- mutationFn: (n) => e.documents.delete(n.id, { project: n.project }),
54
- onSuccess: () => t.invalidateQueries({ queryKey: ["documents"] })
55
- });
56
- }
57
- function D() {
58
- const e = u(), t = c();
59
- return o({
60
- mutationFn: (n) => e.request({
61
- method: "POST",
62
- path: m`/documents/${n.id}/sync`,
63
- query: { project: n.project }
64
- }),
65
- onSuccess: () => t.invalidateQueries({ queryKey: ["documents"] })
66
- });
67
- }
68
- function a(e, t) {
69
- return { ...e, project: t };
70
- }
71
- function l(e, t, n) {
72
- return { ...a(e, t), selections: n };
73
- }
74
- function M(e) {
75
- const t = u();
76
- return o({
77
- mutationFn: async (n) => (await t.request({
78
- method: "POST",
79
- path: "/spec/preview",
80
- body: a(n, e)
81
- })).body
82
- });
83
- }
84
- function P(e, t) {
85
- const n = u(), s = c();
86
- return o({
87
- mutationFn: async (i) => (await n.request({
88
- method: "POST",
89
- path: "/spec/import",
90
- body: l(i.document, e, i.selections)
91
- })).body,
92
- // A row exists in every `201` outcome (T2.1.2 §E creates it even when
93
- // some references stayed unresolved), so the list is stale either way —
94
- // but ONLY the list the imported kind actually belongs to (AC-3): the
95
- // unconditional `functionsKey` this used to invalidate left an imported
96
- // Endpoint or Workflow's own list stale while pointlessly invalidating
97
- // Functions.
98
- onSuccess: (i) => d(s, i.kind, t, e)
99
- });
100
- }
101
- export {
102
- M as a,
103
- K as b,
104
- Q as c,
105
- l as d,
106
- a as e,
107
- y as f,
108
- b as g,
109
- p as h,
110
- w as i,
111
- j,
112
- F as k,
113
- D as l,
114
- P as u
115
- };
116
- //# sourceMappingURL=spec-import-0B6oUewa.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec-import-0B6oUewa.js","sources":["../src/repos/documents.ts","../src/repos/spec-import.ts"],"sourcesContent":["/**\n * The `documents` domain repo — wraps `@w6w/sdk`'s `client.documents.*` in\n * react-query (HITL-6). `QueryClientProvider` (`main.tsx`) stays the actual\n * cache; this module only centralizes the query-key factory and the\n * `queryFn`/`mutationFn` pairs so every page reads documents the same way.\n *\n * Documents are project-scoped (`documents.ts`'s `DocumentOptions.project`);\n * every mutation here invalidates the unscoped `[\"documents\"]` key, which\n * prefix-matches every project-scoped query key produced by\n * {@linkcode documentsKey} — the same invalidation shape `DocumentsPage.tsx`\n * used before this migration.\n */\nimport { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { path, type Doc, type DocumentCreateInput, type DocumentPatch } from \"@w6w/sdk\";\nimport { useEmbedClient } from \"../draft/client-context.ts\";\n\n/**\n * T1.1.1's wire shape for one document, pinned here ahead of that node\n * merging (this node is dispatched speculatively against it — see this\n * task's contract). `shared` and the six `source*`/`syncedAt` fields are all\n * additive over the SDK's own `Doc`, so a locally-created document simply\n * carries them as `null` (or `false` for `shared`) rather than omitting\n * them. Do not rename a field — the server produces these names verbatim.\n */\nexport interface DocWithProvenance extends Doc {\n shared: boolean;\n /** \"owner/name\" of the bound repository this document was pulled from. */\n sourceRepo: string | null;\n /** Repo-relative file path the document was pulled from. */\n sourcePath: string | null;\n /** The pulled file's content hash — NOT a commit SHA. */\n sourceSha: string | null;\n /** The repository's HEAD commit SHA at pull time — NOT a content hash. */\n sourceRefSha: string | null;\n /** Web link to the file; may be absent even when the rest of provenance is set. */\n sourceUrl: string | null;\n /** ISO-8601. Stamped at the document's last actual change, not at every sync. */\n syncedAt: string | null;\n}\n\n/**\n * Which provenance state `DocumentDetailPage.tsx`'s \"Source\" card should\n * render for `doc`. `shared` (not `sourceRepo`) is the gate: a shared\n * document whose provenance columns haven't been stamped yet (any document\n * synced before this feature shipped, until its next real-content sync —\n * tier-1 \"unchanged\" syncs never restamp provenance) is still shared, and\n * must say so, distinct from a genuinely private document.\n *\n * - `\"private\"` — `doc.shared` is false. No card.\n * - `\"pending\"` — shared, but `sourceRepo` hasn't been stamped yet.\n * - `\"synced\"` — shared, with full provenance available.\n */\nexport function documentProvenanceState(doc: DocWithProvenance): \"private\" | \"pending\" | \"synced\" {\n if (!doc.shared) return \"private\";\n return doc.sourceRepo == null ? \"pending\" : \"synced\";\n}\n\n/** Query key for a documents list, optionally scoped to a project. */\nexport function documentsKey(projectId?: string) {\n return [\"documents\", projectId] as const;\n}\n\n/**\n * Query key for a single document, scoped to a project (mirrors\n * {@linkcode useDocumentsQuery}'s fix at :72-79/:80-87 below — `projectId`\n * belongs in the key itself, not just the `queryFn`, so a render where the\n * key was cached under `projectId === undefined` genuinely changes key once\n * `ProjectContext` resolves the real one, instead of reusing the same cache\n * entry — and its `retry: false` wrong-project 404 — forever). Still sits\n * under the bare `[\"documents\"]` prefix every mutation below invalidates, so\n * an edit/delete refreshes this page too — `\"detail\"` keeps it from\n * colliding with {@linkcode documentsKey}'s own `[\"documents\", projectId]`\n * shape.\n */\nexport function documentKey(id: string, projectId?: string) {\n return [\"documents\", \"detail\", id, projectId] as const;\n}\n\n/**\n * A single document by id, cast to {@link DocWithProvenance} (D-5): the SDK's\n * `Doc` doesn't model T1.1.1's provenance fields yet, and this repo is not\n * the place to fork or extend `@w6w/sdk` (D-4). The `project` option is\n * passed exactly as {@linkcode useDocumentsQuery} passes it — a document in a\n * non-default project 404s without it. `enabled` defaults `true` to preserve\n * that unscoped fallback for a caller that genuinely wants it — same as\n * {@linkcode useDocumentsQuery}'s own `enabled` doc comment below — a\n * project-scoped page should instead pass `enabled: projectId != null` so it\n * never queries (and never renders) against the wrong project while\n * `ProjectContext`'s own project list is still resolving.\n */\nexport function useDocumentQuery(id: string, projectId?: string, enabled = true) {\n const apiClient = useEmbedClient();\n return useQuery({\n queryKey: documentKey(id, projectId),\n queryFn: async () =>\n (await apiClient.documents.get(id, { project: projectId })) as DocWithProvenance,\n enabled,\n });\n}\n\n/**\n * The current project's documents (or the tenant default when unscoped).\n * `enabled` defaults `true` to preserve that unscoped fallback for a caller\n * that genuinely wants it — a project-scoped page should instead pass\n * `enabled: projectId != null` so it never queries (and never renders)\n * against the wrong project while `ProjectContext`'s own project list is\n * still resolving.\n */\nexport function useDocumentsQuery(projectId?: string, enabled = true) {\n const apiClient = useEmbedClient();\n return useQuery({\n queryKey: documentsKey(projectId),\n // Cast to DocWithProvenance[], same as useDocumentQuery above: the wire\n // response already carries `shared`/`source*`/`syncedAt` (repo.list()\n // serializes every document the same way repo.get() does), but the SDK's\n // own `Doc` type doesn't declare them yet (D-5). Without this cast,\n // DocumentsPage.tsx's list rows have no type-visible way to branch on\n // `d.shared` the way DocumentDetailPage.tsx already does.\n queryFn: async () =>\n (await apiClient.documents.list({ project: projectId })) as DocWithProvenance[],\n enabled,\n });\n}\n\nexport function useCreateDocumentMutation() {\n const apiClient = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (vars: { input: DocumentCreateInput; project?: string }) =>\n apiClient.documents.create(vars.input, { project: vars.project }),\n onSuccess: () => qc.invalidateQueries({ queryKey: [\"documents\"] }),\n });\n}\n\nexport function useUpdateDocumentMutation() {\n const apiClient = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (vars: { id: string; patch: DocumentPatch; project?: string }) =>\n apiClient.documents.update(vars.id, vars.patch, { project: vars.project }),\n onSuccess: () => qc.invalidateQueries({ queryKey: [\"documents\"] }),\n });\n}\n\nexport function useDeleteDocumentMutation() {\n const apiClient = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (vars: { id: string; project?: string }) =>\n apiClient.documents.delete(vars.id, { project: vars.project }),\n onSuccess: () => qc.invalidateQueries({ queryKey: [\"documents\"] }),\n });\n}\n\n/**\n * Re-pulls a shared document from its bound repository (\"Sync\" button, T2.1.4)\n * — `POST /documents/:id/sync` (T3.1.1). No SDK method exists for this route\n * yet (D-4/D-5), so this goes through `apiClient.request()` directly, same\n * escape hatch `repo-sync.ts`'s `useSyncRepoNowMutation` uses. The document\n * routes are project-scoped by QUERY param, not a path segment (unlike\n * `repo-binding`'s `/projects/:id/...` shape), so `project` travels in\n * `query`, mirroring {@linkcode useDocumentQuery}'s own `{ project: … }` use.\n */\nexport function useSyncDocumentMutation() {\n const apiClient = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: (vars: { id: string; project?: string }) =>\n apiClient.request<{ document: DocWithProvenance }>({\n method: \"POST\",\n path: path`/documents/${vars.id}/sync`,\n query: { project: vars.project },\n }),\n onSuccess: () => qc.invalidateQueries({ queryKey: [\"documents\"] }),\n });\n}\n","/**\n * The `/spec/import` repo (T3.2.1). A NEW file, deliberately kept out of\n * `repos/functions.ts` / `repos/endpoints.ts` (T3.1.1 owns both) so the two\n * nodes never collide on the same file.\n *\n * **Every operation here goes through `W6WClient.request<T>()`, never\n * `apiClient.console.*`.** `T2.1.2`'s `inputs.touch` has no\n * `packages/wrappers` entry — there is no SDK method for this route — so\n * `request()` is the client's public escape hatch, exactly as\n * `repos/vars.ts`'s own docblock explains for the same reason.\n *\n * The posted `document` is forwarded to the server as-is (spread, never edited):\n * this module adds only `project` (and, on import, `selections`) beside it, validates nothing, and — this is the mechanism pin note 1\n * of the contract states from the side a wrong implementation must break —\n * never falls back to the sibling whole-definition save mutation\n * `FunctionIdentityModal.tsx` uses, on any response. `/spec/import` is where\n * the server-side sealed-secret walker lives (T2.1.2 §B runs\n * `assertNoSecretEnvelopes` over the WHOLE supplied body before any write);\n * a \"helpful\" fallback to that other write path would route a pasted\n * document straight around that check.\n *\n * T1.2.1 generalizes this over all three kinds: `onSuccess` invalidates the\n * ONE list key the imported document's own kind reads (`result.kind`, which\n * the server always echoes), never an unconditional `functionsKey`. The\n * decision of which key that is lives in `../lib/spec-import-invalidation.ts`\n * (a pure, `node --test`-loadable module). The three list keys are INJECTED by the host\n * (`listKeys`): Studio's `functionsKey`/`endpointsKey` live in its own `repos/callables`.\n */\nimport { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport { useEmbedClient } from \"../draft/client-context.ts\";\nimport type { PreviewDependency, Selection, SpecDependency } from \"../lib/import-bindings.ts\";\nimport {\n type SpecImportListKeys,\n invalidateImportedCallable,\n} from \"../lib/spec-import-invalidation.ts\";\n\n/**\n * Mirrors `T2.1.1`'s `SpecDocument` (`T2.1.1.contract.md:134-141`): the\n * portable document a `GET /<kind>/:id/spec` export produces and this\n * route consumes. Not a bare `FunctionDef` — connection/var references ride\n * as re-bindable `rebind` entries, never live ids.\n */\nexport interface SpecImportDocument {\n specVersion: string;\n kind: \"function\" | \"endpoint\" | \"workflow\";\n callable: Record<string, unknown>;\n rebind: unknown[];\n}\n\n/** One reference site's outcome (T2.1.2 §E's `SpecImportReferenceReport`). */\nexport interface SpecImportReferenceReport {\n path: string;\n kind: string;\n resolved: boolean;\n /** Present only when `resolved` is `true`. */\n boundTo?: string;\n /** Present only when `resolved` is `false`. */\n reason?: string;\n}\n\n/** The `201` body `POST /spec/import` returns (T2.1.2 §E). */\nexport interface SpecImportResult {\n kind: \"function\" | \"endpoint\" | \"workflow\";\n callable: { id: string; key?: string; name?: string };\n references: SpecImportReferenceReport[];\n dependencies?: ImportDependencyStatus[];\n}\n\n/** IF-1 `POST /spec/preview` result: one entry per dependency, with server options + suggestion. */\nexport interface PreviewResult {\n kind: \"function\" | \"endpoint\" | \"workflow\";\n dependencies: PreviewDependency[];\n references?: SpecImportReferenceReport[];\n}\n\n/** One dependency's outcome in the import result (IF-1 `dependencies` status[]). */\nexport interface ImportDependencyStatus {\n key: string;\n kind?: SpecDependency[\"kind\"];\n name?: string;\n status: \"bound\" | \"created\" | \"unconfigured\" | string;\n boundTo?: string;\n reason?: string;\n}\n\n/** The preview request body: the document plus the host project, sent explicitly. */\nexport function buildPreviewBody(\n document: Record<string, unknown>,\n project: string | undefined,\n): Record<string, unknown> {\n return { ...document, project };\n}\n\n/** The import request body: the preview body plus the FULL selections map (`unconfigured` included). */\nexport function buildImportBody(\n document: Record<string, unknown>,\n project: string | undefined,\n selections: Record<string, Selection>,\n): Record<string, unknown> {\n return { ...buildPreviewBody(document, project), selections };\n}\n\n/**\n * `POST /spec/preview` (IF-1). Read-only on the server; a failure rejects the mutation and the\n * caller blocks Create — there is NO fallback to posting the document verbatim to `/spec/import`.\n */\nexport function useSpecPreviewMutation(project: string | undefined) {\n const apiClient = useEmbedClient();\n return useMutation({\n mutationFn: async (document: Record<string, unknown>) => {\n const res = await apiClient.request<PreviewResult>({\n method: \"POST\",\n path: \"/spec/preview\",\n body: buildPreviewBody(document, project),\n });\n return res.body;\n },\n });\n}\n\n/**\n * `POST /spec/import`. Success is always `201` — including a partially\n * resolved import (T2.1.2 §E: \"report, never fail silently\"). This mutation\n * resolves on ANY `201`; branching on `references.every(r => r.resolved)` is\n * the caller's job (A5), never this repo's.\n *\n * `project` is the caller's current project — only the workflow arm reads it\n * (`listKeys.workflowsKey(project)`), but every caller passes it uniformly rather than branching on kind itself; see\n * `../lib/spec-import-invalidation.ts` for why the key differs by kind.\n */\nexport function useImportSpecMutation(project: string | undefined, listKeys: SpecImportListKeys) {\n const apiClient = useEmbedClient();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: {\n document: Record<string, unknown>;\n selections: Record<string, Selection>;\n }) => {\n const res = await apiClient.request<SpecImportResult>({\n method: \"POST\",\n path: \"/spec/import\",\n body: buildImportBody(input.document, project, input.selections),\n });\n return res.body;\n },\n // A row exists in every `201` outcome (T2.1.2 §E creates it even when\n // some references stayed unresolved), so the list is stale either way —\n // but ONLY the list the imported kind actually belongs to (AC-3): the\n // unconditional `functionsKey` this used to invalidate left an imported\n // Endpoint or Workflow's own list stale while pointlessly invalidating\n // Functions.\n onSuccess: (result) => invalidateImportedCallable(qc, result.kind, listKeys, project),\n });\n}\n"],"names":["documentProvenanceState","doc","documentsKey","projectId","documentKey","id","useDocumentQuery","enabled","apiClient","useEmbedClient","useQuery","useDocumentsQuery","useCreateDocumentMutation","qc","useQueryClient","useMutation","vars","useUpdateDocumentMutation","useDeleteDocumentMutation","useSyncDocumentMutation","path","buildPreviewBody","document","project","buildImportBody","selections","useSpecPreviewMutation","useImportSpecMutation","listKeys","input","result","invalidateImportedCall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