Skip to content

Commit d860c68

Browse files
authored
Merge branch 'develop' into ed-inject-rules-into-agent
2 parents 719335f + 12387e7 commit d860c68

File tree

7 files changed

+255
-2
lines changed

7 files changed

+255
-2
lines changed

docs/api-reference/openapi3.json

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,6 +1628,79 @@
16281628
}
16291629
}
16301630
},
1631+
"/v1/organizations/{org_id}/cli/rules": {
1632+
"get": {
1633+
"tags": [
1634+
"cli-rules",
1635+
"cli-rules",
1636+
"cli-rules"
1637+
],
1638+
"summary": "Get Cli Rules",
1639+
"description": "Get organization and user rules for CLI applications.\n\nThis endpoint is designed for CLI applications that need to fetch both organization-specific\nrules and user-specific custom prompts that are used in prompts. This includes:\n\n- Organization rules: Same as MCP organization_rules prompt and agent prompt builders\n- User custom prompt: Same as MCP user_custom_prompt and agent prompt builders\n\nReturns the rules and prompts that should be followed by AI agents.\n\nRate limit: 30 requests per minute.",
1640+
"operationId": "get_cli_rules_v1_organizations__org_id__cli_rules_get",
1641+
"parameters": [
1642+
{
1643+
"name": "org_id",
1644+
"in": "path",
1645+
"required": true,
1646+
"schema": {
1647+
"type": "integer",
1648+
"title": "Org Id"
1649+
}
1650+
},
1651+
{
1652+
"name": "authorization",
1653+
"in": "header",
1654+
"required": false,
1655+
"schema": {
1656+
"title": "Authorization"
1657+
}
1658+
}
1659+
],
1660+
"responses": {
1661+
"200": {
1662+
"description": "Successful Response",
1663+
"content": {
1664+
"application/json": {
1665+
"schema": {
1666+
"$ref": "#/components/schemas/CLIRulesResponse"
1667+
}
1668+
}
1669+
}
1670+
},
1671+
"429": {
1672+
"content": {
1673+
"application/json": {
1674+
"schema": {
1675+
"$ref": "#/components/schemas/APIRateLimitErrorResponse"
1676+
}
1677+
}
1678+
},
1679+
"description": "Too Many Requests"
1680+
},
1681+
"403": {
1682+
"content": {
1683+
"application/json": {
1684+
"schema": {
1685+
"$ref": "#/components/schemas/PermissionsErrorResponse"
1686+
}
1687+
}
1688+
},
1689+
"description": "Forbidden"
1690+
},
1691+
"422": {
1692+
"description": "Validation Error",
1693+
"content": {
1694+
"application/json": {
1695+
"schema": {
1696+
"$ref": "#/components/schemas/HTTPValidationError"
1697+
}
1698+
}
1699+
}
1700+
}
1701+
}
1702+
}
1703+
},
16311704
"/v1/alpha/organizations/{org_id}/agent/run/{agent_run_id}/logs": {
16321705
"get": {
16331706
"tags": [
@@ -2182,6 +2255,39 @@
21822255
],
21832256
"title": "ApiAgentRunSourceType"
21842257
},
2258+
"CLIRulesResponse": {
2259+
"properties": {
2260+
"organization_rules": {
2261+
"anyOf": [
2262+
{
2263+
"type": "string"
2264+
},
2265+
{
2266+
"type": "null"
2267+
}
2268+
],
2269+
"title": "Organization Rules"
2270+
},
2271+
"user_custom_prompt": {
2272+
"anyOf": [
2273+
{
2274+
"type": "string"
2275+
},
2276+
{
2277+
"type": "null"
2278+
}
2279+
],
2280+
"title": "User Custom Prompt"
2281+
}
2282+
},
2283+
"type": "object",
2284+
"required": [
2285+
"organization_rules",
2286+
"user_custom_prompt"
2287+
],
2288+
"title": "CLIRulesResponse",
2289+
"description": "Response model for CLI rules containing organization and user rules."
2290+
},
21852291
"CheckSuiteSettingsRequest": {
21862292
"properties": {
21872293
"check_retry_count": {
@@ -2374,6 +2480,22 @@
23742480
],
23752481
"title": "Model",
23762482
"description": "Model to use for this agent run (optional, uses org default if not specified)"
2483+
},
2484+
"agent_type": {
2485+
"anyOf": [
2486+
{
2487+
"type": "string",
2488+
"enum": [
2489+
"codegen",
2490+
"claude_code"
2491+
]
2492+
},
2493+
{
2494+
"type": "null"
2495+
}
2496+
],
2497+
"title": "Agent Type",
2498+
"description": "Type of agent to use for this agent run (optional, uses org default if not specified)"
23772499
}
23782500
},
23792501
"type": "object",
@@ -3023,6 +3145,30 @@
30233145
"agent_run_id": {
30243146
"type": "integer",
30253147
"title": "Agent Run Id"
3148+
},
3149+
"before_card_order_id": {
3150+
"anyOf": [
3151+
{
3152+
"type": "string"
3153+
},
3154+
{
3155+
"type": "null"
3156+
}
3157+
],
3158+
"title": "Before Card Order Id",
3159+
"description": "Kanban order key of the card that should come before this agent run in the CANCELLED column"
3160+
},
3161+
"after_card_order_id": {
3162+
"anyOf": [
3163+
{
3164+
"type": "string"
3165+
},
3166+
{
3167+
"type": "null"
3168+
}
3169+
],
3170+
"title": "After Card Order Id",
3171+
"description": "Kanban order key of the card that should come after this agent run in the CANCELLED column"
30263172
}
30273173
},
30283174
"type": "object",

docs/docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"capabilities/claude-code",
3535
"capabilities/analytics",
3636
"introduction/cli",
37-
"introduction/sdk"
37+
"introduction/sdk",
38+
"settings/on-prem-deployment"
3839
]
3940
},
4041
{

docs/integrations/slack.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,19 @@ The Codegen Slack integration requires the following permissions to function eff
118118
- **Data Retention:** Outside of the LLM API interactions, message content is retained by Codegen solely for the purpose of displaying it within the Codegen user interface.
119119
- **Metadata from Private Channels:** When messages from private Slack channels are processed, Codegen does not expose private metadata, such as the original author's name or username, in the Codegen web app. Private channel names are anonymized and displayed as "Private channel" to non-members.
120120

121+
**Data Scope and Context:**
122+
123+
- **Thread Context:** When Codegen is mentioned inside a thread, it will pull context from the entire thread, including the messages sent and media shared within that thread.
124+
- **Single Message Context:** When Codegen is mentioned outside of a thread, it will only be scoped to the specific message in which it is mentioned.
125+
121126
**User Permissions and Access Control:**
122127

123128
Codegen's actions on connected repositories are governed by the permissions of the user who initiated the interaction via Slack. The bot itself does not have independent permissions to repositories. Access to repositories and the ability to trigger actions are determined by the Codegen user's authenticated account and their associated repository permissions. We recommend configuring channel access carefully during installation to ensure the Codegen integration for Slack is only present in channels where its use is appropriate.
124129

130+
**Audit Trail:**
131+
132+
Administrators can access a comprehensive audit trail through the [Recents page](https://codegen.com/recents) in the Codegen web app. This provides detailed logs of when and by whom Codegen was invoked in Slack, with filtering capabilities by integration, user, and other parameters.
133+
125134
**Privacy Policy:**
126135

127136
For complete details on how we collect, use, and protect your data, please review our [Privacy Policy](https://www.codegen.com/privacy-policy).

docs/introduction/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ iconType: "solid"
88
<Frame>
99
<video
1010
controls
11-
src="https://res.cloudinary.com/dbikr6pew/video/upload/v1758064831/v3_Launch_Video_ocfkje.mp4"
11+
src="https://res.cloudinary.com/dbikr6pew/video/upload/v1758569401/Product_Demo_Video_x5kvaa.mp4"
1212
className="aspect-[1920/1080]"
1313
/>
1414
</Frame>

docs/sandboxes/environment-variables.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The following environment variables are typically available within Codegen sandb
2525
| `NPM_CONFIG_YES` | `"true"` | Configures npm to automatically answer "yes" to prompts. |
2626
| `PIP_NO_INPUT` | `"1"` | Instructs pip (Python's package installer) to operate in non-interactive mode. |
2727
| `YARN_ENABLE_IMMUTABLE_INSTALLS` | `"false"` | Disables Yarn's "immutable installs" feature, allowing `yarn install` to modify the lockfile. |
28+
| `CG_PREVIEW_URL` | _Dynamic (preview URL)_ | Contains the URL where the web preview will be served. This is automatically set when Web Preview is configured. |
2829

2930
<Note>
3031
The values for variables like `NVM_DIR`, `PATH`, `NVM_BIN`, and `NODE_VERSION`

docs/sandboxes/web-preview.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ bundle exec rails server -b 127.0.0.1 -p 3000
5757
Variables](./environment-variables).
5858
</Tip>
5959

60+
<Tip>
61+
The `CG_PREVIEW_URL` environment variable is automatically set and contains
62+
the URL where your web preview will be accessible. Use this in your
63+
application code when you need to reference the preview URL programmatically
64+
(e.g., for CORS configuration, webhooks, or generating absolute URLs).
65+
</Tip>
66+
6067
<Note>
6168
The web preview is intended for development and debugging purposes. The server
6269
is typically only accessible while the agent run is active or for a short
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: "On-Premises Deployments"
3+
sidebarTitle: "On-Prem"
4+
icon: "box"
5+
---
6+
7+
Deploy Codegen on your own infrastructure with complete control over your data and development environment.
8+
9+
<Warning>
10+
On-premises deployment is available for [Enterprise
11+
tier](https://codegen.com/pricing) customers.
12+
</Warning>
13+
14+
## How It Works
15+
16+
Codegen is built as a cloud-native Kubernetes application designed for secure, self-hosted deployment. Our architecture allows you to run the entire platform within your own infrastructure while leveraging [your own AI models and API keys](/settings/model-configuration) for complete control over data processing. This deployment model is ideal for teams with stringent data sovereignty requirements, air-gapped environments, or compliance mandates that require all code and development activities to remain within corporate boundaries.
17+
18+
## Deployment Options
19+
20+
Choose the deployment method that best fits your infrastructure:
21+
22+
<CardGroup cols={3}>
23+
<Card title="Docker Image" icon="docker">
24+
Deploy using our containerized solution on any Docker-compatible platform
25+
</Card>
26+
<Card title="AWS AMI" icon="aws">
27+
Launch pre-configured instances directly from Amazon Machine Images
28+
</Card>
29+
<Card title="Amazon EKS" icon="kubernetes">
30+
Deploy on managed Kubernetes with full AWS integration
31+
</Card>
32+
</CardGroup>
33+
34+
<Tip>
35+
All deployment options are built on our Kubernetes-native architecture,
36+
ensuring seamless integration with your existing infrastructure.
37+
</Tip>
38+
39+
## Key Benefits
40+
41+
<CardGroup cols={2}>
42+
<Card title="Complete Data Sovereignty" icon="shield-check">
43+
Your code and data never leave your infrastructure - maintain full control
44+
over your intellectual property
45+
</Card>
46+
<Card
47+
title="Your Own AI Models"
48+
icon="cpu"
49+
href="/settings/model-configuration"
50+
>
51+
Use your own API keys with AWS Bedrock, Google Vertex AI, and other
52+
providers
53+
</Card>
54+
</CardGroup>
55+
56+
<Note>
57+
Coming soon: Deploy directly from AWS Marketplace with simplified billing and
58+
procurement.
59+
</Note>
60+
61+
## Enterprise Features
62+
63+
Enterprise customers receive comprehensive deployment support:
64+
65+
- **Priority Support** - Dedicated channels and faster response times
66+
- **Custom Configuration** - Tailored deployment plans for your specific requirements
67+
- **Security Integration** - Works with your existing security tools and compliance policies
68+
- **Multi-Region Support** - High-availability configurations across multiple clusters
69+
70+
<Warning>
71+
Air-gapped environments and offline deployments are supported with special
72+
configuration.
73+
</Warning>
74+
75+
## Getting Started
76+
77+
<Card
78+
title="Contact Enterprise Sales"
79+
icon="phone"
80+
href="https://codegen.com/contact"
81+
>
82+
Ready to deploy on your infrastructure? Our enterprise team will create a
83+
custom deployment plan for your organization.
84+
</Card>
85+
86+
<Tip>
87+
Enterprise customers get direct access to our engineering team for deployment
88+
assistance and ongoing optimization reviews.
89+
</Tip>

0 commit comments

Comments
 (0)