waitsec 0.4.0 → 0.4.2

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.2",
6
6
  "author": {
7
7
  "name": "fastroware"
8
8
  },
package/README.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # waitsec
2
2
 
3
3
  <p align="center">
4
- <a href="https://skills.sh/fastroware/waitsec"><img src="https://skills.sh/b/fastroware/waitsec" alt="skills.sh"></a>
5
- <a href="https://www.npmjs.com/package/waitsec"><img src="https://img.shields.io/npm/v/waitsec?color=crimson" alt="npm version"></a>
6
4
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-2ea44f" alt="License: MIT"></a>
5
+ <a href="https://github.com/fastroware/waitsec/releases"><img src="https://img.shields.io/github/v/release/fastroware/waitsec?label=version&color=1f6feb" alt="Version"></a>
6
+ <a href="https://www.npmjs.com/package/waitsec"><img src="https://img.shields.io/npm/v/waitsec?color=crimson" alt="npm version"></a>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://skills.sh/fastroware/waitsec"><img src="https://skills.sh/b/fastroware/waitsec" alt="skills.sh"></a>
7
11
  </p>
8
12
 
9
13
  > **Hold on. Think first. Code less.**
@@ -74,22 +78,26 @@ Add the marketplace and install:
74
78
  Copy [rules/waitsec.md](rules/waitsec.md) to `.cursorrules` in your project root, or add this repository as a plugin under `.cursor-plugin/`.
75
79
 
76
80
  ### 6. Laravel / PHP (Composer)
77
- Install into your project development dependencies:
81
+ Install into your development dependencies:
78
82
 
79
83
  ```bash
80
84
  composer require --dev waitsec/waitsec
81
85
  ```
82
86
 
83
- The post-install script automatically adds `.kilorules` to your root directory.
87
+ Then run the interactive setup command:
88
+
89
+ ```bash
90
+ vendor/bin/waitsec
91
+ ```
84
92
 
85
93
  ### 7. Agent Skills Directory (skills.sh)
86
- Install the full core bundle (recommended):
94
+ Listed on [skills.sh/fastroware/waitsec](https://skills.sh/fastroware/waitsec). Install via the universal skills CLI:
87
95
 
88
96
  ```bash
89
- npx skills add fastroware/waitsec/skills/waitsec-core
97
+ npx skills add fastroware/waitsec
90
98
  ```
91
99
 
92
- Or install only the module you need:
100
+ Or install specifically the core guardrails module:
93
101
 
94
102
  ```bash
95
103
  # 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.2",
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.2"
5
5
  }