oneie 2.0.3 → 2.0.6
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/CLAUDE.md +220 -29
- package/LICENSE.md +84 -0
- package/README.md +489 -931
- package/dist/copy-claude-config.d.ts.map +1 -1
- package/dist/copy-claude-config.js +3 -1
- package/dist/copy-claude-config.js.map +1 -1
- package/dist/sync-agents.d.ts.map +1 -1
- package/dist/sync-agents.js +3 -1
- package/dist/sync-agents.js.map +1 -1
- package/dist/sync-ontology.d.ts.map +1 -1
- package/dist/sync-ontology.js +9 -7
- package/dist/sync-ontology.js.map +1 -1
- package/folders.yaml +78 -17
- package/one/.obsidian/workspace.json +6 -6
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +412 -0
- package/one/events/FEATURE-2-4-COMPLETE.md +302 -0
- package/one/events/FEATURE_2_3_COMPLETE.md +575 -0
- package/one/events/GROUPS-MIGRATION.md +625 -0
- package/one/events/INSTALL-TESTS.md +293 -0
- package/one/events/INTEGRATION-ARCHITECTURE.md +561 -0
- package/one/events/INTEGRATION-CHECKLIST.md +1234 -0
- package/one/events/INTEGRATION-ORCHESTRATION.md +2623 -0
- package/one/events/INTEGRATION-SUMMARY.md +653 -0
- package/one/events/MIGRATION-REPORT.md +435 -0
- package/one/events/MIGRATION.md +69 -0
- package/one/events/README-archived.md +519 -0
- package/one/events/TEST-SUMMARY.md +393 -0
- package/one/events/TESTS-QUICK-REF.md +262 -0
- package/one/groups/groups.md +543 -0
- package/one/knowledge/CLOUDFLARE_ENV_SETUP.md +49 -0
- package/one/knowledge/architecture-any-backend.md +1366 -0
- package/one/knowledge/docs/flow.md +0 -0
- package/one/knowledge/ontology-documentation.md +18 -18
- package/one/knowledge/ontology.md +154 -143
- package/one/knowledge/ontology.md.backup +2822 -0
- package/one/knowledge/ontology.yaml +87 -87
- package/one/knowledge/provider-creation-guide.md +1064 -0
- package/one/knowledge/todo.md +251 -0
- package/one/license.md +84 -0
- package/one/things/CHECKLIST.md +356 -0
- package/one/things/ONE.md +510 -0
- package/one/things/{cli.md → cli/cli.md} +27 -4
- package/one/things/features/2-1-dataprovider-interface.md +2358 -0
- package/one/things/features/2-2-config-system.md +3075 -0
- package/one/things/features/2-3-effectts-services.md +1498 -0
- package/one/things/features/2-4-react-hooks.md +2120 -0
- package/one/things/features/2-5-auth-migration.md +2046 -0
- package/one/things/features/2-6-dashboard-migration.md +1985 -0
- package/one/things/features/2-7-alternative-providers.md +2505 -0
- package/one/things/features/2-7-implementation-report.md +680 -0
- package/one/things/features/2-cli.md +39 -39
- package/one/things/features/2-design.md +1738 -0
- package/one/things/features/2-tests.md +520 -0
- package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +521 -0
- package/one/things/features/DECOUPLING.md +272 -0
- package/one/things/features/DEPLOYMENT.md +452 -0
- package/one/things/features/IMPLEMENTATION_SUMMARY.md +316 -0
- package/one/things/features/dataprovider-interface/1-tests.md +1522 -0
- package/one/things/features/improve.md +843 -0
- package/one/things/features/remove-convex-deps.md +45 -0
- package/one/things/features/top-features.md +79 -0
- package/one/things/ideas/2-backend-agnostic-frontend.md +384 -0
- package/one/things/plans/2-backend-agnostic-frontend.md +543 -0
- package/one/things/plans/3-groups.md +502 -0
- package/one/things/plans/backend-agnostic-frontend.md +323 -0
- package/one/things/plans/deploy-to-cloudflare.md +581 -0
- package/one/things/plans/organizations-to-groups.md +705 -0
- package/one/things/plans/release.md +432 -0
- package/one/things/products/ontology.md +1 -1
- package/one/things/system.md +600 -0
- package/one/things/tests/2-1-dataprovider-interface.md +1144 -0
- package/one/things/tests/2-1-test-analysis.md +496 -0
- package/one/things/vision/elegant-interface.md +214 -0
- package/package.json +1 -1
- package/one/organisation/organisation.md +0 -438
- package/one/repomix-output.md +0 -92634
- /package/one/{things → connections}/agentkit.md +0 -0
- /package/one/{things → connections}/copilotkit.md +0 -0
- /package/one/{organisation → groups}/one.md +0 -0
- /package/one/{organisation → groups}/revenue.md +0 -0
- /package/one/{organisation → groups}/strategy.md +0 -0
- /package/one/{organisation → groups}/vision.md +0 -0
- /package/one/things/{cli-code.md → cli/cli-code.md} +0 -0
- /package/one/things/{cli-compiler-code.md → cli/cli-compiler-code.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-claude-config.d.ts","sourceRoot":"","sources":["../src/copy-claude-config.ts"],"names":[],"mappings":"AAOA,wBAAsB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"copy-claude-config.d.ts","sourceRoot":"","sources":["../src/copy-claude-config.ts"],"names":[],"mappings":"AAOA,wBAAsB,gBAAgB,kBA8BrC"}
|
|
@@ -4,7 +4,9 @@ import { fileURLToPath } from "url";
|
|
|
4
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = path.dirname(__filename);
|
|
6
6
|
export async function copyClaudeConfig() {
|
|
7
|
-
|
|
7
|
+
// Package root is one level up from dist/
|
|
8
|
+
const packageRoot = path.join(__dirname, "..");
|
|
9
|
+
const sourceDir = path.join(packageRoot, ".claude");
|
|
8
10
|
const targetDir = path.join(process.cwd(), ".claude");
|
|
9
11
|
// Create target directory
|
|
10
12
|
await fs.mkdir(targetDir, { recursive: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-claude-config.js","sourceRoot":"","sources":["../src/copy-claude-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,MAAM,
|
|
1
|
+
{"version":3,"file":"copy-claude-config.js","sourceRoot":"","sources":["../src/copy-claude-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,0CAA0C;IAC1C,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,CAAC,CAAC;IAEtD,0BAA0B;IAC1B,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/C,cAAc;IACd,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAClD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAClD,IAAI,MAAM,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACjD,MAAM,EAAE,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,iBAAiB;IACjB,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACxD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACxD,IAAI,MAAM,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACpD,MAAM,EAAE,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,0BAA0B;IAC1B,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAC3D,IAAI,MAAM,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAClD,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-agents.d.ts","sourceRoot":"","sources":["../src/sync-agents.ts"],"names":[],"mappings":"AAQA,wBAAsB,oBAAoB;;;
|
|
1
|
+
{"version":3,"file":"sync-agents.d.ts","sourceRoot":"","sources":["../src/sync-agents.ts"],"names":[],"mappings":"AAQA,wBAAsB,oBAAoB;;;GAyBzC"}
|
package/dist/sync-agents.js
CHANGED
|
@@ -5,7 +5,9 @@ import { glob } from "glob";
|
|
|
5
5
|
const __filename = fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = path.dirname(__filename);
|
|
7
7
|
export async function syncAgentDefinitions() {
|
|
8
|
-
|
|
8
|
+
// Package root is one level up from dist/
|
|
9
|
+
const packageRoot = path.join(__dirname, "..");
|
|
10
|
+
const sourceDir = path.join(packageRoot, "one/things/agents");
|
|
9
11
|
const targetDir = path.join(process.cwd(), ".claude/agents");
|
|
10
12
|
// Create target directory
|
|
11
13
|
await fs.mkdir(targetDir, { recursive: true });
|
package/dist/sync-agents.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-agents.js","sourceRoot":"","sources":["../src/sync-agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,MAAM,
|
|
1
|
+
{"version":3,"file":"sync-agents.js","sourceRoot":"","sources":["../src/sync-agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,0CAA0C;IAC1C,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;IAC9D,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAE7D,0BAA0B;IAC1B,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/C,uBAAuB;IACvB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IAE1D,uBAAuB;IACvB,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC9C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC9C,MAAM,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,YAAY,UAAU,CAAC,MAAM,oBAAoB,CAAC,CAAC;IAE/D,OAAO;QACL,YAAY,EAAE,UAAU,CAAC,MAAM;QAC/B,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;KACvD,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-ontology.d.ts","sourceRoot":"","sources":["../src/sync-ontology.ts"],"names":[],"mappings":"AAgBA,wBAAsB,iBAAiB;;
|
|
1
|
+
{"version":3,"file":"sync-ontology.d.ts","sourceRoot":"","sources":["../src/sync-ontology.ts"],"names":[],"mappings":"AAgBA,wBAAsB,iBAAiB;;GAuCtC"}
|
package/dist/sync-ontology.js
CHANGED
|
@@ -6,24 +6,26 @@ import { glob } from "glob";
|
|
|
6
6
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
7
|
const __dirname = path.dirname(__filename);
|
|
8
8
|
export async function syncOntologyFiles() {
|
|
9
|
-
// 1.
|
|
10
|
-
const
|
|
9
|
+
// 1. Determine package root (one level up from dist/)
|
|
10
|
+
const packageRoot = path.join(__dirname, "..");
|
|
11
|
+
// 2. Read config
|
|
12
|
+
const configPath = path.join(packageRoot, "folders.yaml");
|
|
11
13
|
const configContent = await fs.readFile(configPath, "utf-8");
|
|
12
14
|
const config = yaml.parse(configContent);
|
|
13
|
-
//
|
|
15
|
+
// 3. Build glob pattern for all allowed extensions
|
|
14
16
|
const patterns = config.allowed_extensions.map((ext) => `one/**/*${ext}`);
|
|
15
|
-
//
|
|
17
|
+
// 4. Find all matching files
|
|
16
18
|
const oneFiles = [];
|
|
17
19
|
for (const pattern of patterns) {
|
|
18
20
|
const files = await glob(pattern, {
|
|
19
|
-
cwd:
|
|
21
|
+
cwd: packageRoot,
|
|
20
22
|
ignore: config.exclude_patterns,
|
|
21
23
|
});
|
|
22
24
|
oneFiles.push(...files);
|
|
23
25
|
}
|
|
24
|
-
//
|
|
26
|
+
// 5. Copy all files to user directory
|
|
25
27
|
for (const file of oneFiles) {
|
|
26
|
-
const sourcePath = path.join(
|
|
28
|
+
const sourcePath = path.join(packageRoot, file);
|
|
27
29
|
const targetPath = path.join(process.cwd(), file);
|
|
28
30
|
// Create directory if needed
|
|
29
31
|
await fs.mkdir(path.dirname(targetPath), { recursive: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-ontology.js","sourceRoot":"","sources":["../src/sync-ontology.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAS3C,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,iBAAiB;IACjB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"sync-ontology.js","sourceRoot":"","sources":["../src/sync-ontology.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAS3C,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,sDAAsD;IACtD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAE/C,iBAAiB;IACjB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAC1D,MAAM,aAAa,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAkB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAExD,mDAAmD;IACnD,MAAM,QAAQ,GAAG,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,GAAG,EAAE,CAAC,CAAC;IAE1E,6BAA6B;IAC7B,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE;YAChC,GAAG,EAAE,WAAW;YAChB,MAAM,EAAE,MAAM,CAAC,gBAAgB;SAChC,CAAC,CAAC;QACH,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;IAC1B,CAAC;IAED,sCAAsC;IACtC,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAChD,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;QAElD,6BAA6B;QAC7B,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAE9D,YAAY;QACZ,MAAM,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,YAAY,QAAQ,CAAC,MAAM,iBAAiB,CAAC,CAAC;IAE1D,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,MAAM;KAC7B,CAAC;AACJ,CAAC"}
|
package/folders.yaml
CHANGED
|
@@ -1,31 +1,92 @@
|
|
|
1
1
|
# ONE CLI - Folder Copy Configuration
|
|
2
|
-
#
|
|
3
|
-
#
|
|
2
|
+
# Defines what gets packaged into the npm "oneie" package
|
|
3
|
+
# Deployed to: one-ie/one (GitHub) and oneie (npm)
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# ============================================================
|
|
6
|
+
# DIRECTORIES TO PACKAGE
|
|
7
|
+
# ============================================================
|
|
8
|
+
|
|
9
|
+
# Claude Code Integration (AI agent configs, commands, hooks)
|
|
6
10
|
claude_folders:
|
|
7
11
|
- .claude/agents
|
|
8
12
|
- .claude/commands
|
|
9
13
|
- .claude/hooks
|
|
10
14
|
|
|
11
|
-
# ONE Ontology (
|
|
15
|
+
# ONE Ontology (complete 6-dimension documentation)
|
|
12
16
|
# The CLI will automatically discover and copy all subdirectories
|
|
13
17
|
one_folders:
|
|
14
18
|
- one/**/*
|
|
15
19
|
|
|
16
|
-
#
|
|
20
|
+
# Web Starter (Astro 5 + React 19 + Tailwind v4)
|
|
21
|
+
web_folders:
|
|
22
|
+
- web/
|
|
23
|
+
|
|
24
|
+
# Sample Data (optional data files and migrations)
|
|
25
|
+
data_folders:
|
|
26
|
+
- data/
|
|
27
|
+
|
|
28
|
+
# ============================================================
|
|
29
|
+
# ROOT DOCUMENTATION FILES
|
|
30
|
+
# ============================================================
|
|
31
|
+
|
|
32
|
+
root_files:
|
|
33
|
+
- CLAUDE.md # AI agent instructions
|
|
34
|
+
- AGENTS.md # Convex patterns quick reference
|
|
35
|
+
- README.md # Package documentation
|
|
36
|
+
- LICENSE.md # License information
|
|
37
|
+
|
|
38
|
+
# ============================================================
|
|
39
|
+
# FILE EXTENSIONS TO INCLUDE
|
|
40
|
+
# ============================================================
|
|
41
|
+
|
|
17
42
|
allowed_extensions:
|
|
18
|
-
- .md
|
|
19
|
-
- .yaml
|
|
20
|
-
- .yml
|
|
21
|
-
- .sh
|
|
43
|
+
- .md # Markdown documentation
|
|
44
|
+
- .yaml # YAML config files
|
|
45
|
+
- .yml # YAML config files
|
|
46
|
+
- .sh # Shell scripts
|
|
47
|
+
- .astro # Astro components
|
|
48
|
+
- .ts # TypeScript files
|
|
49
|
+
- .tsx # TypeScript React files
|
|
50
|
+
- .js # JavaScript files
|
|
51
|
+
- .jsx # JavaScript React files
|
|
52
|
+
- .json # JSON data/config
|
|
53
|
+
- .css # CSS stylesheets
|
|
54
|
+
- .svg # SVG images
|
|
55
|
+
- .png # PNG images
|
|
56
|
+
- .jpg # JPEG images
|
|
57
|
+
- .jpeg # JPEG images
|
|
58
|
+
- .webp # WebP images
|
|
59
|
+
|
|
60
|
+
# ============================================================
|
|
61
|
+
# EXCLUSION PATTERNS (NEVER COPY)
|
|
62
|
+
# ============================================================
|
|
22
63
|
|
|
23
|
-
# Files/folders to exclude
|
|
24
64
|
exclude_patterns:
|
|
25
|
-
- "*/node_modules/*"
|
|
26
|
-
- "*/.git/*"
|
|
27
|
-
- "*/dist/*"
|
|
28
|
-
- "*/build/*"
|
|
29
|
-
- "*/.
|
|
30
|
-
- "
|
|
31
|
-
- "*/
|
|
65
|
+
- "*/node_modules/*" # Dependencies
|
|
66
|
+
- "*/.git/*" # Git internals
|
|
67
|
+
- "*/dist/*" # Build output
|
|
68
|
+
- "*/build/*" # Build output
|
|
69
|
+
- "*/.astro/*" # Astro cache
|
|
70
|
+
- "*/.DS_Store" # macOS metadata
|
|
71
|
+
- "*/package-lock.json" # Lock files
|
|
72
|
+
- "*/bun.lockb" # Bun lock files
|
|
73
|
+
- "*/yarn.lock" # Yarn lock files
|
|
74
|
+
- "*/pnpm-lock.yaml" # pnpm lock files
|
|
75
|
+
- "*/.env*" # Environment variables
|
|
76
|
+
- "*/.vscode/*" # Editor config
|
|
77
|
+
- "*/.idea/*" # Editor config
|
|
78
|
+
- "*/coverage/*" # Test coverage
|
|
79
|
+
- "*/.turbo/*" # Turbo cache
|
|
80
|
+
- "*/.next/*" # Next.js cache
|
|
81
|
+
- "*/convex/_generated/*" # Generated Convex types
|
|
82
|
+
|
|
83
|
+
# ============================================================
|
|
84
|
+
# DEPLOYMENT CONFIG
|
|
85
|
+
# ============================================================
|
|
86
|
+
|
|
87
|
+
deployment:
|
|
88
|
+
github_repo: one-ie/one
|
|
89
|
+
npm_package: oneie
|
|
90
|
+
version: 2.0.5
|
|
91
|
+
homepage: https://one.ie
|
|
92
|
+
license_url: https://one.ie/free-license
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"state": {
|
|
14
14
|
"type": "markdown",
|
|
15
15
|
"state": {
|
|
16
|
-
"file": "things/
|
|
16
|
+
"file": "things/plans/mail.md",
|
|
17
17
|
"mode": "source",
|
|
18
18
|
"source": false
|
|
19
19
|
},
|
|
20
20
|
"icon": "lucide-file",
|
|
21
|
-
"title": "
|
|
21
|
+
"title": "mail"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
|
@@ -171,6 +171,9 @@
|
|
|
171
171
|
},
|
|
172
172
|
"active": "613025f84d05f0e8",
|
|
173
173
|
"lastOpenFiles": [
|
|
174
|
+
"things/plans/install-components.md",
|
|
175
|
+
"things/plans/email.md",
|
|
176
|
+
"things/features/use-one-backend.md",
|
|
174
177
|
"things/plans/workflow-files copy.md",
|
|
175
178
|
"things/plans/workflow-files.md",
|
|
176
179
|
"knowledge/ontology-frontend.md",
|
|
@@ -203,9 +206,6 @@
|
|
|
203
206
|
"things/claude/commands/ingest.md",
|
|
204
207
|
"things/claude/commands/cascade-status.md",
|
|
205
208
|
"things/claude/commands/agent.md",
|
|
206
|
-
"things/claude/agents/viral-growth-orchestrator.md"
|
|
207
|
-
"things/claude/agents/ux-expert.md",
|
|
208
|
-
"things/claude/agents/upsell-strategist.md",
|
|
209
|
-
"things/claude/agents/turbo-repo-builder.md"
|
|
209
|
+
"things/claude/agents/viral-growth-orchestrator.md"
|
|
210
210
|
]
|
|
211
211
|
}
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
# CASCADE #2: Backend-Agnostic Frontend Architecture
|
|
2
|
+
|
|
3
|
+
**Status:** Structure Complete - Awaiting Specialist Execution
|
|
4
|
+
**Created:** 2025-10-13
|
|
5
|
+
**Priority:** High (Strategic Enhancement)
|
|
6
|
+
**Duration:** 4-6 weeks
|
|
7
|
+
**Team:** Backend Specialist, Frontend Specialist, Integration Specialist, Quality Agent, Design Agent
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## CASCADE Overview
|
|
12
|
+
|
|
13
|
+
This document tracks the complete numbered CASCADE structure for Plan #2: Backend-Agnostic Frontend Architecture.
|
|
14
|
+
|
|
15
|
+
**Strategic Value:**
|
|
16
|
+
- Removes vendor lock-in (not tied to Convex)
|
|
17
|
+
- Enables multi-backend federation
|
|
18
|
+
- Supports organizations with existing infrastructure
|
|
19
|
+
- Proves ontology is truly protocol-agnostic
|
|
20
|
+
- Opens market to enterprises with backend requirements
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Ontology Validation Summary
|
|
25
|
+
|
|
26
|
+
### ✅ All 6 Dimensions Mapped
|
|
27
|
+
|
|
28
|
+
1. **Organizations** - Each org configures `properties.backendProvider`
|
|
29
|
+
2. **People** - Only `org_owner` role can configure backend providers
|
|
30
|
+
3. **Things** - New thing type: `external_connection` (backend configurations)
|
|
31
|
+
4. **Connections** - New relationship: `configured_by` (org → external_connection)
|
|
32
|
+
5. **Events** - New event: `provider_changed` (when backend swaps)
|
|
33
|
+
6. **Knowledge** - Labels tag backend provider capabilities
|
|
34
|
+
|
|
35
|
+
**Verdict:** ✅ PASS - All 6 dimensions successfully mapped
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## CASCADE Structure
|
|
40
|
+
|
|
41
|
+
### Level 1: IDEA
|
|
42
|
+
**File:** `one/things/ideas/2-backend-agnostic-frontend.md`
|
|
43
|
+
**Status:** ✅ Validated
|
|
44
|
+
**Decision:** Approved as Plan #2
|
|
45
|
+
|
|
46
|
+
### Level 2: PLAN
|
|
47
|
+
**File:** `one/things/plans/2-backend-agnostic-frontend.md`
|
|
48
|
+
**Status:** ✅ Active
|
|
49
|
+
**Features:** 7 features (2-1 through 2-7)
|
|
50
|
+
|
|
51
|
+
### Level 3: FEATURES (7 Total)
|
|
52
|
+
|
|
53
|
+
#### Feature 2-1: DataProvider Interface & ConvexProvider
|
|
54
|
+
- **File:** `one/things/features/2-1-dataprovider-interface.md`
|
|
55
|
+
- **Owner:** Backend Specialist
|
|
56
|
+
- **Status:** Awaiting Detailed Specification
|
|
57
|
+
- **Priority:** P0 (Critical Path - Blocks All Other Features)
|
|
58
|
+
- **Effort:** 1 week
|
|
59
|
+
- **Dependencies:** None
|
|
60
|
+
- **Blocks:** Features 2-2, 2-3, 2-4, 2-5, 2-6, 2-7
|
|
61
|
+
|
|
62
|
+
#### Feature 2-2: Configuration System
|
|
63
|
+
- **File:** `one/things/features/2-2-config-system.md`
|
|
64
|
+
- **Owner:** Backend Specialist
|
|
65
|
+
- **Status:** Awaiting Detailed Specification
|
|
66
|
+
- **Priority:** P0 (Critical - Required for Provider Switching)
|
|
67
|
+
- **Effort:** 3 days
|
|
68
|
+
- **Dependencies:** Feature 2-1
|
|
69
|
+
- **Blocks:** Features 2-3, 2-4, 2-5, 2-6, 2-7
|
|
70
|
+
|
|
71
|
+
#### Feature 2-3: Effect.ts Service Layer
|
|
72
|
+
- **File:** `one/things/features/2-3-effectts-services.md`
|
|
73
|
+
- **Owner:** Backend Specialist
|
|
74
|
+
- **Status:** Awaiting Detailed Specification
|
|
75
|
+
- **Priority:** P1 (High - Business Logic Layer)
|
|
76
|
+
- **Effort:** 1 week
|
|
77
|
+
- **Dependencies:** Features 2-1, 2-2
|
|
78
|
+
- **Blocks:** Features 2-4, 2-5, 2-6, 2-7
|
|
79
|
+
|
|
80
|
+
#### Feature 2-4: React Hooks Layer
|
|
81
|
+
- **File:** `one/things/features/2-4-react-hooks.md`
|
|
82
|
+
- **Owner:** Frontend Specialist
|
|
83
|
+
- **Status:** Awaiting Detailed Specification
|
|
84
|
+
- **Priority:** P1 (High - Frontend API)
|
|
85
|
+
- **Effort:** 3 days
|
|
86
|
+
- **Dependencies:** Feature 2-1
|
|
87
|
+
- **Blocks:** Features 2-5, 2-6
|
|
88
|
+
|
|
89
|
+
#### Feature 2-5: Auth Component Migration
|
|
90
|
+
- **File:** `one/things/features/2-5-auth-migration.md`
|
|
91
|
+
- **Owner:** Frontend Specialist
|
|
92
|
+
- **Status:** Awaiting Detailed Specification
|
|
93
|
+
- **Priority:** P0 (Critical - 50+ Tests Must Pass)
|
|
94
|
+
- **Effort:** 1 week
|
|
95
|
+
- **Dependencies:** Features 2-1, 2-4
|
|
96
|
+
- **Blocks:** Feature 2-6
|
|
97
|
+
- **CRITICAL:** All 50+ auth tests MUST pass. No exceptions.
|
|
98
|
+
|
|
99
|
+
#### Feature 2-6: Dashboard Component Migration
|
|
100
|
+
- **File:** `one/things/features/2-6-dashboard-migration.md`
|
|
101
|
+
- **Owner:** Frontend Specialist
|
|
102
|
+
- **Status:** Awaiting Detailed Specification
|
|
103
|
+
- **Priority:** P1 (High - Complete Migration)
|
|
104
|
+
- **Effort:** 1 week
|
|
105
|
+
- **Dependencies:** Feature 2-5
|
|
106
|
+
- **Blocks:** Feature 2-7
|
|
107
|
+
|
|
108
|
+
#### Feature 2-7: Alternative Providers (WordPress + Notion)
|
|
109
|
+
- **File:** `one/things/features/2-7-alternative-providers.md`
|
|
110
|
+
- **Owner:** Integration Specialist
|
|
111
|
+
- **Status:** Awaiting Detailed Specification
|
|
112
|
+
- **Priority:** P2 (Strategic - Proves Flexibility)
|
|
113
|
+
- **Effort:** 2 weeks
|
|
114
|
+
- **Dependencies:** Feature 2-6
|
|
115
|
+
- **Blocks:** None
|
|
116
|
+
|
|
117
|
+
### Level 4: TESTS
|
|
118
|
+
**File:** `one/things/features/2-tests.md`
|
|
119
|
+
**Owner:** Quality Agent
|
|
120
|
+
**Status:** Awaiting Detailed Specification
|
|
121
|
+
**Scope:** All features 2-1 through 2-7
|
|
122
|
+
|
|
123
|
+
### Level 5: DESIGN
|
|
124
|
+
**File:** `one/things/features/2-design.md`
|
|
125
|
+
**Owner:** Design Agent
|
|
126
|
+
**Status:** Awaiting Detailed Specification
|
|
127
|
+
**Scope:** Features 2-4, 2-5, 2-6
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Dependencies Graph
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
Feature 2-1 (DataProvider Interface)
|
|
135
|
+
├─ BLOCKS → Feature 2-2 (Config System)
|
|
136
|
+
├─ BLOCKS → Feature 2-3 (Effect.ts Services)
|
|
137
|
+
├─ BLOCKS → Feature 2-4 (React Hooks)
|
|
138
|
+
├─ BLOCKS → Feature 2-5 (Auth Migration)
|
|
139
|
+
├─ BLOCKS → Feature 2-6 (Dashboard Migration)
|
|
140
|
+
└─ BLOCKS → Feature 2-7 (Alternative Providers)
|
|
141
|
+
|
|
142
|
+
Feature 2-2 (Config System)
|
|
143
|
+
├─ DEPENDS ON → Feature 2-1
|
|
144
|
+
├─ BLOCKS → Feature 2-3 (Effect.ts Services)
|
|
145
|
+
└─ BLOCKS → Feature 2-4 (React Hooks)
|
|
146
|
+
|
|
147
|
+
Feature 2-3 (Effect.ts Services)
|
|
148
|
+
├─ DEPENDS ON → Features 2-1, 2-2
|
|
149
|
+
└─ BLOCKS → Feature 2-4 (React Hooks)
|
|
150
|
+
|
|
151
|
+
Feature 2-4 (React Hooks)
|
|
152
|
+
├─ DEPENDS ON → Feature 2-1
|
|
153
|
+
├─ BLOCKS → Feature 2-5 (Auth Migration)
|
|
154
|
+
└─ BLOCKS → Feature 2-6 (Dashboard Migration)
|
|
155
|
+
|
|
156
|
+
Feature 2-5 (Auth Migration)
|
|
157
|
+
├─ DEPENDS ON → Features 2-1, 2-4
|
|
158
|
+
└─ BLOCKS → Feature 2-6 (Dashboard Migration)
|
|
159
|
+
|
|
160
|
+
Feature 2-6 (Dashboard Migration)
|
|
161
|
+
├─ DEPENDS ON → Feature 2-5
|
|
162
|
+
└─ BLOCKS → Feature 2-7 (Alternative Providers)
|
|
163
|
+
|
|
164
|
+
Feature 2-7 (Alternative Providers)
|
|
165
|
+
└─ DEPENDS ON → Feature 2-6
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Critical Path:** 2-1 → 2-4 → 2-5 → 2-6 → 2-7
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Parallel Execution Strategy
|
|
173
|
+
|
|
174
|
+
### Phase 1: Foundation (Week 1-2)
|
|
175
|
+
**Can Run in Parallel:**
|
|
176
|
+
- Feature 2-1 (Week 1) - Backend Specialist
|
|
177
|
+
- Feature 2-2 (Week 1, after 2-1) - Backend Specialist
|
|
178
|
+
- Feature 2-3 (Week 2, after 2-1, 2-2) - Backend Specialist
|
|
179
|
+
- Feature 2-4 (Week 1-2, after 2-1) - Frontend Specialist
|
|
180
|
+
|
|
181
|
+
**Critical Path:** Feature 2-1 blocks all others
|
|
182
|
+
|
|
183
|
+
### Phase 2: Migration (Week 3-4)
|
|
184
|
+
**Must Run Sequentially (Risk Mitigation):**
|
|
185
|
+
- Feature 2-5 (Week 3) - Frontend Specialist (50+ auth tests MUST pass)
|
|
186
|
+
- Feature 2-6 (Week 4) - Frontend Specialist (after auth is stable)
|
|
187
|
+
|
|
188
|
+
### Phase 3: Expansion (Week 5-6)
|
|
189
|
+
**Sequential:**
|
|
190
|
+
- Feature 2-7 (Week 5-6) - Integration Specialist (proves flexibility)
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Quality Gates
|
|
195
|
+
|
|
196
|
+
### Gate 1: Interface Complete (End of Week 1)
|
|
197
|
+
- [ ] DataProvider interface defined
|
|
198
|
+
- [ ] ConvexProvider implemented
|
|
199
|
+
- [ ] All unit tests pass
|
|
200
|
+
- [ ] TypeScript compiles with no errors
|
|
201
|
+
- [ ] Performance baseline established
|
|
202
|
+
|
|
203
|
+
**Approval:** Backend Specialist → Quality Agent → Engineering Director
|
|
204
|
+
|
|
205
|
+
### Gate 2: Services Complete (End of Week 2)
|
|
206
|
+
- [ ] All 6-dimension services implemented
|
|
207
|
+
- [ ] Configuration system working
|
|
208
|
+
- [ ] Integration tests pass
|
|
209
|
+
- [ ] Documentation updated
|
|
210
|
+
|
|
211
|
+
**Approval:** Backend Specialist + Frontend Specialist → Quality Agent → Engineering Director
|
|
212
|
+
|
|
213
|
+
### Gate 3: Auth Migration Complete (End of Week 3)
|
|
214
|
+
- [ ] **ALL 50+ auth tests pass** (NO EXCEPTIONS)
|
|
215
|
+
- [ ] Zero regression in functionality
|
|
216
|
+
- [ ] Performance within 10% of baseline
|
|
217
|
+
- [ ] No TypeScript errors
|
|
218
|
+
- [ ] No direct Convex imports in auth
|
|
219
|
+
|
|
220
|
+
**Approval:** Frontend Specialist → Quality Agent → Engineering Director
|
|
221
|
+
**CRITICAL:** Highest-risk gate. All 50+ auth tests MUST pass.
|
|
222
|
+
|
|
223
|
+
### Gate 4: Full Migration Complete (End of Week 4)
|
|
224
|
+
- [ ] All components use DataProvider
|
|
225
|
+
- [ ] No direct Convex imports in components
|
|
226
|
+
- [ ] Full test suite passes
|
|
227
|
+
- [ ] Documentation updated
|
|
228
|
+
- [ ] Migration guide published
|
|
229
|
+
|
|
230
|
+
**Approval:** Frontend Specialist → Quality Agent → Engineering Director
|
|
231
|
+
|
|
232
|
+
### Gate 5: Alternative Providers Working (End of Week 6)
|
|
233
|
+
- [ ] WordPress provider functional
|
|
234
|
+
- [ ] Notion provider functional
|
|
235
|
+
- [ ] Provider switching works
|
|
236
|
+
- [ ] Multi-tenant support validated
|
|
237
|
+
- [ ] Provider creation guide complete
|
|
238
|
+
|
|
239
|
+
**Approval:** Integration Specialist → Quality Agent → Engineering Director
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## Rollback Strategy
|
|
244
|
+
|
|
245
|
+
### Rollback Points
|
|
246
|
+
1. **After Feature 2-1:** Revert to direct Convex hooks (easy)
|
|
247
|
+
2. **After Feature 2-5:** Keep auth on DataProvider, rollback dashboard (medium)
|
|
248
|
+
3. **After Feature 2-6:** Full rollback not possible (breaking change)
|
|
249
|
+
|
|
250
|
+
### Rollback Procedure
|
|
251
|
+
```bash
|
|
252
|
+
# 1. Revert to previous commit
|
|
253
|
+
git revert <feature_commit_range>
|
|
254
|
+
|
|
255
|
+
# 2. Re-enable ConvexClientProvider
|
|
256
|
+
# Edit: frontend/src/app.tsx
|
|
257
|
+
|
|
258
|
+
# 3. Restore direct Convex hook imports
|
|
259
|
+
# Edit: Affected component files
|
|
260
|
+
|
|
261
|
+
# 4. Run full test suite
|
|
262
|
+
cd frontend/
|
|
263
|
+
bun test
|
|
264
|
+
bunx astro check
|
|
265
|
+
|
|
266
|
+
# 5. Verify auth still works
|
|
267
|
+
bun test test/auth
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
**Rollback Time:** <5 minutes at each gate
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## Risk Analysis
|
|
275
|
+
|
|
276
|
+
### Risk 1: Auth Tests Break During Migration
|
|
277
|
+
- **Probability:** High
|
|
278
|
+
- **Impact:** Critical
|
|
279
|
+
- **Mitigation:** Run auth test suite after EVERY component migration
|
|
280
|
+
|
|
281
|
+
### Risk 2: Performance Regression
|
|
282
|
+
- **Probability:** Medium
|
|
283
|
+
- **Impact:** High
|
|
284
|
+
- **Mitigation:** Benchmark current performance, target <10ms overhead
|
|
285
|
+
|
|
286
|
+
### Risk 3: TypeScript Errors Proliferate
|
|
287
|
+
- **Probability:** Medium
|
|
288
|
+
- **Impact:** Medium
|
|
289
|
+
- **Mitigation:** Strong interface types from day 1
|
|
290
|
+
|
|
291
|
+
### Risk 4: Context Budget Explosion
|
|
292
|
+
- **Probability:** Medium
|
|
293
|
+
- **Impact:** Medium
|
|
294
|
+
- **Mitigation:** Keep DataProvider interface minimal, use code generation
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## Success Metrics
|
|
299
|
+
|
|
300
|
+
### Technical Metrics
|
|
301
|
+
- **Context Reduction:** 98% (150K → 3K tokens)
|
|
302
|
+
- **Code Reduction:** 30% fewer LOC (via abstraction)
|
|
303
|
+
- **Type Safety:** 100% typed (no `any` except entity properties)
|
|
304
|
+
- **Test Coverage:** 90%+ unit, 80%+ integration
|
|
305
|
+
- **Performance:** <10ms DataProvider overhead
|
|
306
|
+
|
|
307
|
+
### Strategic Metrics
|
|
308
|
+
- **Backend Flexibility:** 3+ providers supported (Convex, WordPress, Notion)
|
|
309
|
+
- **Organization Adoption:** Organizations can choose their backend
|
|
310
|
+
- **Developer Velocity:** 50% faster to add new providers
|
|
311
|
+
- **Migration Time:** 4-6 weeks (efficient execution)
|
|
312
|
+
- **Market Expansion:** Ready for enterprise customers
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## Timeline
|
|
317
|
+
|
|
318
|
+
| Week | Phase | Features | Owner | Deliverables |
|
|
319
|
+
|------|-------|----------|-------|--------------|
|
|
320
|
+
| 1 | Foundation | 2-1, 2-2 | Backend Specialist | DataProvider interface, ConvexProvider, Config system |
|
|
321
|
+
| 2 | Foundation | 2-3, 2-4 | Backend + Frontend | Effect.ts services, React hooks |
|
|
322
|
+
| 3 | Migration | 2-5 | Frontend Specialist | Auth components migrated, 50+ tests pass |
|
|
323
|
+
| 4 | Migration | 2-6 | Frontend Specialist | Dashboard components migrated |
|
|
324
|
+
| 5-6 | Expansion | 2-7 | Integration Specialist | WordPress + Notion providers |
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## Next Actions
|
|
329
|
+
|
|
330
|
+
### Immediate (Today)
|
|
331
|
+
1. ✅ Plan created and validated
|
|
332
|
+
2. ✅ 7 feature specification stub files created
|
|
333
|
+
3. ✅ Test specification stub created
|
|
334
|
+
4. ✅ Design specification stub created
|
|
335
|
+
5. ✅ CASCADE tracker created
|
|
336
|
+
6. **NEXT:** Assign features to specialists (emit `feature_assigned` events)
|
|
337
|
+
|
|
338
|
+
### Week 1
|
|
339
|
+
1. Backend Specialist begins Feature 2-1 (DataProvider Interface)
|
|
340
|
+
2. Set up performance benchmarking infrastructure
|
|
341
|
+
3. Create rollback branch strategy
|
|
342
|
+
4. Document migration patterns
|
|
343
|
+
|
|
344
|
+
### Week 2-4
|
|
345
|
+
1. Implement DataProvider + ConvexProvider
|
|
346
|
+
2. Migrate auth components (critical path)
|
|
347
|
+
3. Run auth tests continuously
|
|
348
|
+
4. Document lessons learned
|
|
349
|
+
|
|
350
|
+
### Week 5-6
|
|
351
|
+
1. Complete dashboard migration
|
|
352
|
+
2. Implement alternative providers
|
|
353
|
+
3. Update all documentation
|
|
354
|
+
4. Prepare launch communication
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## File Structure
|
|
359
|
+
|
|
360
|
+
```
|
|
361
|
+
one/
|
|
362
|
+
├── things/
|
|
363
|
+
│ ├── ideas/
|
|
364
|
+
│ │ └── 2-backend-agnostic-frontend.md ✅
|
|
365
|
+
│ ├── plans/
|
|
366
|
+
│ │ └── 2-backend-agnostic-frontend.md ✅
|
|
367
|
+
│ └── features/
|
|
368
|
+
│ ├── 2-1-dataprovider-interface.md ✅
|
|
369
|
+
│ ├── 2-2-config-system.md ✅
|
|
370
|
+
│ ├── 2-3-effectts-services.md ✅
|
|
371
|
+
│ ├── 2-4-react-hooks.md ✅
|
|
372
|
+
│ ├── 2-5-auth-migration.md ✅
|
|
373
|
+
│ ├── 2-6-dashboard-migration.md ✅
|
|
374
|
+
│ ├── 2-7-alternative-providers.md ✅
|
|
375
|
+
│ ├── 2-tests.md ✅
|
|
376
|
+
│ └── 2-design.md ✅
|
|
377
|
+
└── CASCADE-2-BACKEND-AGNOSTIC.md ✅ (this file)
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## Event Log
|
|
383
|
+
|
|
384
|
+
### 2025-10-13: CASCADE Structure Created
|
|
385
|
+
- **Actor:** Engineering Director Agent
|
|
386
|
+
- **Action:** Created complete numbered CASCADE structure
|
|
387
|
+
- **Files Created:** 10 files
|
|
388
|
+
- 1 idea file (already existed)
|
|
389
|
+
- 1 plan file (already existed)
|
|
390
|
+
- 7 feature stub files (NEW)
|
|
391
|
+
- 1 test specification stub (NEW)
|
|
392
|
+
- 1 design specification stub (NEW)
|
|
393
|
+
- 1 CASCADE tracker (NEW)
|
|
394
|
+
|
|
395
|
+
**Next Event:** `feature_assigned` (when specialists are assigned)
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
## Related Documents
|
|
400
|
+
|
|
401
|
+
- **Ontology:** `one/knowledge/ontology.md` (6-dimension specification)
|
|
402
|
+
- **Patterns:** `one/connections/patterns.md` (implementation patterns)
|
|
403
|
+
- **Architecture:** `one/knowledge/architecture.md` (system design)
|
|
404
|
+
- **Workflow:** `one/connections/workflow.md` (6-phase development workflow)
|
|
405
|
+
- **Rules:** `one/knowledge/rules.md` (golden rules for AI development)
|
|
406
|
+
|
|
407
|
+
---
|
|
408
|
+
|
|
409
|
+
**Status:** ✅ CASCADE Structure Complete - Ready for Specialist Execution
|
|
410
|
+
**Created:** 2025-10-13
|
|
411
|
+
**Validated By:** Engineering Director Agent
|
|
412
|
+
**Next Step:** Assign features to specialists and emit `feature_assigned` events
|