-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegrate
More file actions
executable file
·34 lines (28 loc) · 850 Bytes
/
integrate
File metadata and controls
executable file
·34 lines (28 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
"""
Unified Interface for OpenClaw Integration
Integrates fp, seek, pt, and sync tools for intelligent cross-referencing.
"""
import sys
import os
import argparse
# Add the src directory to the path so we can import the integration utility
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
def run_integration():
from integration.cli import main
main()
def run_sync():
from sync.cli import main
main()
def main():
# For backward compatibility, run the original integration by default
if len(sys.argv) <= 1:
run_integration()
else:
# Check if the first argument is for sync functionality
if sys.argv[1] in ['sync', 'start-service', 'stop-service']:
run_sync()
else:
run_integration()
if __name__ == "__main__":
main()