@fleox-agent-crm/agentcrm 0.3.1 → 0.3.3
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/README.md +16 -16
- package/changelog.json +22 -0
- package/dist/admin/admin-files.json +7 -7
- package/dist/admin/assets/{chartsImpl-B45AAqnr.js → chartsImpl-aBuZ1X4W.js} +1 -1
- package/dist/admin/assets/firebase-BG1GpyBB.js +2 -0
- package/dist/admin/assets/{gitJson-CAUSxl8d.js → gitJson-DzX3eZ2P.js} +1 -1
- package/dist/admin/assets/{index-ChFauO8y.js → index-DLy5RpPl.js} +5 -5
- package/dist/admin/assets/{lucide-react.min--rznIkmQ.js → lucide-react.min-BgcmukkH.js} +1 -1
- package/dist/admin/assets/{sdk-DgzLACmL.js → sdk-DtP9zqdi.js} +1 -1
- package/dist/admin/index.html +1 -1
- package/dist/agent/agentcrm.mjs +70 -12
- package/dist/agent/chunks/api-Dwb4xz1k.mjs +27 -0
- package/dist/agent/chunks/{firebase-DxGVQV9E.mjs → firebase-DWR0K1OC.mjs} +53 -27
- package/dist/agent/chunks/{hosting-Bme7LxPc.mjs → hosting-Dnn1k3cV.mjs} +1 -1
- package/dist/agent/chunks/{index-DUSdTBkz.mjs → index-CNXq2Yk_.mjs} +1 -24
- package/dist/agent/chunks/index-Dio0aBWA.mjs +6920 -0
- package/dist/agent/chunks/{index-CRkw3_iF.mjs → index-DtCezG4R.mjs} +1 -1
- package/dist/agent/chunks/{install-CbpD_7gd.mjs → install-Bp-CwDVC.mjs} +13 -4
- package/dist/agent/chunks/{sdk-whvfg786.mjs → sdk-CYgNyuoK.mjs} +132 -7005
- package/dist/version.json +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/skills/agentcrm-admin/SKILL.md +67 -67
- package/plugin/skills/agentcrm-admin/references/records.md +5 -5
- package/plugin/skills/agentcrm-admin/references/schema.md +19 -19
- package/plugin/skills/agentcrm-extensions/SKILL.md +8 -8
- package/plugin/skills/agentcrm-extensions/references/module-recipes.md +2 -2
- package/plugin/skills/agentcrm-extensions/references/testing.md +14 -14
- package/plugin/skills/agentcrm-extensions/references/theme-recipes.md +3 -3
- package/plugin/skills/agentcrm-install/SKILL.md +13 -13
- package/plugin/skills/agentcrm-install/references/firebase.md +1 -1
- package/plugin/skills/agentcrm-install/references/github.md +1 -1
- package/plugin/skills/agentcrm-install/references/mcp.md +2 -2
- package/plugin/skills/agentcrm-install/references/plans.md +1 -1
- package/plugin/skills/agentcrm-install/references/s3.md +1 -1
- package/plugin/skills/agentcrm-manage/SKILL.md +15 -15
- package/plugin/skills/agentcrm-sales/SKILL.md +18 -18
- package/dist/admin/assets/firebase-C1x_l9P9.js +0 -2
|
@@ -126,7 +126,7 @@ registerBackend("journal", (config, opts) => {
|
|
|
126
126
|
store.identity = async () => (await missingJournalAccess(cfg.connectorId, settings)).length ? null : identity();
|
|
127
127
|
return store;
|
|
128
128
|
});
|
|
129
|
-
registerBackend("firebase", async (config, opts) => (await import("./firebase-
|
|
129
|
+
registerBackend("firebase", async (config, opts) => (await import("./firebase-DWR0K1OC.mjs")).createFirebaseStore(config, opts));
|
|
130
130
|
registerBackend("git-json", async (config, opts) => (await import("./gitJson-fjr8mcHe.mjs")).createGitJsonStore(config, opts));
|
|
131
131
|
async function createDataStore(config, opts = {}) {
|
|
132
132
|
const factory = getBackendFactory(config.backend);
|
|
@@ -8,8 +8,8 @@ import { generatePassphrase } from "./index-CWrrF1wl.mjs";
|
|
|
8
8
|
import { r as resolveGitPagesToken, c as createRemoteGitTransport } from "./s3-Dz50-NuA.mjs";
|
|
9
9
|
import { i as instantiateStorageConnector } from "./registry-DijAKZ24.mjs";
|
|
10
10
|
import { S as StorageError, s as subscribeToToasts } from "./http-Bk9ICb7I.mjs";
|
|
11
|
-
import { s as setCredential, h as openStore } from "../agentcrm.mjs";
|
|
12
|
-
import { adminOps, applyOps, buildConnector } from "./hosting-
|
|
11
|
+
import { s as setCredential, h as openStore, i as installBrowserEnv } from "../agentcrm.mjs";
|
|
12
|
+
import { adminOps, applyOps, buildConnector } from "./hosting-Dnn1k3cV.mjs";
|
|
13
13
|
import "./index-BM8qeGOb.mjs";
|
|
14
14
|
import "./runtimeConfig-CCOFg1RM.mjs";
|
|
15
15
|
import "./encoding-C9MzdP95.mjs";
|
|
@@ -130,8 +130,17 @@ async function checkPlan(plan) {
|
|
|
130
130
|
} else if (plan.runtime.backend === "git-json") {
|
|
131
131
|
const access = await probeTarget({ connectorId: "git-pages", settings: { ...plan.runtime.git, ...plan.backendSecrets ?? {} } }, { requireSiteUrl: false, requirePrivate: true });
|
|
132
132
|
data = { ...access, existing: false };
|
|
133
|
+
} else if (plan.runtime.backend === "firebase") {
|
|
134
|
+
const runtime = plan.runtime;
|
|
135
|
+
try {
|
|
136
|
+
installBrowserEnv();
|
|
137
|
+
const { firebaseApiFor, checkFirebaseAccess } = await import("./firebase-DWR0K1OC.mjs");
|
|
138
|
+
data = await checkFirebaseAccess(await firebaseApiFor(runtime), plan.backendSecrets, runtime.firebase.projectId ?? "");
|
|
139
|
+
} catch (err) {
|
|
140
|
+
data = { ok: false, detail: err.message, existing: false };
|
|
141
|
+
}
|
|
133
142
|
} else {
|
|
134
|
-
data = { ok: true, detail:
|
|
143
|
+
data = { ok: true, detail: "no data access to check", existing: false };
|
|
135
144
|
}
|
|
136
145
|
const hosting = plan.hostingTarget ? await probeTarget(plan.hostingTarget, { requireSiteUrl: plan.hostingTarget.connectorId !== "local-folder" }) : null;
|
|
137
146
|
return { data, hosting };
|
|
@@ -147,7 +156,7 @@ async function runInstall(plan, onStep) {
|
|
|
147
156
|
onStep(`Generated the dataset passphrase (stored as ${plan.passphraseAccount})`);
|
|
148
157
|
}
|
|
149
158
|
onStep("Opening the dataset");
|
|
150
|
-
const store = await openStore(plan.runtime, { dataTarget: plan.dataTarget, secrets: plan.backendSecrets, passphrase: plan.passphrase });
|
|
159
|
+
const store = await openStore(plan.runtime, { dataTarget: plan.dataTarget, secrets: plan.backendSecrets, passphrase: plan.passphrase, account: plan.credentials.data });
|
|
151
160
|
let seed;
|
|
152
161
|
try {
|
|
153
162
|
await store.ready();
|