@seoagent-official/seoagent 1.98.7 → 1.99.0
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/index.js +131 -130
- package/package.json +1 -1
- package/skills/references/recurring-runs.md +13 -3
- package/skills/skill.meta.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seoagent-official/seoagent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.99.0",
|
|
4
4
|
"description": "The persistent AI SEO agent for Claude Code. Audits, keyword strategy, briefs, articles, real product screenshots from your repo, and the autopilot loop (cloud detects → CLI executes → ack closes) — other SEO tools write the prompt, SEOAgent runs it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,17 @@ SEOAgent pays off only when a session actually happens on a cadence: the cloud d
|
|
|
10
10
|
4. `seoagent ack <id>` for every action you finished (`--failed --reason "..."` to decline).
|
|
11
11
|
5. `seoagent sync` once more, then `seoagent summary`.
|
|
12
12
|
|
|
13
|
-
Never skip step 1 because a login failed. An unbound CLI cannot sync. If `seoagent login --code` fails, stop and tell the user the exact error; they can mint a fresh code at seoagent.com/grok.
|
|
13
|
+
Never skip step 1 because a login failed. An unbound CLI cannot sync. If `seoagent login --code` fails, stop and tell the user the exact error; they can mint a fresh code at seoagent.com/grok. **Never guess, invent, or retype a setup code from memory** — a code is `sa_` + 24 random hex characters that only the server issues, it works exactly once, and a made-up one fails with `not recognized` every time.
|
|
14
|
+
|
|
15
|
+
## Cold machines: the schedule needs a credential, not a code
|
|
16
|
+
|
|
17
|
+
A scheduled run (Grok task, routine, CI job) starts on a fresh machine: no `~/.config/seoagent/auth.json`, and the setup code from first setup is already consumed. Give the task a credential instead:
|
|
18
|
+
|
|
19
|
+
1. On the machine that is bound (right after `seoagent init --code …` printed "Logged in as …"), run `seoagent whoami --env`. It prints one line: `SEOAGENT_AUTH=<user_token>:<website_token>`.
|
|
20
|
+
2. Store that line as the task's secret / environment variable. Treat it like a password: it is the account's CLI credential for this site.
|
|
21
|
+
3. Every scheduled run must start with `npm install -g @seoagent-official/seoagent` and export `SEOAGENT_AUTH` before the loop. With it set, the CLI is logged in — do **not** run `seoagent init --code` or `seoagent login --code` on a scheduled run, ever.
|
|
22
|
+
|
|
23
|
+
If the harness cannot store a secret, say so and fall back to "No scheduler available" below; do not schedule a task that will fail on login every morning.
|
|
14
24
|
|
|
15
25
|
## First setup: create ONE weekday task
|
|
16
26
|
|
|
@@ -18,8 +28,8 @@ If the harness supports scheduled or recurring tasks, create **one** task that r
|
|
|
18
28
|
|
|
19
29
|
How to schedule, by harness:
|
|
20
30
|
|
|
21
|
-
- **Grok bot** — create a scheduled task named `seoagent-daily` with the prompt: "
|
|
22
|
-
- **Claude Code** — if the harness offers routines or scheduled tasks (the `/schedule` command where available), create one with that prompt on a weekday-morning cron (`0 9 * * 1-5`). Otherwise fall back to the cron line below and tell the user.
|
|
31
|
+
- **Grok bot** — first run `seoagent whoami --env` and save its output as the task's secret. Then create a scheduled task named `seoagent-daily` with the prompt: "Install the CLI (`npm install -g @seoagent-official/seoagent`), export the SEOAGENT_AUTH secret, then in the repo that builds <domain>: run `seoagent sync`, triage `.seoagent/inbox/`, do the work, `seoagent ack <id>` each finished action, then `seoagent sync` and `seoagent summary`. Never run `seoagent init --code` or `seoagent login --code` here." Weekdays, 09:00 local.
|
|
32
|
+
- **Claude Code** — if the harness offers routines or scheduled tasks (the `/schedule` command where available), create one with that prompt on a weekday-morning cron (`0 9 * * 1-5`); when each firing starts from a fresh environment, give it the `SEOAGENT_AUTH` secret the same way. Otherwise fall back to the cron line below and tell the user.
|
|
23
33
|
- **Cursor / Codex / any shell** — a cron entry or CI schedule that runs `seoagent sync --silent` on weekday mornings keeps the inbox fresh, but it cannot do the work; ask the user to open the agent in the repo each weekday, or to wire a scheduled agent run if their harness has one:
|
|
24
34
|
|
|
25
35
|
```
|
package/skills/skill.meta.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"min_cli": "1.
|
|
2
|
+
"min_cli": "1.99.0",
|
|
3
3
|
"_comment": "Lowest CLI version that can safely run the skill in this directory. The cloud skill channel refuses to install a skill newer than the user's CLI can support, so an old CLI keeps its bundled skill instead of being told to run a command it does not have. Bump this ONLY when the skill starts depending on a command or flag that a newer CLI introduced."
|
|
4
4
|
}
|