-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.doql.less
More file actions
111 lines (95 loc) · 2.7 KB
/
Copy pathapp.doql.less
File metadata and controls
111 lines (95 loc) · 2.7 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// LESS format — define @variables here as needed
app {
name: code2schema;
version: 0.1.7;
description: "Semantic compiler: Code → AST → CQRS Model → Workflow DAG → Proto/Schema";
license: Apache-2.0;
keywords: "ast, cqrs, static-analysis, code-quality, schema";
}
dependencies {
runtime: "libcst>=1.1.0, networkx>=3.2, pydantic>=2.5";
proto: grpcio-tools>=1.60;
neo4j: neo4j>=5.15;
viz: pyvis>=0.3;
dev: "pytest>=8, pytest-cov, black, ruff, goal>=2.1.0, costs>=0.1.20, pfix>=0.1.60";
}
entity[name="FunctionIR"] {
name: string!;
module: string!;
calls: List[str]!;
role: CQRSRole!;
side_effects: List[SideEffect]!;
fan_out: int!;
lines: int!;
is_async: bool!;
docstring: string;
}
entity[name="ModuleIR"] {
name: string!;
path: string!;
functions: List[FunctionIR]!;
imports: List[str]!;
lines: int!;
}
entity[name="WorkflowStep"] {
callee: string!;
is_async: bool!;
}
entity[name="WorkflowIR"] {
name: string!;
entry: string!;
steps: List[WorkflowStep]!;
}
entity[name="RuleIR"] {
id: string!;
target: string!;
condition: string!;
action: string!;
severity: string!;
}
entity[name="SchemaIR"] {
system: json!;
modules: List[ModuleIR]!;
workflows: List[WorkflowIR]!;
rules: List[RuleIR]!;
}
interface[type="cli"] {
framework: argparse;
}
interface[type="cli"] page[name="code2schema"] {
entry: code2schema.cli:main;
}
workflow[name="lint"] {
trigger: manual;
step-1: run cmd=ruff check code2schema/;
step-2: run cmd=black --check code2schema/;
}
workflow[name="fix"] {
trigger: manual;
step-1: run cmd=ruff check --fix code2schema/;
step-2: run cmd=black code2schema/;
}
workflow[name="testql"] {
trigger: manual;
step-1: run cmd=testql run testql-scenarios/cli.testql.yaml;
step-2: run cmd=testql run testql-scenarios/generated-cli-tests.testql.toon.yaml;
}
tests {
import: testql-scenarios/**/*.testql.toon.yaml;
import: testql-scenarios/**/*.testql.yaml;
}
env_vars {
keys: OPENROUTER_API_KEY, LLM_MODEL, PFIX_AUTO_APPLY, PFIX_AUTO_INSTALL_DEPS, PFIX_AUTO_RESTART, PFIX_MAX_RETRIES, PFIX_DRY_RUN, PFIX_ENABLED, PFIX_GIT_COMMIT, PFIX_GIT_PREFIX, PFIX_CREATE_BACKUPS;
}
deploy {
target: pip;
}
environment[name="local"] {
runtime: python;
env_file: .env;
template_file: .env.example;
python_version: >=3.10;
vars: LLM_MODEL, OPENROUTER_API_KEY, PFIX_AUTO_APPLY, PFIX_AUTO_INSTALL_DEPS, PFIX_AUTO_RESTART, PFIX_CREATE_BACKUPS, PFIX_DRY_RUN, PFIX_ENABLED, PFIX_GIT_COMMIT, PFIX_GIT_PREFIX, PFIX_MAX_RETRIES;
runtime_llm: OPENROUTER_API_KEY;
runtime_pfix: PFIX_AUTO_APPLY, PFIX_AUTO_INSTALL_DEPS, PFIX_AUTO_RESTART, PFIX_CREATE_BACKUPS, PFIX_DRY_RUN, PFIX_ENABLED, PFIX_GIT_COMMIT, PFIX_GIT_PREFIX, PFIX_MAX_RETRIES;
}