waitsec 0.4.0 → 0.4.1

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.
@@ -2,7 +2,7 @@
2
2
  "name": "waitsec",
3
3
  "displayName": "waitsec",
4
4
  "description": "Practical guardrails for AI coding agents. Hold on, think first, code less.",
5
- "version": "0.4.0",
5
+ "version": "0.4.1",
6
6
  "author": {
7
7
  "name": "fastroware"
8
8
  },
package/README.md CHANGED
@@ -74,22 +74,26 @@ Add the marketplace and install:
74
74
  Copy [rules/waitsec.md](rules/waitsec.md) to `.cursorrules` in your project root, or add this repository as a plugin under `.cursor-plugin/`.
75
75
 
76
76
  ### 6. Laravel / PHP (Composer)
77
- Install into your project development dependencies:
77
+ Install into your development dependencies:
78
78
 
79
79
  ```bash
80
80
  composer require --dev waitsec/waitsec
81
81
  ```
82
82
 
83
- The post-install script automatically adds `.kilorules` to your root directory.
83
+ Then run the interactive setup command:
84
+
85
+ ```bash
86
+ vendor/bin/waitsec
87
+ ```
84
88
 
85
89
  ### 7. Agent Skills Directory (skills.sh)
86
- Install the full core bundle (recommended):
90
+ Listed on [skills.sh/fastroware/waitsec](https://skills.sh/fastroware/waitsec). Install via the universal skills CLI:
87
91
 
88
92
  ```bash
89
- npx skills add fastroware/waitsec/skills/waitsec-core
93
+ npx skills add fastroware/waitsec
90
94
  ```
91
95
 
92
- Or install only the module you need:
96
+ Or install specifically the core guardrails module:
93
97
 
94
98
  ```bash
95
99
  # Individual guardrails
package/bin/waitsec ADDED
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env php
2
+ <?php
3
+
4
+ $rootDir = dirname(__DIR__);
5
+ $rulesFile = $rootDir . '/rules/waitsec.md';
6
+ $cwd = getcwd();
7
+
8
+ echo "\n=========================================\n";
9
+ echo " waitsec: AI Coding Guardrails (PHP)\n";
10
+ echo " \"Hold on. Think first. Code less.\"\n";
11
+ echo "=========================================\n\n";
12
+
13
+ if (!file_exists($rulesFile)) {
14
+ fwrite(STDERR, "Error: rules/waitsec.md not found at {$rulesFile}\n");
15
+ exit(1);
16
+ }
17
+
18
+ $rules = file_get_contents($rulesFile);
19
+
20
+ echo "Select your editor / agent rule target:\n";
21
+ echo " 1) Kilo Code (.kilorules)\n";
22
+ echo " 2) Cline (.clinerules)\n";
23
+ echo " 3) Cursor (.cursorrules)\n";
24
+ echo " 4) Antigravity / Claude (AGENTS.md)\n";
25
+ echo " 5) All of the above\n\n";
26
+
27
+ echo "Choice [1-5] (default: 1): ";
28
+ $choice = trim(fgets(STDIN) ?: '1');
29
+ if ($choice === '') $choice = '1';
30
+
31
+ $targets = match ($choice) {
32
+ '2' => ['.clinerules'],
33
+ '3' => ['.cursorrules'],
34
+ '4' => ['AGENTS.md'],
35
+ '5' => ['.kilorules', '.clinerules', '.cursorrules', 'AGENTS.md'],
36
+ default => ['.kilorules'],
37
+ };
38
+
39
+ foreach ($targets as $file) {
40
+ $dest = $cwd . '/' . $file;
41
+ if (file_exists($dest)) {
42
+ echo " [!] {$file} already exists - appending rules...\n";
43
+ file_put_contents($dest, "\n\n" . $rules, FILE_APPEND);
44
+ } else {
45
+ file_put_contents($dest, $rules);
46
+ echo " [+] Created {$file}\n";
47
+ }
48
+ }
49
+
50
+ echo "\nDone! waitsec rules are active in this project.\n\n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waitsec",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Practical guardrails for AI coding agents. Hold on, think first, code less.",
5
5
  "main": "rules/waitsec.md",
6
6
  "bin": {
package/plugin.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "waitsec",
3
3
  "description": "Practical guardrails for AI coding agents. Hold on, think first, code less.",
4
- "version": "0.4.0"
4
+ "version": "0.4.1"
5
5
  }