jules-orchestrator-kit 0.8.0 → 0.8.5

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.
@@ -1,57 +0,0 @@
1
- name: Agent Scope Guard
2
-
3
- on:
4
- pull_request:
5
- types: [opened, synchronize, reopened]
6
-
7
- jobs:
8
- scope-guard:
9
- runs-on: ubuntu-latest
10
- if: startsWith(github.head_ref, 'jules/')
11
- steps:
12
- - name: Checkout repository
13
- uses: actions/checkout@v4
14
- with:
15
- fetch-depth: 0
16
-
17
- - name: Setup Node.js
18
- uses: actions/setup-node@v4
19
- with:
20
- node-version: '20'
21
-
22
- - name: Verify Scope
23
- env:
24
- BASE_SHA: ${{ github.event.pull_request.base.sha }}
25
- HEAD_SHA: ${{ github.event.pull_request.head.sha }}
26
- BASE_REF: ${{ github.base_ref }}
27
- run: |
28
- echo "Checking files modified in PR..."
29
- MODIFIED_FILES=$(git diff --name-only $BASE_SHA $HEAD_SHA)
30
-
31
- # Read protected paths from origin/${{ github.base_ref }}
32
- PROTECTED_PATHS=$(node -e "const paths = JSON.parse(require('child_process').execSync('git show origin/' + process.env.BASE_REF + ':.agent/protected-paths.json', {encoding:'utf8'})).protected; console.log(paths.join(' '));")
33
-
34
- echo "Protected patterns: $PROTECTED_PATHS"
35
-
36
- VIOLATION_FOUND=0
37
-
38
- # Use micromatch or similar simple matching via bash for CI simplicity.
39
- # Here we just use a simple regex grep for patterns.
40
- for FILE in $MODIFIED_FILES; do
41
- echo "Checking: $FILE"
42
- for PATTERN in $PROTECTED_PATHS; do
43
- # Convert simple glob to regex for bash
44
- REGEX=$(echo "$PATTERN" | sed -e 's/\./\\./g' -e 's/\*\*/.*/g' -e 's/\*/[^/]*/g')
45
- if [[ "$FILE" =~ ^$REGEX$ ]] || [[ "$FILE" =~ ^$REGEX/ ]]; then
46
- echo "::error file=$FILE::File violates protected paths constraint: Matches pattern '$PATTERN'"
47
- VIOLATION_FOUND=1
48
- fi
49
- done
50
- done
51
-
52
- if [ $VIOLATION_FOUND -eq 1 ]; then
53
- echo "::error::PR modifies protected files. Jules agent is not allowed to modify these files without explicit manual review bypass."
54
- exit 1
55
- fi
56
-
57
- echo "Scope check passed. No protected files were modified."
@@ -1,21 +0,0 @@
1
- name: Jules Nightly Self-Audit
2
-
3
- on:
4
- schedule:
5
- - cron: '0 3 * * *'
6
- workflow_dispatch:
7
-
8
- jobs:
9
- nightly-audit:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v4
13
- - uses: actions/setup-node@v4
14
- with:
15
- node-version: 20
16
- - name: Dispatch Nightly Maintenance to Jules
17
- env:
18
- JULES_API_KEY: ${{ secrets.JULES_API_KEY }}
19
- JULES_REPO: ${{ github.repository }}
20
- run: |
21
- node scripts/jules-nightly.mjs
@@ -1,24 +0,0 @@
1
- name: Auto Publish to npm
2
-
3
- on:
4
- release:
5
- types: [published]
6
- workflow_dispatch:
7
-
8
- permissions:
9
- contents: read
10
- id-token: write
11
-
12
- jobs:
13
- publish:
14
- runs-on: ubuntu-latest
15
- steps:
16
- - uses: actions/checkout@v4
17
- - uses: actions/setup-node@v4
18
- with:
19
- node-version: "20"
20
- registry-url: 'https://registry.npmjs.org'
21
- - run: npm test
22
- - run: npm publish --provenance --access public
23
- env:
24
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}