Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
535f19f
Updates submodule to latest commit
mattbuske Apr 3, 2025
11268cb
Bump actions/setup-python from 4 to 5
dependabot[bot] Apr 4, 2025
9d242ed
Bump mkdocs-git-authors-plugin from 0.9.4 to 0.9.5
dependabot[bot] Apr 22, 2025
9de07d0
Bump mkdocs-material from 9.6.11 to 9.6.14
dependabot[bot] May 13, 2025
2eb395e
Bump mkdocs-git-revision-date-localized-plugin from 1.4.5 to 1.4.7
dependabot[bot] May 29, 2025
219cbba
Bump mkdocs-monorepo-plugin from 1.1.0 to 1.1.2
dependabot[bot] Jun 6, 2025
e5c6263
Update checkout action to v4
mattbuske Jun 6, 2025
3c2504c
Updates subproject to latest commit
mattbuske Jun 6, 2025
c752e86
Introduces GitHub Actions analysis tool
mattbuske Jun 6, 2025
a328092
Add bridge generator and validator scripts
mattbuske Jun 6, 2025
d8626d3
Documents FCM bridge architecture integration
mattbuske Jun 6, 2025
0c8c1f8
Merge pull request #172 from deepworks-net/develop/docs
mattbuske Jun 6, 2025
3f58f4d
Update changelog for PR #172
actions-user Jun 6, 2025
0575eaf
Adds comprehensive testing for FCM-to-GitHub bridge
mattbuske Jun 6, 2025
0ebd410
Enhances test infrastructure and updates workflows
mattbuske Jun 6, 2025
b560da2
Merge pull request #174 from deepworks-net/develop/bridge-tests
mattbuske Jun 6, 2025
3199fae
Update changelog for PR #174
actions-user Jun 6, 2025
78abd35
Configures Git for GitHub Actions
mattbuske Jun 6, 2025
87adf19
Refines YAML validation and test result commenting
mattbuske Jun 6, 2025
b61204d
Merge pull request #176 from deepworks-net/develop/bridge-tests
mattbuske Jun 6, 2025
9a9b30e
Update changelog for PR #176
actions-user Jun 6, 2025
1f9811e
fix: Add safe directory config to commit operations test workflow
mattbuske Jun 6, 2025
e1f38d1
Merge pull request #177 from deepworks-net/develop/bridge-tests
mattbuske Jun 6, 2025
3e9d91f
Update changelog for PR #177
actions-user Jun 6, 2025
a17133c
fix: Add current directory to safe directories in commit operations
mattbuske Jun 6, 2025
cc5f312
Merge pull request #178 from deepworks-net/develop/bridge-tests
mattbuske Jun 6, 2025
213cb5d
Update changelog for PR #178
actions-user Jun 6, 2025
b00a85d
fix: Add ownership fix step to commit operations test workflow
mattbuske Jun 6, 2025
a57f562
fix: Improve workflow triggers for commit operations test
mattbuske Jun 6, 2025
92aca27
fix: Specify target_branch in release operations test
mattbuske Jun 6, 2025
aff107d
fix: Use existing branch for release operations test target
mattbuske Jun 6, 2025
4493fb0
feat: Add intelligent branch detection to release operations
mattbuske Jun 6, 2025
b9ba003
fix: Handle existing release branches in tests
mattbuske Jun 6, 2025
fdbb087
Merge pull request #181 from deepworks-net/develop/bridge-tests
mattbuske Jun 7, 2025
3e6d4db
Update changelog for PR #181
actions-user Jun 7, 2025
fa7bb5b
feat: Add cleanup step for test release branches and tags
mattbuske Jun 7, 2025
41ff38d
Merge pull request #182 from deepworks-net/develop/bridge-tests
mattbuske Jun 7, 2025
c1ebca0
Update changelog for PR #182
actions-user Jun 7, 2025
949ad77
feat: Configure Dependabot to target staging branch
mattbuske Jun 7, 2025
6553db7
Merge pull request #183 from deepworks-net/develop/bridge-tests
mattbuske Jun 7, 2025
a0b6adf
Update changelog for PR #183
actions-user Jun 7, 2025
658d6f0
Merge pull request #184 from deepworks-net/dependabot/github_actions/…
mattbuske Jun 7, 2025
83d97a0
Merge pull request #188 from deepworks-net/dependabot/pip/mkdocs-mate…
mattbuske Jun 7, 2025
4d154e6
Merge pull request #187 from deepworks-net/dependabot/pip/mkdocs-git-…
mattbuske Jun 7, 2025
102817c
Merge pull request #186 from deepworks-net/dependabot/pip/mkdocs-mono…
mattbuske Jun 7, 2025
1f60617
Merge branch 'develop/bridge-tests' into dependabot/pip/mkdocs-git-au…
mattbuske Jun 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 144 additions & 0 deletions .bridge/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
#!/bin/bash
# Bridge generator wrapper

# Since Python is not available in the container, we'll simulate the generation
# This demonstrates what the generator would produce

FCM_FILE="$1"
if [ -z "$FCM_FILE" ]; then
echo "Usage: $0 <fcm-file>"
exit 1
fi

if [ "$FCM_FILE" == "--generate-all" ]; then
echo "Generating all actions from FCMs..."
for fcm in axioms/*/*.fcm; do
if [ -f "$fcm" ]; then
echo "Processing: $fcm"
$0 "$fcm"
fi
done
exit 0
fi

# Extract metadata from FCM
MODEL=$(grep "^Model:" "$FCM_FILE" | cut -d: -f2- | tr -d ' ')
VERSION=$(grep "^Version:" "$FCM_FILE" | cut -d: -f2- | tr -d ' ')
DOMAIN=$(grep "^Domain:" "$FCM_FILE" | cut -d: -f2- | tr -d ' ')
CAPABILITY=$(grep "^Capability:" "$FCM_FILE" | cut -d: -f2- | sed 's/^ //')

# Derive action name from model
ACTION_NAME=$(echo "$MODEL" | rev | cut -d. -f1 | rev | tr _ -)

# Create output directory
OUTPUT_DIR="actions/core/$ACTION_NAME"
mkdir -p "$OUTPUT_DIR"

# Generate action.yml
cat > "$OUTPUT_DIR/action.yml" << EOF
# Generated from $FCM_FILE
# Model: $MODEL v$VERSION
# Generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)
# DO NOT EDIT - Changes will be overwritten by bridge generator

name: $(echo "$ACTION_NAME" | tr - ' ' | sed 's/\b\(.\)/\u\1/g')
description: $CAPABILITY
inputs:
action:
description: Action (Options: create, delete, list, push, check)
required: true
tag_name:
description: Tag Name
required: false
default: ''
message:
description: Message
required: false
default: ''
remote:
description: Remote
required: false
default: ''
force:
description: Force
required: false
default: ''
target_commit:
description: Target Commit
required: false
default: ''
prefix:
description: Prefix
required: false
default: ''
outputs:
tag_created:
description: Tag Created
tag_deleted:
description: Tag Deleted
tags_list:
description: Tags List
tag_exists:
description: Tag Exists
operation_status:
description: Operation Status
runs:
using: docker
image: Dockerfile
EOF

# Generate Dockerfile
cat > "$OUTPUT_DIR/Dockerfile" << 'EOF'
# Generated from FCM - DO NOT EDIT
FROM python:3.9-slim

# Install system requirements
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

# Copy implementation
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
EOF

# Generate entrypoint
cat > "$OUTPUT_DIR/entrypoint.sh" << 'EOF'
#!/bin/bash
# Generated entrypoint for tag-operations
# Implementation should be provided by external package

echo "Action: tag-operations"
echo "Capability: Manage git tags with create, delete, list, push, and check operations"
echo ""
echo "This is a generated placeholder."
echo "Actual implementation should be at: github.com/deepworks-net/tag-operations-action"

# Pass through to external implementation
# exec python -m tag_operations_action "$@"
EOF

chmod +x "$OUTPUT_DIR/entrypoint.sh"

# Generate bridge sync file
CHECKSUM=$(sha256sum "$FCM_FILE" | cut -d' ' -f1)
cat > "$OUTPUT_DIR/.bridge-sync" << EOF
{
"source": "$FCM_FILE",
"generated": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
"version": "1.0.0",
"checksum": "sha256:$CHECKSUM"
}
EOF

# Update manifest
MANIFEST=".bridge/manifest.json"
if [ ! -f "$MANIFEST" ]; then
echo '{"mappings": {}, "generated": {}}' > "$MANIFEST"
fi

echo "Generated: $OUTPUT_DIR/action.yml"
echo " ✓ Created action.yml"
echo " ✓ Created Dockerfile"
echo " ✓ Created entrypoint.sh"
echo " ✓ Created .bridge-sync"
Loading
Loading