Skip to content

Commit be45ab6

Browse files
committed
Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e'
git-subtree-dir: extensions/cli git-subtree-mainline: 1674c2a git-subtree-split: e27a5c8
2 parents 1674c2a + e27a5c8 commit be45ab6

File tree

352 files changed

+69223
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+69223
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: CLI Agent
2+
version: 0.0.1
3+
schema: v1
4+
5+
models:
6+
- uses: anthropic/claude-3-7-sonnet
7+
with:
8+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
9+
10+
mcpServers:
11+
- uses: repomix/repomix-mcp
12+
- uses: anthropic/memory-mcp
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Continue SDK CLI and Hub Context
2+
version: 0.0.1
3+
schema: v1
4+
rules:
5+
- name: Continue SDK CLI and Hub Context
6+
rule: >-
7+
This repository is a CLI for the Continue SDK, which provides programmatic
8+
access to Continue's APIs.
9+
10+
11+
Key components:
12+
13+
- Continue SDK: Experimental package in early development, subject to
14+
breaking changes
15+
16+
- Continue Hub: Registry for custom AI code agent
17+
18+
- Hub functionality: Manages agent building blocks (models, rules,
19+
context providers, prompts, docs, etc.)
20+
21+
- Governance: Allows central configuration for organizations
22+
23+
24+
Important libraries:
25+
26+
- WorkOS: Handles authentication flows
27+
28+
- Model Context Protocol (MCP): Manages MCP server interactions
29+
30+
- readline-sync: Provides synchronous CLI user interactions
31+
32+
- Vitest: Used for testing framework
33+
34+
35+
All code should follow established patterns for a Node.js CLI tool
36+
interfacing with this experimental SDK.

extensions/cli/.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Continue API settings
2+
# API base URL - defaults to https://api.continue.dev/ if not specified
3+
CONTINUE_API_BASE=http://localhost:3001
4+
5+
# Continue API key
6+
# This is required for authentication with the Continue API
7+
CONTINUE_API_KEY=

extensions/cli/.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @continuedev/continue-code-reviewers
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Beta Release
2+
3+
on:
4+
schedule:
5+
# Run every day at 9am UTC
6+
- cron: "0 9 * * *"
7+
workflow_dispatch:
8+
# Allow manual triggering
9+
10+
permissions:
11+
contents: write
12+
issues: write
13+
pull-requests: write
14+
15+
jobs:
16+
beta-release:
17+
name: Beta Release
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: 20
30+
registry-url: "https://registry.npmjs.org"
31+
always-auth: true
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
38+
- name: Get current version
39+
id: get_version
40+
run: |
41+
# Get the latest version from package.json or npm registry
42+
CURRENT_VERSION=$(node -p "require('./package.json').version")
43+
if [[ "$CURRENT_VERSION" == "0.0.0-dev" ]]; then
44+
# If it's dev version, get latest from npm registry
45+
LATEST_VERSION=$(npm view @continuedev/cli version --silent 2>/dev/null || echo "0.0.0")
46+
echo "Using latest npm version: $LATEST_VERSION"
47+
CURRENT_VERSION=$LATEST_VERSION
48+
fi
49+
50+
# Create beta version with current date
51+
DATE_SUFFIX=$(date -u +%Y%m%d)
52+
BETA_VERSION="${CURRENT_VERSION}-beta.${DATE_SUFFIX}"
53+
54+
# Check if this version already exists on npm
55+
if npm view @continuedev/cli@$BETA_VERSION version --silent >/dev/null 2>&1; then
56+
echo "Version $BETA_VERSION already exists, adding timestamp"
57+
# Add hour and minute to make it unique
58+
TIMESTAMP_SUFFIX=$(date -u +%Y%m%d.%H%M)
59+
BETA_VERSION="${CURRENT_VERSION}-beta.${TIMESTAMP_SUFFIX}"
60+
echo "Using timestamped version: $BETA_VERSION"
61+
fi
62+
63+
echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
64+
echo "beta_version=$BETA_VERSION" >> $GITHUB_OUTPUT
65+
echo "date_suffix=$DATE_SUFFIX" >> $GITHUB_OUTPUT
66+
67+
- name: Update package.json for beta
68+
run: |
69+
# Update version in package.json
70+
npm version ${{ steps.get_version.outputs.beta_version }} --no-git-tag-version
71+
72+
- name: Build
73+
run: npm run build
74+
75+
- name: Publish beta to npm
76+
env:
77+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
78+
run: |
79+
npm publish --tag beta
80+
echo "Published beta version: ${{ steps.get_version.outputs.beta_version }}"
81+
82+
- name: Create beta release on GitHub
83+
env:
84+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
85+
run: |
86+
# Create a git tag for the beta
87+
git config --local user.email "[email protected]"
88+
git config --local user.name "GitHub Action"
89+
git tag "v${{ steps.get_version.outputs.beta_version }}"
90+
git push origin "v${{ steps.get_version.outputs.beta_version }}"
91+
92+
# Create GitHub release
93+
gh release create "v${{ steps.get_version.outputs.beta_version }}" \
94+
--title "Beta Release v${{ steps.get_version.outputs.beta_version }}" \
95+
--notes "Daily beta release for testing. This version will be promoted to stable after 7 days if no critical issues are found." \
96+
--prerelease
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Continue Detailed Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, ready_for_review]
6+
issue_comment:
7+
types: [created]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
issues: write
13+
14+
jobs:
15+
detailed-code-review:
16+
name: Continue Detailed Review
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
steps:
20+
- name: Run Detailed PR Review
21+
uses: continuedev/continue/actions/detailed-review@5361d5e33b880add1d3d050eeadd01971434fb75
22+
with:
23+
continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
24+
continue-org: continuedev
25+
continue-config: continuedev/review-bot
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Continue General Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, ready_for_review]
6+
issue_comment:
7+
types: [created]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
issues: write
13+
14+
jobs:
15+
general-code-review:
16+
name: Continue General Review
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
steps:
20+
- name: Run Continue PR Review Action
21+
uses: continuedev/continue/actions/general-review@5361d5e33b880add1d3d050eeadd01971434fb75
22+
with:
23+
continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
24+
continue-org: "continuedev"
25+
continue-config: "continuedev/review-bot"

0 commit comments

Comments
 (0)