r2pde-ai 0.1.1 → 0.1.3

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.
@@ -8,55 +8,7 @@ project:
8
8
  command: npm init -y
9
9
  comment: Inicializa o npm (cria package.json).
10
10
  - type: git-init
11
- - type: cli
12
- command: node ../dist/cli.js init
13
- answers:
14
- - Corporate Agenda
15
- - Dashboard
16
- - Monolith
17
- - Clean Code
18
- - Production
19
- - English
20
- - type: cli
21
- command: node ../dist/cli.js doctor
22
-
23
- # Manifests
24
- - type: cli
25
- command: node ../dist/cli.js manifest:create --name "UI Principles" --scope ui --description "All user interfaces must be intuitive, responsive, and accessible. Mobile-first design is mandatory. Consistent color palette and typography across all screens." --type feat --force
26
- - type: cli
27
- command: node ../dist/cli.js manifest:create --name "Security Philosophy" --scope security --description "User data privacy is a core value. All authentication and sensitive operations must use secure protocols. No passwords or tokens are ever logged." --type feat --force
28
- - type: cli
29
- command: node ../dist/cli.js manifest:create --name "Integration Policy" --scope integration --description "All third-party calendar integrations must use OAuth2, respect user consent, and provide clear opt-in/out. No data is shared without explicit permission." --type feat --force
30
-
31
- # Contracts
32
- - type: cli
33
- command: node ../dist/cli.js contract:create --name "API Security" --type security --enforcement mandatory --description "All API endpoints require JWT authentication. Tokens must be validated on every request. No endpoint exposes sensitive data without proper authorization." --changeType feat --force
34
- - type: cli
35
- command: node ../dist/cli.js contract:create --name "Calendar Sync Consistency" --type integration --enforcement mandatory --description "All events must be synced bidirectionally with Outlook and Google calendars. Conflicts are resolved using last-write-wins. Sync failures are logged and retried automatically." --changeType feat --force
36
- - type: cli
37
- command: node ../dist/cli.js contract:create --name "User Data Protection" --type security --enforcement mandatory --description "All user data is encrypted at rest and in transit. No sensitive data is stored in logs or analytics. Data retention policies comply with LGPD/GDPR." --changeType feat --force
38
11
 
39
- # Requirements
40
- - type: cli
41
- command: node ../dist/cli.js requirement:create --name "User Registration" --type functional --priority high --description "Allow new users to register with email, password, and full name. Email verification is required before first login." --changeType feat --acceptance "Registration form with email, password, full name; Email format and password strength validation; Verification email sent on registration; User cannot log in before verifying email" --force
42
- - type: cli
43
- command: node ../dist/cli.js requirement:create --name "User Login" --type functional --priority high --description "Registered users can log in using email and password. JWT is issued on successful login. Failed attempts are rate-limited." --changeType feat --acceptance "Login form with email and password; JWT issued on success; 5 failed attempts lock account for 10 minutes" --force
44
- - type: cli
45
- command: node ../dist/cli.js requirement:create --name "Calendar Event CRUD" --type functional --priority high --description "Users can create, read, update, and delete calendar events. Events have title, description, start/end time, location, and attendees." --changeType feat --acceptance "Event list and detail views; Create/edit/delete event forms; Validation for overlapping events" --force
46
- - type: cli
47
- command: node ../dist/cli.js requirement:create --name "Outlook Calendar Sync" --type integration --priority high --description "Users can connect their Outlook account. Events are synced both ways. OAuth2 is used for authentication." --changeType feat --acceptance "Connect Outlook button; OAuth2 consent flow; Events appear in both systems within 1 minute" --force
48
- - type: cli
49
- command: node ../dist/cli.js requirement:create --name "Google Calendar Sync" --type integration --priority high --description "Users can connect their Google account. Events are synced both ways. OAuth2 is used for authentication." --changeType feat --acceptance "Connect Google button; OAuth2 consent flow; Events appear in both systems within 1 minute" --force
50
- - type: cli
51
- command: node ../dist/cli.js requirement:create --name "Responsive UI" --type non-functional --priority high --description "The application must be fully usable on desktop, tablet, and mobile. All screens adapt to different resolutions." --changeType feat --acceptance "Layout adapts to screen size; Touch-friendly controls; No horizontal scroll on mobile" --force
52
- - type: cli
53
- command: node ../dist/cli.js requirement:create --name "Data Encryption at Rest" --type non-functional --priority high --description "All user and event data is encrypted in the database. Encryption keys are rotated every 90 days." --changeType feat --acceptance "All sensitive fields encrypted; Key rotation policy documented" --force
54
-
55
- # Artifacts review and prompt
56
- - type: cli
57
- command: node ../dist/cli.js wave:prompt
58
- - type: cli
59
- command: node ../dist/cli.js score
60
12
 
61
13
  # Essenciais
62
14
  - type: file
package/dist/src/cli.js CHANGED
@@ -133,7 +133,7 @@ if (process.argv.length <= 2) {
133
133
  // Sem argumentos: exibe versão e autoria
134
134
  // Versão e autoria vindos do package.json
135
135
  // (hardcoded para evitar import dinâmico em CLI)
136
- console.log('r2pde-ai v0.1.0');
136
+ console.log('r2pde-ai 2');
137
137
  console.log('Autor: r2 rodneyrinaldi');
138
138
  process.exit(0);
139
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "r2pde-ai",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Pilot Driven Engineering — A CLI framework that bridges the gap between architectural intent and AI-generated code.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
package/readme.txt CHANGED
@@ -19,3 +19,31 @@ iniciar um projeto
19
19
  - rodar o npm init
20
20
  - rodar o git init
21
21
  - rodar o r2pde-ai init
22
+
23
+
24
+
25
+ atualizar git
26
+ -------------
27
+ git add .
28
+ git commit -m ""
29
+ git push origin main
30
+
31
+
32
+
33
+ atualizar npm
34
+ -------------
35
+ npm version patch (aumentar versão no package.json)
36
+ npm run build
37
+ npm login (entrar 2fa)
38
+ npm publish ou npm publish --tag beta
39
+
40
+
41
+
42
+ testar
43
+ ------
44
+ node dist/src/cli.js --help
45
+
46
+
47
+
48
+
49
+
@@ -8,55 +8,7 @@ project:
8
8
  command: npm init -y
9
9
  comment: Inicializa o npm (cria package.json).
10
10
  - type: git-init
11
- - type: cli
12
- command: node ../dist/cli.js init
13
- answers:
14
- - Corporate Agenda
15
- - Dashboard
16
- - Monolith
17
- - Clean Code
18
- - Production
19
- - English
20
- - type: cli
21
- command: node ../dist/cli.js doctor
22
-
23
- # Manifests
24
- - type: cli
25
- command: node ../dist/cli.js manifest:create --name "UI Principles" --scope ui --description "All user interfaces must be intuitive, responsive, and accessible. Mobile-first design is mandatory. Consistent color palette and typography across all screens." --type feat --force
26
- - type: cli
27
- command: node ../dist/cli.js manifest:create --name "Security Philosophy" --scope security --description "User data privacy is a core value. All authentication and sensitive operations must use secure protocols. No passwords or tokens are ever logged." --type feat --force
28
- - type: cli
29
- command: node ../dist/cli.js manifest:create --name "Integration Policy" --scope integration --description "All third-party calendar integrations must use OAuth2, respect user consent, and provide clear opt-in/out. No data is shared without explicit permission." --type feat --force
30
-
31
- # Contracts
32
- - type: cli
33
- command: node ../dist/cli.js contract:create --name "API Security" --type security --enforcement mandatory --description "All API endpoints require JWT authentication. Tokens must be validated on every request. No endpoint exposes sensitive data without proper authorization." --changeType feat --force
34
- - type: cli
35
- command: node ../dist/cli.js contract:create --name "Calendar Sync Consistency" --type integration --enforcement mandatory --description "All events must be synced bidirectionally with Outlook and Google calendars. Conflicts are resolved using last-write-wins. Sync failures are logged and retried automatically." --changeType feat --force
36
- - type: cli
37
- command: node ../dist/cli.js contract:create --name "User Data Protection" --type security --enforcement mandatory --description "All user data is encrypted at rest and in transit. No sensitive data is stored in logs or analytics. Data retention policies comply with LGPD/GDPR." --changeType feat --force
38
11
 
39
- # Requirements
40
- - type: cli
41
- command: node ../dist/cli.js requirement:create --name "User Registration" --type functional --priority high --description "Allow new users to register with email, password, and full name. Email verification is required before first login." --changeType feat --acceptance "Registration form with email, password, full name; Email format and password strength validation; Verification email sent on registration; User cannot log in before verifying email" --force
42
- - type: cli
43
- command: node ../dist/cli.js requirement:create --name "User Login" --type functional --priority high --description "Registered users can log in using email and password. JWT is issued on successful login. Failed attempts are rate-limited." --changeType feat --acceptance "Login form with email and password; JWT issued on success; 5 failed attempts lock account for 10 minutes" --force
44
- - type: cli
45
- command: node ../dist/cli.js requirement:create --name "Calendar Event CRUD" --type functional --priority high --description "Users can create, read, update, and delete calendar events. Events have title, description, start/end time, location, and attendees." --changeType feat --acceptance "Event list and detail views; Create/edit/delete event forms; Validation for overlapping events" --force
46
- - type: cli
47
- command: node ../dist/cli.js requirement:create --name "Outlook Calendar Sync" --type integration --priority high --description "Users can connect their Outlook account. Events are synced both ways. OAuth2 is used for authentication." --changeType feat --acceptance "Connect Outlook button; OAuth2 consent flow; Events appear in both systems within 1 minute" --force
48
- - type: cli
49
- command: node ../dist/cli.js requirement:create --name "Google Calendar Sync" --type integration --priority high --description "Users can connect their Google account. Events are synced both ways. OAuth2 is used for authentication." --changeType feat --acceptance "Connect Google button; OAuth2 consent flow; Events appear in both systems within 1 minute" --force
50
- - type: cli
51
- command: node ../dist/cli.js requirement:create --name "Responsive UI" --type non-functional --priority high --description "The application must be fully usable on desktop, tablet, and mobile. All screens adapt to different resolutions." --changeType feat --acceptance "Layout adapts to screen size; Touch-friendly controls; No horizontal scroll on mobile" --force
52
- - type: cli
53
- command: node ../dist/cli.js requirement:create --name "Data Encryption at Rest" --type non-functional --priority high --description "All user and event data is encrypted in the database. Encryption keys are rotated every 90 days." --changeType feat --acceptance "All sensitive fields encrypted; Key rotation policy documented" --force
54
-
55
- # Artifacts review and prompt
56
- - type: cli
57
- command: node ../dist/cli.js wave:prompt
58
- - type: cli
59
- command: node ../dist/cli.js score
60
12
 
61
13
  # Essenciais
62
14
  - type: file