policies: add standard policy files, linting, formatting

- Add .editorconfig, .eslintrc.json, .prettierrc, .prettierignore, .dockerignore, .gitignore
- Add Makefile with lint, fmt, fmt-check, secret-scan, test (skip) targets
- Add package.json with eslint@^8.56.0, eslint-plugin-security, prettier
- Add tools/secret-scan.sh
- Fix unused variable (fs -> _fs)
- Auto-format with prettier
- make check passes clean (0 errors, 11 warnings)
This commit is contained in:
sol
2026-03-01 07:26:28 +00:00
parent a0acc38fa6
commit c0dea6c12a
13 changed files with 1525 additions and 74 deletions

View File

@@ -6,15 +6,20 @@ It allows you to create a "Live Log" post that you update in-place, reducing cha
## Usage
### 1. Initialize (Start of Task)
Create a new status post. It will print the `POST_ID`.
**Required:** Pass the `CHANNEL_ID` if known (otherwise it defaults to system channel).
```bash
live-status create <CHANNEL_ID> "🚀 **Task Started:** Initializing..."
```
**Output:** `p6...` (The Post ID)
### 2. Update (During Task)
Update the post with new log lines. Use a code block for logs.
```bash
live-status update <POST_ID> "🚀 **Task Started:** Initializing...
\`\`\`
@@ -24,7 +29,9 @@ live-status update <POST_ID> "🚀 **Task Started:** Initializing...
```
### 3. Complete (End of Task)
Mark as done.
```bash
live-status update <POST_ID> "✅ **Task Complete.**
\`\`\`
@@ -35,6 +42,7 @@ live-status update <POST_ID> "✅ **Task Complete.**
```
## Protocol
- **Always** capture the `POST_ID` from the `create` command.
- **Always** append to the previous log (maintain history).
- **Use Code Blocks** for technical logs.