@synap-core/cli 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/data.js +16 -9
- package/dist/commands/data.js.map +1 -1
- package/dist/commands/discover.d.ts +18 -0
- package/dist/commands/discover.js +71 -0
- package/dist/commands/discover.js.map +1 -0
- package/dist/commands/knowledge.js +9 -5
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/hub-client.d.ts +8 -0
- package/dist/lib/hub-client.js +14 -0
- package/dist/lib/hub-client.js.map +1 -1
- package/dist/lib/pod.d.ts +8 -0
- package/dist/lib/pod.js +9 -1
- package/dist/lib/pod.js.map +1 -1
- package/dist/lib/targets.js +31 -7
- package/dist/lib/targets.js.map +1 -1
- package/node_modules/@synap/hub-rest-client/dist/index.cjs +881 -0
- package/node_modules/@synap/hub-rest-client/dist/index.d.cts +907 -0
- package/node_modules/@synap/hub-rest-client/dist/index.d.ts +907 -0
- package/node_modules/@synap/hub-rest-client/dist/index.js +851 -0
- package/node_modules/@synap/hub-rest-client/package.json +45 -0
- package/node_modules/@synap/hub-rest-client/src/client.ts +1143 -0
- package/node_modules/@synap/hub-rest-client/src/errors.ts +30 -0
- package/node_modules/@synap/hub-rest-client/src/index.ts +111 -0
- package/node_modules/@synap/hub-rest-client/src/setup.ts +77 -0
- package/node_modules/@synap/hub-rest-client/src/types.ts +639 -0
- package/package.json +8 -2
- package/skills/synap/SKILL.md +19 -20
package/skills/synap/SKILL.md
CHANGED
|
@@ -74,22 +74,19 @@ POST /api/hub/memory body: { userId, fact }
|
|
|
74
74
|
GET /api/hub/memory?userId=…&query=…
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
| `document` | `contentType` (markdown/html), `summary`, `projectId` (entity_id) |
|
|
91
|
-
|
|
92
|
-
For custom profiles or constraint details: `GET /api/hub/profiles?userId={userId}&workspaceId={workspaceId}`.
|
|
77
|
+
**Profile schemas are runtime-discovered — never hardcoded:**
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
synap discover --json # CLI: full profile tree with property schemas + command map
|
|
81
|
+
synap discover --profiles --json # CLI: profiles only
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
GET /api/hub/discover?userId={userId}&workspaceId={workspaceId}
|
|
86
|
+
→ { profiles: [{ slug, displayName, scope, properties: [{ slug, type, options? }], createCommand }], commands: {...} }
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Call this once at session start. The response includes every system profile and any custom workspace profiles the user has created, each with its full property schema. Use `createCommand` per profile as a copy-paste template. Do not rely on a static property list — it will drift.
|
|
93
90
|
|
|
94
91
|
**Load more detail on demand** (`GET /api/hub/skills/system?sections=<id>`):
|
|
95
92
|
|
|
@@ -122,12 +119,14 @@ GET /api/hub/users/me
|
|
|
122
119
|
GET /api/hub/workspaces
|
|
123
120
|
→ [{ id, name, role }] ← workspaces[0].id if only one
|
|
124
121
|
|
|
125
|
-
GET /api/hub/
|
|
126
|
-
→ [{ slug, displayName,
|
|
122
|
+
GET /api/hub/discover?userId={userId}&workspaceId={workspaceId}
|
|
123
|
+
→ { profiles: [{ slug, displayName, scope, properties, createCommand }], commands: {...} }
|
|
124
|
+
← replaces /profiles — includes property schemas + custom workspace profiles
|
|
127
125
|
```
|
|
128
126
|
|
|
129
|
-
`
|
|
130
|
-
`
|
|
127
|
+
`scope: "pod"` = visible across all workspaces (note, task, project, person, company, bookmark, event, contact, article, website).
|
|
128
|
+
`scope: "workspace"` = scoped to one workspace (deal, file, capture, custom profiles).
|
|
129
|
+
Each profile includes its full property schema. Use `createCommand` as a template.
|
|
131
130
|
|
|
132
131
|
**2. Search before answering**
|
|
133
132
|
Before answering any question about the user's projects, tasks, contacts, decisions, or anything they might have captured — search Synap first. Do not answer from your training or context window when Synap may have the authoritative answer.
|