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.
- package/.agent/rules/dynamic-guardrails.json +0 -4
- package/.env.example +3 -0
- package/.github/workflows/jules-audit.yml +16 -5
- package/JULES_RULES_TEMPLATE.md +1 -1
- package/README.md +95 -14
- package/bin/init.js +4 -1
- package/index.mjs +5 -4
- package/package.json +12 -5
- package/scripts/command-resolver.mjs +17 -17
- package/scripts/jules-cleanup.mjs +15 -25
- package/scripts/jules-create.mjs +10 -5
- package/scripts/jules-dispatch.mjs +163 -63
- package/scripts/jules-merge-swarm.mjs +184 -0
- package/scripts/jules-nightly.mjs +11 -7
- package/scripts/jules-patch.mjs +111 -0
- package/scripts/jules-queue-runner.mjs +39 -15
- package/scripts/jules-scan-todos.mjs +1 -1
- package/scripts/jules-self-audit.mjs +137 -48
- package/scripts/jules-status.mjs +52 -47
- package/scripts/jules-swarm.mjs +138 -39
- package/scripts/lock-manager.mjs +17 -10
- package/scripts/utils.mjs +154 -8
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -63
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -34
- package/.github/social-preview.png +0 -0
- package/.github/workflows/agent-scope-guard.yml +0 -57
- package/.github/workflows/jules-nightly.yml +0 -21
- package/.github/workflows/publish.yml +0 -24
|
@@ -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 }}
|