@aopslabs/aops 0.2.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.
Files changed (171) hide show
  1. package/LICENSE +19 -0
  2. package/NOTICE +7 -0
  3. package/README.md +203 -0
  4. package/assets/agent-assets/core/SKILL.md +49 -0
  5. package/assets/agent-assets/core/references/agentspace/SKILL.md +78 -0
  6. package/assets/agent-assets/core/references/aops-cli-core/SKILL.md +108 -0
  7. package/assets/agent-assets/core/references/chatv3/SKILL.md +48 -0
  8. package/assets/agent-assets/core/references/collaborative-work/SKILL.md +85 -0
  9. package/assets/agent-assets/core/references/discuss/SKILL.md +66 -0
  10. package/assets/agent-assets/core/references/docman/SKILL.md +69 -0
  11. package/assets/agent-assets/core/references/hosted-chat/SKILL.md +64 -0
  12. package/assets/agent-assets/core/references/mission/SKILL.md +54 -0
  13. package/assets/agent-assets/core/references/projectman/SKILL.md +86 -0
  14. package/assets/agent-assets/core/references/sys/SKILL.md +36 -0
  15. package/assets/agent-assets/core/references/view/SKILL.md +58 -0
  16. package/assets/agent-assets/core/references/working-disciplines/SKILL.md +69 -0
  17. package/assets/agent-assets/core/user-guides/agent-assets.md +81 -0
  18. package/assets/agent-assets/core/user-guides/agentspace.md +1098 -0
  19. package/assets/agent-assets/core/user-guides/aops-cli.md +1107 -0
  20. package/assets/agent-assets/core/user-guides/aops-system.md +63 -0
  21. package/assets/agent-assets/core/user-guides/chatv3.md +113 -0
  22. package/assets/agent-assets/core/user-guides/docman.md +162 -0
  23. package/assets/agent-assets/core/user-guides/projectman.md +212 -0
  24. package/assets/agent-assets/core/user-guides/sys.md +94 -0
  25. package/assets/agent-assets/core/user-guides/working-disciplines.md +588 -0
  26. package/assets/agent-assets/gateway/aops/SKILL.md +14 -0
  27. package/assets/r6-remote-session-baseline.json +19 -0
  28. package/assets/skills/aops-install/SKILL.md +231 -0
  29. package/assets/skills/aops-install/agents/openai.yaml +4 -0
  30. package/dist/commands/activity.js +352 -0
  31. package/dist/commands/agent-profile.js +653 -0
  32. package/dist/commands/agent.js +710 -0
  33. package/dist/commands/agents-md.js +125 -0
  34. package/dist/commands/api.js +84 -0
  35. package/dist/commands/archive.js +873 -0
  36. package/dist/commands/artifact.js +535 -0
  37. package/dist/commands/assets.js +1414 -0
  38. package/dist/commands/auth/device-login.js +1 -0
  39. package/dist/commands/auth/legacy-export.js +177 -0
  40. package/dist/commands/auth/login.js +426 -0
  41. package/dist/commands/chat.js +1363 -0
  42. package/dist/commands/chatv3.js +1684 -0
  43. package/dist/commands/checkpoint.js +549 -0
  44. package/dist/commands/commercial-artifact.js +475 -0
  45. package/dist/commands/commercial-license.js +594 -0
  46. package/dist/commands/community-auth.js +62 -0
  47. package/dist/commands/community-cockpit.js +185 -0
  48. package/dist/commands/community-console.js +109 -0
  49. package/dist/commands/community-doctor.js +335 -0
  50. package/dist/commands/community-server.js +2062 -0
  51. package/dist/commands/community-setup.js +284 -0
  52. package/dist/commands/discuss.js +1448 -0
  53. package/dist/commands/doc.js +5219 -0
  54. package/dist/commands/experience.js +922 -0
  55. package/dist/commands/host.js +1127 -0
  56. package/dist/commands/init.js +118 -0
  57. package/dist/commands/memory.js +3129 -0
  58. package/dist/commands/mission.js +562 -0
  59. package/dist/commands/official-catalog.js +134 -0
  60. package/dist/commands/plan.js +84 -0
  61. package/dist/commands/playbook.js +415 -0
  62. package/dist/commands/pm/context.js +6 -0
  63. package/dist/commands/pm/index.js +701 -0
  64. package/dist/commands/pm/projectman.js +6266 -0
  65. package/dist/commands/project.js +1080 -0
  66. package/dist/commands/prompt.js +1024 -0
  67. package/dist/commands/repo-sync.js +1907 -0
  68. package/dist/commands/resource.js +527 -0
  69. package/dist/commands/skill.js +1211 -0
  70. package/dist/commands/start-disciplines.js +510 -0
  71. package/dist/commands/start.js +1343 -0
  72. package/dist/commands/target.js +309 -0
  73. package/dist/commands/version.js +42 -0
  74. package/dist/commands/view.js +1852 -0
  75. package/dist/launchers/cockpit.js +28 -0
  76. package/dist/launchers/options.js +74 -0
  77. package/dist/launchers/server.js +41 -0
  78. package/dist/lib/agent-assets/envelope.js +83 -0
  79. package/dist/lib/agent-assets/gateway.js +15 -0
  80. package/dist/lib/agent-assets/guards.js +23 -0
  81. package/dist/lib/agent-assets/hosted-discovery.js +148 -0
  82. package/dist/lib/agent-assets/hosted-package-input.js +154 -0
  83. package/dist/lib/agent-assets/legacy-pointer-migration.js +677 -0
  84. package/dist/lib/agent-assets/native-fs.js +589 -0
  85. package/dist/lib/agent-assets/package-manifest.js +324 -0
  86. package/dist/lib/agent-assets/portable-path.js +67 -0
  87. package/dist/lib/agent-assets/release-input.js +177 -0
  88. package/dist/lib/agent-assets/roots.js +45 -0
  89. package/dist/lib/agent-assets/runtime-binding-reader.js +545 -0
  90. package/dist/lib/agent-assets/runtime-targets.js +50 -0
  91. package/dist/lib/agent-assets/store-reader.js +1212 -0
  92. package/dist/lib/agent-assets/store-types.js +1 -0
  93. package/dist/lib/agent-assets/store-writer.js +1484 -0
  94. package/dist/lib/agent-assets/types.js +1 -0
  95. package/dist/lib/agent-assets/unicode-case-folding-v15-1.generated.js +1548 -0
  96. package/dist/lib/commercial-final-readiness.js +504 -0
  97. package/dist/lib/commercial-lifecycle-smoke-isolation.js +236 -0
  98. package/dist/lib/commercial-managed-postgres-docker-adapter.js +274 -0
  99. package/dist/lib/commercial-setup-readiness-adapter.js +179 -0
  100. package/dist/lib/community-client-contract.js +164 -0
  101. package/dist/lib/community-cockpit-lifecycle.js +601 -0
  102. package/dist/lib/community-command-abort.js +59 -0
  103. package/dist/lib/community-diagnostic.js +237 -0
  104. package/dist/lib/community-docker-adapter.js +498 -0
  105. package/dist/lib/community-home.js +31 -0
  106. package/dist/lib/community-instance-contract.js +148 -0
  107. package/dist/lib/community-instance-layout.js +97 -0
  108. package/dist/lib/community-lifecycle.js +1631 -0
  109. package/dist/lib/community-migration-snapshot.js +770 -0
  110. package/dist/lib/community-native-application-recovery.js +425 -0
  111. package/dist/lib/community-native-child.js +240 -0
  112. package/dist/lib/community-native-database-recovery.js +456 -0
  113. package/dist/lib/community-native-lifecycle.js +2458 -0
  114. package/dist/lib/community-native-migration.js +339 -0
  115. package/dist/lib/community-native-postgres.js +596 -0
  116. package/dist/lib/community-operation-journal.js +773 -0
  117. package/dist/lib/community-operation-lock.js +596 -0
  118. package/dist/lib/community-release-resolver.js +291 -0
  119. package/dist/lib/community-release-verifier.js +475 -0
  120. package/dist/lib/community-repo-discovery.js +252 -0
  121. package/dist/lib/community-setup-server-env.js +203 -0
  122. package/dist/lib/external-url.js +110 -0
  123. package/dist/lib/official-catalog-gateway.js +108 -0
  124. package/dist/lib/official-catalog.js +364 -0
  125. package/dist/lib/server-bootstrap.js +240 -0
  126. package/dist/lib/setup-agent-assets-bridge.js +176 -0
  127. package/dist/lib/setup-agent-assets-release.js +52 -0
  128. package/dist/lib/setup-external-postgres.js +108 -0
  129. package/dist/lib/setup-init-orchestrator.js +990 -0
  130. package/dist/lib/setup-install-guide.js +52 -0
  131. package/dist/lib/setup-installer-release.js +47 -0
  132. package/dist/lib/setup-local-postgres.js +329 -0
  133. package/dist/lib/setup-official-catalog-bridge.js +148 -0
  134. package/dist/lib/setup-readiness.js +888 -0
  135. package/dist/lib/tui-launcher.js +59 -0
  136. package/dist/main.js +150 -0
  137. package/dist/seeds/agents-md.js +54 -0
  138. package/dist/utils/agent-gateway.js +275 -0
  139. package/dist/utils/agents-md.js +281 -0
  140. package/dist/utils/api.js +255 -0
  141. package/dist/utils/chatv3-session-store.js +185 -0
  142. package/dist/utils/command.js +67 -0
  143. package/dist/utils/community-host-runtime.js +376 -0
  144. package/dist/utils/config.js +1015 -0
  145. package/dist/utils/discussion-workspace.js +552 -0
  146. package/dist/utils/experience-workspace.js +326 -0
  147. package/dist/utils/guide-paths.js +67 -0
  148. package/dist/utils/hosted-sugar.js +56 -0
  149. package/dist/utils/hosted-workspace.js +229 -0
  150. package/dist/utils/memory-workspace.js +537 -0
  151. package/dist/utils/operator-runtime.js +199 -0
  152. package/dist/utils/password-crypto.js +39 -0
  153. package/dist/utils/playbook-workspace.js +479 -0
  154. package/dist/utils/project-context.js +255 -0
  155. package/dist/utils/prompts.js +70 -0
  156. package/dist/utils/refresh-race.js +28 -0
  157. package/dist/utils/repo-config.js +109 -0
  158. package/dist/utils/repo-first-projectman.js +194 -0
  159. package/dist/utils/repo-first-storage.js +13 -0
  160. package/dist/utils/repo-first-view.js +305 -0
  161. package/dist/utils/session-guidance.js +278 -0
  162. package/dist/utils/session-state.js +137 -0
  163. package/dist/utils/table.js +39 -0
  164. package/dist/utils/transient-fs.js +49 -0
  165. package/dist/utils/workspace-root.js +1 -0
  166. package/launchers/aops-cockpit.ps1 +15 -0
  167. package/launchers/aops-cockpit.sh +16 -0
  168. package/launchers/aops-server.ps1 +15 -0
  169. package/launchers/aops-server.sh +16 -0
  170. package/native/tui/win32-x64/aops-tui.exe +0 -0
  171. package/package.json +81 -0
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ AOPS PROPRIETARY SOFTWARE NOTICE
2
+
3
+ Copyright (c) 2026 Mehmet Zeki Sönmez. All rights reserved.
4
+
5
+ This software, its source code, documentation, and associated materials are
6
+ proprietary and confidential. Possession of, access to, or receipt of these
7
+ materials does not grant any license or other right.
8
+
9
+ Use, reproduction, modification, distribution, hosting, sublicensing, or other
10
+ exploitation is permitted only to the extent expressly authorized by a written
11
+ agreement executed by the applicable AOPS rights holder. A customer agreement
12
+ may incorporate the unmodified Bonterms Software License Terms, Version 1.0,
13
+ through an executed Cover Page and applicable Order.
14
+
15
+ Bonterms Software License Terms, Version 1.0:
16
+ https://bonterms.com/forms/software-license-terms-v1
17
+
18
+ Third-party components remain governed by their respective license terms. See
19
+ THIRD_PARTY_NOTICES and the applicable dependency inventory.
package/NOTICE ADDED
@@ -0,0 +1,7 @@
1
+ AOPS
2
+
3
+ Copyright (c) 2026 Mehmet Zeki Sönmez. All rights reserved.
4
+
5
+ Private and confidential commercial software. No open-source license is granted
6
+ for AOPS first-party code. See LICENSE for the controlling proprietary notice
7
+ and THIRD_PARTY_NOTICES for third-party attributions.
package/README.md ADDED
@@ -0,0 +1,203 @@
1
+ # @aopslabs/aops
2
+
3
+ AOPS CLI and terminal setup application. It can connect to a remote AOPS Server
4
+ without installing a local Server, or manage a separately installed local
5
+ Server.
6
+
7
+ ```sh
8
+ npm install --global @aopslabs/aops
9
+ aops --help
10
+ aops setup
11
+ aops setup ai
12
+ aops setup guide
13
+ aops setup init
14
+ aops cockpit
15
+ aops assets
16
+ ```
17
+
18
+ For a local installation, install the Server package separately:
19
+
20
+ ```sh
21
+ npm install --global @aopslabs/aops @aopslabs/aops-server
22
+ ```
23
+
24
+ The source repositories remain private. Customer-required runtime dependencies
25
+ may also be published as public npm packages so ordinary installation never
26
+ needs private registry credentials; this does not grant an open-source license.
27
+
28
+ The former npm package line is frozen at `@aopslab/aops-cli@0.1.15`. Do not
29
+ publish later CLI versions under that package name.
30
+
31
+ `aops` is the primary executable. The `aops-cli` executable remains an exact
32
+ backward-compatible alias, while new npm releases use the `@aopslabs/aops`
33
+ package name. `aops cockpit` opens a healthy installed Cockpit,
34
+ starting safely stopped services first; use `--no-open --json` on headless
35
+ hosts. Explicit `aops server ...` commands operate the API on port `5900`,
36
+ while `aops cockpit start|stop|restart|status|health|logs` independently
37
+ operates Cockpit on port `5922`.
38
+
39
+ Parameterless `aops` opens the bundled Rust TUI. Commands such as `aops setup`,
40
+ `aops server status`, and `aops --help` retain the existing CLI behavior.
41
+ When stdin or stdout is not an interactive terminal, parameterless `aops`
42
+ prints short CLI guidance instead of trying to draw the TUI.
43
+ `aops setup` always opens the installation menu, and `aops setup ai` prints a
44
+ safe prompt that can be handed to Codex, Claude, or another terminal AI agent.
45
+ The prompt routes the agent to the packaged `aops-install` skill and keeps
46
+ secrets in masked AOPS prompts instead of chat or argv.
47
+
48
+ The default `trusted-local` server remains bound only to
49
+ `127.0.0.1:5900`. It does not trust LAN or Tailscale interfaces. AOPS Server
50
+ on `5900` and Cockpit on `5922` are independently supervised services, and
51
+ neither redirects to the other. Community no longer embeds a non-loopback
52
+ identity provider, password store, refresh-session runtime, or first-admin
53
+ bootstrap. Repair a legacy local environment without putting its PostgreSQL
54
+ URL in argv:
55
+
56
+ ```sh
57
+ AOPS_PG_URL='<private-url>' aops setup server-env --auth trusted-local \
58
+ --yes --json
59
+ ```
60
+
61
+ The managed block is rewritten as `trusted-local`; retired JWT, encryption,
62
+ and bootstrap keys are removed without being printed. Local setup exposes one
63
+ security mode: `trusted-local` with `loopback`. Remote identity is owned by
64
+ South and consumed only as a separate CLI target using `remote-session`.
65
+ External targets require HTTPS and `system-ca`; plain HTTP has no remote
66
+ exception.
67
+
68
+ ```sh
69
+ aops target add --name remote --api-base-url https://aops.example.com \
70
+ --auth-provider remote-session --tls-policy system-ca --apply
71
+ aops target doctor remote --json
72
+ aops target use remote --apply
73
+ aops auth login --target remote
74
+ aops auth status --target remote
75
+ aops auth logout --target remote
76
+ ```
77
+
78
+ For one compatibility release, target configuration input
79
+ `authv2-jwt-session` is accepted and immediately canonicalized to
80
+ `remote-session`; persisted current configuration uses only the canonical
81
+ name. Existing local AuthV2 tables remain historical/read-only. Use
82
+ `aops auth legacy-export` for a credential-free deterministic identity and
83
+ role export; every migrated user must authenticate again through South.
84
+
85
+ `aops auth logout --target remote --local-only` deliberately clears only the
86
+ local encrypted credentials when remote revocation is unavailable.
87
+
88
+ `aops setup init` is the normal cross-platform first-install wizard. It offers an
89
+ existing PostgreSQL connection, an automatic Docker PostgreSQL 17 container,
90
+ or a dedicated AOPS role/database created in PostgreSQL installed on this computer,
91
+ uses the standard `default` instance with server port `5900` and Cockpit port
92
+ `5922`, installs all registered
93
+ runtime pointers, reconciles the bundled signed official catalog without
94
+ activating its skills, and leaves starter/demo user data untouched. Setup may
95
+ reconcile only the catalog's required internal state. Managed PostgreSQL uses a
96
+ generated strong password by default, with a masked custom-password choice in
97
+ the interactive wizard. All
98
+ database paths verify migrations before readiness; interactive terminals show
99
+ animated progress and `--json` remains machine-clean. Interactive setup applies
100
+ the chosen path immediately after collecting its required private inputs; the
101
+ verified global AOPS core/runtime gateways are automatic and have no extra
102
+ selection or confirmation questions. Signed collaboration
103
+ and working-discipline packages are imported as discoverable catalog choices,
104
+ not silently activated. Use `--agent-assets skip` only for an explicit opt-out.
105
+ A managed database can be
106
+ removed only with `aops server reset --remove-managed-postgres
107
+ --confirm-data-loss --confirm-instance default`; exact ownership labels are
108
+ verified before the container or volume is deleted.
109
+
110
+ Every JSON setup preview includes a deterministic, mutation-free installer
111
+ contract. `installerPlan.contractVersion` must be exactly
112
+ `aops.setup-installer-plan/v2`, `installerPlan.operation` identifies the
113
+ lifecycle action, and `installerPlan.planId` binds both fields plus the exact
114
+ selection and readiness material. Human clients such as AOPS TUI reject an
115
+ unsupported contract or operation before applying, then pass the identity back
116
+ with `--plan-id`. A changed contract, source, selection, or readiness snapshot
117
+ therefore fails before setup mutates anything. Existing scripts may still use
118
+ the legacy direct `--apply` form, while new automation should validate the
119
+ contract and bind preview and apply explicitly:
120
+
121
+ ```sh
122
+ aops setup init --path 2 --yes --json
123
+ aops setup init --path 2 --plan-id sha256:<64-hex> --apply --yes --json
124
+ ```
125
+
126
+ Setup path `4` connects the CLI to an existing AOPS Server without installing
127
+ or operating local PostgreSQL or server processes. It saves and selects the
128
+ named target, checks that exact endpoint, and continues with the browser-approved
129
+ remote-session device login when required:
130
+
131
+ ```sh
132
+ aops setup init --path 4 \
133
+ --api-base-url https://aops.example.com \
134
+ --target-name remote \
135
+ --target-auth-provider remote-session \
136
+ --target-tls-policy system-ca
137
+ ```
138
+
139
+ Setup path 3 probes loopback PostgreSQL without relying on `psql` being on
140
+ `PATH`, then asks for an existing administrator role/password through masked
141
+ input. The administrator password is transient; AOPS stores only its generated
142
+ application connection in the private user server-env. If PostgreSQL is absent
143
+ or stopped, readiness returns platform-specific Windows, macOS, or Linux
144
+ install/start guidance instead of silently invoking an elevated package manager.
145
+
146
+ The existing-PostgreSQL path supports managed providers such as Supabase and
147
+ Neon. Readiness compares only the migration-derived AOPS-owned table, column,
148
+ key, constraint, and index contract; column order, audit timestamps, local
149
+ receipts, and unrelated provider objects do not affect the result. The five
150
+ domain migration roots (`sys`, `agentspace`, `docman`, `projectman`, and
151
+ `chatv3`) remain resumability evidence rather than a second schema authority.
152
+ When that semantic structure is already exact, readiness does not inspect
153
+ historic SQL or journal bytes; executable bundle validation occurs only when
154
+ pending DDL must run.
155
+ Provider schemas, extensions, global event triggers, and unrelated `public`
156
+ objects are preserved. Normal setup does not require backup evidence, hash
157
+ application rows, pre-lock AOPS tables, or rewrite provider-managed grants.
158
+ Eligible DDL runs transactionally under a non-waiting migration lock and the
159
+ live semantic schema is read back before success. Optional audit-write failure
160
+ does not invalidate that result.
161
+
162
+ The CLI package does not force-install `@aopslabs/aops-server`. Remote users need
163
+ only the CLI; local users install the matching Server package separately. No
164
+ customer path requires Git or a source checkout. Advanced developers can still
165
+ run an explicit checkout with `--source-root`.
166
+ A stopped installation can move between valid checkout/npm roots through the
167
+ same setup command without reset or duplicate rollback copies; same-root npm
168
+ byte drift still requires reinstalling the package.
169
+
170
+ `aops setup guide` prints the packaged agent-readable installation skill before
171
+ the server is initialized. `aops assets` opens the registered-runtime asset
172
+ manager. It installs or updates the verified AOPS Gateway skill, repairs global pointers, reports
173
+ status, and can safely remove recognized pointers while retaining the local
174
+ verified core. Interactive `aops setup init` applies directly; automation uses
175
+ an explicit path with `--apply --yes`.
176
+ The official npm package supplies an independently signed
177
+ Gateway/client-core closure and inert official catalog snapshot, so normal
178
+ installation does not depend on an application-image release or ask for a
179
+ release directory. `--from-release` remains an
180
+ advanced maintainer/offline override. Use `aops assets --help` for the
181
+ non-interactive commands and target selectors. Unknown or user-owned skill
182
+ files are never overwritten or removed. Use `--target all`, a single runtime,
183
+ a comma-separated subset, or repeated `--target`; `both` is not supported.
184
+
185
+ Server data, configuration, credentials, logs, and lifecycle state are stored
186
+ outside npm's package directory. Existing and manually created PostgreSQL
187
+ remain operator-owned; setup path 2 owns only its namespaced, label-verified
188
+ managed PostgreSQL resources.
189
+
190
+ Opening the TUI does not by itself start or stop either service. Use the TUI's
191
+ explicit actions or the CLI command families. The convenience
192
+ `aops cockpit` command may start safely stopped services before opening the
193
+ browser; the explicit server and Cockpit lifecycle commands never stop or
194
+ start the other service.
195
+
196
+ The npm package includes `launchers/aops-server.sh` and
197
+ `launchers/aops-server.ps1` for running the installed server in the current
198
+ terminal with live logs. They invoke `node dist/launchers/server.js` by a
199
+ package-relative path, reuse the normal installed lifecycle, and stop on
200
+ Ctrl+C or terminal close. `launchers/aops-cockpit.sh` and `.ps1` invoke the
201
+ separate `node dist/launchers/cockpit.js` entry and start only Cockpit. The
202
+ scripts accept `--instance` and `--data-root`; they contain no credentials and
203
+ do not resolve or invoke `aops` through `PATH`.
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: aops
3
+ description: Route AOPS Community requests to concise packaged references, current CLI help, or live tool schema without selecting a work method.
4
+ ---
5
+
6
+ # AOPS Community
7
+
8
+ AOPS is a self-hostable operations layer. The `aops` command installs and
9
+ operates a local server, connects to remote servers, discovers live domain
10
+ capabilities, and manages verified machine-local agent assets.
11
+
12
+ This root skill is deliberately small. Read exactly one matching reference,
13
+ then open only the relevant heading in its linked user guide. Working
14
+ disciplines are available after setup, but are never selected merely because
15
+ this gateway loaded.
16
+
17
+ ## Route the request
18
+
19
+ | Need | Read first |
20
+ | --- | --- |
21
+ | install/setup, PostgreSQL, auth, server, health, sync, views, client assets | `references/aops-cli-core/SKILL.md` |
22
+ | read-only local dashboard, sprint/task/board views, focused digest | `references/view/SKILL.md` |
23
+ | durable memory, reusable prompts/skills/resources/artifacts, experience | `references/agentspace/SKILL.md` |
24
+ | durable session intent and resume packs | `references/mission/SKILL.md` |
25
+ | boards, tasks, sprints/plans, issues, feedback, reviews, handoffs | `references/projectman/SKILL.md` |
26
+ | versioned documents, sections, links, search, answer, mirrors | `references/docman/SKILL.md` |
27
+ | hosted coordination rooms, messages, inbox/listen/catchup | `references/hosted-chat/SKILL.md` |
28
+ | structured multi-agent decision/consensus topics | `references/discuss/SKILL.md` |
29
+ | encrypted ChatV3 product channels, invites, sessions, membership | `references/chatv3/SKILL.md` |
30
+ | counters, countries, event store, rate limits | `references/sys/SKILL.md` |
31
+ | choose or explain a working method | `references/working-disciplines/SKILL.md` |
32
+ | run the full optional collaborative session playbook | `references/collaborative-work/SKILL.md` |
33
+ | another installed/custom domain | `aops agent tools --domain <domain> --summary --json` |
34
+
35
+ `aops chat` is hosted coordination. `aops chatv3` is the encrypted product
36
+ channel surface. Do not merge those models. Fileman, Tasker/Runner, and the
37
+ interactive loop are not part of the default Community capability closure;
38
+ discover them only if the connected server actually advertises them.
39
+
40
+ ## Authority order
41
+
42
+ 1. Packaged references explain ownership, safety, and common examples.
43
+ 2. Current nested `aops ... --help` owns sugar command flags.
44
+ 3. `aops agent schema --tool <domain.operation> --summary --json` owns raw invoke payload fields.
45
+ 4. `aops agent invoke --tool <domain.operation> --input '@payload.json' --preview --json` is the generic fallback.
46
+
47
+ Use `aops agent tools --summary --json` when the installed server differs from
48
+ the packaged core. Do not load every reference or whole guide into context, and
49
+ do not infer server topology or capabilities from a repository checkout.
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: aops-cli-agentspace
3
+ description: Use for durable memory, synopsis, reusable prompts/skills/resources/artifacts, experience, agent profiles, and other Agentspace-owned context through the AOPS CLI.
4
+ ---
5
+
6
+ # Agentspace
7
+
8
+ Agentspace owns durable agent/operator context and reusable hosted assets.
9
+ Project execution belongs to Projectman; versioned documents belong to Docman.
10
+ Hosted coordination and structured decisions have their own references.
11
+
12
+ Read only the needed section of `../../user-guides/agentspace.md`. Exact flags
13
+ come from live nested help.
14
+
15
+ ## Durable memory
16
+
17
+ ```bash
18
+ aops mem --help
19
+ aops mem list --json
20
+ aops mem search --q "migration decision" --limit 10 --json
21
+ aops mem write --mode resume --subject project --content "<bounded handoff>" --apply
22
+ aops mem list --durability sticky --json
23
+ aops mem synopsis --subject project --json
24
+ ```
25
+
26
+ Use memory for decisions, constraints, handoffs, and facts that must survive a
27
+ session. Keep content concise and scoped. Do not use memory as a duplicate task
28
+ tracker or paste secrets, logs, or large documents into it.
29
+
30
+ ## Reusable hosted assets
31
+
32
+ ```bash
33
+ aops prompt list --json
34
+ aops skill list --json
35
+ aops resource list --json
36
+ aops artifact list --json
37
+ aops exp list --json
38
+ ```
39
+
40
+ Create/update/version commands are guarded writes. Inspect their help first:
41
+
42
+ ```bash
43
+ aops skill version create --help
44
+ aops skill version publish --help
45
+ aops prompt version create --help
46
+ aops resource create --help
47
+ ```
48
+
49
+ Hosted prompt/skill truth lives on the server. Local mirrors are read-only
50
+ context. Artifact records are metadata/pointers, not a large binary store.
51
+
52
+ ## Missions and sessions
53
+
54
+ For durable session intent and resume packs, load `../mission/SKILL.md` rather
55
+ than the full Agentspace guide. For rooms/messages load
56
+ `../hosted-chat/SKILL.md`; for structured consensus load
57
+ `../discuss/SKILL.md`.
58
+
59
+ ## Raw discovery fallback
60
+
61
+ ```bash
62
+ aops agent tools --domain agentspace --q memory --limit 20 --summary --json
63
+ aops agent schema --tool agentspace.<operation> --summary --json
64
+ aops agent invoke --tool agentspace.<operation> --input '@payload.json' --preview --json
65
+ ```
66
+
67
+ Always inspect schema before raw writes. Use `--apply` only after scope and
68
+ payload are clear; use an idempotency key for retryable mutations when
69
+ supported. Read back the exact record after mutation.
70
+
71
+ ## Boundaries
72
+
73
+ - Planning, tasks, sprints, issues, feedback, reviews: Projectman.
74
+ - Document graphs, page content, publish/search/answer: Docman.
75
+ - Hosted coordination/wake: `aops chat`.
76
+ - Structured decision transcript: `aops discuss`.
77
+ - Encrypted product channel: `aops chatv3`.
78
+ - Repo `.aops/**`: derived cache, never the canonical authoring source.
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: aops-cli-core
3
+ description: Use for AOPS installation, PostgreSQL setup, server lifecycle, health, authentication, sync, views, verified agent assets, and schema-first capability discovery.
4
+ ---
5
+
6
+ # AOPS CLI core
7
+
8
+ Use the installed `aops` command as runtime truth. Read only the matching
9
+ section in `../../user-guides/aops-cli.md`, `../../user-guides/aops-system.md`,
10
+ or `../../user-guides/agent-assets.md` when this quick map is insufficient.
11
+
12
+ ## Install and diagnose
13
+
14
+ ```bash
15
+ aops --version
16
+ aops setup init
17
+ aops setup ai
18
+ aops setup guide
19
+ aops server status --json
20
+ aops server health --json
21
+ aops cockpit
22
+ ```
23
+
24
+ `aops setup init` owns the complete first-run flow: choose an existing
25
+ PostgreSQL, AOPS-managed PostgreSQL container, detected local PostgreSQL, or a
26
+ remote AOPS server. Local server paths plan/apply/verify migrations, start the
27
+ npm server, leave starter/demo user data untouched, and install verified agent
28
+ assets. Database secrets belong only in masked prompts or private input
29
+ files/environment; never paste them into chat or argv.
30
+
31
+ For an unattended run, inspect readiness before apply:
32
+
33
+ ```bash
34
+ aops setup init --path 1 --yes --json
35
+ aops setup init --path 2 --yes --json
36
+ aops setup init --path 3 --yes --json
37
+ ```
38
+
39
+ Use the exact next action returned by readiness. Do not bypass TLS choices,
40
+ asset ownership conflicts, or migration lineage errors.
41
+
42
+ ## Server and target lifecycle
43
+
44
+ ```bash
45
+ aops server start --json
46
+ aops server stop --json
47
+ aops server restart --json
48
+ aops server logs --tail 100
49
+ aops host health --json
50
+ aops host diagnostics --json
51
+ aops target list --json
52
+ aops target doctor <name> --json
53
+ ```
54
+
55
+ Use `aops server <command> --help` before reset, rollback, or recovery. Never
56
+ remove operator-owned PostgreSQL/Docker resources. Setup path 2 may manage only
57
+ its exact label-verified AOPS container and volume.
58
+
59
+ ## Verified agent assets
60
+
61
+ ```bash
62
+ aops assets status --verify quick --json
63
+ aops assets install --target all --apply --json
64
+ aops assets resolve --gateway aops --json
65
+ aops assets discover --query "sprint planning" --limit 5 --json
66
+ ```
67
+
68
+ `--target all` means every registered runtime, not only Codex and Claude.
69
+ Install/repair fails closed on unknown user files. The core makes rich guides
70
+ and disciplines available but never selects a working method.
71
+
72
+ ## Cache and read-only views
73
+
74
+ ```bash
75
+ aops sync status --json
76
+ aops sync pull --apply --json
77
+ aops view dashboard --style agent
78
+ aops view digest --task <task-id> --depth deep
79
+ ```
80
+
81
+ Hosted records remain canonical. Repository `.aops/**` content is a read-only
82
+ cache/presentation surface; never hand-edit it as hosted truth.
83
+
84
+ ## Capability discovery
85
+
86
+ ```bash
87
+ aops agent tools --summary --json
88
+ aops agent tools --domain <domain> --q <intent> --limit 10 --summary --json
89
+ aops agent schema --tool <domain.operation> --summary --json
90
+ aops agent invoke --tool <domain.operation> --input '@payload.json' --preview --json
91
+ ```
92
+
93
+ Use sugar when nested `--help` exposes it. Direct invoke requires live schema.
94
+ If a write is intended, preview when supported and add `--apply`; destructive
95
+ operations may additionally require `--confirm`. Stop guessing after a 400 or
96
+ validation error and inspect full schema/OpenAPI.
97
+
98
+ ## Guard contract
99
+
100
+ - `--json`: stable automation output.
101
+ - `--yes`: non-interactive input handling; never implies mutation approval.
102
+ - `--preview`: validate/plan without applying when supported.
103
+ - `--apply`: execute a guarded write.
104
+ - `--confirm`: acknowledge destructive scope.
105
+ - `--idempotency-key`: make supported retries deterministic.
106
+
107
+ Current nested `--help` wins over packaged examples. Live schema wins for raw
108
+ payload fields and the live catalog wins for mounted-domain availability.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: aops-cli-chatv3
3
+ description: Use for encrypted ChatV3 product channels, invitations, local session context, membership, presence, epochs, and message operations through the AOPS CLI.
4
+ ---
5
+
6
+ # ChatV3
7
+
8
+ Use `aops chatv3` for product-facing encrypted channel/session operations.
9
+ This is different from `aops chat`, which owns hosted agent coordination,
10
+ wakes, inbox cursors, and room bindings.
11
+
12
+ Read only the relevant section of `../../user-guides/chatv3.md`. Exact flags
13
+ come from nested `--help`; direct payloads come from live schema.
14
+
15
+ ## Common entry points
16
+
17
+ ```bash
18
+ aops chatv3 --help
19
+ aops chatv3 channel --help
20
+ aops chatv3 session --help
21
+ aops chatv3 member --help
22
+ aops chatv3 send --help
23
+ aops chatv3 read --help
24
+ ```
25
+
26
+ Typical discovery and read flow:
27
+
28
+ ```bash
29
+ aops chatv3 session list --json
30
+ aops chatv3 channels --json
31
+ aops agent tools --domain chatv3 --summary --json
32
+ aops agent schema --tool chatv3.channel.list --summary --json
33
+ ```
34
+
35
+ ChatV3 may keep invite, member-token, and room-key context in a private local
36
+ session store. Never paste those values into chat, logs, source files, or raw
37
+ shell history. Use masked CLI prompts or supported input-file/env mechanisms.
38
+
39
+ For a write not exposed by sugar, inspect the exact live schema before invoke:
40
+
41
+ ```bash
42
+ aops agent schema --tool chatv3.<operation> --summary --json
43
+ aops agent invoke --tool chatv3.<operation> --input '@payload.json' --preview --json
44
+ ```
45
+
46
+ Do not use ChatV3 as the durable Projectman review record or the structured
47
+ `discuss` transcript. Link or summarize outcomes into the correct owner when
48
+ durability matters.
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: aops-collaborative-work
3
+ description: Use when the operator explicitly wants the full AOPS session playbook for solo work, async review, or hosted chat-room collaboration with Projectman-backed execution.
4
+ ---
5
+
6
+ # AOPS collaborative work
7
+
8
+ Default to `solo`. Collaboration is an operator choice, not an automatic
9
+ requirement. Select one mode at kickoff and use
10
+ `../working-disciplines/SKILL.md` only when a working method must also be chosen.
11
+
12
+ ## Compact startup
13
+
14
+ ```bash
15
+ aops sync status --json
16
+ aops view dashboard --style agent
17
+ aops start --task "<task>" --json --out ./aops-start.md
18
+ aops mission resume --id <mission-id> --json
19
+ aops pm board resume --board <slug> --json
20
+ ```
21
+
22
+ Use `result.promptRef.path` or the output file; do not request inline/full output
23
+ unless the prompt body is actually needed. Ask the operator only for fields
24
+ explicitly marked operator-owned, especially agent identities and roles.
25
+
26
+ ## Mode 1: solo
27
+
28
+ 1. Read the smallest relevant guide/help surface.
29
+ 2. Create or identify the Projectman task/plan appropriate to the work size.
30
+ 3. Implement one bounded slice.
31
+ 4. Run focused validation and read back hosted mutations.
32
+ 5. Update status/handoff; keep board/mission open unless closeout was requested.
33
+
34
+ Useful reads:
35
+
36
+ ```bash
37
+ aops view digest --task <task-id> --depth shallow
38
+ aops pm issue list --status open --json
39
+ aops pm review-request list --status open --json
40
+ ```
41
+
42
+ ## Mode 2: solo plus async review
43
+
44
+ After implementation and local validation, create a durable review request:
45
+
46
+ ```bash
47
+ aops pm review-request create --help
48
+ aops pm review-request list --status open --json
49
+ aops pm review-request result --help
50
+ ```
51
+
52
+ The reviewer records the result in Projectman. Material findings become
53
+ Projectman issues or bounded fix slices; chat is only the optional wake channel.
54
+ Do not claim review completion from a message alone.
55
+
56
+ ## Mode 3: hosted chat room
57
+
58
+ ```bash
59
+ aops chat room create --slug <slug> --title "<purpose>" \
60
+ --created-by <lead> --member "<lead>:<role>" \
61
+ --member "<peer>:<role>" --apply --json
62
+ aops chat binding add --room-id <id> \
63
+ --binding-type projectman.board --ref-id <board-id> \
64
+ --created-by <lead> --apply --json
65
+ aops chat room brief --room-id <id> --for <peer>
66
+ aops chat listen --for <agent> --room-id <id> --timeout-sec 570 --json
67
+ ```
68
+
69
+ Each participant owns a non-overlapping slice and reports completion with
70
+ validation evidence. Use `aops discuss` only for a material consensus decision;
71
+ use `aops chatv3` only when encrypted product-channel behavior is the actual
72
+ task.
73
+
74
+ ## During work
75
+
76
+ ```bash
77
+ aops start --reminder --task "<task>" --area <area> --json
78
+ aops mem checkpoint --help
79
+ aops pm status audit --help
80
+ ```
81
+
82
+ Prefer the detail ladder: this skill → one family reference → nested `--help` →
83
+ live `agent schema`. Never preload every guide. Never invent another agent's
84
+ stance, close operator-owned surfaces, or mark work done without requested
85
+ validation and durable status.
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: aops-cli-discuss
3
+ description: Use for a structured server-canonical design decision or consensus topic with independent turns, explicit final stances, completeness checks, and deterministic conclusion.
4
+ ---
5
+
6
+ # AOPS Discuss
7
+
8
+ `aops discuss` owns a durable decision transcript and conclusion. Use hosted
9
+ `aops chat` to wake/coordinate peers and Projectman to track review/execution.
10
+ Do not start a discussion ritual for a small reversible implementation choice.
11
+
12
+ The complete owner and troubleshooting model is in the Discuss sections of
13
+ `../../user-guides/agentspace.md`.
14
+
15
+ ## Start and inspect
16
+
17
+ ```bash
18
+ aops discuss --help
19
+ aops discuss start --title "<decision>" --question "<question>" \
20
+ --participant <agent-a> --participant <agent-b> --apply --json
21
+ aops discuss status --id <topic> --json
22
+ aops discuss get --id <topic> --json
23
+ ```
24
+
25
+ Give every participant enough neutral context to research independently. Role
26
+ assignment belongs to the operator; an agent must not invent or swap identities.
27
+
28
+ ## Record turns
29
+
30
+ ```bash
31
+ aops discuss turn --topic <topic> --agent <agent> \
32
+ --kind statement --from-file ./turn.md --apply --json
33
+ aops discuss wait --id <topic> --for <agent> \
34
+ --timeout-sec 540 --interval-sec 5 --json
35
+ ```
36
+
37
+ For material design decisions, record multiple substantive non-final turns so
38
+ tradeoffs and objections are visible. Do not use chat messages as a substitute
39
+ for the canonical topic transcript.
40
+
41
+ ## Finalize safely
42
+
43
+ ```bash
44
+ aops discuss turn --topic <topic> --agent <agent> \
45
+ --kind final-stance --from-file ./final.md --apply --json
46
+ aops discuss status --id <topic> --json
47
+ aops discuss conclude --topic <topic> --apply --json
48
+ ```
49
+
50
+ Conclude only when every required participant has a `final-stance` and status
51
+ reports no missing final stances. Outputs must contain real decisions and
52
+ follow-ups, not `_TBD_` placeholders.
53
+
54
+ There is no automatic bridge: explicitly reference the concluded topic from a
55
+ Projectman task/review/issue or durable memory, then send a short hosted-chat
56
+ wake if another agent must act.
57
+
58
+ For raw operations:
59
+
60
+ ```bash
61
+ aops agent tools --domain agentspace --q discuss --limit 20 --summary --json
62
+ aops agent schema --tool agentspace.<discuss-operation> --summary --json
63
+ ```
64
+
65
+ Prefer slug/ID selectors returned by creation. Treat timeouts as state to
66
+ report, not permission to fabricate another participant's stance.