@fleox-agent-crm/agentcrm 0.0.0-stage → 0.3.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/LICENSE +143 -0
- package/README.md +223 -2
- package/changelog.json +57 -0
- package/dist/admin/admin-files.json +26 -0
- package/dist/admin/assets/chartsImpl-CE2akJat.js +91 -0
- package/dist/admin/assets/firebase-BHSUggRo.js +2 -0
- package/dist/admin/assets/gitJson-BulGh2KV.js +3 -0
- package/dist/admin/assets/index-DidVVK7L.js +1181 -0
- package/dist/admin/assets/index-hMXwHSvN.css +1 -0
- package/dist/admin/assets/index.esm-BFc7vwnl.js +400 -0
- package/dist/admin/assets/index.esm-CtEQZRb1.js +1651 -0
- package/dist/admin/assets/index.esm-Dum0J07z.js +16 -0
- package/dist/admin/assets/index.esm2017-EOzKbpUS.js +390 -0
- package/dist/admin/assets/lucide-react.min-DEDlHCPj.js +6 -0
- package/dist/admin/assets/sdk-CnrLnlRo.js +1717 -0
- package/dist/admin/config.js +3 -0
- package/dist/admin/favicon.svg +1 -0
- package/dist/admin/index.html +139 -0
- package/dist/admin/runtime/agentcrm-runtime.js +104 -0
- package/dist/admin/runtime/lucide-react.js +791 -0
- package/dist/admin/runtime/react-dom-client.js +17 -0
- package/dist/admin/runtime/react-dom.js +20 -0
- package/dist/admin/runtime/react-i18next.js +19 -0
- package/dist/admin/runtime/react-jsx-runtime.js +17 -0
- package/dist/admin/runtime/react.js +22 -0
- package/dist/agent/agentcrm.mjs +3932 -0
- package/dist/agent/chunks/_commonjsHelpers-ClciMIcB.mjs +14 -0
- package/dist/agent/chunks/activities-Cj_SIOay.mjs +227 -0
- package/dist/agent/chunks/api-B6OqNVWp.mjs +97 -0
- package/dist/agent/chunks/appearance-BaShelzt.mjs +174 -0
- package/dist/agent/chunks/automations-BWrvLqP6.mjs +698 -0
- package/dist/agent/chunks/backup-ClSmxmFZ.mjs +103 -0
- package/dist/agent/chunks/batch-CVETiJj5.mjs +142 -0
- package/dist/agent/chunks/compact-CsFPaAAq.mjs +69 -0
- package/dist/agent/chunks/context-CxFfqS4D.mjs +65 -0
- package/dist/agent/chunks/core-Dy7vY9H6.mjs +255 -0
- package/dist/agent/chunks/dedupe-BepmsaHv.mjs +123 -0
- package/dist/agent/chunks/encoding-C9MzdP95.mjs +36 -0
- package/dist/agent/chunks/exportCsv-B5hRvkNm.mjs +95 -0
- package/dist/agent/chunks/extCheck--7lmVvl7.mjs +193 -0
- package/dist/agent/chunks/extPackage-BGl5Oqs8.mjs +115 -0
- package/dist/agent/chunks/extScaffold-DqxI7R1e.mjs +320 -0
- package/dist/agent/chunks/extensionActions-D2HtpQz4.mjs +48 -0
- package/dist/agent/chunks/extensions-BP1k60md.mjs +151 -0
- package/dist/agent/chunks/featureRegistry-C9nbVShp.mjs +149 -0
- package/dist/agent/chunks/fields-B0bitgmr.mjs +476 -0
- package/dist/agent/chunks/files-CjsPJSR6.mjs +158 -0
- package/dist/agent/chunks/files-q8Xu5bft.mjs +367 -0
- package/dist/agent/chunks/firebase-DxGVQV9E.mjs +454 -0
- package/dist/agent/chunks/firebaseRules-iori-s7U.mjs +221 -0
- package/dist/agent/chunks/forms-BKU5F9WF.mjs +847 -0
- package/dist/agent/chunks/gitJson-fjr8mcHe.mjs +528 -0
- package/dist/agent/chunks/hosting-Bme7LxPc.mjs +144 -0
- package/dist/agent/chunks/http-Bk9ICb7I.mjs +127 -0
- package/dist/agent/chunks/ids-CvnmrMJX.mjs +59 -0
- package/dist/agent/chunks/ids-u-noYcy5.mjs +14 -0
- package/dist/agent/chunks/importCsv-DmE_sBch.mjs +334 -0
- package/dist/agent/chunks/index-B-4W0-P4.mjs +535 -0
- package/dist/agent/chunks/index-BM8qeGOb.mjs +2489 -0
- package/dist/agent/chunks/index-Bnmav-Oh.mjs +311 -0
- package/dist/agent/chunks/index-CRkw3_iF.mjs +147 -0
- package/dist/agent/chunks/index-CWrrF1wl.mjs +111 -0
- package/dist/agent/chunks/index-DUSdTBkz.mjs +2988 -0
- package/dist/agent/chunks/index-RCmo-uld.mjs +26 -0
- package/dist/agent/chunks/index-w03ReRs4.mjs +9780 -0
- package/dist/agent/chunks/install-CpHoUFtL.mjs +188 -0
- package/dist/agent/chunks/jsx-runtime-Ca2uwGDr.mjs +76 -0
- package/dist/agent/chunks/loader-C9nm3iwx.mjs +184 -0
- package/dist/agent/chunks/lucide-react.min-Bt3gtepY.mjs +64 -0
- package/dist/agent/chunks/memory-WNR3VHUJ.mjs +56 -0
- package/dist/agent/chunks/migrate-CsClnnN8.mjs +182 -0
- package/dist/agent/chunks/modules-CqdVQVJb.mjs +177 -0
- package/dist/agent/chunks/nodeImport-BPCt5uMu.mjs +38 -0
- package/dist/agent/chunks/package-DWbn3t2R.mjs +194 -0
- package/dist/agent/chunks/papaparse-DjBYnQM2.mjs +1285 -0
- package/dist/agent/chunks/pipelines-DCdRBNBV.mjs +234 -0
- package/dist/agent/chunks/plan-C0TBrU92.mjs +254 -0
- package/dist/agent/chunks/pluginRegistry-DyHtlkcr.mjs +83 -0
- package/dist/agent/chunks/query-C5nJB_3C.mjs +192 -0
- package/dist/agent/chunks/records-DoqiT9xR.mjs +2191 -0
- package/dist/agent/chunks/registry-Ceexawxl.mjs +182 -0
- package/dist/agent/chunks/registry-DijAKZ24.mjs +431 -0
- package/dist/agent/chunks/relations-B9TynBmA.mjs +191 -0
- package/dist/agent/chunks/reports-BB59N6ke.mjs +189 -0
- package/dist/agent/chunks/runtime-DHo7ZEEO.mjs +14852 -0
- package/dist/agent/chunks/runtimeConfig-CCOFg1RM.mjs +250 -0
- package/dist/agent/chunks/s3-Dz50-NuA.mjs +903 -0
- package/dist/agent/chunks/schema-7-4-qtSS.mjs +203 -0
- package/dist/agent/chunks/schema-DlHt2PxI.mjs +367 -0
- package/dist/agent/chunks/sdk-whvfg786.mjs +43644 -0
- package/dist/agent/chunks/seed-CugPGYZL.mjs +523 -0
- package/dist/agent/chunks/server-ISwlDRCN.mjs +242 -0
- package/dist/agent/chunks/settings-BtvR_jdm.mjs +76 -0
- package/dist/agent/chunks/standardObjects-CheqfDqa.mjs +243 -0
- package/dist/agent/chunks/stats-CfeJssSS.mjs +51 -0
- package/dist/agent/chunks/store-5gqRSKXg.mjs +122 -0
- package/dist/agent/chunks/themes-DPZFv3yc.mjs +43 -0
- package/dist/agent/chunks/tools-Bew8lxKx.mjs +844 -0
- package/dist/agent/chunks/types-BOy9PUl7.mjs +44 -0
- package/dist/agent/chunks/users-DI1BvS0f.mjs +107 -0
- package/dist/agent/chunks/utils-DmI8FtXP.mjs +83 -0
- package/dist/agent/chunks/views-fO_BM5U_.mjs +109 -0
- package/dist/version.json +7 -0
- package/package.json +97 -4
- package/plugin/.claude-plugin/plugin.json +17 -0
- package/plugin/skills/agentcrm-admin/SKILL.md +191 -0
- package/plugin/skills/agentcrm-admin/references/appearance.md +26 -0
- package/plugin/skills/agentcrm-admin/references/import.md +16 -0
- package/plugin/skills/agentcrm-admin/references/records.md +30 -0
- package/plugin/skills/agentcrm-admin/references/schema.md +59 -0
- package/plugin/skills/agentcrm-extensions/SKILL.md +93 -0
- package/plugin/skills/agentcrm-extensions/references/module-recipes.md +213 -0
- package/plugin/skills/agentcrm-extensions/references/runtime-api.md +41 -0
- package/plugin/skills/agentcrm-extensions/references/testing.md +76 -0
- package/plugin/skills/agentcrm-extensions/references/theme-recipes.md +65 -0
- package/plugin/skills/agentcrm-install/SKILL.md +116 -0
- package/plugin/skills/agentcrm-install/references/firebase.md +18 -0
- package/plugin/skills/agentcrm-install/references/github.md +20 -0
- package/plugin/skills/agentcrm-install/references/mcp.md +17 -0
- package/plugin/skills/agentcrm-install/references/plans.md +45 -0
- package/plugin/skills/agentcrm-install/references/s3.md +24 -0
- package/plugin/skills/agentcrm-manage/SKILL.md +108 -0
- package/plugin/skills/agentcrm-manage/references/cron.md +11 -0
- package/plugin/skills/agentcrm-manage/references/doctor.md +18 -0
- package/plugin/skills/agentcrm-sales/SKILL.md +92 -0
- package/plugin/skills/agentcrm-sales/references/enrichment.md +13 -0
- package/plugin/skills/agentcrm-sales/references/playbooks.md +29 -0
- package/plugin/skills/agentcrm-sales/references/weekly-report.md +27 -0
- package/types/agentcrm-runtime.d.ts +894 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { createRequire as __acrmRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __acrmPath } from "node:url";
|
|
3
|
+
import { dirname as __acrmDirname } from "node:path";
|
|
4
|
+
const require2 = __acrmRequire(import.meta.url);
|
|
5
|
+
const __filename = __acrmPath(import.meta.url);
|
|
6
|
+
const __dirname = __acrmDirname(__filename);
|
|
7
|
+
import { OpsError } from "./context-CxFfqS4D.mjs";
|
|
8
|
+
import "./pluginRegistry-DyHtlkcr.mjs";
|
|
9
|
+
const asDoc = (value) => value;
|
|
10
|
+
function objectsOf(store) {
|
|
11
|
+
return store.list("objects");
|
|
12
|
+
}
|
|
13
|
+
function objectOf(store, id) {
|
|
14
|
+
return store.get("objects", id);
|
|
15
|
+
}
|
|
16
|
+
function requireObject(store, id) {
|
|
17
|
+
const o = objectOf(store, id);
|
|
18
|
+
if (!o) {
|
|
19
|
+
const known = objectsOf(store).map((x) => x.id).join(", ");
|
|
20
|
+
throw new OpsError("notFound", `Unknown object "${id}".${known ? ` Objects: ${known}.` : ""}`);
|
|
21
|
+
}
|
|
22
|
+
return o;
|
|
23
|
+
}
|
|
24
|
+
function recordsOf(store, object, opts = {}) {
|
|
25
|
+
const all = store.list("records");
|
|
26
|
+
return all.filter((r) => (!object || r.object === object) && (opts.includeDeleted || !r.deletedAt));
|
|
27
|
+
}
|
|
28
|
+
function recordOf(store, id) {
|
|
29
|
+
return store.get("records", id);
|
|
30
|
+
}
|
|
31
|
+
function requireRecord(store, id, opts = {}) {
|
|
32
|
+
const r = recordOf(store, id);
|
|
33
|
+
if (!r || r.deletedAt && !opts.includeDeleted) throw new OpsError("notFound", `Record "${id}" not found.`);
|
|
34
|
+
return r;
|
|
35
|
+
}
|
|
36
|
+
function activitiesOf(store, opts = {}) {
|
|
37
|
+
const all = store.list("activities");
|
|
38
|
+
return opts.includeDeleted ? all : all.filter((a) => !a.deletedAt);
|
|
39
|
+
}
|
|
40
|
+
function requireActivity(store, id) {
|
|
41
|
+
const a = store.get("activities", id);
|
|
42
|
+
if (!a || a.deletedAt) throw new OpsError("notFound", `Activity "${id}" not found.`);
|
|
43
|
+
return a;
|
|
44
|
+
}
|
|
45
|
+
function pipelinesOf(store, object) {
|
|
46
|
+
const all = store.list("pipelines");
|
|
47
|
+
return object ? all.filter((p) => p.object === object) : all;
|
|
48
|
+
}
|
|
49
|
+
function requirePipeline(store, id) {
|
|
50
|
+
const p = store.get("pipelines", id);
|
|
51
|
+
if (!p) throw new OpsError("notFound", `Pipeline "${id}" not found.`);
|
|
52
|
+
return p;
|
|
53
|
+
}
|
|
54
|
+
function viewsOf(store, object) {
|
|
55
|
+
const all = store.list("views");
|
|
56
|
+
return object ? all.filter((v) => v.object === object) : all;
|
|
57
|
+
}
|
|
58
|
+
function usersOf(store) {
|
|
59
|
+
return store.list("users");
|
|
60
|
+
}
|
|
61
|
+
function userOf(store, id) {
|
|
62
|
+
return store.get("users", id);
|
|
63
|
+
}
|
|
64
|
+
function settingsDoc(store) {
|
|
65
|
+
return store.get("settings", "general");
|
|
66
|
+
}
|
|
67
|
+
function automationsOf(store) {
|
|
68
|
+
return store.list("automations");
|
|
69
|
+
}
|
|
70
|
+
function formsOf(store) {
|
|
71
|
+
return store.list("forms");
|
|
72
|
+
}
|
|
73
|
+
function automationRunsOf(store) {
|
|
74
|
+
return store.list("automationRuns");
|
|
75
|
+
}
|
|
76
|
+
function thaw(value) {
|
|
77
|
+
return JSON.parse(JSON.stringify(value));
|
|
78
|
+
}
|
|
79
|
+
function extensionDocsOf(store) {
|
|
80
|
+
return store.list("extensions");
|
|
81
|
+
}
|
|
82
|
+
function extensionDocOf(store, id) {
|
|
83
|
+
return store.get("extensions", id);
|
|
84
|
+
}
|
|
85
|
+
function filesOf(store, opts = {}) {
|
|
86
|
+
const all = store.list("files");
|
|
87
|
+
return opts.includeDeleted ? all : all.filter((f) => !f.deletedAt);
|
|
88
|
+
}
|
|
89
|
+
function fileOf(store, id) {
|
|
90
|
+
return store.get("files", id);
|
|
91
|
+
}
|
|
92
|
+
function requireFile(store, id, opts = {}) {
|
|
93
|
+
const f = fileOf(store, id);
|
|
94
|
+
if (!f || f.deletedAt && !opts.includeDeleted) throw new OpsError("notFound", `File "${id}" not found.`);
|
|
95
|
+
return f;
|
|
96
|
+
}
|
|
97
|
+
export {
|
|
98
|
+
activitiesOf,
|
|
99
|
+
asDoc,
|
|
100
|
+
automationRunsOf,
|
|
101
|
+
automationsOf,
|
|
102
|
+
extensionDocOf,
|
|
103
|
+
extensionDocsOf,
|
|
104
|
+
fileOf,
|
|
105
|
+
filesOf,
|
|
106
|
+
formsOf,
|
|
107
|
+
objectOf,
|
|
108
|
+
objectsOf,
|
|
109
|
+
pipelinesOf,
|
|
110
|
+
recordOf,
|
|
111
|
+
recordsOf,
|
|
112
|
+
requireActivity,
|
|
113
|
+
requireFile,
|
|
114
|
+
requireObject,
|
|
115
|
+
requirePipeline,
|
|
116
|
+
requireRecord,
|
|
117
|
+
settingsDoc,
|
|
118
|
+
thaw,
|
|
119
|
+
userOf,
|
|
120
|
+
usersOf,
|
|
121
|
+
viewsOf
|
|
122
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { createRequire as __acrmRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __acrmPath } from "node:url";
|
|
3
|
+
import { dirname as __acrmDirname } from "node:path";
|
|
4
|
+
const require2 = __acrmRequire(import.meta.url);
|
|
5
|
+
const __filename = __acrmPath(import.meta.url);
|
|
6
|
+
const __dirname = __acrmDirname(__filename);
|
|
7
|
+
const themes = /* @__PURE__ */ new Map();
|
|
8
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
9
|
+
let version = 0;
|
|
10
|
+
function notify() {
|
|
11
|
+
version++;
|
|
12
|
+
for (const l of [...listeners]) l();
|
|
13
|
+
}
|
|
14
|
+
function registerExternalTheme(theme) {
|
|
15
|
+
themes.set(theme.id, theme);
|
|
16
|
+
notify();
|
|
17
|
+
return () => {
|
|
18
|
+
if (themes.get(theme.id) === theme) {
|
|
19
|
+
themes.delete(theme.id);
|
|
20
|
+
notify();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function getExternalTheme(id) {
|
|
25
|
+
return id ? themes.get(id) : void 0;
|
|
26
|
+
}
|
|
27
|
+
function listExternalThemes() {
|
|
28
|
+
return [...themes.values()];
|
|
29
|
+
}
|
|
30
|
+
function subscribeExternalThemes(listener) {
|
|
31
|
+
listeners.add(listener);
|
|
32
|
+
return () => listeners.delete(listener);
|
|
33
|
+
}
|
|
34
|
+
function externalThemesVersion() {
|
|
35
|
+
return version;
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
externalThemesVersion,
|
|
39
|
+
getExternalTheme,
|
|
40
|
+
listExternalThemes,
|
|
41
|
+
registerExternalTheme,
|
|
42
|
+
subscribeExternalThemes
|
|
43
|
+
};
|