@fayz-ai/sdk 0.30.1 → 0.36.0

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/agent.d.ts CHANGED
@@ -113,6 +113,20 @@ export interface FayzAgentChatInput {
113
113
  };
114
114
  /** Runtime context the agent should know about (page, locale, tenant). */
115
115
  context?: Record<string, unknown>;
116
+ /**
117
+ * This turn is a TASK, not a conversation: do not keep it.
118
+ *
119
+ * A chat turn is worth storing because someone will scroll back to it. A
120
+ * feature asking «which product is this NF-e line?» is not: it is one
121
+ * question, with a JSON answer, that nobody reads twice. Storing it buries the
122
+ * person's real threads under machine traffic and keeps a copy of their
123
+ * catalogue in the broker for no reader.
124
+ *
125
+ * Pair it with omitting `externalUserId` and `conversationId` — the two fields
126
+ * that attach a turn to a person and to a thread. `createOneShotAsk` in
127
+ * `@fayz-ai/admin` is the sanctioned door and omits all three by construction.
128
+ */
129
+ ephemeral?: boolean;
116
130
  /** Files the user attached this turn, as digests — never as bytes. */
117
131
  attachments?: AgentAttachmentDigest[];
118
132
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,sBAAsB;IACrC,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,0DAA0D;IAC1D,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA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AO,CAAC,qBAAqB,CAAC,CAAA;IAC/D;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,kBAAkB,EAAE,SAAS,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAC3G,oEAAoE;IACpE,iBAAiB,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,4BAA4B,EAAE,CAAC,CAAA;IACzG,sEAAsE;IACtE,eAAe,CACb,cAAc,EAAE,MAAM,EACtB,cAAc,CAAC,EAAE,MAAM,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACxC;AAWD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,GAAG,eAAe,CAoItF"}
package/dist/agent.js CHANGED
@@ -1,3 +1,3 @@
1
- export { FayzAgentError, createFayzAgentClient } from './chunk-KTRZI44K.js';
1
+ export { FayzAgentError, createFayzAgentClient } from './chunk-DOSYIWOR.js';
2
2
  //# sourceMappingURL=agent.js.map
3
3
  //# sourceMappingURL=agent.js.map
@@ -135,5 +135,5 @@ function createFayzAgentClient(options) {
135
135
  }
136
136
 
137
137
  export { FayzAgentError, createFayzAgentClient };
138
- //# sourceMappingURL=chunk-KTRZI44K.js.map
139
- //# sourceMappingURL=chunk-KTRZI44K.js.map
138
+ //# sourceMappingURL=chunk-DOSYIWOR.js.map
139
+ //# sourceMappingURL=chunk-DOSYIWOR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/agent.ts"],"names":["eventName"],"mappings":";AA2KO,IAAM,cAAA,GAAN,cAA6B,KAAA,CAAM;AAAA,EACxC,WAAA,CACE,SACS,MAAA,EACT;AACA,IAAA,KAAA,CAAM,OAAO,CAAA;AAFJ,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAGT,IAAA,IAAA,CAAK,IAAA,GAAO,gBAAA;AAAA,EACd;AACF;AA0DA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A,CAAY,EAAE,CAAA;AAId,MAAA,MAAM,YAAA,GAA+C,EAAE,GAAI,IAAA,IAAQ,EAAC,EAAG;AACvE,MAAA,IAAI,CAAC,YAAA,CAAa,OAAA,EAAS,YAAA,CAAa,OAAA,GAAU,WAAA;AAClD,MAAA,OAAO,kBAAkB,YAAY,CAAA;AAAA,IACvC,CAAA;AAAA,IAEA,MAAM,iBAAA,CAAkB,cAAA,EAAgB,MAAA,EAAQ;AAC9C,MAAA,MAAM,QAAQ,cAAA,GAAiB,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,cAAc,CAAC,CAAA,CAAA,GAAK,EAAA;AACzF,MAAA,MAAM,OAAO,MAAM,OAAA;AAAA,QACjB,iBAAiB,KAAK,CAAA,CAAA;AAAA,QACtB,EAAE,MAAA,EAAQ,KAAA,EAAO,MAAA;AAAO,OAC1B;AACA,MAAA,OAAO,IAAA,CAAK,iBAAiB,EAAC;AAAA,IAChC,CAAA;AAAA,IAEA,MAAM,eAAA,CAAgB,cAAA,EAAgB,cAAA,EAAgB,MAAA,EAAQ;AAC5D,MAAA,MAAM,QAAQ,cAAA,GAAiB,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,cAAc,CAAC,CAAA,CAAA,GAAK,EAAA;AACzF,MAAA,MAAM,OAAO,MAAM,OAAA;AAAA,QACjB,CAAA,eAAA,EAAkB,kBAAA,CAAmB,cAAc,CAAC,GAAG,KAAK,CAAA,CAAA;AAAA,QAC5D,EAAE,MAAA,EAAQ,KAAA,EAAO,MAAA;AAAO,OAC1B;AACA,MAAA,OAAO,IAAA,CAAK,YAAA;AAAA,IACd;AAAA,GACF;AACF","file":"chunk-DOSYIWOR.js","sourcesContent":["/**\n * Client for the Fayz agent broker — the runtime surface a generated app uses\n * to reach the AI agent configured for its project in Fayz.\n *\n * Mirrors `createFayzShopProvider`: the app holds a publishable key, Fayz holds\n * the model credentials. The key ships in the bundle the same way a Supabase\n * anon key does; it only ever resolves to the one agent its web channel belongs\n * to, and the broker rate-limits per project.\n *\n * Tools are client-plane. The app declares what it can do (`tools`), the model\n * decides what to call, and the app executes the calls against its own session\n * before handing results back. Fayz never needs the app's data credentials.\n */\n\nexport interface FayzAgentClientOptions {\n /** Fayz API base, e.g. https://fayz.ai/api */\n baseUrl: string\n projectId: string\n /** Publishable key of the project's WEB agent channel. */\n publishableKey: string\n fetcher?: typeof fetch\n}\n\nexport interface FayzAgentTool {\n name: string\n description: string\n /** JSON Schema for the tool's arguments. */\n parameters?: Record<string, unknown>\n}\n\nexport interface FayzAgentToolCall {\n id: string\n name: string\n arguments: Record<string, unknown>\n}\n\nexport interface FayzAgentToolResult {\n toolCallId: string\n content: string\n}\n\n/**\n * A file the user attached, described rather than uploaded.\n *\n * The bytes stay in the browser: a spreadsheet of clients or patients is\n * personal data, and handing it to a model provider so it can \"take a look\" is\n * a disclosure, not a convenience. What travels is the shape — sheets,\n * headers, how many rows, the inferred type per column and a handful of sample\n * rows. Enough to plan an import; never the data set itself.\n */\nexport interface AgentAttachmentColumn {\n name: string\n type: 'text' | 'number' | 'date' | 'boolean' | 'email' | 'phone'\n /** Literal shape when known ('dd/mm/yyyy', '1.234,56'). */\n format?: string\n /** Why the column is not the type it looks like (ambiguous dates, mixed values). */\n note?: string\n}\n\nexport interface AgentAttachmentSheet {\n name: string\n headers: string[]\n rowCount?: number\n sample: string[][]\n columnTypes: AgentAttachmentColumn[]\n}\n\nexport interface AgentAttachmentDigest {\n id: string\n name: string\n mime: string\n size: number\n kind: 'spreadsheet' | 'csv' | 'text' | 'image' | 'pdf' | 'binary'\n /** Multi-tab spreadsheets. Single-tab files use the flat fields below. */\n sheets?: AgentAttachmentSheet[]\n headers?: string[]\n rowCount?: number\n sample?: string[][]\n columnTypes?: AgentAttachmentColumn[]\n /** Head of a text/markdown file. */\n preview?: string\n /** What the reader had to guess at, truncate or give up on. */\n warnings?: string[]\n}\n\n/**\n * A file the user handed over TO BE READ — bytes, not a shape.\n *\n * The rule above holds and this is its one exception, drawn narrowly. A\n * spreadsheet of patients gets DIGESTED because nobody asked for it to be read;\n * it was attached so the agent could plan an import, and shipping it to a model\n * provider would be a disclosure nobody consented to.\n *\n * A photographed receipt is the opposite case in every respect: one document,\n * handed over on purpose, by a person whose whole request is \"read this\". The\n * gesture IS the consent, so bytes travel — and ONLY for a file that arrived\n * through an explicit request to read it. Never because an attachment happened\n * to be an image.\n */\nexport interface AgentInlineFile {\n name: string\n /** `image/jpeg`, `image/png`, `application/pdf`. */\n mime: string\n /** Base64 of the file, without the `data:` prefix. */\n data: string\n}\n\nexport interface FayzAgentChatInput {\n /** New end-user message. Omit when replying with tool results. */\n message?: string\n conversationId?: string\n /** Identity of the end user, required by channels with an INTERNAL audience. */\n externalUserId?: string\n /** Human label for that user, so the owner's dashboard shows a name. */\n externalUserName?: string\n tools?: FayzAgentTool[]\n toolResults?: FayzAgentToolResult[]\n /** Decision for a server-parked write (broker PENDING_CONFIRMATION step). */\n confirmAction?: { id: string; approved: boolean }\n /** Runtime context the agent should know about (page, locale, tenant). */\n context?: Record<string, unknown>\n /**\n * This turn is a TASK, not a conversation: do not keep it.\n *\n * A chat turn is worth storing because someone will scroll back to it. A\n * feature asking «which product is this NF-e line?» is not: it is one\n * question, with a JSON answer, that nobody reads twice. Storing it buries the\n * person's real threads under machine traffic and keeps a copy of their\n * catalogue in the broker for no reader.\n *\n * Pair it with omitting `externalUserId` and `conversationId` — the two fields\n * that attach a turn to a person and to a thread. `createOneShotAsk` in\n * `@fayz-ai/admin` is the sanctioned door and omits all three by construction.\n */\n ephemeral?: boolean\n /** Files the user attached this turn, as digests — never as bytes. */\n attachments?: AgentAttachmentDigest[]\n /**\n * Files the user handed over to be READ this turn — see AgentInlineFile.\n *\n * Separate from `attachments` on purpose: two fields means the boundary is\n * visible at every call site and in every request log, instead of being a\n * flag someone can flip by accident on a digest.\n */\n inlineFiles?: AgentInlineFile[]\n signal?: AbortSignal\n}\n\n/** A server-plane write the broker parked pending human confirmation. */\nexport interface FayzAgentPendingAction {\n id: string\n toolName: string\n title?: string\n params?: Record<string, unknown>\n}\n\nexport interface FayzAgentChatResponse {\n conversationId: string\n content: string\n toolCalls: FayzAgentToolCall[]\n /** Present when the broker is waiting on a confirmAction for this write. */\n pendingAction?: FayzAgentPendingAction\n}\n\nexport interface FayzAgentInfo {\n id: string\n name: string\n description: string | null\n icon: string | null\n}\n\nexport class FayzAgentError extends Error {\n constructor(\n message: string,\n readonly status: number,\n ) {\n super(message)\n this.name = 'FayzAgentError'\n }\n}\n\nexport interface FayzAgentConversationSummary {\n id: string\n title: string | null\n /** Last activity — the field the list is ordered by. */\n updatedAt: string\n}\n\nexport interface FayzAgentConversationMessage {\n id: string\n role: string\n content: string\n createdAt: string\n /** Files the user attached to this turn, as the digest that was sent. Only\n * the description — the bytes never left the browser that produced them. */\n attachments?: AgentAttachmentDigest[]\n /** Tool calls this reply made, with their results — so a resumed thread shows\n * the same trace and record links it showed live. */\n toolCalls?: Array<{\n name: string\n arguments?: Record<string, unknown>\n result?: string\n }>\n}\n\nexport interface FayzAgentConversationDetail {\n id: string\n title: string | null\n messages: FayzAgentConversationMessage[]\n}\n\nexport interface FayzAgentStreamCallbacks {\n /** Fired per text delta with the accumulated text so far (fill-in-place UIs). */\n onDelta?: (accumulated: string, delta: string) => void\n}\n\nexport interface FayzAgentClient {\n /** Identity of the agent behind the key, for rendering its name/icon. */\n getInfo(signal?: AbortSignal): Promise<FayzAgentInfo>\n chat(input: FayzAgentChatInput): Promise<FayzAgentChatResponse>\n /**\n * Like `chat`, but asks the broker for an SSE stream (`Accept:\n * text/event-stream`) and reports text deltas as they arrive. Falls back\n * transparently to the JSON round-trip when the broker predates streaming —\n * callers can always use this and treat `onDelta` as best-effort.\n */\n chatStream(input: FayzAgentChatInput, callbacks?: FayzAgentStreamCallbacks): Promise<FayzAgentChatResponse>\n /** The signed-in user's own threads, most-recently-active first. */\n listConversations(externalUserId?: string, signal?: AbortSignal): Promise<FayzAgentConversationSummary[]>\n /** One thread with its transcript — 404s on another user's thread. */\n getConversation(\n conversationId: string,\n externalUserId?: string,\n signal?: AbortSignal,\n ): Promise<FayzAgentConversationDetail>\n}\n\nfunction normalizeResponse(body: Partial<FayzAgentChatResponse>): FayzAgentChatResponse {\n return {\n conversationId: body.conversationId ?? '',\n content: body.content ?? '',\n toolCalls: body.toolCalls ?? [],\n ...(body.pendingAction ? { pendingAction: body.pendingAction } : {}),\n }\n}\n\nexport function createFayzAgentClient(options: FayzAgentClientOptions): FayzAgentClient {\n const fetcher = options.fetcher ?? globalThis.fetch\n const base = `${options.baseUrl.replace(/\\/+$/, '')}/public/projects/${options.projectId}/agents`\n const headers = {\n 'Content-Type': 'application/json',\n 'x-fayz-agent-key': options.publishableKey,\n }\n\n async function request<T>(path: string, init: RequestInit): Promise<T> {\n const response = await fetcher(`${base}${path}`, { ...init, headers })\n if (!response.ok) {\n const body = (await response.json().catch(() => null)) as { error?: string } | null\n throw new FayzAgentError(body?.error ?? `Agent request failed (${response.status})`, response.status)\n }\n return (await response.json()) as T\n }\n\n return {\n async getInfo(signal) {\n const body = await request<{ agent: FayzAgentInfo }>('/config', { method: 'GET', signal })\n return body.agent\n },\n\n async chat({ signal, ...input }) {\n const body = await request<Partial<FayzAgentChatResponse>>('/chat', {\n method: 'POST',\n body: JSON.stringify(input),\n signal,\n })\n return normalizeResponse(body)\n },\n\n async chatStream({ signal, ...input }, callbacks) {\n const response = await fetcher(`${base}/chat`, {\n method: 'POST',\n body: JSON.stringify(input),\n signal,\n headers: { ...headers, Accept: 'text/event-stream' },\n })\n if (!response.ok) {\n const body = (await response.json().catch(() => null)) as { error?: string } | null\n throw new FayzAgentError(body?.error ?? `Agent request failed (${response.status})`, response.status)\n }\n // Broker predates streaming (or chose not to): plain JSON round-trip.\n const contentType = response.headers.get('content-type') ?? ''\n if (!contentType.includes('text/event-stream') || !response.body) {\n return normalizeResponse((await response.json()) as Partial<FayzAgentChatResponse>)\n }\n\n const reader = response.body.getReader()\n const decoder = new TextDecoder()\n let buffer = ''\n let accumulated = ''\n let done: Partial<FayzAgentChatResponse> | null = null\n\n const dispatch = (eventName: string, data: string) => {\n if (!data) return\n let payload: Record<string, unknown>\n try {\n payload = JSON.parse(data) as Record<string, unknown>\n } catch {\n return\n }\n if (eventName === 'delta') {\n const text = typeof payload.text === 'string' ? payload.text : ''\n if (text) {\n accumulated += text\n callbacks?.onDelta?.(accumulated, text)\n }\n } else if (eventName === 'done') {\n done = payload as Partial<FayzAgentChatResponse>\n } else if (eventName === 'error') {\n throw new FayzAgentError(\n typeof payload.error === 'string' ? payload.error : 'Agent stream failed',\n response.status,\n )\n }\n }\n\n let eventName = 'message'\n let dataLines: string[] = []\n const processLine = (line: string) => {\n if (line === '') {\n dispatch(eventName, dataLines.join('\\n'))\n eventName = 'message'\n dataLines = []\n } else if (line.startsWith('event:')) {\n eventName = line.slice(6).trim()\n } else if (line.startsWith('data:')) {\n dataLines.push(line.slice(5).trimStart())\n }\n }\n\n for (;;) {\n const { value, done: streamDone } = await reader.read()\n if (streamDone) break\n buffer += decoder.decode(value, { stream: true })\n let newline = buffer.indexOf('\\n')\n while (newline >= 0) {\n processLine(buffer.slice(0, newline).replace(/\\r$/, ''))\n buffer = buffer.slice(newline + 1)\n newline = buffer.indexOf('\\n')\n }\n }\n processLine(buffer.replace(/\\r$/, ''))\n processLine('')\n\n // The final `done` event carries the same payload shape as the JSON\n // route; accumulated deltas back-fill `content` if the broker omits it.\n const finalPayload: Partial<FayzAgentChatResponse> = { ...(done ?? {}) }\n if (!finalPayload.content) finalPayload.content = accumulated\n return normalizeResponse(finalPayload)\n },\n\n async listConversations(externalUserId, signal) {\n const query = externalUserId ? `?externalUserId=${encodeURIComponent(externalUserId)}` : ''\n const body = await request<{ conversations?: FayzAgentConversationSummary[] }>(\n `/conversations${query}`,\n { method: 'GET', signal },\n )\n return body.conversations ?? []\n },\n\n async getConversation(conversationId, externalUserId, signal) {\n const query = externalUserId ? `?externalUserId=${encodeURIComponent(externalUserId)}` : ''\n const body = await request<{ conversation: FayzAgentConversationDetail }>(\n `/conversations/${encodeURIComponent(conversationId)}${query}`,\n { method: 'GET', signal },\n )\n return body.conversation\n },\n }\n}\n"]}
@@ -0,0 +1,135 @@
1
+ // src/release-channels.json
2
+ var release_channels_default = {
3
+ channels: {
4
+ stable: {
5
+ "@fayz-ai/sdk": "^0.36.0",
6
+ "@fayz-ai/admin": "^0.36.0",
7
+ "@fayz-ai/core": "^0.36.0",
8
+ "@fayz-ai/auth": "^0.36.0",
9
+ "@fayz-ai/ui": "^0.36.0",
10
+ "@fayz-ai/shop": "^0.36.0",
11
+ "@fayz-ai/storefront": "^0.36.0",
12
+ "@fayz-ai/portal": "^0.36.0",
13
+ "@fayz-ai/courses": "^0.36.0",
14
+ "@fayz-ai/db": "^0.22.0",
15
+ "@fayz-ai/plugin-agenda": "^0.21.0",
16
+ "@fayz-ai/plugin-auth": "^0.12.16",
17
+ "@fayz-ai/plugin-automations": "^0.15.3",
18
+ "@fayz-ai/plugin-blog": "^0.12.19",
19
+ "@fayz-ai/plugin-conversations": "^0.22.3",
20
+ "@fayz-ai/plugin-courses": "^0.10.24",
21
+ "@fayz-ai/plugin-crm": "^0.31.4",
22
+ "@fayz-ai/plugin-dashboard": "^0.9.23",
23
+ "@fayz-ai/plugin-financial": "^0.19.0",
24
+ "@fayz-ai/plugin-forms": "^0.13.3",
25
+ "@fayz-ai/plugin-inventory": "^0.14.0",
26
+ "@fayz-ai/plugin-marketing": "^0.13.7",
27
+ "@fayz-ai/plugin-menu": "^0.11.3",
28
+ "@fayz-ai/plugin-orders": "^0.12.20",
29
+ "@fayz-ai/plugin-payments": "^0.9.21",
30
+ "@fayz-ai/plugin-reports": "^0.16.3",
31
+ "@fayz-ai/plugin-reputation": "^0.10.18",
32
+ "@fayz-ai/plugin-shop": "^0.16.7",
33
+ "@fayz-ai/plugin-sites": "^0.9.21",
34
+ "@fayz-ai/plugin-tables": "^0.12.4",
35
+ "@fayz-ai/plugin-tasks": "^0.10.21"
36
+ },
37
+ latest: {
38
+ "@fayz-ai/sdk": "^0.36.0",
39
+ "@fayz-ai/admin": "^0.36.0",
40
+ "@fayz-ai/core": "^0.36.0",
41
+ "@fayz-ai/auth": "^0.36.0",
42
+ "@fayz-ai/ui": "^0.36.0",
43
+ "@fayz-ai/shop": "^0.36.0",
44
+ "@fayz-ai/storefront": "^0.36.0",
45
+ "@fayz-ai/portal": "^0.36.0",
46
+ "@fayz-ai/courses": "^0.36.0",
47
+ "@fayz-ai/db": "^0.22.0",
48
+ "@fayz-ai/plugin-agenda": "^0.21.0",
49
+ "@fayz-ai/plugin-auth": "^0.12.16",
50
+ "@fayz-ai/plugin-automations": "^0.15.3",
51
+ "@fayz-ai/plugin-blog": "^0.12.19",
52
+ "@fayz-ai/plugin-conversations": "^0.22.3",
53
+ "@fayz-ai/plugin-courses": "^0.10.24",
54
+ "@fayz-ai/plugin-crm": "^0.31.4",
55
+ "@fayz-ai/plugin-dashboard": "^0.9.23",
56
+ "@fayz-ai/plugin-financial": "^0.19.0",
57
+ "@fayz-ai/plugin-forms": "^0.13.3",
58
+ "@fayz-ai/plugin-inventory": "^0.14.0",
59
+ "@fayz-ai/plugin-marketing": "^0.13.7",
60
+ "@fayz-ai/plugin-menu": "^0.11.3",
61
+ "@fayz-ai/plugin-orders": "^0.12.20",
62
+ "@fayz-ai/plugin-payments": "^0.9.21",
63
+ "@fayz-ai/plugin-reports": "^0.16.3",
64
+ "@fayz-ai/plugin-reputation": "^0.10.18",
65
+ "@fayz-ai/plugin-shop": "^0.16.7",
66
+ "@fayz-ai/plugin-sites": "^0.9.21",
67
+ "@fayz-ai/plugin-tables": "^0.12.4",
68
+ "@fayz-ai/plugin-tasks": "^0.10.21"
69
+ },
70
+ preview: {
71
+ "@fayz-ai/sdk": "^0.36.0",
72
+ "@fayz-ai/admin": "^0.36.0",
73
+ "@fayz-ai/core": "^0.36.0",
74
+ "@fayz-ai/auth": "^0.36.0",
75
+ "@fayz-ai/ui": "^0.36.0",
76
+ "@fayz-ai/shop": "^0.36.0",
77
+ "@fayz-ai/storefront": "^0.36.0",
78
+ "@fayz-ai/portal": "^0.36.0",
79
+ "@fayz-ai/courses": "^0.36.0",
80
+ "@fayz-ai/db": "^0.22.0",
81
+ "@fayz-ai/plugin-agenda": "^0.21.0",
82
+ "@fayz-ai/plugin-auth": "^0.12.16",
83
+ "@fayz-ai/plugin-automations": "^0.15.3",
84
+ "@fayz-ai/plugin-blog": "^0.12.19",
85
+ "@fayz-ai/plugin-conversations": "^0.22.3",
86
+ "@fayz-ai/plugin-courses": "^0.10.24",
87
+ "@fayz-ai/plugin-crm": "^0.31.4",
88
+ "@fayz-ai/plugin-dashboard": "^0.9.23",
89
+ "@fayz-ai/plugin-financial": "^0.19.0",
90
+ "@fayz-ai/plugin-forms": "^0.13.3",
91
+ "@fayz-ai/plugin-inventory": "^0.14.0",
92
+ "@fayz-ai/plugin-marketing": "^0.13.7",
93
+ "@fayz-ai/plugin-menu": "^0.11.3",
94
+ "@fayz-ai/plugin-orders": "^0.12.20",
95
+ "@fayz-ai/plugin-payments": "^0.9.21",
96
+ "@fayz-ai/plugin-reports": "^0.16.3",
97
+ "@fayz-ai/plugin-reputation": "^0.10.18",
98
+ "@fayz-ai/plugin-shop": "^0.16.7",
99
+ "@fayz-ai/plugin-sites": "^0.9.21",
100
+ "@fayz-ai/plugin-tables": "^0.12.4",
101
+ "@fayz-ai/plugin-tasks": "^0.10.21"
102
+ }
103
+ }
104
+ };
105
+
106
+ // src/release-channels.ts
107
+ var releaseChannelPackages = release_channels_default.channels;
108
+ function buildVersionSet(channel) {
109
+ return {
110
+ channel,
111
+ packages: { ...releaseChannelPackages[channel] }
112
+ };
113
+ }
114
+ var fayzPackageVersionSets = {
115
+ stable: buildVersionSet("stable"),
116
+ latest: buildVersionSet("latest"),
117
+ preview: buildVersionSet("preview")
118
+ };
119
+ function resolveFayzPackageVersions(channel = "stable") {
120
+ return fayzPackageVersionSets[channel];
121
+ }
122
+ function resolveFayzPackageDependencies(channel = "stable") {
123
+ return { ...resolveFayzPackageVersions(channel).packages };
124
+ }
125
+ function resolveFayzPackageVersion(packageName, channel = "stable") {
126
+ const version = resolveFayzPackageVersions(channel).packages[packageName];
127
+ if (!version) {
128
+ throw new Error(`No Fayz package version configured for ${packageName} in ${channel} channel`);
129
+ }
130
+ return version;
131
+ }
132
+
133
+ export { fayzPackageVersionSets, resolveFayzPackageDependencies, resolveFayzPackageVersion, resolveFayzPackageVersions };
134
+ //# sourceMappingURL=chunk-QBNP7UYY.js.map
135
+ //# sourceMappingURL=chunk-QBNP7UYY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/release-channels.json","../src/release-channels.ts"],"names":[],"mappings":";AAAA,IAAA,wBAAA,GAAA;AAAA,EACE,QAAA,EAAY;AAAA,IACV,MAAA,EAAU;AAAA,MACR,cAAA,EAAgB,SAAA;AAAA,MAChB,gBAAA,EAAkB,SAAA;AAAA,MAClB,eAAA,EAAiB,SAAA;AAAA,MACjB,eAAA,EAAiB,SAAA;AAAA,MACjB,aAAA,EAAe,SAAA;AAAA,MACf,eAAA,EAAiB,SAAA;AAAA,MACjB,qBAAA,EAAuB,SAAA;AAAA,MACvB,iBAAA,EAAmB,SAAA;AAAA,MACnB,kBAAA,EAAoB,SAAA;AAAA,MACpB,aAAA,EAAe,SAAA;AAAA,MACf,wBAAA,EAA0B,SAAA;AAAA,MAC1B,sBAAA,EAAwB,UAAA;AAAA,MACxB,6BAAA,EAA+B,SAAA;AAAA,MAC/B,sBAAA,EAAwB,UAAA;AAAA,MACxB,+BAAA,EAAiC,SAAA;AAAA,MACjC,yBAAA,EAA2B,UAAA;AAAA,MAC3B,qBAAA,EAAuB,SAAA;AAAA,MACvB,2BAAA,EAA6B,SAAA;AAAA,MAC7B,2BAAA,EAA6B,SAAA;AAAA,MAC7B,uBAAA,EAAyB,SAAA;AAAA,MACzB,2BAAA,EAA6B,SAAA;AAAA,MAC7B,2BAAA,EAA6B,SAAA;AAAA,MAC7B,sBA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E,EAAA,OAAO;AAAA,IACL,OAAA;AAAA,IACA,QAAA,EAAU,EAAE,GAAG,sBAAA,CAAuB,OAAO,CAAA;AAAE,GACjD;AACF;AAEO,IAAM,sBAAA,GAA4E;AAAA,EACvF,MAAA,EAAQ,gBAAgB,QAAQ,CAAA;AAAA,EAChC,MAAA,EAAQ,gBAAgB,QAAQ,CAAA;AAAA,EAChC,OAAA,EAAS,gBAAgB,SAAS;AACpC;AAEO,SAAS,0BAAA,CAA2B,UAA8B,QAAA,EAAiC;AACxG,EAAA,OAAO,uBAAuB,OAAO,CAAA;AACvC;AAEO,SAAS,8BAAA,CAA+B,UAA8B,QAAA,EAAkC;AAC7G,EAAA,OAAO,EAAE,GAAG,0BAAA,CAA2B,OAAO,EAAE,QAAA,EAAS;AAC3D;AAEO,SAAS,yBAAA,CAA0B,WAAA,EAAqB,OAAA,GAA8B,QAAA,EAAkB;AAC7G,EAAA,MAAM,OAAA,GAAU,0BAAA,CAA2B,OAAO,CAAA,CAAE,SAAS,WAAW,CAAA;AAExE,EAAA,IAAI,CAAC,OAAA,EAAS;AACZ,IAAA,MAAM,IAAI,KAAA,CAAM,CAAA,uCAAA,EAA0C,WAAW,CAAA,IAAA,EAAO,OAAO,CAAA,QAAA,CAAU,CAAA;AAAA,EAC/F;AAEA,EAAA,OAAO,OAAA;AACT","file":"chunk-QBNP7UYY.js","sourcesContent":["{\n \"channels\": {\n \"stable\": {\n \"@fayz-ai/sdk\": \"^0.36.0\",\n \"@fayz-ai/admin\": \"^0.36.0\",\n \"@fayz-ai/core\": \"^0.36.0\",\n \"@fayz-ai/auth\": \"^0.36.0\",\n \"@fayz-ai/ui\": \"^0.36.0\",\n \"@fayz-ai/shop\": \"^0.36.0\",\n \"@fayz-ai/storefront\": \"^0.36.0\",\n \"@fayz-ai/portal\": \"^0.36.0\",\n \"@fayz-ai/courses\": \"^0.36.0\",\n \"@fayz-ai/db\": \"^0.22.0\",\n \"@fayz-ai/plugin-agenda\": \"^0.21.0\",\n \"@fayz-ai/plugin-auth\": \"^0.12.16\",\n \"@fayz-ai/plugin-automations\": \"^0.15.3\",\n \"@fayz-ai/plugin-blog\": \"^0.12.19\",\n \"@fayz-ai/plugin-conversations\": \"^0.22.3\",\n \"@fayz-ai/plugin-courses\": \"^0.10.24\",\n \"@fayz-ai/plugin-crm\": \"^0.31.4\",\n \"@fayz-ai/plugin-dashboard\": \"^0.9.23\",\n \"@fayz-ai/plugin-financial\": \"^0.19.0\",\n \"@fayz-ai/plugin-forms\": \"^0.13.3\",\n \"@fayz-ai/plugin-inventory\": \"^0.14.0\",\n \"@fayz-ai/plugin-marketing\": \"^0.13.7\",\n \"@fayz-ai/plugin-menu\": \"^0.11.3\",\n \"@fayz-ai/plugin-orders\": \"^0.12.20\",\n \"@fayz-ai/plugin-payments\": \"^0.9.21\",\n \"@fayz-ai/plugin-reports\": \"^0.16.3\",\n \"@fayz-ai/plugin-reputation\": \"^0.10.18\",\n \"@fayz-ai/plugin-shop\": \"^0.16.7\",\n \"@fayz-ai/plugin-sites\": \"^0.9.21\",\n \"@fayz-ai/plugin-tables\": \"^0.12.4\",\n \"@fayz-ai/plugin-tasks\": \"^0.10.21\"\n },\n \"latest\": {\n \"@fayz-ai/sdk\": \"^0.36.0\",\n \"@fayz-ai/admin\": \"^0.36.0\",\n \"@fayz-ai/core\": \"^0.36.0\",\n \"@fayz-ai/auth\": \"^0.36.0\",\n \"@fayz-ai/ui\": \"^0.36.0\",\n \"@fayz-ai/shop\": \"^0.36.0\",\n \"@fayz-ai/storefront\": \"^0.36.0\",\n \"@fayz-ai/portal\": \"^0.36.0\",\n \"@fayz-ai/courses\": \"^0.36.0\",\n \"@fayz-ai/db\": \"^0.22.0\",\n \"@fayz-ai/plugin-agenda\": \"^0.21.0\",\n \"@fayz-ai/plugin-auth\": \"^0.12.16\",\n \"@fayz-ai/plugin-automations\": \"^0.15.3\",\n \"@fayz-ai/plugin-blog\": \"^0.12.19\",\n \"@fayz-ai/plugin-conversations\": \"^0.22.3\",\n \"@fayz-ai/plugin-courses\": \"^0.10.24\",\n \"@fayz-ai/plugin-crm\": \"^0.31.4\",\n \"@fayz-ai/plugin-dashboard\": \"^0.9.23\",\n \"@fayz-ai/plugin-financial\": \"^0.19.0\",\n \"@fayz-ai/plugin-forms\": \"^0.13.3\",\n \"@fayz-ai/plugin-inventory\": \"^0.14.0\",\n \"@fayz-ai/plugin-marketing\": \"^0.13.7\",\n \"@fayz-ai/plugin-menu\": \"^0.11.3\",\n \"@fayz-ai/plugin-orders\": \"^0.12.20\",\n \"@fayz-ai/plugin-payments\": \"^0.9.21\",\n \"@fayz-ai/plugin-reports\": \"^0.16.3\",\n \"@fayz-ai/plugin-reputation\": \"^0.10.18\",\n \"@fayz-ai/plugin-shop\": \"^0.16.7\",\n \"@fayz-ai/plugin-sites\": \"^0.9.21\",\n \"@fayz-ai/plugin-tables\": \"^0.12.4\",\n \"@fayz-ai/plugin-tasks\": \"^0.10.21\"\n },\n \"preview\": {\n \"@fayz-ai/sdk\": \"^0.36.0\",\n \"@fayz-ai/admin\": \"^0.36.0\",\n \"@fayz-ai/core\": \"^0.36.0\",\n \"@fayz-ai/auth\": \"^0.36.0\",\n \"@fayz-ai/ui\": \"^0.36.0\",\n \"@fayz-ai/shop\": \"^0.36.0\",\n \"@fayz-ai/storefront\": \"^0.36.0\",\n \"@fayz-ai/portal\": \"^0.36.0\",\n \"@fayz-ai/courses\": \"^0.36.0\",\n \"@fayz-ai/db\": \"^0.22.0\",\n \"@fayz-ai/plugin-agenda\": \"^0.21.0\",\n \"@fayz-ai/plugin-auth\": \"^0.12.16\",\n \"@fayz-ai/plugin-automations\": \"^0.15.3\",\n \"@fayz-ai/plugin-blog\": \"^0.12.19\",\n \"@fayz-ai/plugin-conversations\": \"^0.22.3\",\n \"@fayz-ai/plugin-courses\": \"^0.10.24\",\n \"@fayz-ai/plugin-crm\": \"^0.31.4\",\n \"@fayz-ai/plugin-dashboard\": \"^0.9.23\",\n \"@fayz-ai/plugin-financial\": \"^0.19.0\",\n \"@fayz-ai/plugin-forms\": \"^0.13.3\",\n \"@fayz-ai/plugin-inventory\": \"^0.14.0\",\n \"@fayz-ai/plugin-marketing\": \"^0.13.7\",\n \"@fayz-ai/plugin-menu\": \"^0.11.3\",\n \"@fayz-ai/plugin-orders\": \"^0.12.20\",\n \"@fayz-ai/plugin-payments\": \"^0.9.21\",\n \"@fayz-ai/plugin-reports\": \"^0.16.3\",\n \"@fayz-ai/plugin-reputation\": \"^0.10.18\",\n \"@fayz-ai/plugin-shop\": \"^0.16.7\",\n \"@fayz-ai/plugin-sites\": \"^0.9.21\",\n \"@fayz-ai/plugin-tables\": \"^0.12.4\",\n \"@fayz-ai/plugin-tasks\": \"^0.10.21\"\n }\n }\n}\n","import releaseChannels from './release-channels.json'\n\nexport type FayzPackageChannel = 'stable' | 'latest' | 'preview'\n\nexport interface FayzPackageVersionSet {\n channel: FayzPackageChannel\n packages: Record<string, string>\n}\n\nconst releaseChannelPackages = releaseChannels.channels as Record<FayzPackageChannel, Record<string, string>>\n\nfunction buildVersionSet(channel: FayzPackageChannel): FayzPackageVersionSet {\n return {\n channel,\n packages: { ...releaseChannelPackages[channel] },\n }\n}\n\nexport const fayzPackageVersionSets: Record<FayzPackageChannel, FayzPackageVersionSet> = {\n stable: buildVersionSet('stable'),\n latest: buildVersionSet('latest'),\n preview: buildVersionSet('preview'),\n}\n\nexport function resolveFayzPackageVersions(channel: FayzPackageChannel = 'stable'): FayzPackageVersionSet {\n return fayzPackageVersionSets[channel]\n}\n\nexport function resolveFayzPackageDependencies(channel: FayzPackageChannel = 'stable'): Record<string, string> {\n return { ...resolveFayzPackageVersions(channel).packages }\n}\n\nexport function resolveFayzPackageVersion(packageName: string, channel: FayzPackageChannel = 'stable'): string {\n const version = resolveFayzPackageVersions(channel).packages[packageName]\n\n if (!version) {\n throw new Error(`No Fayz package version configured for ${packageName} in ${channel} channel`)\n }\n\n return version\n}\n"]}
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- export { fayzPackageVersionSets, resolveFayzPackageDependencies, resolveFayzPackageVersion, resolveFayzPackageVersions } from './chunk-QFCM6SHF.js';
1
+ export { fayzPackageVersionSets, resolveFayzPackageDependencies, resolveFayzPackageVersion, resolveFayzPackageVersions } from './chunk-QBNP7UYY.js';
2
2
  export { surface as fayzSupportedSurface, getInternalPackages, getSupportedPackages, isSupportedPackage } from './chunk-6UZOXHGJ.js';
3
3
  export { AI_BUILDER_REQUEST_CLASSES, AI_BUILDER_REQUEST_CLASS_IDS, isAllowedRequestClass } from './chunk-BJFMBVMP.js';
4
4
  export { FayzApiError, createFayzClient, fayz } from './chunk-UWOQAD5A.js';
5
5
  export { FayzRuntimeError, createFayzRuntimeClient } from './chunk-FRIOW6KW.js';
6
6
  export { appParams, resolveAppParams } from './chunk-YGX37DT3.js';
7
- export { FayzAgentError, createFayzAgentClient } from './chunk-KTRZI44K.js';
7
+ export { FayzAgentError, createFayzAgentClient } from './chunk-DOSYIWOR.js';
8
8
  export { FayzShopError, createDedupedFetch, createFayzShopProvider, getDedupeStats, resetDedupeStats } from './chunk-BTXIUI4E.js';
9
9
  export { deprecationMessage, deprecationWindowMinors, deprecationsForCodemod, fayzDeprecationPolicy, table as fayzDeprecationRegistry, getDeprecation, hasDeprecation, isDeprecationShimmed, listDeprecationCodemods, listDeprecations, resetDeprecationWarnings, warnDeprecated } from './chunk-LCW5ZV5S.js';
10
10
 
@@ -1,3 +1,3 @@
1
- export { fayzPackageVersionSets, resolveFayzPackageDependencies, resolveFayzPackageVersion, resolveFayzPackageVersions } from './chunk-QFCM6SHF.js';
1
+ export { fayzPackageVersionSets, resolveFayzPackageDependencies, resolveFayzPackageVersion, resolveFayzPackageVersions } from './chunk-QBNP7UYY.js';
2
2
  //# sourceMappingURL=release-channels.js.map
3
3
  //# sourceMappingURL=release-channels.js.map
@@ -1,103 +1,103 @@
1
1
  {
2
2
  "channels": {
3
3
  "stable": {
4
- "@fayz-ai/sdk": "^0.30.1",
5
- "@fayz-ai/admin": "^0.30.1",
6
- "@fayz-ai/core": "^0.30.1",
7
- "@fayz-ai/auth": "^0.30.0",
8
- "@fayz-ai/ui": "^0.30.0",
9
- "@fayz-ai/shop": "^0.30.0",
10
- "@fayz-ai/storefront": "^0.30.0",
11
- "@fayz-ai/portal": "^0.30.0",
12
- "@fayz-ai/courses": "^0.30.0",
13
- "@fayz-ai/db": "^0.18.1",
14
- "@fayz-ai/plugin-agenda": "^0.18.0",
15
- "@fayz-ai/plugin-auth": "^0.12.10",
16
- "@fayz-ai/plugin-automations": "^0.13.8",
17
- "@fayz-ai/plugin-blog": "^0.12.13",
18
- "@fayz-ai/plugin-conversations": "^0.20.0",
19
- "@fayz-ai/plugin-courses": "^0.10.18",
20
- "@fayz-ai/plugin-crm": "^0.28.2",
21
- "@fayz-ai/plugin-dashboard": "^0.9.17",
22
- "@fayz-ai/plugin-financial": "^0.15.0",
23
- "@fayz-ai/plugin-forms": "^0.11.0",
24
- "@fayz-ai/plugin-inventory": "^0.13.0",
25
- "@fayz-ai/plugin-marketing": "^0.13.0",
26
- "@fayz-ai/plugin-menu": "^0.10.16",
27
- "@fayz-ai/plugin-orders": "^0.12.13",
28
- "@fayz-ai/plugin-payments": "^0.9.15",
29
- "@fayz-ai/plugin-reports": "^0.14.0",
30
- "@fayz-ai/plugin-reputation": "^0.10.12",
31
- "@fayz-ai/plugin-shop": "^0.16.0",
32
- "@fayz-ai/plugin-sites": "^0.9.15",
33
- "@fayz-ai/plugin-tables": "^0.11.0",
34
- "@fayz-ai/plugin-tasks": "^0.10.15"
4
+ "@fayz-ai/sdk": "^0.36.0",
5
+ "@fayz-ai/admin": "^0.36.0",
6
+ "@fayz-ai/core": "^0.36.0",
7
+ "@fayz-ai/auth": "^0.36.0",
8
+ "@fayz-ai/ui": "^0.36.0",
9
+ "@fayz-ai/shop": "^0.36.0",
10
+ "@fayz-ai/storefront": "^0.36.0",
11
+ "@fayz-ai/portal": "^0.36.0",
12
+ "@fayz-ai/courses": "^0.36.0",
13
+ "@fayz-ai/db": "^0.22.0",
14
+ "@fayz-ai/plugin-agenda": "^0.21.0",
15
+ "@fayz-ai/plugin-auth": "^0.12.16",
16
+ "@fayz-ai/plugin-automations": "^0.15.3",
17
+ "@fayz-ai/plugin-blog": "^0.12.19",
18
+ "@fayz-ai/plugin-conversations": "^0.22.3",
19
+ "@fayz-ai/plugin-courses": "^0.10.24",
20
+ "@fayz-ai/plugin-crm": "^0.31.4",
21
+ "@fayz-ai/plugin-dashboard": "^0.9.23",
22
+ "@fayz-ai/plugin-financial": "^0.19.0",
23
+ "@fayz-ai/plugin-forms": "^0.13.3",
24
+ "@fayz-ai/plugin-inventory": "^0.14.0",
25
+ "@fayz-ai/plugin-marketing": "^0.13.7",
26
+ "@fayz-ai/plugin-menu": "^0.11.3",
27
+ "@fayz-ai/plugin-orders": "^0.12.20",
28
+ "@fayz-ai/plugin-payments": "^0.9.21",
29
+ "@fayz-ai/plugin-reports": "^0.16.3",
30
+ "@fayz-ai/plugin-reputation": "^0.10.18",
31
+ "@fayz-ai/plugin-shop": "^0.16.7",
32
+ "@fayz-ai/plugin-sites": "^0.9.21",
33
+ "@fayz-ai/plugin-tables": "^0.12.4",
34
+ "@fayz-ai/plugin-tasks": "^0.10.21"
35
35
  },
36
36
  "latest": {
37
- "@fayz-ai/sdk": "^0.30.1",
38
- "@fayz-ai/admin": "^0.30.1",
39
- "@fayz-ai/core": "^0.30.1",
40
- "@fayz-ai/auth": "^0.30.0",
41
- "@fayz-ai/ui": "^0.30.0",
42
- "@fayz-ai/shop": "^0.30.0",
43
- "@fayz-ai/storefront": "^0.30.0",
44
- "@fayz-ai/portal": "^0.30.0",
45
- "@fayz-ai/courses": "^0.30.0",
46
- "@fayz-ai/db": "^0.18.1",
47
- "@fayz-ai/plugin-agenda": "^0.18.0",
48
- "@fayz-ai/plugin-auth": "^0.12.10",
49
- "@fayz-ai/plugin-automations": "^0.13.8",
50
- "@fayz-ai/plugin-blog": "^0.12.13",
51
- "@fayz-ai/plugin-conversations": "^0.20.0",
52
- "@fayz-ai/plugin-courses": "^0.10.18",
53
- "@fayz-ai/plugin-crm": "^0.28.2",
54
- "@fayz-ai/plugin-dashboard": "^0.9.17",
55
- "@fayz-ai/plugin-financial": "^0.15.0",
56
- "@fayz-ai/plugin-forms": "^0.11.0",
57
- "@fayz-ai/plugin-inventory": "^0.13.0",
58
- "@fayz-ai/plugin-marketing": "^0.13.0",
59
- "@fayz-ai/plugin-menu": "^0.10.16",
60
- "@fayz-ai/plugin-orders": "^0.12.13",
61
- "@fayz-ai/plugin-payments": "^0.9.15",
62
- "@fayz-ai/plugin-reports": "^0.14.0",
63
- "@fayz-ai/plugin-reputation": "^0.10.12",
64
- "@fayz-ai/plugin-shop": "^0.16.0",
65
- "@fayz-ai/plugin-sites": "^0.9.15",
66
- "@fayz-ai/plugin-tables": "^0.11.0",
67
- "@fayz-ai/plugin-tasks": "^0.10.15"
37
+ "@fayz-ai/sdk": "^0.36.0",
38
+ "@fayz-ai/admin": "^0.36.0",
39
+ "@fayz-ai/core": "^0.36.0",
40
+ "@fayz-ai/auth": "^0.36.0",
41
+ "@fayz-ai/ui": "^0.36.0",
42
+ "@fayz-ai/shop": "^0.36.0",
43
+ "@fayz-ai/storefront": "^0.36.0",
44
+ "@fayz-ai/portal": "^0.36.0",
45
+ "@fayz-ai/courses": "^0.36.0",
46
+ "@fayz-ai/db": "^0.22.0",
47
+ "@fayz-ai/plugin-agenda": "^0.21.0",
48
+ "@fayz-ai/plugin-auth": "^0.12.16",
49
+ "@fayz-ai/plugin-automations": "^0.15.3",
50
+ "@fayz-ai/plugin-blog": "^0.12.19",
51
+ "@fayz-ai/plugin-conversations": "^0.22.3",
52
+ "@fayz-ai/plugin-courses": "^0.10.24",
53
+ "@fayz-ai/plugin-crm": "^0.31.4",
54
+ "@fayz-ai/plugin-dashboard": "^0.9.23",
55
+ "@fayz-ai/plugin-financial": "^0.19.0",
56
+ "@fayz-ai/plugin-forms": "^0.13.3",
57
+ "@fayz-ai/plugin-inventory": "^0.14.0",
58
+ "@fayz-ai/plugin-marketing": "^0.13.7",
59
+ "@fayz-ai/plugin-menu": "^0.11.3",
60
+ "@fayz-ai/plugin-orders": "^0.12.20",
61
+ "@fayz-ai/plugin-payments": "^0.9.21",
62
+ "@fayz-ai/plugin-reports": "^0.16.3",
63
+ "@fayz-ai/plugin-reputation": "^0.10.18",
64
+ "@fayz-ai/plugin-shop": "^0.16.7",
65
+ "@fayz-ai/plugin-sites": "^0.9.21",
66
+ "@fayz-ai/plugin-tables": "^0.12.4",
67
+ "@fayz-ai/plugin-tasks": "^0.10.21"
68
68
  },
69
69
  "preview": {
70
- "@fayz-ai/sdk": "^0.30.1",
71
- "@fayz-ai/admin": "^0.30.1",
72
- "@fayz-ai/core": "^0.30.1",
73
- "@fayz-ai/auth": "^0.30.0",
74
- "@fayz-ai/ui": "^0.30.0",
75
- "@fayz-ai/shop": "^0.30.0",
76
- "@fayz-ai/storefront": "^0.30.0",
77
- "@fayz-ai/portal": "^0.30.0",
78
- "@fayz-ai/courses": "^0.30.0",
79
- "@fayz-ai/db": "^0.18.1",
80
- "@fayz-ai/plugin-agenda": "^0.18.0",
81
- "@fayz-ai/plugin-auth": "^0.12.10",
82
- "@fayz-ai/plugin-automations": "^0.13.8",
83
- "@fayz-ai/plugin-blog": "^0.12.13",
84
- "@fayz-ai/plugin-conversations": "^0.20.0",
85
- "@fayz-ai/plugin-courses": "^0.10.18",
86
- "@fayz-ai/plugin-crm": "^0.28.2",
87
- "@fayz-ai/plugin-dashboard": "^0.9.17",
88
- "@fayz-ai/plugin-financial": "^0.15.0",
89
- "@fayz-ai/plugin-forms": "^0.11.0",
90
- "@fayz-ai/plugin-inventory": "^0.13.0",
91
- "@fayz-ai/plugin-marketing": "^0.13.0",
92
- "@fayz-ai/plugin-menu": "^0.10.16",
93
- "@fayz-ai/plugin-orders": "^0.12.13",
94
- "@fayz-ai/plugin-payments": "^0.9.15",
95
- "@fayz-ai/plugin-reports": "^0.14.0",
96
- "@fayz-ai/plugin-reputation": "^0.10.12",
97
- "@fayz-ai/plugin-shop": "^0.16.0",
98
- "@fayz-ai/plugin-sites": "^0.9.15",
99
- "@fayz-ai/plugin-tables": "^0.11.0",
100
- "@fayz-ai/plugin-tasks": "^0.10.15"
70
+ "@fayz-ai/sdk": "^0.36.0",
71
+ "@fayz-ai/admin": "^0.36.0",
72
+ "@fayz-ai/core": "^0.36.0",
73
+ "@fayz-ai/auth": "^0.36.0",
74
+ "@fayz-ai/ui": "^0.36.0",
75
+ "@fayz-ai/shop": "^0.36.0",
76
+ "@fayz-ai/storefront": "^0.36.0",
77
+ "@fayz-ai/portal": "^0.36.0",
78
+ "@fayz-ai/courses": "^0.36.0",
79
+ "@fayz-ai/db": "^0.22.0",
80
+ "@fayz-ai/plugin-agenda": "^0.21.0",
81
+ "@fayz-ai/plugin-auth": "^0.12.16",
82
+ "@fayz-ai/plugin-automations": "^0.15.3",
83
+ "@fayz-ai/plugin-blog": "^0.12.19",
84
+ "@fayz-ai/plugin-conversations": "^0.22.3",
85
+ "@fayz-ai/plugin-courses": "^0.10.24",
86
+ "@fayz-ai/plugin-crm": "^0.31.4",
87
+ "@fayz-ai/plugin-dashboard": "^0.9.23",
88
+ "@fayz-ai/plugin-financial": "^0.19.0",
89
+ "@fayz-ai/plugin-forms": "^0.13.3",
90
+ "@fayz-ai/plugin-inventory": "^0.14.0",
91
+ "@fayz-ai/plugin-marketing": "^0.13.7",
92
+ "@fayz-ai/plugin-menu": "^0.11.3",
93
+ "@fayz-ai/plugin-orders": "^0.12.20",
94
+ "@fayz-ai/plugin-payments": "^0.9.21",
95
+ "@fayz-ai/plugin-reports": "^0.16.3",
96
+ "@fayz-ai/plugin-reputation": "^0.10.18",
97
+ "@fayz-ai/plugin-shop": "^0.16.7",
98
+ "@fayz-ai/plugin-sites": "^0.9.21",
99
+ "@fayz-ai/plugin-tables": "^0.12.4",
100
+ "@fayz-ai/plugin-tasks": "^0.10.21"
101
101
  }
102
102
  }
103
103
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "fayz": {
4
4
  "status": "beta"
5
5
  },
6
- "version": "0.30.1",
6
+ "version": "0.36.0",
7
7
  "description": "Fayz SDK — API client, app params, runtime broker helpers, and shared types for generated Fayz projects",
8
8
  "type": "module",
9
9
  "sideEffects": false,
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/agent.ts"],"names":["eventName"],"mappings":";AA6JO,IAAM,cAAA,GAAN,cAA6B,KAAA,CAAM;AAAA,EACxC,WAAA,CACE,SACS,MAAA,EACT;AACA,IAAA,KAAA,CAAM,OAAO,CAAA;AAFJ,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAGT,IAAA,IAAA,CAAK,IAAA,GAAO,gBAAA;AAAA,EACd;AACF;AA0DA,SAAS,kBAAkB,IAAA,EAA6D;AACtF,EAAA,OAAO;AAAA,IACL,cAAA,EAAgB,KAAK,cAAA,IAAkB,EAAA;AAAA,IACvC,OAAA,EAAS,KAAK,OAAA,IAAW,EAAA;AAAA,IACzB,SAAA,EAAW,IAAA,CAAK,SAAA,IAAa,EAAC;AAAA,IAC9B,GAAI,KAAK,aAAA,GAAgB,EAAE,eAAe,IAAA,CAAK,aAAA,KAAkB;AAAC,GACpE;AACF;AAEO,SAAS,sBAAsB,OAAA,EAAkD;AACtF,EAAA,MAAM,OAAA,GAAU,OAAA,CAAQ,OAAA,IAAW,UAAA,CAAW,KAAA;AAC9C,EAAA,MAAM,IAAA,GAAO,CAAA,EAAG,OAAA,CAAQ,OAAA,CAAQ,OAAA,CAAQ,QAAQ,EAAE,CAAC,CAAA,iBAAA,EAAoB,OAAA,CAAQ,SAAS,CAAA,OAAA,CAAA;AACxF,EAAA,MAAM,OAAA,GAAU;AAAA,IACd,cAAA,EAAgB,kBAAA;AAAA,IAChB,oBAAoB,OAAA,CAAQ;AAAA,GAC9B;AAEA,EAAA,eAAe,OAAA,CAAW,MAAc,IAAA,EAA+B;AACrE,IAAA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A,CAAmB,cAAc,CAAC,CAAA,CAAA,GAAK,EAAA;AACzF,MAAA,MAAM,OAAO,MAAM,OAAA;AAAA,QACjB,CAAA,eAAA,EAAkB,kBAAA,CAAmB,cAAc,CAAC,GAAG,KAAK,CAAA,CAAA;AAAA,QAC5D,EAAE,MAAA,EAAQ,KAAA,EAAO,MAAA;AAAO,OAC1B;AACA,MAAA,OAAO,IAAA,CAAK,YAAA;AAAA,IACd;AAAA,GACF;AACF","file":"chunk-KTRZI44K.js","sourcesContent":["/**\n * Client for the Fayz agent broker — the runtime surface a generated app uses\n * to reach the AI agent configured for its project in Fayz.\n *\n * Mirrors `createFayzShopProvider`: the app holds a publishable key, Fayz holds\n * the model credentials. The key ships in the bundle the same way a Supabase\n * anon key does; it only ever resolves to the one agent its web channel belongs\n * to, and the broker rate-limits per project.\n *\n * Tools are client-plane. The app declares what it can do (`tools`), the model\n * decides what to call, and the app executes the calls against its own session\n * before handing results back. Fayz never needs the app's data credentials.\n */\n\nexport interface FayzAgentClientOptions {\n /** Fayz API base, e.g. https://fayz.ai/api */\n baseUrl: string\n projectId: string\n /** Publishable key of the project's WEB agent channel. */\n publishableKey: string\n fetcher?: typeof fetch\n}\n\nexport interface FayzAgentTool {\n name: string\n description: string\n /** JSON Schema for the tool's arguments. */\n parameters?: Record<string, unknown>\n}\n\nexport interface FayzAgentToolCall {\n id: string\n name: string\n arguments: Record<string, unknown>\n}\n\nexport interface FayzAgentToolResult {\n toolCallId: string\n content: string\n}\n\n/**\n * A file the user attached, described rather than uploaded.\n *\n * The bytes stay in the browser: a spreadsheet of clients or patients is\n * personal data, and handing it to a model provider so it can \"take a look\" is\n * a disclosure, not a convenience. What travels is the shape — sheets,\n * headers, how many rows, the inferred type per column and a handful of sample\n * rows. Enough to plan an import; never the data set itself.\n */\nexport interface AgentAttachmentColumn {\n name: string\n type: 'text' | 'number' | 'date' | 'boolean' | 'email' | 'phone'\n /** Literal shape when known ('dd/mm/yyyy', '1.234,56'). */\n format?: string\n /** Why the column is not the type it looks like (ambiguous dates, mixed values). */\n note?: string\n}\n\nexport interface AgentAttachmentSheet {\n name: string\n headers: string[]\n rowCount?: number\n sample: string[][]\n columnTypes: AgentAttachmentColumn[]\n}\n\nexport interface AgentAttachmentDigest {\n id: string\n name: string\n mime: string\n size: number\n kind: 'spreadsheet' | 'csv' | 'text' | 'image' | 'pdf' | 'binary'\n /** Multi-tab spreadsheets. Single-tab files use the flat fields below. */\n sheets?: AgentAttachmentSheet[]\n headers?: string[]\n rowCount?: number\n sample?: string[][]\n columnTypes?: AgentAttachmentColumn[]\n /** Head of a text/markdown file. */\n preview?: string\n /** What the reader had to guess at, truncate or give up on. */\n warnings?: string[]\n}\n\n/**\n * A file the user handed over TO BE READ — bytes, not a shape.\n *\n * The rule above holds and this is its one exception, drawn narrowly. A\n * spreadsheet of patients gets DIGESTED because nobody asked for it to be read;\n * it was attached so the agent could plan an import, and shipping it to a model\n * provider would be a disclosure nobody consented to.\n *\n * A photographed receipt is the opposite case in every respect: one document,\n * handed over on purpose, by a person whose whole request is \"read this\". The\n * gesture IS the consent, so bytes travel — and ONLY for a file that arrived\n * through an explicit request to read it. Never because an attachment happened\n * to be an image.\n */\nexport interface AgentInlineFile {\n name: string\n /** `image/jpeg`, `image/png`, `application/pdf`. */\n mime: string\n /** Base64 of the file, without the `data:` prefix. */\n data: string\n}\n\nexport interface FayzAgentChatInput {\n /** New end-user message. Omit when replying with tool results. */\n message?: string\n conversationId?: string\n /** Identity of the end user, required by channels with an INTERNAL audience. */\n externalUserId?: string\n /** Human label for that user, so the owner's dashboard shows a name. */\n externalUserName?: string\n tools?: FayzAgentTool[]\n toolResults?: FayzAgentToolResult[]\n /** Decision for a server-parked write (broker PENDING_CONFIRMATION step). */\n confirmAction?: { id: string; approved: boolean }\n /** Runtime context the agent should know about (page, locale, tenant). */\n context?: Record<string, unknown>\n /** Files the user attached this turn, as digests — never as bytes. */\n attachments?: AgentAttachmentDigest[]\n /**\n * Files the user handed over to be READ this turn — see AgentInlineFile.\n *\n * Separate from `attachments` on purpose: two fields means the boundary is\n * visible at every call site and in every request log, instead of being a\n * flag someone can flip by accident on a digest.\n */\n inlineFiles?: AgentInlineFile[]\n signal?: AbortSignal\n}\n\n/** A server-plane write the broker parked pending human confirmation. */\nexport interface FayzAgentPendingAction {\n id: string\n toolName: string\n title?: string\n params?: Record<string, unknown>\n}\n\nexport interface FayzAgentChatResponse {\n conversationId: string\n content: string\n toolCalls: FayzAgentToolCall[]\n /** Present when the broker is waiting on a confirmAction for this write. */\n pendingAction?: FayzAgentPendingAction\n}\n\nexport interface FayzAgentInfo {\n id: string\n name: string\n description: string | null\n icon: string | null\n}\n\nexport class FayzAgentError extends Error {\n constructor(\n message: string,\n readonly status: number,\n ) {\n super(message)\n this.name = 'FayzAgentError'\n }\n}\n\nexport interface FayzAgentConversationSummary {\n id: string\n title: string | null\n /** Last activity — the field the list is ordered by. */\n updatedAt: string\n}\n\nexport interface FayzAgentConversationMessage {\n id: string\n role: string\n content: string\n createdAt: string\n /** Files the user attached to this turn, as the digest that was sent. Only\n * the description — the bytes never left the browser that produced them. */\n attachments?: AgentAttachmentDigest[]\n /** Tool calls this reply made, with their results — so a resumed thread shows\n * the same trace and record links it showed live. */\n toolCalls?: Array<{\n name: string\n arguments?: Record<string, unknown>\n result?: string\n }>\n}\n\nexport interface FayzAgentConversationDetail {\n id: string\n title: string | null\n messages: FayzAgentConversationMessage[]\n}\n\nexport interface FayzAgentStreamCallbacks {\n /** Fired per text delta with the accumulated text so far (fill-in-place UIs). */\n onDelta?: (accumulated: string, delta: string) => void\n}\n\nexport interface FayzAgentClient {\n /** Identity of the agent behind the key, for rendering its name/icon. */\n getInfo(signal?: AbortSignal): Promise<FayzAgentInfo>\n chat(input: FayzAgentChatInput): Promise<FayzAgentChatResponse>\n /**\n * Like `chat`, but asks the broker for an SSE stream (`Accept:\n * text/event-stream`) and reports text deltas as they arrive. Falls back\n * transparently to the JSON round-trip when the broker predates streaming —\n * callers can always use this and treat `onDelta` as best-effort.\n */\n chatStream(input: FayzAgentChatInput, callbacks?: FayzAgentStreamCallbacks): Promise<FayzAgentChatResponse>\n /** The signed-in user's own threads, most-recently-active first. */\n listConversations(externalUserId?: string, signal?: AbortSignal): Promise<FayzAgentConversationSummary[]>\n /** One thread with its transcript — 404s on another user's thread. */\n getConversation(\n conversationId: string,\n externalUserId?: string,\n signal?: AbortSignal,\n ): Promise<FayzAgentConversationDetail>\n}\n\nfunction normalizeResponse(body: Partial<FayzAgentChatResponse>): FayzAgentChatResponse {\n return {\n conversationId: body.conversationId ?? '',\n content: body.content ?? '',\n toolCalls: body.toolCalls ?? [],\n ...(body.pendingAction ? { pendingAction: body.pendingAction } : {}),\n }\n}\n\nexport function createFayzAgentClient(options: FayzAgentClientOptions): FayzAgentClient {\n const fetcher = options.fetcher ?? globalThis.fetch\n const base = `${options.baseUrl.replace(/\\/+$/, '')}/public/projects/${options.projectId}/agents`\n const headers = {\n 'Content-Type': 'application/json',\n 'x-fayz-agent-key': options.publishableKey,\n }\n\n async function request<T>(path: string, init: RequestInit): Promise<T> {\n const response = await fetcher(`${base}${path}`, { ...init, headers })\n if (!response.ok) {\n const body = (await response.json().catch(() => null)) as { error?: string } | null\n throw new FayzAgentError(body?.error ?? `Agent request failed (${response.status})`, response.status)\n }\n return (await response.json()) as T\n }\n\n return {\n async getInfo(signal) {\n const body = await request<{ agent: FayzAgentInfo }>('/config', { method: 'GET', signal })\n return body.agent\n },\n\n async chat({ signal, ...input }) {\n const body = await request<Partial<FayzAgentChatResponse>>('/chat', {\n method: 'POST',\n body: JSON.stringify(input),\n signal,\n })\n return normalizeResponse(body)\n },\n\n async chatStream({ signal, ...input }, callbacks) {\n const response = await fetcher(`${base}/chat`, {\n method: 'POST',\n body: JSON.stringify(input),\n signal,\n headers: { ...headers, Accept: 'text/event-stream' },\n })\n if (!response.ok) {\n const body = (await response.json().catch(() => null)) as { error?: string } | null\n throw new FayzAgentError(body?.error ?? `Agent request failed (${response.status})`, response.status)\n }\n // Broker predates streaming (or chose not to): plain JSON round-trip.\n const contentType = response.headers.get('content-type') ?? ''\n if (!contentType.includes('text/event-stream') || !response.body) {\n return normalizeResponse((await response.json()) as Partial<FayzAgentChatResponse>)\n }\n\n const reader = response.body.getReader()\n const decoder = new TextDecoder()\n let buffer = ''\n let accumulated = ''\n let done: Partial<FayzAgentChatResponse> | null = null\n\n const dispatch = (eventName: string, data: string) => {\n if (!data) return\n let payload: Record<string, unknown>\n try {\n payload = JSON.parse(data) as Record<string, unknown>\n } catch {\n return\n }\n if (eventName === 'delta') {\n const text = typeof payload.text === 'string' ? payload.text : ''\n if (text) {\n accumulated += text\n callbacks?.onDelta?.(accumulated, text)\n }\n } else if (eventName === 'done') {\n done = payload as Partial<FayzAgentChatResponse>\n } else if (eventName === 'error') {\n throw new FayzAgentError(\n typeof payload.error === 'string' ? payload.error : 'Agent stream failed',\n response.status,\n )\n }\n }\n\n let eventName = 'message'\n let dataLines: string[] = []\n const processLine = (line: string) => {\n if (line === '') {\n dispatch(eventName, dataLines.join('\\n'))\n eventName = 'message'\n dataLines = []\n } else if (line.startsWith('event:')) {\n eventName = line.slice(6).trim()\n } else if (line.startsWith('data:')) {\n dataLines.push(line.slice(5).trimStart())\n }\n }\n\n for (;;) {\n const { value, done: streamDone } = await reader.read()\n if (streamDone) break\n buffer += decoder.decode(value, { stream: true })\n let newline = buffer.indexOf('\\n')\n while (newline >= 0) {\n processLine(buffer.slice(0, newline).replace(/\\r$/, ''))\n buffer = buffer.slice(newline + 1)\n newline = buffer.indexOf('\\n')\n }\n }\n processLine(buffer.replace(/\\r$/, ''))\n processLine('')\n\n // The final `done` event carries the same payload shape as the JSON\n // route; accumulated deltas back-fill `content` if the broker omits it.\n const finalPayload: Partial<FayzAgentChatResponse> = { ...(done ?? {}) }\n if (!finalPayload.content) finalPayload.content = accumulated\n return normalizeResponse(finalPayload)\n },\n\n async listConversations(externalUserId, signal) {\n const query = externalUserId ? `?externalUserId=${encodeURIComponent(externalUserId)}` : ''\n const body = await request<{ conversations?: FayzAgentConversationSummary[] }>(\n `/conversations${query}`,\n { method: 'GET', signal },\n )\n return body.conversations ?? []\n },\n\n async getConversation(conversationId, externalUserId, signal) {\n const query = externalUserId ? `?externalUserId=${encodeURIComponent(externalUserId)}` : ''\n const body = await request<{ conversation: FayzAgentConversationDetail }>(\n `/conversations/${encodeURIComponent(conversationId)}${query}`,\n { method: 'GET', signal },\n )\n return body.conversation\n },\n }\n}\n"]}
@@ -1,135 +0,0 @@
1
- // src/release-channels.json
2
- var release_channels_default = {
3
- channels: {
4
- stable: {
5
- "@fayz-ai/sdk": "^0.30.1",
6
- "@fayz-ai/admin": "^0.30.1",
7
- "@fayz-ai/core": "^0.30.1",
8
- "@fayz-ai/auth": "^0.30.0",
9
- "@fayz-ai/ui": "^0.30.0",
10
- "@fayz-ai/shop": "^0.30.0",
11
- "@fayz-ai/storefront": "^0.30.0",
12
- "@fayz-ai/portal": "^0.30.0",
13
- "@fayz-ai/courses": "^0.30.0",
14
- "@fayz-ai/db": "^0.18.1",
15
- "@fayz-ai/plugin-agenda": "^0.18.0",
16
- "@fayz-ai/plugin-auth": "^0.12.10",
17
- "@fayz-ai/plugin-automations": "^0.13.8",
18
- "@fayz-ai/plugin-blog": "^0.12.13",
19
- "@fayz-ai/plugin-conversations": "^0.20.0",
20
- "@fayz-ai/plugin-courses": "^0.10.18",
21
- "@fayz-ai/plugin-crm": "^0.28.2",
22
- "@fayz-ai/plugin-dashboard": "^0.9.17",
23
- "@fayz-ai/plugin-financial": "^0.15.0",
24
- "@fayz-ai/plugin-forms": "^0.11.0",
25
- "@fayz-ai/plugin-inventory": "^0.13.0",
26
- "@fayz-ai/plugin-marketing": "^0.13.0",
27
- "@fayz-ai/plugin-menu": "^0.10.16",
28
- "@fayz-ai/plugin-orders": "^0.12.13",
29
- "@fayz-ai/plugin-payments": "^0.9.15",
30
- "@fayz-ai/plugin-reports": "^0.14.0",
31
- "@fayz-ai/plugin-reputation": "^0.10.12",
32
- "@fayz-ai/plugin-shop": "^0.16.0",
33
- "@fayz-ai/plugin-sites": "^0.9.15",
34
- "@fayz-ai/plugin-tables": "^0.11.0",
35
- "@fayz-ai/plugin-tasks": "^0.10.15"
36
- },
37
- latest: {
38
- "@fayz-ai/sdk": "^0.30.1",
39
- "@fayz-ai/admin": "^0.30.1",
40
- "@fayz-ai/core": "^0.30.1",
41
- "@fayz-ai/auth": "^0.30.0",
42
- "@fayz-ai/ui": "^0.30.0",
43
- "@fayz-ai/shop": "^0.30.0",
44
- "@fayz-ai/storefront": "^0.30.0",
45
- "@fayz-ai/portal": "^0.30.0",
46
- "@fayz-ai/courses": "^0.30.0",
47
- "@fayz-ai/db": "^0.18.1",
48
- "@fayz-ai/plugin-agenda": "^0.18.0",
49
- "@fayz-ai/plugin-auth": "^0.12.10",
50
- "@fayz-ai/plugin-automations": "^0.13.8",
51
- "@fayz-ai/plugin-blog": "^0.12.13",
52
- "@fayz-ai/plugin-conversations": "^0.20.0",
53
- "@fayz-ai/plugin-courses": "^0.10.18",
54
- "@fayz-ai/plugin-crm": "^0.28.2",
55
- "@fayz-ai/plugin-dashboard": "^0.9.17",
56
- "@fayz-ai/plugin-financial": "^0.15.0",
57
- "@fayz-ai/plugin-forms": "^0.11.0",
58
- "@fayz-ai/plugin-inventory": "^0.13.0",
59
- "@fayz-ai/plugin-marketing": "^0.13.0",
60
- "@fayz-ai/plugin-menu": "^0.10.16",
61
- "@fayz-ai/plugin-orders": "^0.12.13",
62
- "@fayz-ai/plugin-payments": "^0.9.15",
63
- "@fayz-ai/plugin-reports": "^0.14.0",
64
- "@fayz-ai/plugin-reputation": "^0.10.12",
65
- "@fayz-ai/plugin-shop": "^0.16.0",
66
- "@fayz-ai/plugin-sites": "^0.9.15",
67
- "@fayz-ai/plugin-tables": "^0.11.0",
68
- "@fayz-ai/plugin-tasks": "^0.10.15"
69
- },
70
- preview: {
71
- "@fayz-ai/sdk": "^0.30.1",
72
- "@fayz-ai/admin": "^0.30.1",
73
- "@fayz-ai/core": "^0.30.1",
74
- "@fayz-ai/auth": "^0.30.0",
75
- "@fayz-ai/ui": "^0.30.0",
76
- "@fayz-ai/shop": "^0.30.0",
77
- "@fayz-ai/storefront": "^0.30.0",
78
- "@fayz-ai/portal": "^0.30.0",
79
- "@fayz-ai/courses": "^0.30.0",
80
- "@fayz-ai/db": "^0.18.1",
81
- "@fayz-ai/plugin-agenda": "^0.18.0",
82
- "@fayz-ai/plugin-auth": "^0.12.10",
83
- "@fayz-ai/plugin-automations": "^0.13.8",
84
- "@fayz-ai/plugin-blog": "^0.12.13",
85
- "@fayz-ai/plugin-conversations": "^0.20.0",
86
- "@fayz-ai/plugin-courses": "^0.10.18",
87
- "@fayz-ai/plugin-crm": "^0.28.2",
88
- "@fayz-ai/plugin-dashboard": "^0.9.17",
89
- "@fayz-ai/plugin-financial": "^0.15.0",
90
- "@fayz-ai/plugin-forms": "^0.11.0",
91
- "@fayz-ai/plugin-inventory": "^0.13.0",
92
- "@fayz-ai/plugin-marketing": "^0.13.0",
93
- "@fayz-ai/plugin-menu": "^0.10.16",
94
- "@fayz-ai/plugin-orders": "^0.12.13",
95
- "@fayz-ai/plugin-payments": "^0.9.15",
96
- "@fayz-ai/plugin-reports": "^0.14.0",
97
- "@fayz-ai/plugin-reputation": "^0.10.12",
98
- "@fayz-ai/plugin-shop": "^0.16.0",
99
- "@fayz-ai/plugin-sites": "^0.9.15",
100
- "@fayz-ai/plugin-tables": "^0.11.0",
101
- "@fayz-ai/plugin-tasks": "^0.10.15"
102
- }
103
- }
104
- };
105
-
106
- // src/release-channels.ts
107
- var releaseChannelPackages = release_channels_default.channels;
108
- function buildVersionSet(channel) {
109
- return {
110
- channel,
111
- packages: { ...releaseChannelPackages[channel] }
112
- };
113
- }
114
- var fayzPackageVersionSets = {
115
- stable: buildVersionSet("stable"),
116
- latest: buildVersionSet("latest"),
117
- preview: buildVersionSet("preview")
118
- };
119
- function resolveFayzPackageVersions(channel = "stable") {
120
- return fayzPackageVersionSets[channel];
121
- }
122
- function resolveFayzPackageDependencies(channel = "stable") {
123
- return { ...resolveFayzPackageVersions(channel).packages };
124
- }
125
- function resolveFayzPackageVersion(packageName, channel = "stable") {
126
- const version = resolveFayzPackageVersions(channel).packages[packageName];
127
- if (!version) {
128
- throw new Error(`No Fayz package version configured for ${packageName} in ${channel} channel`);
129
- }
130
- return version;
131
- }
132
-
133
- export { fayzPackageVersionSets, resolveFayzPackageDependencies, resolveFayzPackageVersion, resolveFayzPackageVersions };
134
- //# sourceMappingURL=chunk-QFCM6SHF.js.map
135
- //# sourceMappingURL=chunk-QFCM6SHF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/release-channels.json","../src/release-channels.ts"],"names":[],"mappings":";AAAA,IAAA,wBAAA,GAAA;AAAA,EACE,QAAA,EAAY;AAAA,IACV,MAAA,EAAU;AAAA,MACR,cAAA,EAAgB,SAAA;AAAA,MAChB,gBAAA,EAAkB,SAAA;AAAA,MAClB,eAAA,EAAiB,SAAA;AAAA,MACjB,eAAA,EAAiB,SAAA;AAAA,MACjB,aAAA,EAAe,SAAA;AAAA,MACf,eAAA,EAAiB,SAAA;AAAA,MACjB,qBAAA,EAAuB,SAAA;AAAA,MACvB,iBAAA,EAAmB,SAAA;AAAA,MACnB,kBAAA,EAAoB,SAAA;AAAA,MACpB,aAAA,EAAe,SAAA;AAAA,MACf,wBAAA,EAA0B,SAAA;AAAA,MAC1B,sBAAA,EAAwB,UAAA;AAAA,MACxB,6BAAA,EAA+B,SAAA;AAAA,MAC/B,sBAAA,EAAwB,UAAA;AAAA,MACxB,+BAAA,EAAiC,SAAA;AAAA,MACjC,yBAAA,EAA2B,UAAA;AAAA,MAC3B,qBAAA,EAAuB,SAAA;AAAA,MACvB,2BAAA,EAA6B,SAAA;AAAA,MAC7B,2BAAA,EAA6B,SAAA;AAAA,MAC7B,uBAAA,EAAyB,SAAA;AAAA,MACzB,2BAAA,EAA6B,SAAA;AAAA,MAC7B,2BAA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SAAS,gBAAgB,OAAA,EAAoD;AAC3E,EAAA,OAAO;AAAA,IACL,OAAA;AAAA,IACA,QAAA,EAAU,EAAE,GAAG,sBAAA,CAAuB,OAAO,CAAA;AAAE,GACjD;AACF;AAEO,IAAM,sBAAA,GAA4E;AAAA,EACvF,MAAA,EAAQ,gBAAgB,QAAQ,CAAA;AAAA,EAChC,MAAA,EAAQ,gBAAgB,QAAQ,CAAA;AAAA,EAChC,OAAA,EAAS,gBAAgB,SAAS;AACpC;AAEO,SAAS,0BAAA,CAA2B,UAA8B,QAAA,EAAiC;AACxG,EAAA,OAAO,uBAAuB,OAAO,CAAA;AACvC;AAEO,SAAS,8BAAA,CAA+B,UAA8B,QAAA,EAAkC;AAC7G,EAAA,OAAO,EAAE,GAAG,0BAAA,CAA2B,OAAO,EAAE,QAAA,EAAS;AAC3D;AAEO,SAAS,yBAAA,CAA0B,WAAA,EAAqB,OAAA,GAA8B,QAAA,EAAkB;AAC7G,EAAA,MAAM,OAAA,GAAU,0BAAA,CAA2B,OAAO,CAAA,CAAE,SAAS,WAAW,CAAA;AAExE,EAAA,IAAI,CAAC,OAAA,EAAS;AACZ,IAAA,MAAM,IAAI,KAAA,CAAM,CAAA,uCAAA,EAA0C,WAAW,CAAA,IAAA,EAAO,OAAO,CAAA,QAAA,CAAU,CAAA;AAAA,EAC/F;AAEA,EAAA,OAAO,OAAA;AACT","file":"chunk-QFCM6SHF.js","sourcesContent":["{\n \"channels\": {\n \"stable\": {\n \"@fayz-ai/sdk\": \"^0.30.1\",\n \"@fayz-ai/admin\": \"^0.30.1\",\n \"@fayz-ai/core\": \"^0.30.1\",\n \"@fayz-ai/auth\": \"^0.30.0\",\n \"@fayz-ai/ui\": \"^0.30.0\",\n \"@fayz-ai/shop\": \"^0.30.0\",\n \"@fayz-ai/storefront\": \"^0.30.0\",\n \"@fayz-ai/portal\": \"^0.30.0\",\n \"@fayz-ai/courses\": \"^0.30.0\",\n \"@fayz-ai/db\": \"^0.18.1\",\n \"@fayz-ai/plugin-agenda\": \"^0.18.0\",\n \"@fayz-ai/plugin-auth\": \"^0.12.10\",\n \"@fayz-ai/plugin-automations\": \"^0.13.8\",\n \"@fayz-ai/plugin-blog\": \"^0.12.13\",\n \"@fayz-ai/plugin-conversations\": \"^0.20.0\",\n \"@fayz-ai/plugin-courses\": \"^0.10.18\",\n \"@fayz-ai/plugin-crm\": \"^0.28.2\",\n \"@fayz-ai/plugin-dashboard\": \"^0.9.17\",\n \"@fayz-ai/plugin-financial\": \"^0.15.0\",\n \"@fayz-ai/plugin-forms\": \"^0.11.0\",\n \"@fayz-ai/plugin-inventory\": \"^0.13.0\",\n \"@fayz-ai/plugin-marketing\": \"^0.13.0\",\n \"@fayz-ai/plugin-menu\": \"^0.10.16\",\n \"@fayz-ai/plugin-orders\": \"^0.12.13\",\n \"@fayz-ai/plugin-payments\": \"^0.9.15\",\n \"@fayz-ai/plugin-reports\": \"^0.14.0\",\n \"@fayz-ai/plugin-reputation\": \"^0.10.12\",\n \"@fayz-ai/plugin-shop\": \"^0.16.0\",\n \"@fayz-ai/plugin-sites\": \"^0.9.15\",\n \"@fayz-ai/plugin-tables\": \"^0.11.0\",\n \"@fayz-ai/plugin-tasks\": \"^0.10.15\"\n },\n \"latest\": {\n \"@fayz-ai/sdk\": \"^0.30.1\",\n \"@fayz-ai/admin\": \"^0.30.1\",\n \"@fayz-ai/core\": \"^0.30.1\",\n \"@fayz-ai/auth\": \"^0.30.0\",\n \"@fayz-ai/ui\": \"^0.30.0\",\n \"@fayz-ai/shop\": \"^0.30.0\",\n \"@fayz-ai/storefront\": \"^0.30.0\",\n \"@fayz-ai/portal\": \"^0.30.0\",\n \"@fayz-ai/courses\": \"^0.30.0\",\n \"@fayz-ai/db\": \"^0.18.1\",\n \"@fayz-ai/plugin-agenda\": \"^0.18.0\",\n \"@fayz-ai/plugin-auth\": \"^0.12.10\",\n \"@fayz-ai/plugin-automations\": \"^0.13.8\",\n \"@fayz-ai/plugin-blog\": \"^0.12.13\",\n \"@fayz-ai/plugin-conversations\": \"^0.20.0\",\n \"@fayz-ai/plugin-courses\": \"^0.10.18\",\n \"@fayz-ai/plugin-crm\": \"^0.28.2\",\n \"@fayz-ai/plugin-dashboard\": \"^0.9.17\",\n \"@fayz-ai/plugin-financial\": \"^0.15.0\",\n \"@fayz-ai/plugin-forms\": \"^0.11.0\",\n \"@fayz-ai/plugin-inventory\": \"^0.13.0\",\n \"@fayz-ai/plugin-marketing\": \"^0.13.0\",\n \"@fayz-ai/plugin-menu\": \"^0.10.16\",\n \"@fayz-ai/plugin-orders\": \"^0.12.13\",\n \"@fayz-ai/plugin-payments\": \"^0.9.15\",\n \"@fayz-ai/plugin-reports\": \"^0.14.0\",\n \"@fayz-ai/plugin-reputation\": \"^0.10.12\",\n \"@fayz-ai/plugin-shop\": \"^0.16.0\",\n \"@fayz-ai/plugin-sites\": \"^0.9.15\",\n \"@fayz-ai/plugin-tables\": \"^0.11.0\",\n \"@fayz-ai/plugin-tasks\": \"^0.10.15\"\n },\n \"preview\": {\n \"@fayz-ai/sdk\": \"^0.30.1\",\n \"@fayz-ai/admin\": \"^0.30.1\",\n \"@fayz-ai/core\": \"^0.30.1\",\n \"@fayz-ai/auth\": \"^0.30.0\",\n \"@fayz-ai/ui\": \"^0.30.0\",\n \"@fayz-ai/shop\": \"^0.30.0\",\n \"@fayz-ai/storefront\": \"^0.30.0\",\n \"@fayz-ai/portal\": \"^0.30.0\",\n \"@fayz-ai/courses\": \"^0.30.0\",\n \"@fayz-ai/db\": \"^0.18.1\",\n \"@fayz-ai/plugin-agenda\": \"^0.18.0\",\n \"@fayz-ai/plugin-auth\": \"^0.12.10\",\n \"@fayz-ai/plugin-automations\": \"^0.13.8\",\n \"@fayz-ai/plugin-blog\": \"^0.12.13\",\n \"@fayz-ai/plugin-conversations\": \"^0.20.0\",\n \"@fayz-ai/plugin-courses\": \"^0.10.18\",\n \"@fayz-ai/plugin-crm\": \"^0.28.2\",\n \"@fayz-ai/plugin-dashboard\": \"^0.9.17\",\n \"@fayz-ai/plugin-financial\": \"^0.15.0\",\n \"@fayz-ai/plugin-forms\": \"^0.11.0\",\n \"@fayz-ai/plugin-inventory\": \"^0.13.0\",\n \"@fayz-ai/plugin-marketing\": \"^0.13.0\",\n \"@fayz-ai/plugin-menu\": \"^0.10.16\",\n \"@fayz-ai/plugin-orders\": \"^0.12.13\",\n \"@fayz-ai/plugin-payments\": \"^0.9.15\",\n \"@fayz-ai/plugin-reports\": \"^0.14.0\",\n \"@fayz-ai/plugin-reputation\": \"^0.10.12\",\n \"@fayz-ai/plugin-shop\": \"^0.16.0\",\n \"@fayz-ai/plugin-sites\": \"^0.9.15\",\n \"@fayz-ai/plugin-tables\": \"^0.11.0\",\n \"@fayz-ai/plugin-tasks\": \"^0.10.15\"\n }\n }\n}\n","import releaseChannels from './release-channels.json'\n\nexport type FayzPackageChannel = 'stable' | 'latest' | 'preview'\n\nexport interface FayzPackageVersionSet {\n channel: FayzPackageChannel\n packages: Record<string, string>\n}\n\nconst releaseChannelPackages = releaseChannels.channels as Record<FayzPackageChannel, Record<string, string>>\n\nfunction buildVersionSet(channel: FayzPackageChannel): FayzPackageVersionSet {\n return {\n channel,\n packages: { ...releaseChannelPackages[channel] },\n }\n}\n\nexport const fayzPackageVersionSets: Record<FayzPackageChannel, FayzPackageVersionSet> = {\n stable: buildVersionSet('stable'),\n latest: buildVersionSet('latest'),\n preview: buildVersionSet('preview'),\n}\n\nexport function resolveFayzPackageVersions(channel: FayzPackageChannel = 'stable'): FayzPackageVersionSet {\n return fayzPackageVersionSets[channel]\n}\n\nexport function resolveFayzPackageDependencies(channel: FayzPackageChannel = 'stable'): Record<string, string> {\n return { ...resolveFayzPackageVersions(channel).packages }\n}\n\nexport function resolveFayzPackageVersion(packageName: string, channel: FayzPackageChannel = 'stable'): string {\n const version = resolveFayzPackageVersions(channel).packages[packageName]\n\n if (!version) {\n throw new Error(`No Fayz package version configured for ${packageName} in ${channel} channel`)\n }\n\n return version\n}\n"]}