arcie 0.1.2

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 (98) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +66 -0
  3. package/dist/agent/index.d.ts +3 -0
  4. package/dist/agent/index.d.ts.map +1 -0
  5. package/dist/agent/index.js +7 -0
  6. package/dist/agent/index.js.map +1 -0
  7. package/dist/auth/index.d.ts +10 -0
  8. package/dist/auth/index.d.ts.map +1 -0
  9. package/dist/auth/index.js +18 -0
  10. package/dist/auth/index.js.map +1 -0
  11. package/dist/channels/index.d.ts +5 -0
  12. package/dist/channels/index.d.ts.map +1 -0
  13. package/dist/channels/index.js +13 -0
  14. package/dist/channels/index.js.map +1 -0
  15. package/dist/cli/banner.d.ts +2 -0
  16. package/dist/cli/banner.d.ts.map +1 -0
  17. package/dist/cli/banner.js +10 -0
  18. package/dist/cli/banner.js.map +1 -0
  19. package/dist/cli/build.d.ts +5 -0
  20. package/dist/cli/build.d.ts.map +1 -0
  21. package/dist/cli/build.js +54 -0
  22. package/dist/cli/build.js.map +1 -0
  23. package/dist/cli/dev.d.ts +5 -0
  24. package/dist/cli/dev.d.ts.map +1 -0
  25. package/dist/cli/dev.js +74 -0
  26. package/dist/cli/dev.js.map +1 -0
  27. package/dist/cli/index.d.ts +3 -0
  28. package/dist/cli/index.d.ts.map +1 -0
  29. package/dist/cli/index.js +43 -0
  30. package/dist/cli/index.js.map +1 -0
  31. package/dist/cli/init.d.ts +4 -0
  32. package/dist/cli/init.d.ts.map +1 -0
  33. package/dist/cli/init.js +75 -0
  34. package/dist/cli/init.js.map +1 -0
  35. package/dist/context/index.d.ts +11 -0
  36. package/dist/context/index.d.ts.map +1 -0
  37. package/dist/context/index.js +38 -0
  38. package/dist/context/index.js.map +1 -0
  39. package/dist/discover/index.d.ts +31 -0
  40. package/dist/discover/index.d.ts.map +1 -0
  41. package/dist/discover/index.js +133 -0
  42. package/dist/discover/index.js.map +1 -0
  43. package/dist/hooks/index.d.ts +3 -0
  44. package/dist/hooks/index.d.ts.map +1 -0
  45. package/dist/hooks/index.js +7 -0
  46. package/dist/hooks/index.js.map +1 -0
  47. package/dist/index.d.ts +18 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +14 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/instructions/index.d.ts +4 -0
  52. package/dist/instructions/index.d.ts.map +1 -0
  53. package/dist/instructions/index.js +33 -0
  54. package/dist/instructions/index.js.map +1 -0
  55. package/dist/loader.d.ts +7 -0
  56. package/dist/loader.d.ts.map +1 -0
  57. package/dist/loader.js +102 -0
  58. package/dist/loader.js.map +1 -0
  59. package/dist/protocol/events.d.ts +192 -0
  60. package/dist/protocol/events.d.ts.map +1 -0
  61. package/dist/protocol/events.js +46 -0
  62. package/dist/protocol/events.js.map +1 -0
  63. package/dist/runner/index.d.ts +18 -0
  64. package/dist/runner/index.d.ts.map +1 -0
  65. package/dist/runner/index.js +278 -0
  66. package/dist/runner/index.js.map +1 -0
  67. package/dist/schedules/index.d.ts +3 -0
  68. package/dist/schedules/index.d.ts.map +1 -0
  69. package/dist/schedules/index.js +7 -0
  70. package/dist/schedules/index.js.map +1 -0
  71. package/dist/skills/index.d.ts +4 -0
  72. package/dist/skills/index.d.ts.map +1 -0
  73. package/dist/skills/index.js +28 -0
  74. package/dist/skills/index.js.map +1 -0
  75. package/dist/tools/index.d.ts +3 -0
  76. package/dist/tools/index.d.ts.map +1 -0
  77. package/dist/tools/index.js +10 -0
  78. package/dist/tools/index.js.map +1 -0
  79. package/dist/types.d.ts +118 -0
  80. package/dist/types.d.ts.map +1 -0
  81. package/dist/types.js +2 -0
  82. package/dist/types.js.map +1 -0
  83. package/docs/getting-started.md +51 -0
  84. package/docs/index.md +31 -0
  85. package/docs/project-layout.md +88 -0
  86. package/package.json +73 -0
  87. package/templates/default/agent/agent.ts +13 -0
  88. package/templates/default/agent/channels/.gitkeep +0 -0
  89. package/templates/default/agent/connections/.gitkeep +0 -0
  90. package/templates/default/agent/instructions.md +3 -0
  91. package/templates/default/agent/knowledge/.gitkeep +0 -0
  92. package/templates/default/agent/policies/.gitkeep +0 -0
  93. package/templates/default/agent/schedules/.gitkeep +0 -0
  94. package/templates/default/agent/sessions/.gitkeep +0 -0
  95. package/templates/default/agent/subagents/.gitkeep +0 -0
  96. package/templates/default/agent/tools/.gitkeep +0 -0
  97. package/templates/default/package.json +17 -0
  98. package/templates/default/tsconfig.json +11 -0
@@ -0,0 +1,88 @@
1
+ # Project Layout
2
+
3
+ ```
4
+ my-agent/
5
+ ├── agent/
6
+ │ ├── agent.ts # defineAgent({ model, cencori })
7
+ │ ├── instructions.md # always-on system prompt
8
+ │ ├── tools/ # defineTool — what the agent can do
9
+ │ ├── knowledge/ # defineSkill — what the agent knows
10
+ │ ├── subagents/ # specialist child agents
11
+ │ ├── channels/ # defineChannel — HTTP, Slack, etc.
12
+ │ ├── schedules/ # defineSchedule — recurring jobs
13
+ │ ├── sessions/ # durable execution configuration
14
+ │ └── policies/ # security, budgets, guardrails
15
+ ├── package.json
16
+ └── tsconfig.json
17
+ ```
18
+
19
+ ## agent.ts
20
+
21
+ Required config. Defines the model and Cencori integration:
22
+
23
+ ```ts
24
+ import { defineAgent } from "eline";
25
+
26
+ export default defineAgent({
27
+ model: "claude-sonnet-4-5",
28
+ cencori: {
29
+ project: "proj_abc",
30
+ billing: { budget: "50.00/month" },
31
+ },
32
+ });
33
+ ```
34
+
35
+ ## instructions.md
36
+
37
+ Required. The system prompt that defines the agent's personality and behavior.
38
+
39
+ ## tools/
40
+
41
+ Optional. TypeScript files exporting a `defineTool` config:
42
+
43
+ ```ts
44
+ import { defineTool } from "eline/tools";
45
+ import { z } from "zod";
46
+
47
+ export default defineTool({
48
+ description: "...",
49
+ inputSchema: z.object({ ... }),
50
+ async execute(input) { ... },
51
+ });
52
+ ```
53
+
54
+ ## knowledge/
55
+
56
+ Optional. Markdown or TypeScript files with reference knowledge the agent can load on demand.
57
+
58
+ ## channels/
59
+
60
+ Optional. HTTP, Slack, or custom message ingress.
61
+
62
+ ## schedules/
63
+
64
+ Optional. Recurring cron jobs.
65
+
66
+ ## sessions/
67
+
68
+ Optional. Configure session behavior:
69
+
70
+ ```ts
71
+ export default {
72
+ maxTurns: 50,
73
+ idleTimeoutMs: 300000,
74
+ memory: { strategy: "lastN", limit: 20 },
75
+ };
76
+ ```
77
+
78
+ ## policies/
79
+
80
+ Optional. Security guards and budgets:
81
+
82
+ ```ts
83
+ export default {
84
+ inputGuards: ["pii-redaction"],
85
+ outputGuards: ["content-filtering"],
86
+ budget: { maxSpendPerSession: "5.00" },
87
+ };
88
+ ```
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "arcie",
3
+ "type": "module",
4
+ "version": "0.1.2",
5
+ "description": "The electronic line — build agents at the speed of light.",
6
+ "bin": {
7
+ "eline": "dist/cli/index.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "templates",
12
+ "docs",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "exports": {
17
+ ".": "./dist/index.js",
18
+ "./tools": "./dist/tools/index.js",
19
+ "./skills": "./dist/skills/index.js",
20
+ "./instructions": "./dist/instructions/index.js",
21
+ "./hooks": "./dist/hooks/index.js",
22
+ "./channels": "./dist/channels/index.js",
23
+ "./schedules": "./dist/schedules/index.js",
24
+ "./context": "./dist/context/index.js",
25
+ "./agent": "./dist/agent/index.js",
26
+ "./runner": "./dist/runner/index.js",
27
+ "./auth": "./dist/auth/index.js",
28
+ "./discover": "./dist/discover/index.js",
29
+ "./protocol": "./dist/protocol/events.js"
30
+ },
31
+ "typesVersions": {
32
+ "*": {
33
+ "*": [
34
+ "./dist/*/index.d.ts",
35
+ "./dist/index.d.ts"
36
+ ]
37
+ }
38
+ },
39
+ "scripts": {
40
+ "build": "tsc -p tsconfig.build.json",
41
+ "dev": "tsc --watch",
42
+ "prepublishOnly": "npm run build",
43
+ "test": "vitest run",
44
+ "test:watch": "vitest"
45
+ },
46
+ "keywords": [
47
+ "eline",
48
+ "ai",
49
+ "agent",
50
+ "framework",
51
+ "cencori",
52
+ "filesystem"
53
+ ],
54
+ "author": "Cencori",
55
+ "license": "MIT",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/cencori/eline.git"
59
+ },
60
+ "homepage": "https://cencori.com/eline",
61
+ "dependencies": {
62
+ "chalk": "^5.3.0",
63
+ "commander": "^12.0.0",
64
+ "ora": "^8.0.1",
65
+ "zod": "^3.23.0",
66
+ "zod-to-json-schema": "^3.25.2"
67
+ },
68
+ "devDependencies": {
69
+ "@types/node": "^20.0.0",
70
+ "typescript": "^5.3.0",
71
+ "vitest": "^2.0.0"
72
+ }
73
+ }
@@ -0,0 +1,13 @@
1
+ import { defineAgent } from "eline";
2
+
3
+ export default defineAgent({
4
+ model: "claude-sonnet-4-5",
5
+ name: "my-agent",
6
+ description: "An Eline agent powered by Cencori.",
7
+ cencori: {
8
+ project: process.env.CENCORI_PROJECT_ID,
9
+ billing: {
10
+ budget: "50.00/month",
11
+ },
12
+ },
13
+ });
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ You are a helpful AI agent built with Jett on Cencori.
2
+
3
+ Be concise, accurate, and helpful. Use your tools when appropriate.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "my-agent",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "eline dev",
8
+ "build": "eline build"
9
+ },
10
+ "dependencies": {
11
+ "eline": "^0.1.2",
12
+ "zod": "^3.23.0"
13
+ },
14
+ "devDependencies": {
15
+ "typescript": "^5.3.0"
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "strict": true,
7
+ "esModuleInterop": true,
8
+ "skipLibCheck": true
9
+ },
10
+ "include": ["agent"]
11
+ }