@agentic-surfaces/core 0.1.13 → 0.1.15

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.
package/dist/agents.d.ts CHANGED
@@ -6,6 +6,8 @@ export interface AgentDefinition {
6
6
  name: string;
7
7
  model?: string;
8
8
  effort?: "low" | "medium" | "high" | "xhigh" | "max";
9
+ /** Capability tier — constrained (default) / surface (MCP) / full (Claude Code skills+tools). */
10
+ profile?: "constrained" | "surface" | "full";
9
11
  commands?: AgentCommand[];
10
12
  fallback?: string;
11
13
  mcpServers?: Array<{
package/dist/agents.js CHANGED
@@ -16,6 +16,7 @@ const AgentFrontmatterSchema = z
16
16
  name: z.string().min(1).optional(),
17
17
  model: z.string().optional(),
18
18
  effort: z.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
19
+ profile: z.enum(["constrained", "surface", "full"]).optional(),
19
20
  commands: z.array(AgentCommandSchema).min(1).optional(),
20
21
  fallback: z.string().optional(),
21
22
  mcpServers: z.array(McpServerRefSchema).optional(),
@@ -65,6 +66,7 @@ export function parseAgentFile(content, defaultName) {
65
66
  name: fm.name ?? defaultName,
66
67
  model: fm.model,
67
68
  effort: fm.effort,
69
+ profile: fm.profile,
68
70
  commands: fm.commands,
69
71
  fallback: fm.fallback,
70
72
  mcpServers: fm.mcpServers,
@@ -6,6 +6,7 @@ export const agentHandler = {
6
6
  let instructions = cfg.prompt ?? "";
7
7
  let model = cfg.model;
8
8
  let effort = cfg.effort;
9
+ let profile = cfg.profile;
9
10
  let mcpServers = cfg.mcpServers;
10
11
  let decisionSchema = cfg.decision;
11
12
  let commands;
@@ -18,6 +19,7 @@ export const agentHandler = {
18
19
  instructions = cfg.prompt ? `${def.instructions}\n\n${cfg.prompt}` : def.instructions;
19
20
  model = cfg.model ?? def.model;
20
21
  effort = cfg.effort ?? def.effort;
22
+ profile = cfg.profile ?? def.profile;
21
23
  mcpServers = cfg.mcpServers ?? def.mcpServers;
22
24
  commands = def.commands;
23
25
  fallback = def.fallback;
@@ -44,6 +46,11 @@ export const agentHandler = {
44
46
  mcpServers,
45
47
  context: Object.fromEntries(ctx.outputs),
46
48
  decisionSchema,
49
+ // Capability tier (default constrained) + dry-run so the runner's permission callback can
50
+ // block + log writes for surface/full agents. Logged via the engine logger for visibility.
51
+ profile: profile ?? "constrained",
52
+ dryRun: ctx.services.dryRun,
53
+ log: (m) => ctx.services.logger?.info?.(m),
47
54
  });
48
55
  // Decision agent: guarantee the chosen command is on the allowlist (else use
49
56
  // the fallback), and surface it at the top level so task.branch can route.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentic-surfaces/core",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -23,7 +23,7 @@
23
23
  "jsonata": "^2.2.1",
24
24
  "yaml": "^2.9.0",
25
25
  "zod": "^4.4.3",
26
- "@agentic-surfaces/agent": "0.1.13"
26
+ "@agentic-surfaces/agent": "0.1.15"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/better-sqlite3": "^7.6.13",