Repository navigation
Expand file tree
/
Copy pathagent_profiles.h
More file actions
75 lines (63 loc) · 2.45 KB
/
Copy pathagent_profiles.h
File metadata and controls
75 lines (63 loc) · 2.45 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
/*
* agent_profiles.h — Canonical tiered codebase-memory agent profiles.
*/
#ifndef CBM_CLI_AGENT_PROFILES_H
#define CBM_CLI_AGENT_PROFILES_H
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
CBM_GRAPH_TIER_SCOUT = 0,
CBM_GRAPH_TIER_VERIFY,
CBM_GRAPH_TIER_AUDIT,
CBM_GRAPH_TIER_COUNT
} cbm_graph_tier_t;
typedef enum {
CBM_GRAPH_ACCESS_DIRECT = 0,
CBM_GRAPH_ACCESS_HANDOFF,
CBM_GRAPH_ACCESS_COUNT
} cbm_graph_access_t;
typedef enum {
CBM_GRAPH_DIALECT_CLAUDE = 0,
CBM_GRAPH_DIALECT_CODEX,
CBM_GRAPH_DIALECT_GEMINI,
CBM_GRAPH_DIALECT_QWEN,
CBM_GRAPH_DIALECT_COPILOT,
CBM_GRAPH_DIALECT_OPENCODE,
CBM_GRAPH_DIALECT_KILO,
CBM_GRAPH_DIALECT_KIRO,
CBM_GRAPH_DIALECT_JUNIE,
CBM_GRAPH_DIALECT_QODER,
CBM_GRAPH_DIALECT_CODEBUDDY,
CBM_GRAPH_DIALECT_FACTORY,
CBM_GRAPH_DIALECT_VIBE,
CBM_GRAPH_DIALECT_AUGMENT,
CBM_GRAPH_DIALECT_CURSOR,
CBM_GRAPH_DIALECT_ROVO,
CBM_GRAPH_DIALECT_POCHI,
CBM_GRAPH_DIALECT_OMP,
CBM_GRAPH_DIALECT_GROK,
CBM_GRAPH_DIALECT_COUNT
} cbm_graph_profile_dialect_t;
/* Stable profile identifier. VERIFY intentionally retains "codebase-memory". */
const char *cbm_graph_tier_slug(cbm_graph_tier_t tier);
const char *cbm_graph_tier_display_name(cbm_graph_tier_t tier);
bool cbm_graph_dialect_direct_capable(cbm_graph_profile_dialect_t dialect);
/* Returns malloc-owned profile content, or NULL for invalid/unsafe combinations.
* binary_path is required for direct Kiro and Codex profiles and ignored otherwise. */
char *cbm_render_graph_profile(cbm_graph_profile_dialect_t dialect, cbm_graph_tier_t tier,
cbm_graph_access_t access, const char *binary_path);
/* v0.9.1-rc.1 direct Codex rendering (server table without a transport), kept
* so install/uninstall can recognize and migrate those files. */
char *cbm_render_graph_profile_codex_rc1(cbm_graph_tier_t tier);
/* v0.10.8 OpenCode rendering (before the tool_search permissions of #1933),
* kept so install/uninstall can recognize and migrate those files (#2264). */
char *cbm_render_graph_profile_opencode_v0108(cbm_graph_tier_t tier, cbm_graph_access_t access);
/* Vibe stores the behavioral prompt separately from its TOML agent definition.
* Other integrations may also use this as the canonical contract text. */
char *cbm_render_graph_prompt(cbm_graph_tier_t tier, cbm_graph_access_t access);
#ifdef __cplusplus
}
#endif
#endif /* CBM_CLI_AGENT_PROFILES_H */