@lumenflow/cli 3.17.7 → 3.18.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.
- package/dist/init-detection.js +5 -3
- package/dist/init-detection.js.map +1 -1
- package/dist/init-templates.js +4 -4
- package/dist/init-templates.js.map +1 -1
- package/dist/initiative-plan.js +1 -1
- package/dist/initiative-plan.js.map +1 -1
- package/dist/pre-commit-check.js +1 -1
- package/dist/pre-commit-check.js.map +1 -1
- package/dist/wu-edit-operations.js +4 -0
- package/dist/wu-edit-operations.js.map +1 -1
- package/dist/wu-edit-validators.js +4 -0
- package/dist/wu-edit-validators.js.map +1 -1
- package/dist/wu-edit.js +11 -0
- package/dist/wu-edit.js.map +1 -1
- package/dist/wu-spawn-strategy-resolver.js +13 -1
- package/dist/wu-spawn-strategy-resolver.js.map +1 -1
- package/package.json +8 -8
- package/packs/agent-runtime/.turbo/turbo-build.log +4 -0
- package/packs/agent-runtime/README.md +147 -0
- package/packs/agent-runtime/capability-factory.ts +104 -0
- package/packs/agent-runtime/config.schema.json +87 -0
- package/packs/agent-runtime/constants.ts +21 -0
- package/packs/agent-runtime/index.ts +11 -0
- package/packs/agent-runtime/manifest.ts +207 -0
- package/packs/agent-runtime/manifest.yaml +193 -0
- package/packs/agent-runtime/orchestration.ts +1787 -0
- package/packs/agent-runtime/pack-registration.ts +110 -0
- package/packs/agent-runtime/package.json +57 -0
- package/packs/agent-runtime/policy-factory.ts +165 -0
- package/packs/agent-runtime/tool-impl/agent-turn-tools.ts +793 -0
- package/packs/agent-runtime/tool-impl/index.ts +5 -0
- package/packs/agent-runtime/tool-impl/provider-adapters.ts +1245 -0
- package/packs/agent-runtime/tools/index.ts +4 -0
- package/packs/agent-runtime/tools/types.ts +47 -0
- package/packs/agent-runtime/tsconfig.json +20 -0
- package/packs/agent-runtime/types.ts +128 -0
- package/packs/agent-runtime/vitest.config.ts +11 -0
- package/packs/sidekick/.turbo/turbo-build.log +1 -1
- package/packs/sidekick/package.json +1 -1
- package/packs/software-delivery/.turbo/turbo-build.log +1 -1
- package/packs/software-delivery/package.json +1 -1
- package/templates/core/.lumenflow/rules/wu-workflow.md.template +1 -1
- package/templates/core/ai/onboarding/first-wu-mistakes.md.template +2 -2
- package/templates/core/ai/onboarding/quick-ref-commands.md.template +1 -1
- package/templates/core/ai/onboarding/starting-prompt.md.template +1 -1
- package/templates/vendors/claude/.claude/skills/frontend-design/SKILL.md.template +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Copyright (c) 2026 Hellmai Ltd
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
+
|
|
4
|
+
import type { ToolScope } from '@lumenflow/kernel';
|
|
5
|
+
import {
|
|
6
|
+
AGENT_RUNTIME_DOMAIN,
|
|
7
|
+
AGENT_RUNTIME_PACK_ID,
|
|
8
|
+
AGENT_RUNTIME_PACK_VERSION,
|
|
9
|
+
} from '../constants.js';
|
|
10
|
+
import type { AgentRuntimeToolName } from '../types.js';
|
|
11
|
+
|
|
12
|
+
export const AGENT_RUNTIME_TOOL_PERMISSIONS = {
|
|
13
|
+
READ: 'read',
|
|
14
|
+
WRITE: 'write',
|
|
15
|
+
ADMIN: 'admin',
|
|
16
|
+
} as const;
|
|
17
|
+
|
|
18
|
+
export type AgentRuntimeToolPermission =
|
|
19
|
+
(typeof AGENT_RUNTIME_TOOL_PERMISSIONS)[keyof typeof AGENT_RUNTIME_TOOL_PERMISSIONS];
|
|
20
|
+
|
|
21
|
+
export interface AgentRuntimeToolDescriptor {
|
|
22
|
+
name: AgentRuntimeToolName;
|
|
23
|
+
domain: typeof AGENT_RUNTIME_DOMAIN;
|
|
24
|
+
pack: typeof AGENT_RUNTIME_PACK_ID;
|
|
25
|
+
version: typeof AGENT_RUNTIME_PACK_VERSION;
|
|
26
|
+
permission: AgentRuntimeToolPermission;
|
|
27
|
+
required_scopes: ToolScope[];
|
|
28
|
+
entry: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface AgentRuntimeToolDescriptorInput {
|
|
32
|
+
name: AgentRuntimeToolDescriptor['name'];
|
|
33
|
+
permission: AgentRuntimeToolDescriptor['permission'];
|
|
34
|
+
required_scopes: AgentRuntimeToolDescriptor['required_scopes'];
|
|
35
|
+
entry: AgentRuntimeToolDescriptor['entry'];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function createAgentRuntimeToolDescriptor(
|
|
39
|
+
input: AgentRuntimeToolDescriptorInput,
|
|
40
|
+
): AgentRuntimeToolDescriptor {
|
|
41
|
+
return {
|
|
42
|
+
...input,
|
|
43
|
+
domain: AGENT_RUNTIME_DOMAIN,
|
|
44
|
+
pack: AGENT_RUNTIME_PACK_ID,
|
|
45
|
+
version: AGENT_RUNTIME_PACK_VERSION,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2023",
|
|
5
|
+
"lib": ["ES2023"],
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"rootDir": ".",
|
|
8
|
+
"noEmit": false,
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"useUnknownInCatchVariables": false,
|
|
12
|
+
"noUnusedLocals": false,
|
|
13
|
+
"noUnusedParameters": false,
|
|
14
|
+
"allowJs": false,
|
|
15
|
+
"checkJs": false,
|
|
16
|
+
"noEmitOnError": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["*.ts", "tools/**/*.ts", "tool-impl/**/*.ts"],
|
|
19
|
+
"exclude": ["node_modules", "dist", "__tests__"]
|
|
20
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// Copyright (c) 2026 Hellmai Ltd
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
AGENT_RUNTIME_API_KEY_ENV,
|
|
6
|
+
AGENT_RUNTIME_BASE_URL_ENV,
|
|
7
|
+
AGENT_RUNTIME_PACK_ID,
|
|
8
|
+
} from './constants.js';
|
|
9
|
+
|
|
10
|
+
export const AGENT_RUNTIME_PROVIDER_KINDS = {
|
|
11
|
+
OPENAI_COMPATIBLE: 'openai_compatible',
|
|
12
|
+
MESSAGES_COMPATIBLE: 'messages_compatible',
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
export const AGENT_RUNTIME_TURN_STATUSES = {
|
|
16
|
+
REPLY: 'reply',
|
|
17
|
+
TOOL_REQUEST: 'tool_request',
|
|
18
|
+
COMPLETE: 'complete',
|
|
19
|
+
ESCALATE: 'escalate',
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
22
|
+
export const AGENT_RUNTIME_TOOL_NAMES = {
|
|
23
|
+
EXECUTE_TURN: 'agent:execute-turn',
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export type AgentRuntimePackId = typeof AGENT_RUNTIME_PACK_ID;
|
|
27
|
+
export type AgentRuntimeProviderKind =
|
|
28
|
+
(typeof AGENT_RUNTIME_PROVIDER_KINDS)[keyof typeof AGENT_RUNTIME_PROVIDER_KINDS];
|
|
29
|
+
export type AgentRuntimeTurnStatus =
|
|
30
|
+
(typeof AGENT_RUNTIME_TURN_STATUSES)[keyof typeof AGENT_RUNTIME_TURN_STATUSES];
|
|
31
|
+
export type AgentRuntimeToolName =
|
|
32
|
+
(typeof AGENT_RUNTIME_TOOL_NAMES)[keyof typeof AGENT_RUNTIME_TOOL_NAMES];
|
|
33
|
+
|
|
34
|
+
export interface AgentRuntimeModelProfileConfig {
|
|
35
|
+
provider: AgentRuntimeProviderKind;
|
|
36
|
+
model: string;
|
|
37
|
+
api_key_env: string;
|
|
38
|
+
base_url?: string;
|
|
39
|
+
base_url_env?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface AgentRuntimeIntentConfig {
|
|
43
|
+
description: string;
|
|
44
|
+
allow_tools: string[];
|
|
45
|
+
approval_required_tools?: string[];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface AgentRuntimeLimitsConfig {
|
|
49
|
+
max_turns_per_session?: number;
|
|
50
|
+
max_tool_calls_per_session?: number;
|
|
51
|
+
max_input_bytes?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface AgentRuntimePackConfig {
|
|
55
|
+
default_model: string;
|
|
56
|
+
models: Record<string, AgentRuntimeModelProfileConfig>;
|
|
57
|
+
intents?: Record<string, AgentRuntimeIntentConfig>;
|
|
58
|
+
limits?: AgentRuntimeLimitsConfig;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface AgentRuntimeMessage {
|
|
62
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
63
|
+
content: string;
|
|
64
|
+
tool_name?: string;
|
|
65
|
+
tool_call_id?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface AgentRuntimeToolCatalogEntry {
|
|
69
|
+
name: string;
|
|
70
|
+
description: string;
|
|
71
|
+
input_schema?: Record<string, unknown>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface AgentRuntimeIntentCatalogEntry {
|
|
75
|
+
id: string;
|
|
76
|
+
description: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface AgentRuntimeExecuteTurnInput {
|
|
80
|
+
session_id: string;
|
|
81
|
+
messages: AgentRuntimeMessage[];
|
|
82
|
+
model_profile: string;
|
|
83
|
+
url: string;
|
|
84
|
+
stream?: boolean;
|
|
85
|
+
tool_catalog?: AgentRuntimeToolCatalogEntry[];
|
|
86
|
+
intent_catalog?: AgentRuntimeIntentCatalogEntry[];
|
|
87
|
+
limits?: AgentRuntimeLimitsConfig;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface AgentRuntimeStreamSnapshot {
|
|
91
|
+
sequence: number;
|
|
92
|
+
state: 'partial' | 'final';
|
|
93
|
+
data: Record<string, unknown>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface AgentRuntimeRequestedTool {
|
|
97
|
+
name: string;
|
|
98
|
+
input: Record<string, unknown>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface AgentRuntimeUsage {
|
|
102
|
+
input_tokens?: number;
|
|
103
|
+
output_tokens?: number;
|
|
104
|
+
total_tokens?: number;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface AgentRuntimeProviderDescriptor {
|
|
108
|
+
kind: AgentRuntimeProviderKind;
|
|
109
|
+
model: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface AgentRuntimeExecuteTurnOutput {
|
|
113
|
+
status: AgentRuntimeTurnStatus;
|
|
114
|
+
intent: string;
|
|
115
|
+
assistant_message: string;
|
|
116
|
+
requested_tool?: AgentRuntimeRequestedTool;
|
|
117
|
+
provider: AgentRuntimeProviderDescriptor;
|
|
118
|
+
usage?: AgentRuntimeUsage;
|
|
119
|
+
finish_reason: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const AGENT_RUNTIME_DECLARED_ENVIRONMENT_VARIABLES = [
|
|
123
|
+
AGENT_RUNTIME_API_KEY_ENV,
|
|
124
|
+
AGENT_RUNTIME_BASE_URL_ENV,
|
|
125
|
+
] as const;
|
|
126
|
+
|
|
127
|
+
export type AgentRuntimeDeclaredEnvironmentVariable =
|
|
128
|
+
(typeof AGENT_RUNTIME_DECLARED_ENVIRONMENT_VARIABLES)[number];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
test: {
|
|
5
|
+
globals: true,
|
|
6
|
+
environment: 'node',
|
|
7
|
+
include: ['__tests__/**/*.test.ts', '**/*.spec.ts'],
|
|
8
|
+
exclude: ['**/node_modules/**', '**/dist/**'],
|
|
9
|
+
passWithNoTests: false,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @lumenflow/packs-software-delivery@3.
|
|
2
|
+
> @lumenflow/packs-software-delivery@3.18.0 build /home/runner/work/lumenflow-dev/lumenflow-dev/packages/@lumenflow/packs/software-delivery
|
|
3
3
|
> tsc
|
|
4
4
|
|
|
@@ -330,7 +330,7 @@ sizing_estimate:
|
|
|
330
330
|
strategy: checkpoint-resume
|
|
331
331
|
```
|
|
332
332
|
|
|
333
|
-
3. **Split the WU** only if the work is no longer atomic or should land independently (see [wu-sizing-guide.md](
|
|
333
|
+
3. **Split the WU** only if the work is no longer atomic or should land independently (see [wu-sizing-guide.md](../../wu-sizing-guide.md) section 3 for splitting patterns).
|
|
334
334
|
|
|
335
335
|
**Strict mode:** Teams can enforce sizing compliance for delegated work with `--strict-sizing` on `wu:brief`. In strict mode, missing or non-compliant sizing metadata blocks the operation.
|
|
336
336
|
|
|
@@ -339,7 +339,7 @@ sizing_estimate:
|
|
|
339
339
|
pnpm wu:brief --id WU-XXX --client claude-code --strict-sizing
|
|
340
340
|
```
|
|
341
341
|
|
|
342
|
-
See the [WU Sizing Guide](
|
|
342
|
+
See the [WU Sizing Guide](../../wu-sizing-guide.md) section 1.5 for the full contract specification.
|
|
343
343
|
|
|
344
344
|
---
|
|
345
345
|
|
|
@@ -835,4 +835,4 @@ For a complete picture of how all WU commands, memory tools, and orchestration t
|
|
|
835
835
|
- **[Failure-Mode Runbook](../../lumenflow-agent-capsule.md)** -- Concrete remediation for main-behind-origin, partial-claim state, spawn-provenance enforcement, and wu:recover usage
|
|
836
836
|
- **[Troubleshooting wu:done](./troubleshooting-wu-done.md)** -- Most common agent mistake (two-step wu:prep + wu:done workflow)
|
|
837
837
|
- **[First WU Mistakes](./first-wu-mistakes.md)** -- Common first-time pitfalls and how to avoid them
|
|
838
|
-
- **[WU Sizing Guide](
|
|
838
|
+
- **[WU Sizing Guide](../../wu-sizing-guide.md)** -- Context safety triggers, complexity assessment, and session strategies
|
|
@@ -733,5 +733,5 @@ rm -rf /tmp/nextjs-scaffold
|
|
|
733
733
|
- [troubleshooting-wu-done.md](troubleshooting-wu-done.md) - Why agents forget wu:done
|
|
734
734
|
- [first-wu-mistakes.md](first-wu-mistakes.md) - Common mistakes to avoid
|
|
735
735
|
- [quick-ref-commands.md](quick-ref-commands.md) - Command reference
|
|
736
|
-
- [wu-sizing-guide.md](wu-sizing-guide.md) - Context safety and WU sizing
|
|
736
|
+
- [wu-sizing-guide.md](../../wu-sizing-guide.md) - Context safety and WU sizing
|
|
737
737
|
- [initiative-orchestration.md](initiative-orchestration.md) - Initiative orchestration, delegation, recovery
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: frontend-design
|
|
3
3
|
description: Create distinctive, production-grade frontend interfaces. Use when building React components, pages, UI features, or when user requests visual/design work.
|
|
4
4
|
version: 1.0.0
|
|
5
|
-
source: docs/
|
|
5
|
+
source: docs/operations/_frameworks/lumenflow/lumenflow-agent-capsule.md
|
|
6
6
|
last_updated: {{DATE}}
|
|
7
7
|
allowed-tools: Read, Write, Edit, Bash
|
|
8
8
|
---
|