Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 6 additions & 6 deletions .github/last-sync-commits.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"kilocode": {
"last_synced_commit": "4bfd65264fbabf801b8f130e9d33b8d51dd2ec91",
"last_synced_at": "2026-06-19T10:28:19Z",
"last_synced_commit": "ec0dd783a8b8eae279ec4f2c478a0b209413a8a3",
"last_synced_at": "2026-06-20T08:58:46Z",
"upstream": "Kilo-Org/kilocode",
"fork": "ausard/kilocode"
},
"opencode": {
"last_synced_commit": "355a0bcf5bb5e6c7baa271a4b2439a40f286e55d",
"last_synced_at": "2026-06-19T10:28:19Z",
"last_synced_commit": "e6cdc543f323bceb8a3e140d35d902c26e69169e",
"last_synced_at": "2026-06-20T08:58:46Z",
"upstream": "anomalyco/opencode",
"fork": "ausard/opencode"
},
"claude-code": {
"last_synced_commit": "c487902a53fc25aea01ddfdf2bf002e82d0cad45",
"last_synced_at": "2026-06-19T10:28:19Z",
"last_synced_at": "2026-06-20T08:58:46Z",
"upstream": "anthropics/claude-code",
"fork": "direct-clone"
},
"metadata": {
"version": "1.1.0",
"workflow_run": "27820227017",
"workflow_run": "27866297273",
"description": "Tracks last synced commits from upstream repositories"
}
}
255 changes: 60 additions & 195 deletions .github/prompts/execution-prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,229 +8,94 @@ You are an expert software developer. Your task is to execute the update plan be
# Update Plan for Alexi

Generated: 2026-06-20
Based on upstream commits: Kilo-Org/kilocode, anomalyco/opencode, anthropics/claude-code
Based on upstream commits: ec0dd783a, e6cdc54

## Summary
- Total changes planned: 12
- Critical: 2 | High: 4 | Medium: 4 | Low: 2
- Total changes planned: 2
- Critical: 0 | High: 2 | Medium: 0 | Low: 0

## Changes

### 1. Add new agent patterns
**File**: `src/agent/index.ts`
### 1. Update version in package.json
**File**: `src/core/package.json`
**Priority**: high
**Type**: feature
**Reason**: To incorporate new agent patterns from upstream changes, enhancing functionality.
**Reason**: To align with versioning and feature updates from upstream `packages/core/package.json`

**Current code**:
```typescript
// existing agent interface and implementation
```

**New code**:
```typescript
import { AgentV2 } from "./agent";

export const ID = AgentV2.ID;
export type ID = typeof AgentV2.ID.Type;

// Add more agent functionalities based on upstream
```

### 2. Update core account structure
**File**: `src/core/account.ts`
**Priority**: critical
**Type**: security
**Reason**: Secure and update the account structure with new credential types.

**Current code**:
```typescript
// existing account structure
```json
{
"$schema": "https://json.schemastore.org/package.json",
"version": "7.3.49",
"name": "@alexi/core",
"type": "module",
"license": "MIT",
}
```

**New code**:
```typescript
import { ID, ServiceID, OAuthCredential, ApiKeyCredential, Credential } from "./util/schema";

// Implement new account structure based on upstream changes
```

### 3. Refactor authentication module
**File**: `src/core/auth.ts`
**Priority**: critical
**Type**: refactor
**Reason**: Improve security and structure by removing deprecated authentication methods.

**Current code**:
```typescript
// entire existing auth.ts file
```

**New code**:
```typescript
// Remove old authentication methods; integrate new security patterns
```

### 4. Catalog loader implementation
**File**: `src/core/catalog.ts`
**Priority**: high
**Type**: feature
**Reason**: Introduce loader functionality to dynamically update catalog based on provider changes.

**Current code**:
```typescript
// existing catalog interface
```

**New code**:
```typescript
export type Loader = (update: (ctx: Context) => void) => Effect<void>;

// Implement loader logic
```

### 5. Update permission evaluation logic
**File**: `src/permission/evaluate.ts`
```json
{
"$schema": "https://json.schemastore.org/package.json",
"version": "7.3.50",
"name": "@alexi/core",
"type": "module",
"license": "MIT",
}
```

### 2. Adjust inherited permission rules
**File**: `src/tool/task.ts`
**Function**: `inherited`
**Priority**: high
**Type**: bugfix
**Reason**: Fix permission evaluation to address newly identified issues.

**Current code**:
```typescript
// existing permission evaluation code
```

**New code**:
```typescript
// Updated logic to fix permission evaluation based on upstream changes
```

### 6. Refactor tool registry
**File**: `src/tool/registry.ts`
**Priority**: medium
**Type**: refactor
**Reason**: Align tool registry with upstream refactor for improved performance.

**Current code**:
```typescript
// existing tool registry implementation
```

**New code**:
```typescript
// Refactor tool registry with upstream patterns
```

### 7. Enhance tool skill testing
**File**: `src/tool/skill.test.ts`
**Priority**: medium
**Type**: feature
**Reason**: Enhance testing for better coverage based on upstream changes.

**Current code**:
```typescript
// existing skill test cases
```

**New code**:
```typescript
// Add new test cases from upstream
```

### 8. Implement new session data model
**File**: `src/session/data.ts`
**Priority**: medium
**Type**: feature
**Reason**: Update session data handling to incorporate new upstream models.

**Current code**:
```typescript
// existing session data model
```

**New code**:
```typescript
// Integrate new session data model changes
```

### 9. Integrate CLI enhancements
**File**: `src/cli/index.ts`
**Priority**: medium
**Type**: feature
**Reason**: Integrate CLI enhancements to improve user experience.

**Current code**:
```typescript
// existing CLI implementation
```

**New code**:
```typescript
// Add new CLI enhancements from upstream changes
```

### 10. Update event bus handlers
**File**: `src/bus/index.ts`
**Priority**: low
**Type**: refactor
**Reason**: Refactor event bus handlers for cleaner code.

**Current code**:
```typescript
// existing event bus handlers
```

**New code**:
```typescript
// Refactor event bus handlers based on upstream
```

### 11. Provider SDK updates
**File**: `src/providers/index.ts`
**Priority**: low
**Type**: feature
**Reason**: Update provider SDK to align with upstream changes.

**Current code**:
```typescript
// existing provider SDK integration
```

**New code**:
```typescript
// Integrate new SDK changes from upstream
```

### 12. Router enhancements
**File**: `src/router/index.ts`
**Priority**: high
**Type**: feature
**Reason**: Enhance router capabilities with new upstream features.
**Reason**: To ensure permissions are correctly applied in multi-hop agent chains, preserving parent-agent restrictions as ceilings.

**Current code**:
```typescript
// existing router implementation
export function inherited(input: {
caller: Agent.Info
session: Session.Info
rules: Permission.Rule[]
mcp?: Record<string, any>
}): Permission.Rule[] {
const prefixes = Object.keys(input.mcp ?? {}).map((k) => k.replace(/[^a-zA-Z0-9_-]/g, "_") + "_")
const isMcp = (p: string) => prefixes.some((prefix) => p.startsWith(prefix))
return rules.filter(
(r: Permission.Rule) => r.permission === "edit" || r.permission === "bash" || isMcp(r.permission),
)
}
```

**New code**:
```typescript
// Add new router enhancements based on upstream
export function inherited(input: {
caller: Agent.Info
session: Session.Info
rules: Permission.Rule[]
mcp?: Record<string, any>
}): Permission.Rule[] {
const prefixes = Object.keys(input.mcp ?? {}).map((k) => k.replace(/[^a-zA-Z0-9_-]/g, "_") + "_")
const isMcp = (p: string) => prefixes.some((prefix) => p.startsWith(prefix))
return rules.filter(
(r: Permission.Rule) =>
r.action === "deny" && (r.permission === "edit" || r.permission === "bash" || isMcp(r.permission)),
)
}
```

## Testing Recommendations
- Validate functionality with SAP AI Core integration.
- Ensure all new features are covered by test cases.
- Perform regression testing to identify any breakages.
- Verify version update doesn't affect compatibility with SAP AI Core.
- Test permission inheritance logic to ensure it correctly applies ceilings without overriding subagent policies.

## Potential Risks
- Breaking changes in authentication and session data handling.
- Compatibility issues with existing SAP-specific customizations.
- Ensure all refactors maintain existing functionality.
- Ensure that version updates don't introduce incompatibility with dependent systems.
- Check that permission changes don't inadvertently alter expected agent behavior.
```
{"prompt_tokens":29130,"completion_tokens":1187,"total_tokens":30317}
{"prompt_tokens":8200,"completion_tokens":669,"total_tokens":8869}

[Session: dff06f8e-3736-403f-a4a6-d91b226dac73]
[Messages: 2, Tokens: 30317]
[Session: 7dfe4aed-fe20-463f-a1dd-c52c620cec9b]
[Messages: 2, Tokens: 8869]

## Execution Instructions

Expand Down
Loading
Loading