Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

🔖 Checkpoint: Edit /workspaces/claude-code-flow/validation-test/src/formValidator.js

rUv0ab0415ea0c5
diff --git a/.claude/checkpoints/1755354967.json b/.claude/checkpoints/1755354967.json
new file mode 100644
index 0000000000..5822f75b2b
--- /dev/null
+++ b/.claude/checkpoints/1755354967.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250816-143607", "file": "/workspaces/claude-code-flow/implementation-roadmap.md", "timestamp": "2025-08-16T14:36:07Z", "type": "pre-edit", "original_branch": "alpha90"}
diff --git a/.claude/checkpoints/1755354969.json b/.claude/checkpoints/1755354969.json
new file mode 100644
index 0000000000..a1dbf0ace9
--- /dev/null
+++ b/.claude/checkpoints/1755354969.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250816-143609", "file": "/workspaces/claude-code-flow/implementation-roadmap.md", "timestamp": "2025-08-16T14:36:09Z", "type": "post-edit", "branch": "alpha90", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 36 ++++ .claude-flow/metrics/task-metrics.json | 6 +- claude-flow-wiki | 0 implementation-roadmap.md | 234 +++++++++++++++++++++ .../.claude/checkpoints/1755354949.json | 1 + .../.claude/checkpoints/1755354950.json | 1 + 7 files changed, 276 insertions(+), 4 deletions(-) "}
diff --git a/validation-test/src/formValidator.js b/validation-test/src/formValidator.js
index c1f32b1e55..f9ded2ae81 100644
--- a/validation-test/src/formValidator.js
+++ b/validation-test/src/formValidator.js
@@ -178,18 +178,32 @@ class FormValidator {
this.debounceDelay = delay;
}
- validateFieldDebounced(fieldName, value, rules) {
- if (this.debounceTimer) {
- clearTimeout(this.debounceTimer);
- }
-
- return new Promise((resolve) => {
+ validateField(fieldName, value, rules) {
+ // Add debounce support
+ if (this.debounceDelay > 0 && !this._validateFieldInternal) {
+ if (this.debounceTimer) {
+ clearTimeout(this.debounceTimer);
+ }
+
+ // Store for later validation
+ this._pendingValidation = { fieldName, value, rules };
+
this.debounceTimer = setTimeout(() => {
- const result = this.validateField(fieldName, value, rules);
- resolve(result);
+ this._validateFieldInternal(fieldName, value, rules);
}, this.debounceDelay);
- });
+
+ return { isValid: true, errors: [] }; // Return temporary result
+ }
+
+ return this._validateFieldCore(fieldName, value, rules);
+ }
+
+ _validateFieldInternal(fieldName, value, rules) {
+ // This is called after debounce
+ return this._validateFieldCore(fieldName, value, rules);
}
+
+ _validateFieldCore(fieldName, value, rules) {
}
module.exports = FormValidator;
\ No newline at end of file