ng-directive-zero 1.0.5

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/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # NgDirectiveZero
2
+
3
+ [![npm version](https://img.shields.io/npm/v/ng-directive-zero.svg)](https://www.npmjs.com/package/ng-directive-zero)
4
+ [![npm downloads](https://img.shields.io/npm/dm/ng-directive-zero.svg)](https://www.npmjs.com/package/ng-directive-zero)
5
+
6
+ Angular implementation of Agentation for visual DOM inspection and annotation. It provides an overlay-driven marker flow, component metadata extraction, and structured prompt output for page feedback.
7
+
8
+ ## Demo
9
+
10
+ ![ng-directive-zero demo](../../agentation/demo.gif)
11
+
12
+ ## Features
13
+ - Visual overlay to mark components or DOM nodes
14
+ - Marker list, intent editing, and clipboard export
15
+ - Angular component metadata extraction (inputs/outputs/properties)
16
+ - Prompt output detail levels (compact, standard, detailed, forensic)
17
+ - Nested element selection via breadcrumb navigation
18
+
19
+ ## Installation
20
+ ```bash
21
+ npm install ng-directive-zero
22
+ ```
23
+
24
+ ## Quick start
25
+ Import the module in your root module and place the agentation component once in your app.
26
+
27
+ ```ts
28
+ // app.module.ts
29
+ import { NgDirectiveZeroModule } from 'ng-directive-zero';
30
+
31
+ @NgModule({
32
+ imports: [
33
+ NgDirectiveZeroModule.forRoot(),
34
+ ],
35
+ })
36
+ export class AppModule {}
37
+ ```
38
+
39
+ ```html
40
+ <!-- app.component.html -->
41
+ <ag-directive-zero></ag-directive-zero>
42
+ ```
43
+
44
+ ## Exported API
45
+ ### Module
46
+ - `NgDirectiveZeroModule`
47
+
48
+ ### Components
49
+ - `ag-directive-zero`
50
+ - `ag-overlay`
51
+ - `ag-toolbar`
52
+ - `ag-markers-panel`
53
+ - `ag-settings-panel`
54
+ - `ag-annotation-panel`
55
+ - `ag-inline-editor`
56
+
57
+ ### Services
58
+ - `ComponentWalkerService`
59
+ - `DataSanitizerService`
60
+ - `PromptGeneratorService`
61
+ - `McpService`
62
+
63
+ ### Models
64
+ - `ComponentNode`, `MarkerAnnotation`, `RecordingSession`
65
+ - `AgentationSettings`, `ToolbarState`
66
+ - `OutputDetail`, `MarkerColor`, `DEFAULT_SETTINGS`, `MARKER_COLORS`
67
+
68
+ ## Build & test
69
+ ```bash
70
+ ng build ng-directive-zero
71
+ ng test
72
+ ```
73
+
74
+ ## Publishing
75
+ ```bash
76
+ ng build ng-directive-zero
77
+ cd dist/ng-directive-zero
78
+ npm publish
79
+ ```
80
+
81
+ ## Compatibility
82
+ Peer dependencies:
83
+ - `@angular/core` and `@angular/common` >=14 <21
84
+
85
+ ## License
86
+ MIT