@kody-ade/kody-engine 0.4.379 → 0.4.381

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.
@@ -15,6 +15,30 @@ import type { Phase } from "../state.js"
15
15
  // Profile shape (mirrors the JSON on disk).
16
16
  // ────────────────────────────────────────────────────────────────────────────
17
17
 
18
+ export interface AuthFieldSpec {
19
+ /** User-facing label of the login control. */
20
+ label: string
21
+ /** Non-sensitive values come from variables; credentials come from the vault. */
22
+ source: "variable" | "secret"
23
+ /** Explicit variable or secret name. Never inferred from prose. */
24
+ key: string
25
+ }
26
+
27
+ export interface AuthMethodSpec {
28
+ /** User-facing name used to distinguish multiple available login forms. */
29
+ name: string
30
+ /** Engine-owned preparation mechanism; credentials never enter the prompt. */
31
+ strategy: "browser-storage-state"
32
+ /** Typed session builder selected by the profile, independent of credential names. */
33
+ adapter: "kody-repository"
34
+ /** Every field is required before this method is exposed to the agent. */
35
+ fields: AuthFieldSpec[]
36
+ }
37
+
38
+ export interface AuthSpec {
39
+ methods: AuthMethodSpec[]
40
+ }
41
+
18
42
  export interface Profile {
19
43
  name: string
20
44
  /**
@@ -65,6 +89,8 @@ export interface Profile {
65
89
  skills?: string[]
66
90
  prompt?: string
67
91
  chatTools?: string[]
92
+ /** Declarative login methods resolved by authentication-aware preflights. */
93
+ auth?: AuthSpec
68
94
  /**
69
95
  * Execution model — orthogonal to `role`.
70
96
  * `oneshot` (default): single invocation on demand.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.379",
3
+ "version": "0.4.381",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,6 +38,7 @@
38
38
  "@actions/cache": "^6.0.0",
39
39
  "@anthropic-ai/claude-agent-sdk": "0.2.119",
40
40
  "@modelcontextprotocol/sdk": "^1.29.0",
41
+ "convex": "^1.17.0",
41
42
  "zod": "^4.0.0"
42
43
  },
43
44
  "devDependencies": {