@aopslabs/aops 0.3.30 → 0.3.32
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/README.md +11 -3
- package/aops-assets-release/aops-assets.json.gz +0 -0
- package/aops-assets-release/disciplines/build-review-chat/SKILL.md +33 -0
- package/aops-assets-release/disciplines/coordinator-loop/SKILL.md +33 -0
- package/aops-assets-release/disciplines/design-first-consensus/SKILL.md +30 -0
- package/aops-assets-release/disciplines/solo-pm-loop/SKILL.md +31 -0
- package/aops-assets-release/docs/user-guides/agentspace-user-guide.md +384 -0
- package/aops-assets-release/docs/user-guides/aops-cli-user-guide.md +2067 -0
- package/aops-assets-release/docs/user-guides/chatv3-user-guide.md +500 -0
- package/aops-assets-release/docs/user-guides/docman-user-guide.md +1009 -0
- package/aops-assets-release/docs/user-guides/projectman-user-guide.md +763 -0
- package/aops-assets-release/docs/user-guides/tasker-user-guide.md +244 -0
- package/aops-assets-release/release.json +6 -0
- package/aops-assets-release/roles/coordinator/ROLE.md +28 -0
- package/aops-assets-release/roles/implementer/ROLE.md +27 -0
- package/aops-assets-release/roles/reviewer/ROLE.md +27 -0
- package/aops-assets-release/skills/aops/SKILL.md +112 -0
- package/aops-assets-release/skills/aops-bootstrapper-authoring/SKILL.md +245 -0
- package/aops-assets-release/skills/aops-cli-agentspace/SKILL.md +186 -0
- package/aops-assets-release/skills/aops-cli-board-lifecycle/SKILL.md +64 -0
- package/aops-assets-release/skills/aops-cli-chat/SKILL.md +204 -0
- package/aops-assets-release/skills/aops-cli-collab/SKILL.md +42 -0
- package/aops-assets-release/skills/aops-cli-core/SKILL.md +219 -0
- package/aops-assets-release/skills/aops-cli-discuss/SKILL.md +172 -0
- package/aops-assets-release/skills/aops-cli-docman/SKILL.md +192 -0
- package/aops-assets-release/skills/aops-cli-fileman/SKILL.md +169 -0
- package/aops-assets-release/skills/aops-cli-mission/SKILL.md +128 -0
- package/aops-assets-release/skills/aops-cli-operator-brief/SKILL.md +67 -0
- package/aops-assets-release/skills/aops-cli-projectman/SKILL.md +235 -0
- package/aops-assets-release/skills/aops-cli-sugar-authoring/SKILL.md +188 -0
- package/aops-assets-release/skills/aops-cli-tasker/SKILL.md +108 -0
- package/aops-assets-release/skills/aops-cli-tooling-agent/SKILL.md +112 -0
- package/aops-assets-release/skills/aops-cli-view/SKILL.md +210 -0
- package/aops-assets-release/skills/aops-collaborative-work/SKILL.md +304 -0
- package/aops-assets-release/skills/aops-interactive/SKILL.md +70 -0
- package/aops-assets-release/skills/aops-loop-interactive/SKILL.md +314 -0
- package/aops-assets-release/skills/aops-working-disciplines/SKILL.md +310 -0
- package/aops-assets-release/skills/feature-retirement-flow/SKILL.md +126 -0
- package/assets/skills/aops-install/SKILL.md +18 -17
- package/dist/commands/assets.js +93 -1264
- package/dist/commands/community-server.js +27 -8
- package/dist/commands/community-setup.js +1 -2
- package/dist/commands/discuss.js +1 -1
- package/dist/commands/doc.js +88 -27
- package/dist/commands/docs.js +68 -0
- package/dist/commands/global-update.js +28 -0
- package/dist/commands/init.js +3 -1
- package/dist/commands/loop.js +6379 -0
- package/dist/commands/memory.js +2 -1
- package/dist/commands/pm/index.js +11 -9
- package/dist/commands/pm/projectman.js +33 -2
- package/dist/commands/project.js +6 -6
- package/dist/commands/prompt.js +1 -1
- package/dist/commands/repo-sync.js +92 -27
- package/dist/commands/runner.js +257 -0
- package/dist/commands/skill.js +1 -1
- package/dist/commands/start.js +1 -1
- package/dist/commands/tasker.js +361 -0
- package/dist/commands/view.js +53 -9
- package/dist/lib/commercial-setup-readiness-adapter.js +0 -1
- package/dist/lib/community-migration-snapshot.js +7 -9
- package/dist/lib/community-native-database-recovery.js +5 -14
- package/dist/lib/community-native-lifecycle.js +13 -0
- package/dist/lib/setup-agent-assets-bridge.js +28 -148
- package/dist/lib/setup-agent-assets-release.js +16 -44
- package/dist/lib/setup-init-orchestrator.js +11 -15
- package/dist/lib/simple-agent-assets.js +447 -0
- package/dist/lib/user-guide-sections.js +488 -0
- package/dist/main.js +10 -2
- package/dist/seeds/agents-md.js +3 -3
- package/dist/utils/agents-md.js +1 -1
- package/dist/utils/guide-paths.js +7 -7
- package/dist/utils/hosted-workspace.js +2 -1
- package/dist/utils/repo-first-storage.js +26 -1
- package/dist/utils/session-state.js +2 -7
- package/launchers/aops-cockpit.sh +0 -0
- package/launchers/aops-server.sh +0 -0
- package/package.json +67 -35
- package/THIRD_PARTY_NOTICES +0 -16169
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/SKILL.md +0 -47
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/agentspace/SKILL.md +0 -72
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/aops-cli-core/SKILL.md +0 -110
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/chatv3/SKILL.md +0 -59
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/collaborative-work/SKILL.md +0 -81
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/discuss/SKILL.md +0 -66
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/docman/SKILL.md +0 -75
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/projectman/SKILL.md +0 -92
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/sys/SKILL.md +0 -36
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/view/SKILL.md +0 -58
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/working-disciplines/SKILL.md +0 -66
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/agent-assets.md +0 -81
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/agentspace.md +0 -183
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/aops-cli.md +0 -1108
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/aops-system.md +0 -102
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/chatv3.md +0 -113
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/docman.md +0 -223
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/projectman.md +0 -233
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/sys.md +0 -94
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/working-disciplines.md +0 -482
- package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/manifest.json +0 -117
- package/agent-assets-release/agent-assets/gateway/aops/SKILL.md +0 -14
- package/agent-assets-release/agent-assets/inventory.json +0 -29
- package/agent-assets-release/agent-assets/projection.json +0 -8
- package/agent-assets-release/agent-assets-release.json +0 -171
- package/agent-assets-release/agent-assets-release.sigstore.json +0 -67
- package/assets/agent-assets/core/SKILL.md +0 -47
- package/assets/agent-assets/core/references/agentspace/SKILL.md +0 -72
- package/assets/agent-assets/core/references/aops-cli-core/SKILL.md +0 -110
- package/assets/agent-assets/core/references/chatv3/SKILL.md +0 -59
- package/assets/agent-assets/core/references/collaborative-work/SKILL.md +0 -81
- package/assets/agent-assets/core/references/discuss/SKILL.md +0 -66
- package/assets/agent-assets/core/references/docman/SKILL.md +0 -75
- package/assets/agent-assets/core/references/projectman/SKILL.md +0 -92
- package/assets/agent-assets/core/references/sys/SKILL.md +0 -36
- package/assets/agent-assets/core/references/view/SKILL.md +0 -58
- package/assets/agent-assets/core/references/working-disciplines/SKILL.md +0 -66
- package/assets/agent-assets/core/user-guides/agent-assets.md +0 -81
- package/assets/agent-assets/core/user-guides/agentspace.md +0 -183
- package/assets/agent-assets/core/user-guides/aops-cli.md +0 -1108
- package/assets/agent-assets/core/user-guides/aops-system.md +0 -102
- package/assets/agent-assets/core/user-guides/chatv3.md +0 -113
- package/assets/agent-assets/core/user-guides/docman.md +0 -223
- package/assets/agent-assets/core/user-guides/projectman.md +0 -233
- package/assets/agent-assets/core/user-guides/sys.md +0 -94
- package/assets/agent-assets/core/user-guides/working-disciplines.md +0 -482
- package/assets/agent-assets/gateway/aops/SKILL.md +0 -14
- package/dist/lib/agent-assets/gateway.js +0 -15
- package/dist/lib/agent-assets/guards.js +0 -23
- package/dist/lib/agent-assets/hosted-discovery.js +0 -148
- package/dist/lib/agent-assets/hosted-package-input.js +0 -154
- package/dist/lib/agent-assets/legacy-pointer-migration.js +0 -677
- package/dist/lib/agent-assets/native-fs.js +0 -589
- package/dist/lib/agent-assets/roots.js +0 -45
- package/dist/lib/agent-assets/runtime-binding-reader.js +0 -545
- package/dist/lib/agent-assets/runtime-targets.js +0 -50
- package/dist/lib/agent-assets/store-reader.js +0 -1212
- package/dist/lib/agent-assets/store-writer.js +0 -1484
- package/native/bin/darwin-arm64/aops-agent-assets-fs +0 -0
- package/native/bin/darwin-x64/aops-agent-assets-fs +0 -0
- package/native/bin/linux-arm64/aops-agent-assets-fs +0 -0
- package/native/bin/linux-x64/aops-agent-assets-fs +0 -0
- package/native/bin/win32-x64/aops-agent-assets-fs.exe +0 -0
- package/native/manifest.json +0 -49
- package/native/qualifications/win32-x64.json +0 -23
- package/native/tui/darwin-arm64/aops-tui +0 -0
- package/native/tui/linux-x64/aops-tui +0 -0
- package/native/tui/win32-x64/aops-tui.exe +0 -0
|
@@ -1,1108 +0,0 @@
|
|
|
1
|
-
<!-- Public packaged snapshot from canonical slug:aops CLI guidance. Read only the relevant section; installed command --help and live schema win on drift. -->
|
|
2
|
-
|
|
3
|
-
# AOPS CLI User Guide
|
|
4
|
-
|
|
5
|
-
## 1 Temel model
|
|
6
|
-
|
|
7
|
-
### 1.1 Overview
|
|
8
|
-
|
|
9
|
-
## 2 En kisa kurulum akisi
|
|
10
|
-
|
|
11
|
-
### 2.1 TUI-guided npm installation
|
|
12
|
-
|
|
13
|
-
#### 2.1.1 Overview
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
aops
|
|
17
|
-
aops server status --json
|
|
18
|
-
aops host health
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
`setup init` can connect to an existing local/remote PostgreSQL, provision an
|
|
22
|
-
AOPS-owned PostgreSQL container, create a dedicated AOPS role/database in a
|
|
23
|
-
supported local PostgreSQL, or configure this CLI for an existing AOPS Server
|
|
24
|
-
through path `4`. Local-server paths verify migrations and start the npm
|
|
25
|
-
server. Path `4` does not install or operate local PostgreSQL or server
|
|
26
|
-
processes. Use the Rust TUI private fields for operator-led setup, or documented
|
|
27
|
-
private environment/configuration inputs for direct CLI automation.
|
|
28
|
-
|
|
29
|
-
Parameterless `aops` opens the bundled Rust TUI without changing either
|
|
30
|
-
service. Argument-bearing invocations retain the existing CLI behavior. AOPS
|
|
31
|
-
Server and Cockpit have separate start, stop, restart, status, health, and log
|
|
32
|
-
commands.
|
|
33
|
-
|
|
34
|
-
For visible foreground server logs, run `launchers/aops-server.sh` from the
|
|
35
|
-
installed CLI package on macOS/Linux or `launchers/aops-server.ps1` on Windows.
|
|
36
|
-
The script directly invokes the package-relative Node launcher; Ctrl+C or
|
|
37
|
-
closing that terminal stops the foreground server. The matching
|
|
38
|
-
`aops-cockpit.sh`/`.ps1` starts only Cockpit in its normal independent
|
|
39
|
-
background mode. These scripts accept `--instance` and `--data-root`, not
|
|
40
|
-
database credentials.
|
|
41
|
-
|
|
42
|
-
### 2.2 Browser-approved auth
|
|
43
|
-
|
|
44
|
-
#### 2.2.1 Overview
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
aops setup init
|
|
48
|
-
aops setup first-admin --target <target-name>
|
|
49
|
-
aops auth login --target <target-name>
|
|
50
|
-
aops auth status --target <target-name>
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### 2.3 Guarded global npm update
|
|
54
|
-
|
|
55
|
-
Use the TUI Update page for Check, Prepare, and confirmed Apply. For headless
|
|
56
|
-
operation:
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
aops update check --json
|
|
60
|
-
aops update prepare --json
|
|
61
|
-
aops update apply --plan <update-plan.json> --confirm <sha256-plan-id> --json
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
For the one-time transition from a CLI released before candidate-owned update
|
|
65
|
-
execution, prepare with the installed CLI and apply through the exact external
|
|
66
|
-
target package instead:
|
|
67
|
-
|
|
68
|
-
```text
|
|
69
|
-
# macOS/Linux (`NUL` replaces `/dev/null` on Windows)
|
|
70
|
-
npm exec --yes --registry=https://registry.npmjs.org --userconfig=/dev/null --package=@aopslabs/aops@<exact-target> -- aops update bridge --plan <update-plan.json> --confirm <sha256-plan-id> --json
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
`update bridge` refuses to run from the installed old CLI and requires its own
|
|
74
|
-
package version to equal the immutable plan target. Future transitions use the
|
|
75
|
-
normal candidate-owned `update apply` path.
|
|
76
|
-
|
|
77
|
-
Prepare is non-mutating and retains exact candidate and rollback tarballs.
|
|
78
|
-
Apply stops Cockpit before Server, installs the public closure as one global
|
|
79
|
-
CLI with its exact nested Server, repeatedly checks loopback health, and
|
|
80
|
-
automatically restores the prior exact closure on failure. It does not publish
|
|
81
|
-
packages or create source-control releases.
|
|
82
|
-
|
|
83
|
-
## 3 `init`
|
|
84
|
-
|
|
85
|
-
### 3.1 Overview
|
|
86
|
-
|
|
87
|
-
The default local-server contract is `trusted-local` on
|
|
88
|
-
`127.0.0.1:5900`. It never trusts a LAN or Tailscale interface. AOPS Server on
|
|
89
|
-
`5900` and Cockpit on `5922` are separate services; neither redirects to the
|
|
90
|
-
other.
|
|
91
|
-
|
|
92
|
-
Use setup path `4` for an existing server. A scripted flow first previews the
|
|
93
|
-
exact endpoint, then applies the named target:
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
aops setup init --path 4 \
|
|
97
|
-
--api-base-url https://aops.example.com \
|
|
98
|
-
--target-name remote \
|
|
99
|
-
--target-auth-provider authv2-jwt-session \
|
|
100
|
-
--target-tls-policy system-ca \
|
|
101
|
-
--yes --json
|
|
102
|
-
|
|
103
|
-
aops setup init --path 4 \
|
|
104
|
-
--api-base-url https://aops.example.com \
|
|
105
|
-
--target-name remote \
|
|
106
|
-
--target-auth-provider authv2-jwt-session \
|
|
107
|
-
--target-tls-policy system-ca \
|
|
108
|
-
--apply --yes --json
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
A non-loopback server is an explicit `authenticated-network` +
|
|
112
|
-
`authv2-jwt-session` deployment. External targets normally require HTTPS and
|
|
113
|
-
the operating system CA store. The only plain-HTTP exception is a literal
|
|
114
|
-
Tailscale IP in `100.64.0.0/10` or `fd7a:115c:a1e0::/48`, paired with
|
|
115
|
-
`authv2-jwt-session` and `tailscale-http`. MagicDNS hostnames and ordinary LAN
|
|
116
|
-
IPs do not qualify.
|
|
117
|
-
|
|
118
|
-
For explicit add/check/select control:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
aops target add --name remote --api-base-url https://aops.example.com \
|
|
122
|
-
--auth-provider authv2-jwt-session --tls-policy system-ca --apply
|
|
123
|
-
aops target doctor remote --json
|
|
124
|
-
aops target use remote --apply
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
## 4 `setup server-env`
|
|
128
|
-
|
|
129
|
-
### 4.1 Overview
|
|
130
|
-
|
|
131
|
-
`aops setup server-env` owns the private PostgreSQL connection used by local
|
|
132
|
-
server paths. The TUI may pass the URL through a private child-process
|
|
133
|
-
environment. Direct CLI automation must use `AOPS_PG_URL` or an existing
|
|
134
|
-
owner-only environment file; never put a PostgreSQL URL or password in argv,
|
|
135
|
-
chat, or committed files.
|
|
136
|
-
|
|
137
|
-
The default provider is `trusted-local`. Before an explicit non-loopback host,
|
|
138
|
-
generate the complete AuthV2 runtime closure in the same owner-only file:
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
AOPS_PG_URL='<private-url>' aops setup server-env \
|
|
142
|
-
--auth authv2-jwt-session --yes --json
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
The command prints only a secret-free summary. It preserves an existing
|
|
146
|
-
provider and secrets when rerun without `--auth`.
|
|
147
|
-
|
|
148
|
-
## 5 `setup first-admin`
|
|
149
|
-
|
|
150
|
-
### 5.1 Overview
|
|
151
|
-
|
|
152
|
-
Use `aops setup first-admin --target <target-name>` only while AuthV2 reports
|
|
153
|
-
that no first admin exists. The TUI owns operator input. Direct CLI automation
|
|
154
|
-
may use `AOPS_AUTH_EMAIL`, `AOPS_AUTH_PASSWORD`, and `AOPS_ADMIN_KEY` in its
|
|
155
|
-
private process environment. Secret command arguments are refused.
|
|
156
|
-
|
|
157
|
-
## 6 User yonetimi
|
|
158
|
-
|
|
159
|
-
### 6.1 Overview
|
|
160
|
-
|
|
161
|
-
First-admin is a one-time bootstrap, not a general user-management bypass.
|
|
162
|
-
After bootstrap, authenticate normally and use the AuthV2-authorized admin
|
|
163
|
-
surface exposed by the installed server. Check the live CLI help and agent-tool
|
|
164
|
-
schema before mutations.
|
|
165
|
-
|
|
166
|
-
## 7 Login ve tokenlar
|
|
167
|
-
|
|
168
|
-
### 7.1 Overview
|
|
169
|
-
|
|
170
|
-
```bash
|
|
171
|
-
aops auth login --target remote
|
|
172
|
-
aops auth status --target remote --json
|
|
173
|
-
aops auth logout --target remote
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Login stores encrypted credentials bound to the selected target endpoint.
|
|
177
|
-
Normal logout revokes the remote session before clearing the local copy. If the
|
|
178
|
-
server is unavailable and the explicit intent is local cleanup, use
|
|
179
|
-
`aops auth logout --target remote --local-only`. Passwords and tokens belong
|
|
180
|
-
only in TUI private fields, secure stores, browser-approved flows, or documented
|
|
181
|
-
private environment variables, never argv.
|
|
182
|
-
|
|
183
|
-
## 8 Diagnostik
|
|
184
|
-
|
|
185
|
-
### 8.1 Overview
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
aops target show remote --json
|
|
189
|
-
aops target doctor remote --json
|
|
190
|
-
aops auth status --target remote --json
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
`target doctor` does not mutate the remote endpoint or rotate session tokens.
|
|
194
|
-
Its JSON reports `networkMutationFree: true`; loading an older local target
|
|
195
|
-
configuration may still apply the CLI's safe credential-format migration, so
|
|
196
|
-
the overall `mutationFree` field is false. `auth status` additionally verifies
|
|
197
|
-
the current authenticated principal. Always diagnose the same named target
|
|
198
|
-
that setup checked; an unrelated active target is not proof that the requested
|
|
199
|
-
endpoint is ready.
|
|
200
|
-
|
|
201
|
-
## 9 Owner modeli ve domain secimi
|
|
202
|
-
|
|
203
|
-
### 9.1 Overview
|
|
204
|
-
|
|
205
|
-
## 10 Projectman sugar komutlari
|
|
206
|
-
|
|
207
|
-
### 10.1 Overview
|
|
208
|
-
|
|
209
|
-
## 12 `.aops` local cache & sync
|
|
210
|
-
|
|
211
|
-
### 12.1 Overview
|
|
212
|
-
|
|
213
|
-
#### 12.1.1 Project registry, `authoringMode`, and `localRoot`
|
|
214
|
-
|
|
215
|
-
Multi-project repos use `.aops/aops.config.json` as a project registry. The
|
|
216
|
-
hosted server is the source of truth for project identity and for all
|
|
217
|
-
Projectman/Agentspace records; the repo registry only records which local
|
|
218
|
-
directory mirrors a hosted project as a read-only cache:
|
|
219
|
-
|
|
220
|
-
```bash
|
|
221
|
-
aops project link --slug aops --mode local --local-root .aops/projects/aops --apply --json
|
|
222
|
-
aops project link --slug demo --mode hosted-only --apply --json
|
|
223
|
-
aops project links list --json
|
|
224
|
-
aops project migrate-local-root --project-slug aops --local-root .aops/projects/aops --dry-run --json
|
|
225
|
-
aops project migrate-local-root --project-slug aops --local-root .aops/projects/aops --apply --confirm --json
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
Contract:
|
|
229
|
-
|
|
230
|
-
1. `project link/links` manages only the repo project registry after verifying
|
|
231
|
-
the hosted project exists and is not archived/deleted.
|
|
232
|
-
2. `authoringMode: local` means a local cache directory is materialized under
|
|
233
|
-
`localRoot` (normally `.aops/projects/<slug>`). Create/write/read still go to
|
|
234
|
-
the hosted server; `localRoot` is a read-only mirror refreshed by
|
|
235
|
-
`aops sync pull` (and `aops doc mirror pull` for docs), not a
|
|
236
|
-
repo-first source tree.
|
|
237
|
-
3. `authoringMode: hosted-only` means no local cache directory is materialized.
|
|
238
|
-
Reads and writes both use the hosted gateway directly.
|
|
239
|
-
4. `migrate-local-root` is repo-local cache relocation. Always run `--dry-run`;
|
|
240
|
-
the real move requires `--apply --confirm` because old flat roots are
|
|
241
|
-
archived.
|
|
242
|
-
5. hosted-only-vs-local is only a cache-presence decision: local mode keeps a
|
|
243
|
-
refreshable read-only mirror on disk, hosted-only mode reads straight from
|
|
244
|
-
the server. Neither makes the repo the source of truth.
|
|
245
|
-
|
|
246
|
-
#### 12.1.2 Partitioned sync
|
|
247
|
-
|
|
248
|
-
Project-partitioned `sync pull` refreshes the local cache using the same
|
|
249
|
-
project registry selector contract. There is no `sync push`: the hosted server
|
|
250
|
-
is canonical, so the cache is only ever pulled, never pushed back.
|
|
251
|
-
|
|
252
|
-
```bash
|
|
253
|
-
aops sync status --project-slug aops --json
|
|
254
|
-
aops sync pull --project-slug aops --apply --json
|
|
255
|
-
aops sync status --all-projects --json
|
|
256
|
-
aops sync pull --all-projects --apply --json
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
Rules:
|
|
260
|
-
|
|
261
|
-
1. `sync --project-slug/--all-projects` refreshes the read-only cache of hosted
|
|
262
|
-
Projectman and Agentspace records. It is separate from
|
|
263
|
-
`--hosted-project-slug`, which refreshes the read-only hosted prompt/skill
|
|
264
|
-
mirrors.
|
|
265
|
-
2. `--project-slug` resolves the linked project, then refreshes that project's
|
|
266
|
-
`localRoot` cache when `authoringMode` is `local`.
|
|
267
|
-
3. `--all-projects` runs once per repo-config local project and reports
|
|
268
|
-
project-level results without fail-fast. Hosted-only links have no cache to
|
|
269
|
-
refresh on this path; local links without a usable `localRoot` are
|
|
270
|
-
reported/skipped rather than treated as another project's cache.
|
|
271
|
-
4. Because the server is canonical, conflict/drift resolution is not part of the
|
|
272
|
-
pull: a refresh simply overwrites the local cache with current server state.
|
|
273
|
-
|
|
274
|
-
#### 12.1.3 Archive lifecycle
|
|
275
|
-
|
|
276
|
-
`aops archive` prepares hosted Projectman graph cleanup from a local bundle.
|
|
277
|
-
It is deliberately a CLI composition over existing hosted Projectman surfaces,
|
|
278
|
-
not a new hosted archive domain.
|
|
279
|
-
|
|
280
|
-
```bash
|
|
281
|
-
aops archive create --project-slug aops --apply --json
|
|
282
|
-
aops archive verify --manifest .aops/archive/aops/<ts>/manifest.json --apply --json
|
|
283
|
-
aops archive delete --manifest .aops/archive/aops/<ts>/manifest.json --json
|
|
284
|
-
aops archive delete --manifest .aops/archive/aops/<ts>/manifest.json --apply --confirm --json
|
|
285
|
-
aops archive decommission-check --manifest .aops/archive/aops/<ts>/manifest.json --json
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
Rules:
|
|
289
|
-
|
|
290
|
-
1. `archive create` downloads the hosted PM graph into
|
|
291
|
-
`.aops/archive/<slug>/<timestamp>` and records `pendingDomains`; it does not
|
|
292
|
-
delete anything.
|
|
293
|
-
2. `archive verify --apply` re-fetches hosted PM data, compares counts and
|
|
294
|
-
checksums, then persists `verification.status: passed` into the manifest.
|
|
295
|
-
3. `archive delete` without `--apply` is a preview. Destructive delete requires
|
|
296
|
-
a verified manifest plus `--apply --confirm`.
|
|
297
|
-
4. Delete order is children-before-parents so review requests, feedback,
|
|
298
|
-
issues, microtasks, sprints, tasks, columns, and boards are removed in a
|
|
299
|
-
dependency-safe sequence. The manifest records per-action deletion state for
|
|
300
|
-
resumability.
|
|
301
|
-
5. `archive decommission-check` permits full project/scope decommission only
|
|
302
|
-
when the manifest is verification-passed, `decommissionSafe` is true, and
|
|
303
|
-
`pendingDomains` is empty. Current bundles can still list Agentspace memory,
|
|
304
|
-
discussions, chat, and hosted prompt/skill/resource/artifact domains as
|
|
305
|
-
pending until those owners have their own archive coverage.
|
|
306
|
-
|
|
307
|
-
#### 12.1.4 Agent-tool catalog verification
|
|
308
|
-
|
|
309
|
-
No new hosted `archive.*` tool is expected for this slice. The CLI verifies or
|
|
310
|
-
composes existing hosted surfaces:
|
|
311
|
-
|
|
312
|
-
1. `project link` verifies hosted projects through existing
|
|
313
|
-
`agentspace.project.*` tools, then writes the repo registry.
|
|
314
|
-
2. hosted-only PM direct commands use existing `projectman.*` tools.
|
|
315
|
-
3. archive cleanup composes existing Projectman read/delete tools and records a
|
|
316
|
-
local manifest.
|
|
317
|
-
|
|
318
|
-
Spot-check the catalog before writing raw hosted payloads:
|
|
319
|
-
|
|
320
|
-
```bash
|
|
321
|
-
aops agent tools --domain agentspace --q project --summary --json
|
|
322
|
-
aops agent tools --domain projectman --q delete --summary --json
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
### 12.2 AOPS markdown view sugar
|
|
326
|
-
|
|
327
|
-
#### 12.2.1 Overview
|
|
328
|
-
|
|
329
|
-
`view` komut ailesi read-only presentation layer'dir. Varsayilan komutlar
|
|
330
|
-
read-only local cache `.aops/**` dosyalarini okur (canonical truth hosted
|
|
331
|
-
server'dadir; cache `sync pull` ile tazelenir). Explicit hosted komutlar
|
|
332
|
-
(`hosted-projects`, `hosted-inventory`) hosted list API'larini sadece okuma
|
|
333
|
-
amaciyla cagirir; sync yapmaz, cache/index yazmaz ve domain mutation
|
|
334
|
-
calistirmaz. Varsayilan cikti agent/TUI uyumlu Markdown'dir; `--json` ayni
|
|
335
|
-
read-model'i stabil envelope olarak dondurur.
|
|
336
|
-
|
|
337
|
-
Komut seti:
|
|
338
|
-
|
|
339
|
-
```bash
|
|
340
|
-
aops view dashboard --style agent
|
|
341
|
-
aops view projects
|
|
342
|
-
aops view hosted-projects --style compact
|
|
343
|
-
aops view hosted-inventory --hosted-project aops --style compact
|
|
344
|
-
aops view boards
|
|
345
|
-
aops view board <selector>
|
|
346
|
-
aops view tasks
|
|
347
|
-
aops view task <selector>
|
|
348
|
-
aops view sprints
|
|
349
|
-
aops view sprint <selector> --max-items 20
|
|
350
|
-
aops view issues
|
|
351
|
-
aops view feedback
|
|
352
|
-
aops view memory
|
|
353
|
-
aops view resume
|
|
354
|
-
aops view discussions
|
|
355
|
-
aops view discussion <selector>
|
|
356
|
-
aops view experience
|
|
357
|
-
aops view skills
|
|
358
|
-
aops view prompts
|
|
359
|
-
aops view docs
|
|
360
|
-
aops view doc <selector>
|
|
361
|
-
aops view doc-page <doc-selector>#<heading-selector>
|
|
362
|
-
aops view digest --task <selector> --depth deep --max-bytes 32768
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
Selector cozumu (`<selector>` argumanini bekleyen tum komutlar):
|
|
366
|
-
|
|
367
|
-
```bash
|
|
368
|
-
# full UUID
|
|
369
|
-
aops view task 0ea46e18-d717-454d-8244-90ad388c4a80
|
|
370
|
-
|
|
371
|
-
# 8+ karakter id prefix (uuid'nin ilk 8 karakteri veya dosya adindaki -<8>.md kismi)
|
|
372
|
-
aops view task 0ea46e18
|
|
373
|
-
|
|
374
|
-
# slug
|
|
375
|
-
aops view board ops
|
|
376
|
-
|
|
377
|
-
# exact title/name
|
|
378
|
-
aops view sprint "AOPS CLI view follow-up"
|
|
379
|
-
|
|
380
|
-
# doc-page composite selector (document#heading)
|
|
381
|
-
aops view doc-page tooling-cli-host-plugin-system#runtime-config
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
Ambiguous selector fail eder ve aday tablo/JSON dondurur. `<selector>`
|
|
385
|
-
yoksa veya birden fazla esleserse aday listesinden dogru hedefi se cebilirsin.
|
|
386
|
-
|
|
387
|
-
Tum view komutlarinda kullanilabilen ortak flagler:
|
|
388
|
-
|
|
389
|
-
| Flag | Anlam | Default |
|
|
390
|
-
|------|-------|---------|
|
|
391
|
-
| `--json` | Stabil envelope JSON dondurur (markdown yerine) | false |
|
|
392
|
-
| `--style agent\|compact\|wide` | Markdown yogunluk/format profili | `agent` (ASCII, emoji-free, link-mode none) |
|
|
393
|
-
| `--link-mode none\|relative\|absolute` | Path linki davranisi | `none` |
|
|
394
|
-
| `--max-items <n>` | Liste/tablo basina maksimum satir | 25 |
|
|
395
|
-
| `--max-bytes <n>` | Toplam markdown budget; 32768 hard cap | 32768 |
|
|
396
|
-
| `--project-id\|--project-name\|--project-slug <v>` | Repo config'inde aktif olmayan baska bir projeyi sec | aktif proje |
|
|
397
|
-
|
|
398
|
-
Hosted view komutlari icin ek flagler:
|
|
399
|
-
|
|
400
|
-
| Flag | Anlam | Default |
|
|
401
|
-
|------|-------|---------|
|
|
402
|
-
| `--api-base-url <url>` | Hosted API base URL | env/default host |
|
|
403
|
-
| `--access-token <token>` | Hosted API access token | auth config/env |
|
|
404
|
-
| `--refresh-token <token>` | Hosted API refresh token | auth config/env |
|
|
405
|
-
| `--timeout-ms <ms>` | Hosted request timeout | client default |
|
|
406
|
-
| `--tenant-id <id>` | Agent gateway tenant header | - |
|
|
407
|
-
| `--locale`, `--fallback-locale` | Agent gateway locale header'lari | - |
|
|
408
|
-
| `--scope-id <id>` | Hosted scope override | repo/project context |
|
|
409
|
-
| `--scope-resolution explicit\|cascade` | Hosted asset scope cozumu | `explicit` for inventory |
|
|
410
|
-
| `view hosted-inventory --hosted-project <selector>` | Hosted project id, slug, name veya 8+ char prefix ile daralt | tum fetched projects |
|
|
411
|
-
|
|
412
|
-
Footer kontrati (her view ciktisinin altinda):
|
|
413
|
-
|
|
414
|
-
```text
|
|
415
|
-
- source: <relative-path-or-directory>
|
|
416
|
-
- local-state: local|dirty|synced|conflict|deleted|-
|
|
417
|
-
- updatedAt: <iso>
|
|
418
|
-
- lastPushedAt: <iso?>
|
|
419
|
-
- lastPulledAt: <iso?>
|
|
420
|
-
- truncated: true|false
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
`local-state` semantigi `effectiveLocalState` ile hesaplanir: `synced`
|
|
424
|
-
sayilan bir kayit `baseHash` ile mevcut icerik arasinda drift tespit
|
|
425
|
-
edilirse `dirty` olarak isaretlenir. Ham `syncState` field'ina degil bu
|
|
426
|
-
hesaplanan degere guvenmek gerekir.
|
|
427
|
-
|
|
428
|
-
`view digest` icin pratik kararlar:
|
|
429
|
-
|
|
430
|
-
1. shallow default `--depth shallow` agent context icin yeterli ozetdir
|
|
431
|
-
2. detayli inspection icin `--depth deep`, ama `--max-bytes` budget'ini
|
|
432
|
-
asagi cek: ornekteki gibi tek sprint deep digest ~8KB civarinda kalir
|
|
433
|
-
3. truncation footer `truncated: true` raporlarsa `--max-items` veya daha
|
|
434
|
-
dar bir selector ile yeniden cek
|
|
435
|
-
|
|
436
|
-
Tipik kullanim senaryolari:
|
|
437
|
-
|
|
438
|
-
```bash
|
|
439
|
-
# Agent kickoff: tek komutla aktif pencereyi oku
|
|
440
|
-
aops view dashboard --style agent
|
|
441
|
-
|
|
442
|
-
# Sprint resume: phase/microtask + linked memory + discussions
|
|
443
|
-
aops view sprint <sprint-id>
|
|
444
|
-
|
|
445
|
-
# Codex/Claude desktop'a context pack pipe et
|
|
446
|
-
aops view digest --sprint <sprint-id> --depth deep | pbcopy
|
|
447
|
-
|
|
448
|
-
# Terminal'de mdcat/glow ile renderli okuma
|
|
449
|
-
aops view board <board-slug> | glow -p
|
|
450
|
-
|
|
451
|
-
# JSON ile script/automation
|
|
452
|
-
aops view tasks --json | jq '.result.data[] | select(.localState == "dirty") | .label'
|
|
453
|
-
|
|
454
|
-
# Hosted project inventory: ustte proje tablosu, altta docs/skills/prompts/resources gruplari
|
|
455
|
-
aops view hosted-inventory --hosted-project aops --style compact
|
|
456
|
-
|
|
457
|
-
# Selector ambiguity'sini debug et
|
|
458
|
-
aops view task Duplicate --json | jq '.error.candidates'
|
|
459
|
-
```
|
|
460
|
-
|
|
461
|
-
Session-state nudge:
|
|
462
|
-
|
|
463
|
-
1. `view dashboard --style agent` read-only olarak `.aops/agentspace/session-state/**` dosyalarini tarayip `Session State Nudges` bolumu gosterebilir.
|
|
464
|
-
2. Bu bolum memory yazmaz; agent'a sadece "checkpoint gecikti", "summary dus" veya benzeri runtime hijyen sinyali verir.
|
|
465
|
-
3. Nudge'a cevap yazmak gerekiyorsa owner command `aops mem checkpoint` veya `aops mem summary` olmalidir.
|
|
466
|
-
|
|
467
|
-
Filter flag'leri (her listeleme komutu icin):
|
|
468
|
-
|
|
469
|
-
```bash
|
|
470
|
-
# Memory: durability/kind/subject/id
|
|
471
|
-
aops view memory --durability sticky --kind rule
|
|
472
|
-
aops view memory --subject sprint --id <sprint-id>
|
|
473
|
-
aops view memory --subject task --id <task-id-prefix>
|
|
474
|
-
aops view resume --subject project
|
|
475
|
-
|
|
476
|
-
# Projectman tasks: board + status (column adi cozulur)
|
|
477
|
-
aops view tasks --board ops --status Done
|
|
478
|
-
aops view tasks --board engineering --status Doing
|
|
479
|
-
|
|
480
|
-
# Projectman issues: status + severity + board/sprint/task
|
|
481
|
-
aops view issues --status open
|
|
482
|
-
aops view issues --severity high --status resolved
|
|
483
|
-
aops view issues --board ops --sprint <sprint-id>
|
|
484
|
-
|
|
485
|
-
# Projectman feedback: status + board/sprint/task
|
|
486
|
-
aops view feedback --status open --board ops
|
|
487
|
-
|
|
488
|
-
# Projectman sprints: board + status
|
|
489
|
-
aops view sprints --board ops --status doing
|
|
490
|
-
|
|
491
|
-
# Discussions: status + participant
|
|
492
|
-
aops view discussions --status concluding
|
|
493
|
-
aops view discussions --agent claude
|
|
494
|
-
|
|
495
|
-
# Experience: type + area
|
|
496
|
-
aops view experience --type technique
|
|
497
|
-
aops view experience --area memory
|
|
498
|
-
```
|
|
499
|
-
|
|
500
|
-
Filter sozlesmesi:
|
|
501
|
-
|
|
502
|
-
| Komut | Filter flag'leri | Anlam |
|
|
503
|
-
|-------|------------------|-------|
|
|
504
|
-
| `view memory`, `view resume` | `--durability`, `--kind`, `--subject`, `--id` | durability=short\|durable\|sticky; kind=kickoff\|resume\|closeout\|note\|rule\|...; subject=project\|board\|sprint\|task\|ktask\|utask\|issue\|feedback; id=full UUID veya 8+ char prefix |
|
|
505
|
-
| `view tasks` | `--board`, `--status` | board=slug/name/id; status=column adi veya slug (Done, Todo, Doing, Backlog) |
|
|
506
|
-
| `view issues`, `view feedback` | `--status`, `--severity`, `--board`, `--sprint`, `--task` | status=frontmatter status; severity=low\|medium\|high\|critical; board/sprint/task=ilgili subject relation |
|
|
507
|
-
| `view sprints` | `--board`, `--status` | board=slug/name; status=todo\|doing\|completed\|paused\|... |
|
|
508
|
-
| `view discussions` | `--status`, `--agent` | status=active\|concluding\|concluded\|abandoned; agent=participants icindeki agent id |
|
|
509
|
-
| `view experience` | `--type`, `--area` | type=technique\|tool\|script\|problem-solution\|idea; area=areas[] tag |
|
|
510
|
-
|
|
511
|
-
Birden fazla filter AND mantigi ile uygulanir. Sonuc bos ise empty table fallback (`No matching records.`) gosterilir.
|
|
512
|
-
|
|
513
|
-
Owner boundary kurallari (`view` icin):
|
|
514
|
-
|
|
515
|
-
1. Cache-reading view komutlari (`dashboard`, `boards`, `tasks`, `issues`,
|
|
516
|
-
`feedback`, `memory`, `skills`, `prompts`, `docs`, `digest`, ...) sadece
|
|
517
|
-
read-only local cache `.aops/**/*.md` dosyalarini okur; hosted tool, sync,
|
|
518
|
-
cache write, mutation veya `~/.aops` yazimi yapmaz.
|
|
519
|
-
2. Hosted view komutlari (`hosted-projects`, `hosted-inventory`) sadece
|
|
520
|
-
hosted read/list tool'larini cagirir: `agentspace.project.list-projects`,
|
|
521
|
-
`docman.document.list`, `agentspace.skill.list-skills`,
|
|
522
|
-
`agentspace.prompt.list-prompts`, `agentspace.resource.list-resources`.
|
|
523
|
-
Mutation, sync, mirror refresh veya cache write yapmaz.
|
|
524
|
-
3. Cross-domain join'ler mevcut frontmatter/API alanlarini (`subjectType`,
|
|
525
|
-
`subjectId`, `boardId`, `sprintLocalId`, `pmContext.taskId` vs.) takip
|
|
526
|
-
eder; yeni domain semantigi icat etmez.
|
|
527
|
-
4. `view skills` ve `view prompts` `.aops/hosted/**` mirror dosyalarindan
|
|
528
|
-
okur; canonical truth hosted Docman/server'da kalir, view onu
|
|
529
|
-
yenilemez.
|
|
530
|
-
5. `view docs` ve `view doc-page` `.aops/docman/**` mirror'undan okur;
|
|
531
|
-
read-only mirror banner'i ve `pulledAt` footer'da gozukur.
|
|
532
|
-
6. Projectman planning view'lari cache uzerinden okur; PM tablo ihtiyaci
|
|
533
|
-
icin `view boards`, `view tasks`, `view sprints`, `view issues` ve
|
|
534
|
-
`view feedback` kullanilir.
|
|
535
|
-
|
|
536
|
-
V2'ye birakilan yuzeyler:
|
|
537
|
-
|
|
538
|
-
1. `view relations <selector>` cross-domain RelationResolver
|
|
539
|
-
2. `view skill/prompt/experience <selector>` detail inspect (V1 list-only)
|
|
540
|
-
3. `aops ls`, `aops show` aliaslari
|
|
541
|
-
4. `--out <path>` generated artifact writer (V1 stdout default)
|
|
542
|
-
5. hosted relation graph icin daha derin cross-domain edge resolver
|
|
543
|
-
6. performans gerekirse cache/index
|
|
544
|
-
|
|
545
|
-
Kritik kurallar:
|
|
546
|
-
- Server wins: hosted server canonical'dir; `sync pull` server state'ini read-only local cache'e yansitir. `sync push` yoktur (S4'te kaldirildi) -- repo source-of-truth degildir.
|
|
547
|
-
- UI/server tarafinda yapilan degisiklikler bir sonraki `sync pull` ile cache'e gelir; cache uzerinde yapilan elle degisiklikler canonical degildir ve tazelemede ezilir.
|
|
548
|
-
- Derived view'lar cache uzerinden hesaplanir; cache'i guncel tutmak icin `sync pull` calistirilir.
|
|
549
|
-
- Reusable `prompt` ve hosted `skill` shell/version truth'u server/DB tarafinda kalir; `sync pull` bunlari sadece `.aops/hosted/**` altina read-only mirror olarak ceker.
|
|
550
|
-
- Ayni repo isterse baska bir projenin hosted prompt/skill mirror'unu da `--hosted-project-id|name|slug` ile cekebilir.
|
|
551
|
-
- `sync pull` project-level bir server -> cache refresh komutudur; hosted prompt/skill mirror refresh icin `--hosted-project-id|name|slug` kullan.
|
|
552
|
-
|
|
553
|
-
Baslangic akisi:
|
|
554
|
-
|
|
555
|
-
1. Yeni repo icin `aops init`
|
|
556
|
-
2. Hosted state'in read-only cache'ini tazelemek icin `aops sync pull --project-slug aops --apply --json`
|
|
557
|
-
3. Cache context'i icin `.aops/projectman/views/index.md` ve `.aops/agentspace/memory/index.md` oku
|
|
558
|
-
4. Reusable prompt/skill context gerekiyorsa `.aops/hosted/index.md`, `.aops/hosted/skills/index.md`, ve `.aops/hosted/prompts/index.md` oku
|
|
559
|
-
5. PM authoring icin `aops pm ...`, memory icin `aops mem ...`, agent tecrubesi icin `aops exp ...`, agent tartisma workspace'i icin `aops discuss ...` kullan (hepsi dogrudan hosted server'a yazar)
|
|
560
|
-
|
|
561
|
-
Kapanis akisi:
|
|
562
|
-
|
|
563
|
-
1. PM/memory kayitlarini owner komutlariyla (`aops pm ...`, `aops mem ...`) hosted server uzerinde guncelle
|
|
564
|
-
2. Cache'i guncel gormek istersen `aops sync pull --apply --json` calistir
|
|
565
|
-
|
|
566
|
-
Memory/handoff ayrimi:
|
|
567
|
-
- `--write-memory`: ana PM mutation basarili olduktan sonra opt-in memory side-effect yazar; AI varsayilani short memory olarak kalmalidir
|
|
568
|
-
- `pm handoff write`: mutation disinda kickoff/resume/decision/blocker/closeout/rule memory kaydi yazar
|
|
569
|
-
- `pm handoff resume`: mevcut tracked PM subject icin curated resume pack okur; subject record yaratmaz
|
|
570
|
-
- durable `note` ve sticky `rule` operator/human kontrolundedir; agent calisirken default olarak yazilmaz, yalnizca acikca istendiginde yazilir
|
|
571
|
-
|
|
572
|
-
Phase notu:
|
|
573
|
-
- `phase` Projectman icinde first-class planning kavramidir ama bugun standalone `phase.*` CRUD operation ailesi yoktur
|
|
574
|
-
- `phase` sprint planinin nested grouping/status katmanidir
|
|
575
|
-
- bu yuzden AOPS sugar tarafinda `pm phase ...` yerine mevcut `pm sprint` + `pm utask` surface'i korunur
|
|
576
|
-
|
|
577
|
-
## 14 Prompt sugar
|
|
578
|
-
|
|
579
|
-
### 14.1 Overview
|
|
580
|
-
|
|
581
|
-
## 15 Project sugar
|
|
582
|
-
|
|
583
|
-
### 15.1 Overview
|
|
584
|
-
|
|
585
|
-
## 16 Durable memory ve synopsis sugar
|
|
586
|
-
|
|
587
|
-
### 16.1 Overview
|
|
588
|
-
|
|
589
|
-
#### 16.1.1 Overview
|
|
590
|
-
|
|
591
|
-
Recommended agent memory path:
|
|
592
|
-
|
|
593
|
-
```bash
|
|
594
|
-
aops mem brief --subject project --json
|
|
595
|
-
aops mem checkpoint --content "Slice devam ediyor." --task-id <task-id> --sprint-id <sprint-id> --apply --json
|
|
596
|
-
aops mem summary --content "Session summary." --apply --json
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
Kural:
|
|
600
|
-
|
|
601
|
-
1. `mem brief` session basinda/resume'da kullanilan read-only startup pack'tir; PM state'in yerine gecmez ve memory yazmaz.
|
|
602
|
-
2. `mem checkpoint` anlamli milestone, decision, blocker veya handoff noktasinda short rolling status yazar; her chat satiri veya kucuk edit icin kullanilmaz.
|
|
603
|
-
3. `mem summary` session sonu veya operator summary istegi icindir; ordinary summary short kalir. Durable closeout ancak `--closeout --durability durable --confirm` ile yazilir.
|
|
604
|
-
4. Memory evidence pack olmalidir: request/purpose, board/task/sprint/issue refs, concrete outcome, validation/review evidence, open risks ve next action.
|
|
605
|
-
|
|
606
|
-
### 16.2 Hangi koordinasyon yuzeyini ne zaman kullan
|
|
607
|
-
|
|
608
|
-
#### 16.2.1 Overview
|
|
609
|
-
|
|
610
|
-
`discuss`, `chat` ve `pm review-request` ayri sahiplik yuzeyleridir: karar/konsensus `discuss`, koordinasyon/uyandirma ChatV3 (`chat`), review ise Projectman (`pm review-request`). `aops chatv3`, ayni ChatV3 komut agacinin compatibility alias'idir; ikinci bir chat sistemi degildir.
|
|
611
|
-
|
|
612
|
-
| Ihtiyac | Komut | Skill |
|
|
613
|
-
|--------------------------------------------------------|--------------------------------|------------------|
|
|
614
|
-
| Yapilandirilmis karar transcript'i + sonuc kararlari | `aops discuss start` | `aops-cli-discuss` |
|
|
615
|
-
| Agent sirasi/lifecycle icin karar dongusu | `aops discuss wait`, `aops discuss turn`, `aops discuss conclude` | `aops-cli-discuss` |
|
|
616
|
-
| Multi-agent koordinasyon/uyandirma odasi | `aops chat join`, `aops chat send` | `aops-cli-chat` |
|
|
617
|
-
| Oda trafigini foreground dinleme / unread okuma | `aops chat listen`, `aops chat read` | `aops-cli-chat` |
|
|
618
|
-
| Review iste / sonucla / re-review | `aops pm review-request create`, `aops pm review-request result` | `aops-cli-projectman` |
|
|
619
|
-
|
|
620
|
-
Yapilandirilmis stance `discuss turn`/`conclude` ile transcript'e yazilir; karsi agent'i uyandirmak icin bagli ChatV3 odasina topic/RR ref'i tasiyan kisa bir `aops chat send` mesaji yazilir. Chat mesaji wake sinyalidir; karar ve review kaydinin yerine gecmez.
|
|
621
|
-
|
|
622
|
-
Slug-first operator contract:
|
|
623
|
-
|
|
624
|
-
1. `discuss start --slug <slug>` topic frontmatter'ina canonical slug yazar. ChatV3 channel/room slug'lari join/create sonucu okunur.
|
|
625
|
-
2. Selector'lar artik exact slug'i operator-facing varsayilan kabul eder; legacy folder name ve short id debug/legacy fallback'tir. Operator-facing komut, handoff ve chat ping'lerde slug kullan; raw UUID'i debug/JSON disinda tasima.
|
|
626
|
-
3. Legacy folder-name veya implicit short-id match kazanirsa JSON envelope `cliDeprecationWarnings` dondurur. Debug ihtiyaci disinda bu uyarilar "slug'a gec" sinyali sayilir.
|
|
627
|
-
4. Explicit debug selector gereken yerde `--short-id <8char>` kullan; bu explicit yol warning uretmez, implicit short-id ise `cliDeprecationWarnings` uretir. Ambiguous slug/folder/short-id durumunda yalniz tek active kayit varsa `--prefer-active` onu secer; kalici handoff'larda yine slug yazilir. Discuss komutlarinda `--short-id` topic selector'udur.
|
|
628
|
-
5. Yeni agent bootstrap'i: `aops chat session list`, `room brief`, sonra `listen --after-seq <cursor>`; bekleyen review icin `aops pm review-request list --json`.
|
|
629
|
-
6. `discuss conclude`, `consensus.md`, agent final stance, `disagreement.md` ve `open-questions.md` dosyalarini `_TBD_` placeholder olarak birakmaz. Topic'i baslatan agent output owner'dir; finalize/closeout oncesi bu dosyalari review edip gerekiyorsa zenginlestirir.
|
|
630
|
-
|
|
631
|
-
### 16.3 PM window + chat-room baglama ve active window
|
|
632
|
-
|
|
633
|
-
#### 16.3.1 Overview
|
|
634
|
-
|
|
635
|
-
Iki ajanli execution pencerelerinde Projectman window'u tek olsun. Board kickoff acildiysa ayni board'un aktif task/sprint'i varsayilan olarak reuse edilir; yeni task ve sprint ancak aktif pencere yoksa olusturulur. Koordinasyon, PM ref'i baglanmis ChatV3 odasinda yapilir.
|
|
636
|
-
|
|
637
|
-
```bash
|
|
638
|
-
aops pm board kickoff --board ops --title "AOPS PM tooling triage" --goal "..." --apply --json
|
|
639
|
-
# Koordinasyon odasini PM ref'ine bagla:
|
|
640
|
-
aops chat binding add --session <session> --room general \
|
|
641
|
-
--binding-type projectman.board --ref-id <board-id> --title "Active board" --json
|
|
642
|
-
```
|
|
643
|
-
|
|
644
|
-
Explicit task/sprint secimi gerektiğinde ilgili `pm sprint`/`pm utask` komutlarini
|
|
645
|
-
kullan. Operator bilincli olarak yeni pencere acacaksa yeni bir `pm board
|
|
646
|
-
kickoff`/sprint acar; aksi halde duplicate kickoff window olusturmak yerine
|
|
647
|
-
aktif board referanslari tercih edilir.
|
|
648
|
-
|
|
649
|
-
### 16.4 Iki ajanli arastirma ve istisare akisi
|
|
650
|
-
|
|
651
|
-
#### 16.4.1 Overview
|
|
652
|
-
|
|
653
|
-
Operator "tartisin" veya "beraber arastirin" dediginde iki taraf bagimsiz context uretir, `discuss` topic'inde yakinsar ve ChatV3 ile uyanir. Review tarafi Projectman'dedir.
|
|
654
|
-
|
|
655
|
-
Ana ajan akisi:
|
|
656
|
-
|
|
657
|
-
1. `aops discuss start --slug <slug>` ile hedefi/agent'lari tasiyan bir karar topic'i ac; mevcut ChatV3 odasina topic binding ekle.
|
|
658
|
-
2. Operator istegini, repo root'larini, kisitlari ve beklenen deliverable'lari topic'in ilk turn'une (veya odaya context mesaji olarak) yaz.
|
|
659
|
-
3. Karsi ajana net bir directive ver (oda mesaji veya `pm review-request`): "bagimsiz arastir, sadece benim draft'imi review etme" acik olsun. Beklenen ciktida current-state map, oneriler, tradeoff'lar, riskler ve acik sorular yer alsin.
|
|
660
|
-
4. Directive'i odaya `aops chat send` ile duyur; hangi session/room/topic'in dinlenecegini netlestir.
|
|
661
|
-
5. Ana ajan kendi arastirmasini paralel yapar ve kendi stance'ini `discuss turn` ile topic'e yazar.
|
|
662
|
-
6. Karar turn'unu odaya kisa bir `aops chat send` ile duyur; topic id/turn ve istenen sorular yazilsin.
|
|
663
|
-
7. Cevap icin `aops discuss wait ...` ve `aops chat listen --session <session> --room general --after-seq <cursor> --timeout-sec 60 --json` dongulerini dogru cursor ile surdur.
|
|
664
|
-
8. Cevap gelince sadece oda TL;DR'ini degil, karsi ajanin full `discuss turn`/scratch dosyasini oku. Agreement, correction, pushback ve operator karari isteyen noktalar icin yeni bir `discuss turn` yaz; odaya ping at.
|
|
665
|
-
9. Ciddi ayrilik varsa bir bounded loop daha ver. Mimari/yuksek etki konularda tek oda cevabindan sonra final plan yazma.
|
|
666
|
-
10. Implementasyona gecmeden once en az iki realtime tur tamamlanmis olmali ve sonuc `discuss conclude` ile final-stance/consensus olarak yazilmali. Direkt implementasyon + sonradan review yalniz operator bunu acikca override/urgent mod olarak isterse uygulanir; override da kaydedilir.
|
|
667
|
-
11. Sonuc: kilitlenen kararlar (discuss conclude), acik operator sorulari, POC sirasi ve owner/domain sinirlari. Projectman veya Docman kaydi yalniz explicit komutla yapilir.
|
|
668
|
-
|
|
669
|
-
Karsi ajan akisi:
|
|
670
|
-
|
|
671
|
-
1. Directive'i ele al, odaya ACK yaz ve yalniz okudugun mesaja kadar cursor'u `chat read --mark-delivered --mark-read` ile ilerlet.
|
|
672
|
-
2. Istenen kaynaklardan bagimsiz arastirma yap; ana ajanin draft'ini tek truth sayma.
|
|
673
|
-
3. Kendi research/stance'ini `discuss turn` ile yaz ve oda cevabinda topic id/turn ile kisa ozet ver.
|
|
674
|
-
4. Ana ajan kanitli pushback verirse yeni bir `discuss turn` ile hangi noktalari kabul ettigini, hangilerini surdurdugunu ve hangilerini operator'e biraktigini belirt.
|
|
675
|
-
|
|
676
|
-
Minimum kalite kapisi: iki ajanin da en az bir bagimsiz context/research turn'u olur; ya da ana ajan bounded timeout'u ve "karsi cevap beklenmeden ilerleniyor" notunu operator'e acikca yazar.
|
|
677
|
-
|
|
678
|
-
### 16.5 ChatV3 agent-owned room context
|
|
679
|
-
|
|
680
|
-
#### 16.5.1 Overview
|
|
681
|
-
|
|
682
|
-
`aops chat` canonical ChatV3 surface'idir; `aops chatv3` ayni komut agacinin compatibility alias'idir. Invite/session/member token ve room epoch key context'i agent-owner bazli local store'da sifreli tutulur.
|
|
683
|
-
|
|
684
|
-
Common commands:
|
|
685
|
-
|
|
686
|
-
```bash
|
|
687
|
-
aops chat listen --session codex --room general --after-seq <last-seq> --timeout-sec 60 --json
|
|
688
|
-
aops chat binding add --session codex --room general --binding-type projectman.review-request --ref-id <rr-id> --title "Slice review" --json
|
|
689
|
-
aops chat binding list --session codex --room general --json
|
|
690
|
-
aops chat room brief --session codex --room general --for claude --json
|
|
691
|
-
aops chat room summary --session codex --room general --after-seq <last-seq> --json
|
|
692
|
-
```
|
|
693
|
-
|
|
694
|
-
Kural:
|
|
695
|
-
|
|
696
|
-
1. `listen` exit `0` yeni mesaj, exit `22` timeout anlamindadir; read/listen output'u `latestSeq` ve `caughtUp` tasir.
|
|
697
|
-
2. `binding add/list/remove` loose refs tutar; PM/RR/Docman/discuss truth'unu degistirmez.
|
|
698
|
-
3. `room brief` guidance, members, presence, bindings, cursor refs ve recommended next reads iceren read-only onboarding pack'tir.
|
|
699
|
-
4. `room summary` agent-composed narrative digest pack'tir; `sourceRef.type=chatv3.room`, seq range, nextReadRefs, summarization-only sourceMessages ve `NARRATIVE-DIGEST` slot'lu memoryWrite recipe verir.
|
|
700
|
-
5. `sourceMessages` yalniz ozetleme girdisidir; memory'ye aynen yazilmaz. Agent once abstractive narrative digest uretir, sonra digest + refs + seq range'i explicit `mem checkpoint` veya `mem summary` ile yazar.
|
|
701
|
-
6. Default store agent owner'a gore ayrilir. Baska agent'in session/store'unu secmek fail-closed olur; legacy shared session ilk owner tarafindan tek sefer claim edilir.
|
|
702
|
-
7. `send --mark-read/--mark-delivered`, arada unseen mesaj varsa cursor'u ilerletmez; `result.cursorAdvance` gap'i aciklar.
|
|
703
|
-
|
|
704
|
-
## 17 Resource sugar
|
|
705
|
-
|
|
706
|
-
### 17.1 Overview
|
|
707
|
-
|
|
708
|
-
#### 17.1.1 Overview
|
|
709
|
-
|
|
710
|
-
`aops resource` is the hosted Agentspace surface for durable knowledge pointers. A resource describes where knowledge lives; it does not own the document body, snapshot bytes, or planning state.
|
|
711
|
-
|
|
712
|
-
Use it when an agent needs a reusable pointer such as a guide, rule, spec, link, reference, template, dataset, code note, or skill-related reference:
|
|
713
|
-
|
|
714
|
-
```bash
|
|
715
|
-
aops resource create --name "Hexagen Guide" --resource-type document --uri "docman:aops/hexagen" --apply --json
|
|
716
|
-
aops resource list --resource-type document --json
|
|
717
|
-
aops resource get --id <resource-id> --json
|
|
718
|
-
aops resource update --id <resource-id> --uri "https://example.test/spec" --apply --json
|
|
719
|
-
aops resource delete --id <resource-id> --apply --confirm --json
|
|
720
|
-
```
|
|
721
|
-
|
|
722
|
-
Before raw hosted writes, check the live schema:
|
|
723
|
-
|
|
724
|
-
```bash
|
|
725
|
-
aops agent schema --tool agentspace.resource.create --timeout-ms 120000 --json
|
|
726
|
-
```
|
|
727
|
-
|
|
728
|
-
If `agent schema` ever returns only a flexible `data` envelope for an Agentspace operation, fall back to the matching sugar help (`aops resource create --help`) and inspect an existing list/get record before composing payloads. Do not guess nested field names from memory.
|
|
729
|
-
|
|
730
|
-
## 18 Artifact sugar
|
|
731
|
-
|
|
732
|
-
### 18.1 Overview
|
|
733
|
-
|
|
734
|
-
#### 18.1.1 Overview
|
|
735
|
-
|
|
736
|
-
`aops artifact` is hosted metadata for generated or external artifacts. It stores the artifact shell and links to project-scoped refs; it is not the byte store. Use artifact records for pointers such as storage paths, report paths, exported archives, screenshots, or generated JSON; keep file bytes in an operator-owned storage system.
|
|
737
|
-
|
|
738
|
-
Core flow:
|
|
739
|
-
|
|
740
|
-
```bash
|
|
741
|
-
aops artifact create --artifact-type file --storage-path "s3://bucket/report.json" --apply --json
|
|
742
|
-
aops artifact link --artifact-id <artifact-id> --ref-type resource --ref-id <resource-id> --apply --json
|
|
743
|
-
aops artifact ref list --ref-type resource --ref-id <resource-id> --json
|
|
744
|
-
aops artifact get --id <artifact-id> --json
|
|
745
|
-
aops artifact delete --id <artifact-id> --apply --confirm --json
|
|
746
|
-
```
|
|
747
|
-
|
|
748
|
-
Keep artifact content small and pointer-shaped. If the artifact is a repo file, include the path and validation context in memory or PM; do not paste large file bodies into artifact metadata.
|
|
749
|
-
|
|
750
|
-
## 19 Skill sugar
|
|
751
|
-
|
|
752
|
-
### 19.1 Overview
|
|
753
|
-
|
|
754
|
-
#### 19.1.1 Overview
|
|
755
|
-
|
|
756
|
-
`aops skill` owns hosted reusable skill shells and skill versions. `.aops/hosted/skills/**` is only the read-only mirror; never edit it as canonical truth.
|
|
757
|
-
|
|
758
|
-
Authoring loop:
|
|
759
|
-
|
|
760
|
-
```bash
|
|
761
|
-
aops skill list --hosted-project-slug aops --name "aops-working-disciplines" --json
|
|
762
|
-
aops skill inspect --id <skill-id> --json
|
|
763
|
-
aops skill version list --skill-id <skill-id> --json
|
|
764
|
-
aops skill version create --hosted-project-slug aops --skill-id <skill-id> --content '@./SKILL.md' --entry-file SKILL.md --skill-standard aops-skill-v1 --meta '@./meta.json' --apply --json
|
|
765
|
-
aops skill version publish --hosted-project-slug aops --id <skill-version-id> --apply --json
|
|
766
|
-
aops sync pull --apply --hosted-project-slug aops --json
|
|
767
|
-
aops assets install --target all --apply --json
|
|
768
|
-
```
|
|
769
|
-
|
|
770
|
-
When `--version` is omitted, the CLI resolves the next version from hosted versions. If a publish or create reports a version conflict, use `skill version list`; mirror frontmatter can lag by one version immediately after publish.
|
|
771
|
-
|
|
772
|
-
## 20 Durable activity logs
|
|
773
|
-
|
|
774
|
-
### 20.1 Overview
|
|
775
|
-
|
|
776
|
-
#### 20.1.1 Overview
|
|
777
|
-
|
|
778
|
-
Durable activity logs are audit/readback evidence for hosted operations. Many hosted write sugars append best-effort activity records or structured server logs. Treat these logs as verification context, not planning truth.
|
|
779
|
-
|
|
780
|
-
Current operator rules:
|
|
781
|
-
|
|
782
|
-
1. Planning and execution state still belongs in Projectman.
|
|
783
|
-
2. Durable handoff and decisions still belong in Agentspace memory.
|
|
784
|
-
3. Activity logs are useful when proving that a hosted write, invoke, or flow ran with a concrete request/response.
|
|
785
|
-
4. If a dedicated `aops activity ...` command is not present in your runtime, discover the hosted activity surfaces with `aops agent tools --domain agentspace --json` or use the domain guide. Do not invent an activity command from old docs.
|
|
786
|
-
|
|
787
|
-
## 22 Docman sugar
|
|
788
|
-
|
|
789
|
-
### 22.1 Overview
|
|
790
|
-
|
|
791
|
-
#### 22.1.1 Overview
|
|
792
|
-
|
|
793
|
-
`aops doc` is the hosted Docman surface for document groups, documents, versions, sections, pages, page versions, retrieval rows, publish output, and mirror pull.
|
|
794
|
-
|
|
795
|
-
Common flows:
|
|
796
|
-
|
|
797
|
-
```bash
|
|
798
|
-
aops doc list --project-slug aops --json
|
|
799
|
-
aops doc version list --document-id <doc-id> --json
|
|
800
|
-
aops doc outline get --document-version-id <docver-id> --titles-only --depth 2 --json
|
|
801
|
-
aops doc page draft-save --page-version-id <pagever-id> --document-link-id <section-page-link-id> --content '@./page.md' --apply --json
|
|
802
|
-
aops doc set-current-version --document-id <doc-id> --version-id <docver-id> --publish-now --apply --json
|
|
803
|
-
aops doc mirror pull --project-slug aops --group-uid aops-guides --document-slug aops-cli-user-guide --out-dir ./.aops/docman --apply --json
|
|
804
|
-
```
|
|
805
|
-
|
|
806
|
-
For a known page edit, use clone_all + targeted page/section CRUD. For a whole markdown refresh, use `doc import --from-markdown` with `--baseline`, `--guard-target`, and a `--dry-run` first.
|
|
807
|
-
|
|
808
|
-
Retrieval notes:
|
|
809
|
-
|
|
810
|
-
1. `doc scope search --local` searches the local mirror and can rank source or architecture files above the guide you expected.
|
|
811
|
-
2. `doc search --local` is document-granular and confirms presence; do not assume it returned a full section body.
|
|
812
|
-
3. To read a mirror section, use `aops view doc-page <document>#<number-prefixed-slug>`, for example `aops view doc-page aops-cli-user-guide#27-guard-flag-konvansiyonu`.
|
|
813
|
-
4. `doc outline get --titles-only --depth <n>` is the cheapest structure probe for a known hosted version.
|
|
814
|
-
|
|
815
|
-
## 23 Sık görülen operator notlari
|
|
816
|
-
|
|
817
|
-
### 23.1 Overview
|
|
818
|
-
|
|
819
|
-
#### 23.1.1 Overview
|
|
820
|
-
|
|
821
|
-
High-signal operator notes:
|
|
822
|
-
|
|
823
|
-
1. First cold hosted calls can take around 20 seconds; use `--timeout-ms 120000` for schema, doc, skill, or file smoke commands.
|
|
824
|
-
2. `--yes` is a compatibility/fail-fast flag. The CLI never prompts, and the flag is not a magic fix for validation errors.
|
|
825
|
-
3. In PowerShell, quote file pointers for multiline or quote-heavy content: `--content '@file'` or `--input '@file.json'`.
|
|
826
|
-
4. If sugar returns validation errors, stop retrying guessed flags. Read `<command> --help`; for raw invokes, read `agent schema`.
|
|
827
|
-
5. If command help and skill text disagree, command help wins.
|
|
828
|
-
6. If a user guide and skill text disagree, the user guide wins.
|
|
829
|
-
|
|
830
|
-
## 24 Onerilen gunluk akış
|
|
831
|
-
|
|
832
|
-
### 24.1 Overview
|
|
833
|
-
|
|
834
|
-
#### 24.1.1 Overview
|
|
835
|
-
|
|
836
|
-
For a normal agent session:
|
|
837
|
-
|
|
838
|
-
```bash
|
|
839
|
-
aops mem resume --subject project --json
|
|
840
|
-
aops view dashboard --style agent
|
|
841
|
-
aops <family> --help
|
|
842
|
-
# do the scoped work
|
|
843
|
-
aops mem write --mode resume --subject project --durability short --content '@./checkpoint.md' --apply --json
|
|
844
|
-
```
|
|
845
|
-
|
|
846
|
-
Use `view` for read-only context, then mutate through the owner family: `pm` for planning, `mem` for durable context, `doc` for documents, and `skill`/`prompt` for hosted reusable assets.
|
|
847
|
-
|
|
848
|
-
Do not run closeout commands unless the operator explicitly approves closeout. Ordinary stop points should write resume/handoff memory.
|
|
849
|
-
|
|
850
|
-
## 25 Installer mantigi
|
|
851
|
-
|
|
852
|
-
### 25.1 Overview
|
|
853
|
-
|
|
854
|
-
#### 25.1.1 Overview
|
|
855
|
-
|
|
856
|
-
Runtime skills are loaded through the verified user-level AOPS gateway, not
|
|
857
|
-
directly from repository mirrors. Setup installs or repairs one managed gateway
|
|
858
|
-
for every agent runtime registered by this CLI.
|
|
859
|
-
|
|
860
|
-
Typical refresh:
|
|
861
|
-
|
|
862
|
-
```bash
|
|
863
|
-
aops assets install --target all --apply --json
|
|
864
|
-
aops assets status --verify full --json
|
|
865
|
-
aops assets resolve --gateway aops --json
|
|
866
|
-
```
|
|
867
|
-
|
|
868
|
-
Restart an agent runtime if it caches skill discovery. Hosted optional packages
|
|
869
|
-
remain server-owned and inert until explicitly discovered and installed; the
|
|
870
|
-
offline Community core is immutable and signed independently.
|
|
871
|
-
|
|
872
|
-
## 26 Help-first model
|
|
873
|
-
|
|
874
|
-
### 26.1 Overview
|
|
875
|
-
|
|
876
|
-
#### 26.1.1 Overview
|
|
877
|
-
|
|
878
|
-
AOPS command discovery is help-first:
|
|
879
|
-
|
|
880
|
-
```bash
|
|
881
|
-
aops --help
|
|
882
|
-
aops <family> --help
|
|
883
|
-
aops <family> <subcommand> --help
|
|
884
|
-
```
|
|
885
|
-
|
|
886
|
-
Decision chain:
|
|
887
|
-
|
|
888
|
-
1. Use sugar help for routine CLI work.
|
|
889
|
-
2. Use `aops agent tools --domain <domain> --json` to find hosted operations when sugar is missing.
|
|
890
|
-
3. Use `aops agent schema --tool <domain>.<operation> --json` before raw payload authoring.
|
|
891
|
-
4. Use `aops agent invoke --tool <id> --input '@payload.json' --apply --json` only when sugar is absent or broken.
|
|
892
|
-
5. Use `aops api call` only as an explicit low-level escape hatch.
|
|
893
|
-
|
|
894
|
-
## 27 Guard flag konvansiyonu
|
|
895
|
-
|
|
896
|
-
### 27.1 Overview
|
|
897
|
-
|
|
898
|
-
#### 27.1.1 Overview
|
|
899
|
-
|
|
900
|
-
Guard flags are consistent across AOPS sugar:
|
|
901
|
-
|
|
902
|
-
| Flag | Meaning |
|
|
903
|
-
|---|---|
|
|
904
|
-
| `--preview` | Validate and describe the operation without mutation. |
|
|
905
|
-
| `--apply` | Execute a guarded write. |
|
|
906
|
-
| `--confirm` | Confirm destructive actions such as delete, restore overwrite, cleanup, or reset. |
|
|
907
|
-
| `--idempotency-key <key>` | Make write retries deterministic when the command supports it. |
|
|
908
|
-
| `--json` | Return scriptable structured output. |
|
|
909
|
-
| `--yes` | Compatibility/fail-fast mode; missing required choices remain errors. |
|
|
910
|
-
|
|
911
|
-
Read commands need no guard. Normal writes require `--apply`. Destructive writes require `--apply --confirm`. `--preview` without `--apply` should not mutate; if a command mutates during preview, file an issue.
|
|
912
|
-
|
|
913
|
-
## 28 Hosted source of truth ve mirror cache
|
|
914
|
-
|
|
915
|
-
### 28.1 Overview
|
|
916
|
-
|
|
917
|
-
#### 28.1.1 Overview
|
|
918
|
-
|
|
919
|
-
The hosted server is the source of truth. The `.aops/**` tree is a read-only
|
|
920
|
-
local cache; do not treat it as canonical or hand-edit it as truth.
|
|
921
|
-
|
|
922
|
-
Server-canonical, mirrored as read-only caches:
|
|
923
|
-
|
|
924
|
-
1. `.aops/projectman/**` caches Projectman boards, tasks, sprints, issues, feedback, and views. Refresh with `aops sync pull --project-slug aops --apply --json`.
|
|
925
|
-
2. `.aops/agentspace/memory/items/**` caches Agentspace memory. Refresh with `aops sync pull ...`.
|
|
926
|
-
3. `.aops/agentspace/discussions/**` caches discuss topics/transcripts (discuss authoring is hosted). Refresh with `aops sync pull ...`.
|
|
927
|
-
4. `.aops/hosted/prompts/**` and `.aops/hosted/skills/**` mirror hosted Agentspace prompt/skill current versions. Refresh with `aops sync pull --apply --hosted-project-slug aops --json`.
|
|
928
|
-
5. `.aops/docman/**` mirrors hosted Docman documents. Refresh with `aops doc mirror pull ...`.
|
|
929
|
-
|
|
930
|
-
To change content, write through the owner surface (`aops pm ...`, `aops mem ...`, `aops discuss ...`, `aops doc ...`), then refresh the cache.
|
|
931
|
-
|
|
932
|
-
## 29 Hosted guide mirror bootstrap
|
|
933
|
-
|
|
934
|
-
### 29.1 Overview
|
|
935
|
-
|
|
936
|
-
#### 29.1.1 Overview
|
|
937
|
-
|
|
938
|
-
Guide mirrors are Docman-owned, not `sync pull`-owned. Refresh AOPS operator guides with:
|
|
939
|
-
|
|
940
|
-
```bash
|
|
941
|
-
aops doc mirror pull --project-slug aops --group-uid aops-guides --document-slug aops-cli-user-guide --document-slug aops-agent-assets-bootstrap --out-dir ./.aops/docman --apply --json
|
|
942
|
-
aops doc mirror pull --project-slug aops --group-uid domain-guides --document-slug agentspace-user-guide --out-dir ./.aops/docman --apply --json
|
|
943
|
-
```
|
|
944
|
-
|
|
945
|
-
Use `sync pull` for hosted prompts/skills, and `doc mirror pull` for guides/documents.
|
|
946
|
-
|
|
947
|
-
## 30 Cross-cutting anti-patterns
|
|
948
|
-
|
|
949
|
-
### 30.1 Overview
|
|
950
|
-
|
|
951
|
-
#### 30.1.1 Overview
|
|
952
|
-
|
|
953
|
-
Avoid these:
|
|
954
|
-
|
|
955
|
-
1. Guessing flags after a validation error instead of reading `--help`.
|
|
956
|
-
2. Writing raw `agent invoke` payloads without `agent schema`.
|
|
957
|
-
3. Treating `aops` as semantic owner for planning, memory, docs, files, or domain business state.
|
|
958
|
-
4. Hand-editing `.aops/hosted/**` or `.aops/docman/**` mirrors.
|
|
959
|
-
5. Assuming `sync pull` refreshes Docman guides.
|
|
960
|
-
6. Running full Docman import for a one-page edit when CRUD ids are known.
|
|
961
|
-
7. Writing closeout memory for an ordinary checkpoint.
|
|
962
|
-
8. Treating a capability mentioned in old guidance as mounted without confirming it through `aops agent tools --summary --json`.
|
|
963
|
-
|
|
964
|
-
## 31 Skill ve user guide arama disiplini
|
|
965
|
-
|
|
966
|
-
### 31.1 Overview
|
|
967
|
-
|
|
968
|
-
#### 31.1.1 Overview
|
|
969
|
-
|
|
970
|
-
Use the smallest useful read:
|
|
971
|
-
|
|
972
|
-
```bash
|
|
973
|
-
aops <family> --help
|
|
974
|
-
aops doc scope search --project-slug aops --q "<keywords>" --local --json
|
|
975
|
-
aops doc outline get --document-version-id <docver-id> --titles-only --depth 2 --json
|
|
976
|
-
aops view doc-page aops-cli-user-guide#27-guard-flag-konvansiyonu
|
|
977
|
-
```
|
|
978
|
-
|
|
979
|
-
Search rules:
|
|
980
|
-
|
|
981
|
-
1. Search by document title + section name + keywords, not bare section numbers.
|
|
982
|
-
2. `doc scope search` is broad; verify the `documentSlug` and `mirrorPath` before trusting a hit.
|
|
983
|
-
3. `doc search --local` is not a section body reader by itself.
|
|
984
|
-
4. `view doc-page <document>#<number-prefixed-slug>` is the ergonomic local section reader.
|
|
985
|
-
5. If a skill is thin, follow its canonical guide pointer rather than expecting full mechanics in the skill body.
|
|
986
|
-
|
|
987
|
-
## 32 AGENTS.md prompt-template bootstrap
|
|
988
|
-
|
|
989
|
-
### 32.1 Overview
|
|
990
|
-
|
|
991
|
-
#### 32.1.1 Overview
|
|
992
|
-
|
|
993
|
-
`aops agents-md` manages generated AGENTS.md prompt-template blocks. Keep project-specific rules outside the managed block.
|
|
994
|
-
|
|
995
|
-
```bash
|
|
996
|
-
aops agents-md preview --collab
|
|
997
|
-
aops agents-md update --collab --apply
|
|
998
|
-
aops agents-md reset --apply --confirm
|
|
999
|
-
```
|
|
1000
|
-
|
|
1001
|
-
Use this when a repo needs the standard AOPS task execution or collaborative work protocol reminders. Do not manually edit the managed block unless recovering from a broken generated state.
|
|
1002
|
-
|
|
1003
|
-
## 33 Agent runtime prompt/skill bootstrap
|
|
1004
|
-
|
|
1005
|
-
### 33.1 Overview
|
|
1006
|
-
|
|
1007
|
-
#### 33.1.1 Overview
|
|
1008
|
-
|
|
1009
|
-
Before asking a supported terminal agent to use AOPS, install and verify the
|
|
1010
|
-
global gateway for all registered runtimes:
|
|
1011
|
-
|
|
1012
|
-
```bash
|
|
1013
|
-
aops assets install --target all --apply --json
|
|
1014
|
-
aops assets status --verify quick --json
|
|
1015
|
-
aops assets resolve --gateway aops --json
|
|
1016
|
-
```
|
|
1017
|
-
|
|
1018
|
-
`--target all` expands to the CLI's registered runtimes. A comma-separated or
|
|
1019
|
-
repeated `--target` selects a subset. Runtime gateways point to the verified
|
|
1020
|
-
user-level asset store and never require a repository checkout. If resolution
|
|
1021
|
-
fails, inspect `aops assets status --verify full --json`; repair never
|
|
1022
|
-
overwrites unknown user-owned files.
|
|
1023
|
-
|
|
1024
|
-
## 34 `start` kickoff composer
|
|
1025
|
-
|
|
1026
|
-
### 34.1 Overview
|
|
1027
|
-
|
|
1028
|
-
#### 34.1.1 Overview
|
|
1029
|
-
|
|
1030
|
-
`aops start`, hosted "AOPS Collaborative Startup" starter promptunu kickoff cevaplarindan derler. Komutun canli yardimi kanoniktir:
|
|
1031
|
-
|
|
1032
|
-
```bash
|
|
1033
|
-
aops start --help
|
|
1034
|
-
```
|
|
1035
|
-
|
|
1036
|
-
Iki kullanim modu:
|
|
1037
|
-
|
|
1038
|
-
1. Operator TTY: `aops start` sorulari interaktif sorar ve promptu stdout'a veya `--out <file>` ile dosyaya yazar.
|
|
1039
|
-
2. Agent interview: `aops start --json` `result.missing` sorularini `askOperator` isaretiyle dondurur. Agent bildigi cevaplari flag olarak verir; yalniz `askOperator` kalemlerini operatore sorar. Roller operator-only'dir.
|
|
1040
|
-
|
|
1041
|
-
Varsayilan `--json` cikti compact'tir. Prompt govdesi inline gelmek yerine `result.promptRef` ile isaretlenir; `--out tmp/start.md` kullanmak uzun promptu dosyada tutar. Inline prompt sadece gercekten gerekiyorsa `--full-output` ile istenir.
|
|
1042
|
-
|
|
1043
|
-
Sik kullanilan komutlar:
|
|
1044
|
-
|
|
1045
|
-
```bash
|
|
1046
|
-
aops start --mode solo --board <board> --task "<task>" --json --out tmp/start.md
|
|
1047
|
-
aops start --mode chat-room --board <board> --discipline build-review-chat --json
|
|
1048
|
-
aops start --reminder --task "<current task>" --area <area> --limit 3 --json
|
|
1049
|
-
```
|
|
1050
|
-
|
|
1051
|
-
Ready sonucunda onemli alanlar:
|
|
1052
|
-
|
|
1053
|
-
1. `result.promptRef.path` / `result.promptRef.sha256` - prompt dosyasi ve hash'i.
|
|
1054
|
-
2. `result.memoryBrief` - read-only local-cache memory startup pack; `--no-memory-brief` bunu atlar.
|
|
1055
|
-
3. `result.sessionGuidance` - layered runtime rules, discipline guardrails, accepted playbooks, ranked experience briefs.
|
|
1056
|
-
|
|
1057
|
-
`start --reminder` full kickoff degildir: soru sormaz, full starter prompt serialize etmez, PM/memory/hosted state yazmaz. Session ortasinda "neredeydik, hangi kurallar/playbook/experience gecerlidir?" sorusuna bounded read-only cevap verir.
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
## 35 Playbook and experience consult
|
|
1061
|
-
|
|
1062
|
-
### 35.1 Overview
|
|
1063
|
-
|
|
1064
|
-
#### 36.1.1 Overview
|
|
1065
|
-
|
|
1066
|
-
Playbook ve experience startup'ta bulk-load edilmez. Once bounded pack okunur:
|
|
1067
|
-
|
|
1068
|
-
```bash
|
|
1069
|
-
aops start --reminder --task "<current task>" --area <area> --limit 3 --json
|
|
1070
|
-
aops view experience --area <area>
|
|
1071
|
-
aops skill current --id <skill-id> --summary --json
|
|
1072
|
-
```
|
|
1073
|
-
|
|
1074
|
-
`result.sessionGuidance` uc katmanli okunur:
|
|
1075
|
-
|
|
1076
|
-
1. L1 runtime pointers: AGENTS.md, ChatV3/channel rules, command refs.
|
|
1077
|
-
2. L2 discipline guardrails: id/title/phase/enforcement/evidence summary.
|
|
1078
|
-
3. L3 accepted playbook briefs + ranked experience briefs.
|
|
1079
|
-
|
|
1080
|
-
Default experience limit 3, hard max 5'tir. Brief ilgisizse full body okunmaz; ilgiliyse skill/prompt/current summary, memory/experience detail veya doc ladder ile hedefli okunur.
|
|
1081
|
-
|
|
1082
|
-
## 36 Checkpoint cadence
|
|
1083
|
-
|
|
1084
|
-
### 36.1 Overview
|
|
1085
|
-
|
|
1086
|
-
#### 37.1.1 Overview
|
|
1087
|
-
|
|
1088
|
-
Checkpoint memory transcript degil, resume evidence pack'tir. Her chat satiri veya kucuk edit icin yazilmaz; anlamli milestone, decision, blocker, RR/RRR sonucu, import/publish slice'i veya session handoff noktasinda yazilir.
|
|
1089
|
-
|
|
1090
|
-
```bash
|
|
1091
|
-
aops mem checkpoint --subject sprint --id <sprint-id> \
|
|
1092
|
-
--content '@tmp/checkpoint.md' \
|
|
1093
|
-
--task-id <task-id> --sprint-id <sprint-id> \
|
|
1094
|
-
--source-ref "projectman.review-request:<rr-id>" \
|
|
1095
|
-
--validation-state "PASS: tests/typecheck/smoke" \
|
|
1096
|
-
--next-action "<next action>" \
|
|
1097
|
-
--apply --json
|
|
1098
|
-
```
|
|
1099
|
-
|
|
1100
|
-
Iyi checkpoint su bilgileri tasir:
|
|
1101
|
-
|
|
1102
|
-
1. Request/purpose ve PM surface refs.
|
|
1103
|
-
2. Concrete outcome ve current status.
|
|
1104
|
-
3. Validation/review evidence.
|
|
1105
|
-
4. Open risks/blockers.
|
|
1106
|
-
5. Next action ve next-read refs.
|
|
1107
|
-
|
|
1108
|
-
Durable closeout memory operator onayi gerektirir; ordinary checkpoint short resume/carry-forward kalir.
|