-
Notifications
You must be signed in to change notification settings - Fork 182
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
109 lines (93 loc) · 3.59 KB
/
build.gradle.kts
File metadata and controls
109 lines (93 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.9.21"
id("org.jetbrains.intellij") version "1.16.1"
}
group = "com.agentos"
version = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.code.gson:gson:2.10.1")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("org.yaml:snakeyaml:2.2")
testImplementation("junit:junit:4.13.2")
}
intellij {
version.set("2024.1")
type.set("IC") // IntelliJ IDEA Public Preview
plugins.set(listOf(
// No additional plugins required for basic functionality
))
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
patchPluginXml {
sinceBuild.set("241")
untilBuild.set("251.*")
pluginDescription.set("""
<h1>Agent OS - AI Safety for Code</h1>
<p>Kernel-level safety for AI coding assistants.</p>
<h2>Features</h2>
<ul>
<li>🛡️ <b>Real-time policy enforcement</b> - Block destructive operations</li>
<li>🔍 <b>Multi-model code review (CMVK)</b> - Verify with GPT-4, Claude, Gemini</li>
<li>📋 <b>Complete audit trail</b> - Log every AI suggestion</li>
<li>👥 <b>Team-shared policies</b> - Consistent safety across organization</li>
<li>🤖 <b>Agent creation wizard</b> - Build agents with a few clicks</li>
<li>⚙️ <b>.agentos.yml support</b> - Git-tracked configuration</li>
<li>▶️ <b>Run/debug agents</b> - Native IDE integration</li>
</ul>
<h2>What It Blocks</h2>
<ul>
<li>Destructive SQL (DROP, DELETE, TRUNCATE)</li>
<li>Dangerous file operations (rm -rf)</li>
<li>Hardcoded secrets and API keys</li>
<li>Privilege escalation (sudo, chmod 777)</li>
</ul>
<h2>Getting Started</h2>
<ol>
<li>Open the Agent OS tool window (View → Tool Windows → Agent OS)</li>
<li>Click "Create Agent" to build your first agent</li>
<li>Configure policies in Settings → Tools → Agent OS</li>
</ol>
""".trimIndent())
changeNotes.set("""
<h2>1.0.0</h2>
<ul>
<li>Agent creation wizard with templates</li>
<li>.agentos.yml project configuration support</li>
<li>Run/debug configuration for agents</li>
<li>Enhanced tool window with agent management</li>
<li>Context menu actions for agent creation</li>
<li>Policy editor UI</li>
<li>CMVK multi-model code review</li>
<li>Comprehensive audit logging</li>
</ul>
<h2>0.1.0</h2>
<ul>
<li>Initial release</li>
<li>Real-time code analysis with policy enforcement</li>
</ul>
""".trimIndent())
}
signPlugin {
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
privateKey.set(System.getenv("PRIVATE_KEY"))
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
buildSearchableOptions {
enabled = false
}
}