OverviewFilesCommitsIssuesDocsReleasesPeers

ollama_semantic_function_calling commits / 19f04a5

Update file_mapping.md to reflect validators implementation as separate files
19f04a5253b6e5088148b70bfa6dfa8f8ae90d4b
by fleeky.ashatron <fleeky@7rnx.net> · 2025-04-19T16:20:38.000Z

Changed files (2) +16 -10

ollamatools-project/file_mapping.md +8 -8
……@@ -7,14 +7,14 @@ Use this as a guide for the refactoring process to ensure all functionality is m
77
88| Original File | New File | Status | Notes |
99|---------------|----------|--------|-------|
10| `ollamatools/agent.py` | `ollamatools/core/agent.py` | Pending | Base agent implementation |
11| `ollamatools/config.py` | `ollamatools/core/config.py` | Pending | Configuration management |
12| `ollamatools/errors.py` | `ollamatools/core/errors.py` | Pending | Error definitions and handling |
13| `ollamatools/security.py` | `ollamatools/core/security.py` | Pending | Security utilities and permission system |
14| `ollamatools/logger.py` | `ollamatools/core/utils/logger.py` | Pending | Logging utilities |
15| `ollamatools/command_validator.py` | `ollamatools/core/utils/validators.py` | Pending | Command validation (to be merged with other validators) |
16| `ollamatools/path_validator.py` | `ollamatools/core/utils/validators.py` | Pending | Path validation (to be merged with other validators) |
17| `ollamatools/url_validator.py` | `ollamatools/core/utils/validators.py` | Pending | URL validation (to be merged with other validators) |
10| `ollamatools/agent.py` | `ollamatools/core/agent.py` | Completed | Base agent implementation |
11| `ollamatools/config.py` | `ollamatools/core/config.py` | Completed | Configuration management |
12| `ollamatools/errors.py` | `ollamatools/core/errors.py` | Completed | Error definitions and handling |
13| `ollamatools/security.py` | `ollamatools/core/security.py` | Completed | Security utilities and permission system |
14| `ollamatools/logger.py` | `ollamatools/core/utils/logger.py` | Completed | Logging utilities |
15| `ollamatools/command_validator.py` | `ollamatools/core/utils/validators/command.py` | Completed | Command validation |
16| `ollamatools/path_validator.py` | `ollamatools/core/utils/validators/path.py` | Completed | Path validation |
17| `ollamatools/url_validator.py` | `ollamatools/core/utils/validators/url.py` | Completed | URL validation |
1818| `ollamatools/plugins/__init__.py` | `ollamatools/plugins/__init__.py` | Pending | Plugin system initialization |
1919| `ollamatools/plugins/registry.py` | `ollamatools/plugins/registry.py` | Pending | Plugin discovery and management |
2020| `ollamatools/plugins/errors.py` | `ollamatools/plugins/errors.py` | Pending | Plugin-specific error handling |
ollamatools-project/update_mapping_status.sh +8 -2
……@@ -49,16 +49,22 @@ if ! grep -q "\`$ORIGINAL_FILE\`" "$MAPPING_FILE"; then
4949 exit 1
5050fi
5151
52# Get the new file path from the mapping file
53NEW_FILE=$(grep "\`$ORIGINAL_FILE\`" "$MAPPING_FILE" | sed -E 's/.*\| `[^`]+` \| `([^`]+)`.*/\1/')
54
55# Escape special characters in the new file path for use in sed
56ESCAPED_NEW_FILE=$(echo "$NEW_FILE" | sed 's/\//\\\//g')
57
5258# If notes are provided, update both status and notes
5359if [ -n "$NEW_NOTES" ]; then
5460 # Escape special characters in the notes for use in sed
5561 ESCAPED_NOTES=$(echo "$NEW_NOTES" | sed 's/\//\\\//g')
5662
5763 # Update the status and notes
58 sed -i "s/| \`$ESCAPED_FILE\` | \`[^']*\` | [^|]* | [^|]* |/| \`$ESCAPED_FILE\` | \`&\` | $NEW_STATUS | $ESCAPED_NOTES |/" "$MAPPING_FILE"
64 sed -i "s/| \`$ESCAPED_FILE\` | \`[^']*\` | [^|]* | [^|]* |/| \`$ESCAPED_FILE\` | \`$ESCAPED_NEW_FILE\` | $NEW_STATUS | $ESCAPED_NOTES |/" "$MAPPING_FILE"
5965else
6066 # Update only the status
61 sed -i "s/| \`$ESCAPED_FILE\` | \`[^']*\` | [^|]* |/| \`$ESCAPED_FILE\` | \`&\` | $NEW_STATUS |/" "$MAPPING_FILE"
67 sed -i "s/| \`$ESCAPED_FILE\` | \`[^']*\` | [^|]* |/| \`$ESCAPED_FILE\` | \`$ESCAPED_NEW_FILE\` | $NEW_STATUS |/" "$MAPPING_FILE"
6268fi
6369
6470echo "Updated status of $ORIGINAL_FILE to '$NEW_STATUS'."