agentic-lang 0.2.0

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.
Files changed (146) hide show
  1. package/COMMUNITY.md +220 -0
  2. package/CONTRIBUTING.md +194 -0
  3. package/FINAL_REPORT.md +398 -0
  4. package/FOR_OTHER_LLMS.md +286 -0
  5. package/IMPROVEMENTS.md +319 -0
  6. package/LAUNCH_GUIDE.md +388 -0
  7. package/LICENSE +21 -0
  8. package/NPM_PUBLISH.md +257 -0
  9. package/PROJECT_COMPLETE.md +414 -0
  10. package/PROJECT_OVERVIEW.md +265 -0
  11. package/PROJECT_TREE.txt +228 -0
  12. package/PUBLISHING_GUIDE.md +426 -0
  13. package/PUBLISH_NOW.md +337 -0
  14. package/QUICKSTART.md +207 -0
  15. package/README.md +195 -0
  16. package/README_ENHANCED.md +329 -0
  17. package/READY_TO_LAUNCH.txt +56 -0
  18. package/REFACTOR_PLAN.md +179 -0
  19. package/ROADMAP.md +201 -0
  20. package/SUMMARY.md +315 -0
  21. package/bin/agentic.js +3 -0
  22. package/blog/001-introducing-agentic.md +382 -0
  23. package/blog/002-confidence-driven-development.md +490 -0
  24. package/blog/003-formal-verification.md +427 -0
  25. package/blog/004-multi-agent-production.md +436 -0
  26. package/dist/cli.d.ts +7 -0
  27. package/dist/cli.d.ts.map +1 -0
  28. package/dist/cli.js +151 -0
  29. package/dist/cli.js.map +1 -0
  30. package/dist/diagnostics/diagnostic.d.ts +115 -0
  31. package/dist/diagnostics/diagnostic.d.ts.map +1 -0
  32. package/dist/diagnostics/diagnostic.js +101 -0
  33. package/dist/diagnostics/diagnostic.js.map +1 -0
  34. package/dist/diagnostics/formatter.d.ts +36 -0
  35. package/dist/diagnostics/formatter.d.ts.map +1 -0
  36. package/dist/diagnostics/formatter.js +263 -0
  37. package/dist/diagnostics/formatter.js.map +1 -0
  38. package/dist/effects/effect-system.d.ts +64 -0
  39. package/dist/effects/effect-system.d.ts.map +1 -0
  40. package/dist/effects/effect-system.js +197 -0
  41. package/dist/effects/effect-system.js.map +1 -0
  42. package/dist/generator/typescript-generator.d.ts +31 -0
  43. package/dist/generator/typescript-generator.d.ts.map +1 -0
  44. package/dist/generator/typescript-generator.js +308 -0
  45. package/dist/generator/typescript-generator.js.map +1 -0
  46. package/dist/index.d.ts +19 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +60 -0
  49. package/dist/index.js.map +1 -0
  50. package/dist/lean4/exporter.d.ts +24 -0
  51. package/dist/lean4/exporter.d.ts.map +1 -0
  52. package/dist/lean4/exporter.js +142 -0
  53. package/dist/lean4/exporter.js.map +1 -0
  54. package/dist/lsp/server.d.ts +6 -0
  55. package/dist/lsp/server.d.ts.map +1 -0
  56. package/dist/lsp/server.js +131 -0
  57. package/dist/lsp/server.js.map +1 -0
  58. package/dist/parser/lexer.d.ts +79 -0
  59. package/dist/parser/lexer.d.ts.map +1 -0
  60. package/dist/parser/lexer.js +296 -0
  61. package/dist/parser/lexer.js.map +1 -0
  62. package/dist/parser/parser-enhanced.d.ts +12 -0
  63. package/dist/parser/parser-enhanced.d.ts.map +1 -0
  64. package/dist/parser/parser-enhanced.js +206 -0
  65. package/dist/parser/parser-enhanced.js.map +1 -0
  66. package/dist/parser/parser.d.ts +34 -0
  67. package/dist/parser/parser.d.ts.map +1 -0
  68. package/dist/parser/parser.js +507 -0
  69. package/dist/parser/parser.js.map +1 -0
  70. package/dist/property-tests/generator-enhanced.d.ts +27 -0
  71. package/dist/property-tests/generator-enhanced.d.ts.map +1 -0
  72. package/dist/property-tests/generator-enhanced.js +209 -0
  73. package/dist/property-tests/generator-enhanced.js.map +1 -0
  74. package/dist/property-tests/generator-fixed.d.ts +2 -0
  75. package/dist/property-tests/generator-fixed.d.ts.map +1 -0
  76. package/dist/property-tests/generator-fixed.js +7 -0
  77. package/dist/property-tests/generator-fixed.js.map +1 -0
  78. package/dist/property-tests/generator.d.ts +28 -0
  79. package/dist/property-tests/generator.d.ts.map +1 -0
  80. package/dist/property-tests/generator.js +284 -0
  81. package/dist/property-tests/generator.js.map +1 -0
  82. package/dist/refinements/refinement-types.d.ts +96 -0
  83. package/dist/refinements/refinement-types.d.ts.map +1 -0
  84. package/dist/refinements/refinement-types.js +234 -0
  85. package/dist/refinements/refinement-types.js.map +1 -0
  86. package/dist/repl.d.ts +21 -0
  87. package/dist/repl.d.ts.map +1 -0
  88. package/dist/repl.js +317 -0
  89. package/dist/repl.js.map +1 -0
  90. package/dist/runtime/agents.d.ts +97 -0
  91. package/dist/runtime/agents.d.ts.map +1 -0
  92. package/dist/runtime/agents.js +258 -0
  93. package/dist/runtime/agents.js.map +1 -0
  94. package/dist/runtime/index.d.ts +98 -0
  95. package/dist/runtime/index.d.ts.map +1 -0
  96. package/dist/runtime/index.js +253 -0
  97. package/dist/runtime/index.js.map +1 -0
  98. package/dist/types-extended.d.ts +197 -0
  99. package/dist/types-extended.d.ts.map +1 -0
  100. package/dist/types-extended.js +7 -0
  101. package/dist/types-extended.js.map +1 -0
  102. package/dist/types.d.ts +129 -0
  103. package/dist/types.d.ts.map +1 -0
  104. package/dist/types.js +6 -0
  105. package/dist/types.js.map +1 -0
  106. package/dist/verification/z3-engine.d.ts +75 -0
  107. package/dist/verification/z3-engine.d.ts.map +1 -0
  108. package/dist/verification/z3-engine.js +234 -0
  109. package/dist/verification/z3-engine.js.map +1 -0
  110. package/examples/advanced-features.agentic +98 -0
  111. package/examples/annotations.agentic +37 -0
  112. package/examples/auth.agentic +53 -0
  113. package/examples/enterprise-example.agentic +360 -0
  114. package/examples/minimal.agentic +3 -0
  115. package/examples/minimal.ts +7 -0
  116. package/examples/ml-pipeline.agentic +350 -0
  117. package/examples/multi-agent-example.agentic +212 -0
  118. package/examples/onboarding-tutorial.agentic +263 -0
  119. package/examples/production-api.agentic +304 -0
  120. package/examples/real-world-chatbot.agentic +351 -0
  121. package/examples/result-handling.agentic +34 -0
  122. package/examples/runtime.ts +24 -0
  123. package/examples/showcase.agentic +22 -0
  124. package/examples/showcase.ts +28 -0
  125. package/examples/simple-test.agentic +4 -0
  126. package/examples/simple-test.ts +7 -0
  127. package/examples/simple.agentic +20 -0
  128. package/examples/test2.agentic +4 -0
  129. package/examples/test2.ts +9 -0
  130. package/examples/test3.agentic +4 -0
  131. package/examples/test3.ts +9 -0
  132. package/package.json +70 -0
  133. package/playground/index.html +221 -0
  134. package/playground/playground.js +291 -0
  135. package/registry/package-registry.ts +319 -0
  136. package/scripts/build.js +50 -0
  137. package/scripts/validate-confidence-mutation.ts +112 -0
  138. package/stdlib/async/promise.agentic +216 -0
  139. package/stdlib/database/pool.agentic +235 -0
  140. package/stdlib/file/io.agentic +194 -0
  141. package/stdlib/http/client.agentic +168 -0
  142. package/video-scripts/001-agentic-in-100-seconds.md +175 -0
  143. package/vscode-extension/README.md +67 -0
  144. package/vscode-extension/language-configuration.json +31 -0
  145. package/vscode-extension/package.json +46 -0
  146. package/vscode-extension/syntaxes/agentic.tmLanguage.json +134 -0
@@ -0,0 +1,175 @@
1
+ # Video Script: Agentic in 100 Seconds
2
+
3
+ **Format:** Fast-paced overview
4
+ **Duration:** 100 seconds (1:40)
5
+ **Style:** Fireship.io inspired
6
+
7
+ ---
8
+
9
+ ## [0:00-0:10] Hook (10s)
10
+
11
+ **VISUAL:** Montage of AI coding tools (Copilot, Claude Code, GPT-4)
12
+
13
+ **NARRATION:**
14
+ "AI is writing code faster than ever. But there's a problem: **40-65% of it has bugs**. What if your programming language could make AI code actually trustworthy? Meet Agentic."
15
+
16
+ ---
17
+
18
+ ## [0:10-0:25] The Problem (15s)
19
+
20
+ **VISUAL:** Split screen - AI code on left, bugs highlighted on right
21
+
22
+ **NARRATION:**
23
+ "AI agents are probabilistic - they're uncertain. But languages like Python and JavaScript assume certainty. This mismatch causes bugs, security holes, and production failures."
24
+
25
+ **TEXT ON SCREEN:**
26
+ ```
27
+ Traditional: All code looks equally confident
28
+ Result: You can't trust any of it
29
+ ```
30
+
31
+ ---
32
+
33
+ ## [0:25-0:45] The Solution (20s)
34
+
35
+ **VISUAL:** Agentic code with annotations highlighted
36
+
37
+ **NARRATION:**
38
+ "Agentic makes uncertainty explicit. Every function declares its confidence level - and the compiler **verifies it**."
39
+
40
+ **CODE ON SCREEN:**
41
+ ```agentic
42
+ @confidence(0.95) // Verified!
43
+ @complete
44
+ @property("never returns null")
45
+ func safeDivide(a, b) -> Result<number, string> {
46
+ if b == 0 { return Err("Division by zero") }
47
+ return Ok(a / b)
48
+ }
49
+ ```
50
+
51
+ **TEXT:** "✓ 1000 property tests ✓ 95% mutation score ✓ Z3 proven"
52
+
53
+ ---
54
+
55
+ ## [0:45-1:05] Key Features (20s)
56
+
57
+ **VISUAL:** Quick feature montage with code snippets
58
+
59
+ **NARRATION:**
60
+ "Agentic has confidence tracking, incremental stages from stub to complete, auto-generated property tests, formal verification with Z3, multi-agent coordination with session types, and beautiful Rust-quality error messages."
61
+
62
+ **TEXT ON SCREEN:**
63
+ - `@confidence(0.95)` - Verified scores
64
+ - `@stub → @partial → @complete` - Progressive development
65
+ - `@property()` - Auto-tests
66
+ - `@verify(z3)` - Formal proofs
67
+ - `@agent` - Multi-agent
68
+ - Beautiful errors
69
+
70
+ ---
71
+
72
+ ## [1:05-1:20] Demo (15s)
73
+
74
+ **VISUAL:** Terminal showing compilation
75
+
76
+ **NARRATION:**
77
+ "Install with npm, write your code, compile to TypeScript. The compiler warns about low confidence, suggests fixes, and validates everything automatically."
78
+
79
+ **TERMINAL:**
80
+ ```bash
81
+ $ npm install -g agentic-lang
82
+ $ agentic compile auth.agentic
83
+ ✓ Compiled successfully
84
+ ⚠ Warning: Low confidence in parseDate (0.70)
85
+ ✓ Property tests: 1000/1000 passed
86
+ ✓ Mutation score: 92%
87
+ ```
88
+
89
+ ---
90
+
91
+ ## [1:20-1:35] Unique Value (15s)
92
+
93
+ **VISUAL:** Comparison table with checkmarks
94
+
95
+ **NARRATION:**
96
+ "Agentic is the **only language** with verified confidence, multi-agent session types, AI-readable error recovery, and statistical validation. It's open source, MIT licensed, and built on research from PLDI, ICSE, and ACM."
97
+
98
+ **TABLE:**
99
+ | Feature | Agentic | Others |
100
+ |---------|---------|--------|
101
+ | Verified confidence | ✅ | ❌ |
102
+ | Session types | ✅ | ❌ |
103
+ | AI error recovery | ✅ | ❌ |
104
+
105
+ ---
106
+
107
+ ## [1:35-1:40] Call to Action (5s)
108
+
109
+ **VISUAL:** Website URL and QR code
110
+
111
+ **NARRATION:**
112
+ "Try it now at agentic-lang.org. Make AI code trustworthy."
113
+
114
+ **TEXT ON SCREEN:**
115
+ ```
116
+ 🌐 agentic-lang.org/playground
117
+ ⭐ github.com/agentic-lang/agentic
118
+ 💬 discord.gg/agentic
119
+ ```
120
+
121
+ **END CARD:** "Agentic - Making AI Code Trustworthy"
122
+
123
+ ---
124
+
125
+ ## Production Notes
126
+
127
+ ### B-Roll Needed
128
+ - AI coding tools in action (screen recordings)
129
+ - Terminal compilation sequences
130
+ - Test results scrolling
131
+ - Error messages (before/after)
132
+ - Multi-agent visualization
133
+ - VSCode with Agentic code
134
+
135
+ ### Graphics
136
+ - Animated confidence score (0.60 → 0.95)
137
+ - Verification checkmarks appearing
138
+ - Agent communication diagram
139
+ - Type system visualization
140
+
141
+ ### Music
142
+ - Fast-paced, tech-forward
143
+ - Similar to Fireship.io style
144
+
145
+ ### Voiceover
146
+ - Professional, energetic
147
+ - Technical but accessible
148
+ - Clear pronunciation of "Agentic" (ah-JEN-tik)
149
+
150
+ ---
151
+
152
+ ## Alternative Versions
153
+
154
+ ### **60-Second Version** (For Twitter/TikTok)
155
+ - Cut the demo section
156
+ - Focus on hook + solution + CTA
157
+
158
+ ### **5-Minute Version** (For YouTube)
159
+ - Add live coding segment
160
+ - Show real bug being caught
161
+ - Demonstrate playground
162
+ - Interview with user
163
+
164
+ ---
165
+
166
+ ## SEO Optimization
167
+
168
+ **Title:** "Agentic in 100 Seconds - The AI-Native Programming Language"
169
+
170
+ **Description:**
171
+ "Agentic is the world's first programming language with verified confidence scores, multi-agent primitives, and formal verification for AI-generated code. Learn the basics in 100 seconds!"
172
+
173
+ **Tags:** #programming #AI #verification #formalmethods #typescript #coding #agentic
174
+
175
+ **Thumbnail:** Bold text "AI Code You Can TRUST" with code snippet background
@@ -0,0 +1,67 @@
1
+ # Agentic Language Support for VS Code
2
+
3
+ Provides syntax highlighting and language support for the Agentic programming language.
4
+
5
+ ## Features
6
+
7
+ - **Syntax Highlighting** - Color coding for keywords, annotations, types, and operators
8
+ - **Auto-completion** - Bracket and quote auto-closing
9
+ - **Code Folding** - Collapse/expand code blocks
10
+ - **Comment Toggling** - Quick line and block comment shortcuts
11
+
12
+ ## Highlighted Syntax
13
+
14
+ - **Keywords**: `func`, `if`, `else`, `match`, `return`, `or`, `error`
15
+ - **Annotations**: `@confidence`, `@needs`, `@uncertain`, `@context`, `@property`, etc.
16
+ - **Types**: `Result`, `Ok`, `Err`, `string`, `number`, `boolean`
17
+ - **Operators**: `->`, `=>`, `|`, `==`, `!=`, `<`, `>`
18
+
19
+ ## Installation
20
+
21
+ ### From VSIX
22
+ 1. Download the `.vsix` file
23
+ 2. Open VS Code
24
+ 3. Go to Extensions view (Ctrl+Shift+X)
25
+ 4. Click "..." menu → "Install from VSIX..."
26
+ 5. Select the downloaded file
27
+
28
+ ### From Source
29
+ ```bash
30
+ cd vscode-extension
31
+ npm install
32
+ npm run compile
33
+ # Press F5 to open Extension Development Host
34
+ ```
35
+
36
+ ## Usage
37
+
38
+ 1. Create or open a `.agentic` file
39
+ 2. Syntax highlighting will be applied automatically
40
+ 3. Use standard VS Code features (folding, comments, etc.)
41
+
42
+ ## Example
43
+
44
+ ```agentic
45
+ @confidence(0.90)
46
+ @needs(database: Database)
47
+ func authenticate(token: string) -> Result<User, AuthError> {
48
+ if token.isEmpty() {
49
+ return Err(AuthError.MISSING_TOKEN)
50
+ }
51
+
52
+ return Ok(user)
53
+ }
54
+ ```
55
+
56
+ ## Development
57
+
58
+ ```bash
59
+ npm install
60
+ npm run compile
61
+ npm run watch # For development
62
+ vsce package # Create .vsix package
63
+ ```
64
+
65
+ ## License
66
+
67
+ MIT
@@ -0,0 +1,31 @@
1
+ {
2
+ "comments": {
3
+ "lineComment": "//",
4
+ "blockComment": ["/*", "*/"]
5
+ },
6
+ "brackets": [
7
+ ["{", "}"],
8
+ ["[", "]"],
9
+ ["(", ")"]
10
+ ],
11
+ "autoClosingPairs": [
12
+ { "open": "{", "close": "}" },
13
+ { "open": "[", "close": "]" },
14
+ { "open": "(", "close": ")" },
15
+ { "open": "\"", "close": "\"", "notIn": ["string"] },
16
+ { "open": "'", "close": "'", "notIn": ["string", "comment"] }
17
+ ],
18
+ "surroundingPairs": [
19
+ ["{", "}"],
20
+ ["[", "]"],
21
+ ["(", ")"],
22
+ ["\"", "\""],
23
+ ["'", "'"]
24
+ ],
25
+ "folding": {
26
+ "markers": {
27
+ "start": "^\\s*//\\s*#?region\\b",
28
+ "end": "^\\s*//\\s*#?endregion\\b"
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "agentic-lang",
3
+ "displayName": "Agentic Language Support",
4
+ "description": "Syntax highlighting and language support for Agentic programming language",
5
+ "version": "0.1.0",
6
+ "publisher": "agentic",
7
+ "engines": {
8
+ "vscode": "^1.75.0"
9
+ },
10
+ "categories": [
11
+ "Programming Languages"
12
+ ],
13
+ "contributes": {
14
+ "languages": [
15
+ {
16
+ "id": "agentic",
17
+ "aliases": [
18
+ "Agentic",
19
+ "agentic"
20
+ ],
21
+ "extensions": [
22
+ ".agentic"
23
+ ],
24
+ "configuration": "./language-configuration.json"
25
+ }
26
+ ],
27
+ "grammars": [
28
+ {
29
+ "language": "agentic",
30
+ "scopeName": "source.agentic",
31
+ "path": "./syntaxes/agentic.tmLanguage.json"
32
+ }
33
+ ]
34
+ },
35
+ "scripts": {
36
+ "compile": "tsc -p ./",
37
+ "watch": "tsc -watch -p ./",
38
+ "package": "vsce package"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "^20.x",
42
+ "@types/vscode": "^1.75.0",
43
+ "typescript": "^5.3.0",
44
+ "@vscode/vsce": "^2.22.0"
45
+ }
46
+ }
@@ -0,0 +1,134 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3
+ "name": "Agentic",
4
+ "scopeName": "source.agentic",
5
+ "patterns": [
6
+ {
7
+ "include": "#comments"
8
+ },
9
+ {
10
+ "include": "#annotations"
11
+ },
12
+ {
13
+ "include": "#keywords"
14
+ },
15
+ {
16
+ "include": "#strings"
17
+ },
18
+ {
19
+ "include": "#numbers"
20
+ },
21
+ {
22
+ "include": "#functions"
23
+ },
24
+ {
25
+ "include": "#types"
26
+ },
27
+ {
28
+ "include": "#operators"
29
+ }
30
+ ],
31
+ "repository": {
32
+ "comments": {
33
+ "patterns": [
34
+ {
35
+ "name": "comment.line.double-slash.agentic",
36
+ "match": "//.*$"
37
+ },
38
+ {
39
+ "name": "comment.block.agentic",
40
+ "begin": "/\\*",
41
+ "end": "\\*/"
42
+ }
43
+ ]
44
+ },
45
+ "annotations": {
46
+ "patterns": [
47
+ {
48
+ "name": "meta.annotation.agentic",
49
+ "match": "@(confidence|needs|uncertain|context|reasoning|property|stub|partial|complete|healthcheck|recovery|approval_required|cost|consequences)\\b",
50
+ "captures": {
51
+ "1": {
52
+ "name": "storage.modifier.annotation.agentic"
53
+ }
54
+ }
55
+ }
56
+ ]
57
+ },
58
+ "keywords": {
59
+ "patterns": [
60
+ {
61
+ "name": "keyword.control.agentic",
62
+ "match": "\\b(if|else|match|return|or|error)\\b"
63
+ },
64
+ {
65
+ "name": "keyword.other.agentic",
66
+ "match": "\\b(func)\\b"
67
+ },
68
+ {
69
+ "name": "constant.language.agentic",
70
+ "match": "\\b(true|false|null)\\b"
71
+ }
72
+ ]
73
+ },
74
+ "strings": {
75
+ "name": "string.quoted.double.agentic",
76
+ "begin": "\"",
77
+ "end": "\"",
78
+ "patterns": [
79
+ {
80
+ "name": "constant.character.escape.agentic",
81
+ "match": "\\\\."
82
+ }
83
+ ]
84
+ },
85
+ "numbers": {
86
+ "name": "constant.numeric.agentic",
87
+ "match": "\\b\\d+(\\.\\d+)?\\b"
88
+ },
89
+ "functions": {
90
+ "patterns": [
91
+ {
92
+ "name": "meta.function.agentic",
93
+ "match": "\\b(func)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(",
94
+ "captures": {
95
+ "1": {
96
+ "name": "keyword.other.agentic"
97
+ },
98
+ "2": {
99
+ "name": "entity.name.function.agentic"
100
+ }
101
+ }
102
+ },
103
+ {
104
+ "name": "entity.name.function.call.agentic",
105
+ "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\("
106
+ }
107
+ ]
108
+ },
109
+ "types": {
110
+ "patterns": [
111
+ {
112
+ "name": "support.type.agentic",
113
+ "match": "\\b(string|number|boolean|void|Result|Ok|Err)\\b"
114
+ },
115
+ {
116
+ "name": "entity.name.type.agentic",
117
+ "match": "\\b([A-Z][a-zA-Z0-9_]*)\\b"
118
+ }
119
+ ]
120
+ },
121
+ "operators": {
122
+ "patterns": [
123
+ {
124
+ "name": "keyword.operator.agentic",
125
+ "match": "(->|=>|\\||==|!=|<=|>=|<|>)"
126
+ },
127
+ {
128
+ "name": "keyword.operator.assignment.agentic",
129
+ "match": "="
130
+ }
131
+ ]
132
+ }
133
+ }
134
+ }