hissuno 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.
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "hissuno",
3
+ "version": "0.2.0",
4
+ "description": "Hissuno CLI — set up, connect, and query your product intelligence platform",
5
+ "type": "module",
6
+ "bin": {
7
+ "hissuno": "./bin/hissuno.mjs"
8
+ },
9
+ "main": "dist/index.js",
10
+ "files": [
11
+ "dist",
12
+ "bin",
13
+ "skills",
14
+ "README.md"
15
+ ],
16
+ "scripts": {
17
+ "prebuild": "rm -rf skills && cp -r ../skills/hissuno skills",
18
+ "build": "tsup",
19
+ "dev": "tsup --watch",
20
+ "prepublishOnly": "npm run build",
21
+ "test": "vitest run",
22
+ "test:watch": "vitest"
23
+ },
24
+ "dependencies": {
25
+ "@inquirer/prompts": "^7.0.0",
26
+ "commander": "^13.0.0"
27
+ },
28
+ "devDependencies": {
29
+ "tsup": "^8.0.0",
30
+ "typescript": "^5",
31
+ "vitest": "^3.0.0"
32
+ },
33
+ "engines": {
34
+ "node": ">=20.0.0"
35
+ },
36
+ "keywords": [
37
+ "hissuno",
38
+ "cli",
39
+ "product-intelligence",
40
+ "customer-feedback",
41
+ "api",
42
+ "rest"
43
+ ],
44
+ "license": "MIT",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/hissuno/hissuno.git",
48
+ "directory": "app/packages/cli"
49
+ },
50
+ "bugs": {
51
+ "url": "https://github.com/hissuno/hissuno/issues"
52
+ },
53
+ "homepage": "https://github.com/hissuno/hissuno/tree/main/app/packages/cli#readme"
54
+ }
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: hissuno
3
+ description: >
4
+ Use when working with product intelligence data: searching knowledge, browsing feedback,
5
+ tracking issues, managing customers (contacts and companies), organizing product scopes,
6
+ traversing the knowledge graph, or connecting data sources via integrations.
7
+ Works via the hissuno CLI.
8
+ license: MIT
9
+ compatibility: Requires network access to Hissuno API endpoint
10
+ metadata:
11
+ author: hissuno
12
+ version: "2.0"
13
+ ---
14
+
15
+ # Hissuno Agent Skill
16
+
17
+ Hissuno is a unified context layer for product agents. It ingests codebases, docs, and customer signals (from chat widgets, Slack, Intercom, Gong, etc.) into an interconnected knowledge graph - knowledge sources, feedback sessions, product issues, customers (contacts and companies), and product scopes - all linked and traversable.
18
+
19
+ ## Available Data
20
+
21
+ Hissuno exposes **5 resource types**:
22
+
23
+ | Type | CLI Type | What It Contains |
24
+ |------|----------|-----------------|
25
+ | **Knowledge** | `knowledge` | Analyzed knowledge sources (codebases, docs, URLs) - searchable via semantic vector search |
26
+ | **Feedback** | `feedback` | Customer feedback sessions - conversations with metadata, tags, and contact links |
27
+ | **Issues** | `issues` | Product issues - bugs, feature requests, and change requests with priority, status, and RICE scores |
28
+ | **Customers** | `customers` | Contacts (people) and companies (organizations) - use `--customer-type` to select |
29
+ | **Product Scopes** | `scopes` | Product areas and initiatives with measurable goals |
30
+
31
+ See individual reference files in `references/` for detailed filters, fields, and examples per type.
32
+
33
+ ## The Knowledge Graph
34
+
35
+ All entity types are connected via universal edges. Any entity can link to any other entity. Run `hissuno get <type> <id>` to see all relationships for a resource in a single call. See `references/GRAPH-TRAVERSAL.md` for traversal patterns and multi-step query examples.
36
+
37
+ ## Getting Started
38
+
39
+ Run `hissuno types` to see all available types, their filters, and creation fields.
40
+
41
+ ## Configuration & Profiles
42
+
43
+ Connect the CLI and manage multiple environments:
44
+
45
+ ```bash
46
+ hissuno config # Interactive setup wizard (API key, URL, project)
47
+ hissuno config show # Display active profile, URL, and project
48
+ hissuno profile list # List all profiles (* marks active)
49
+ hissuno profile use <name> # Switch active profile
50
+ hissuno profile create <name> # Create a new profile via config wizard
51
+ hissuno profile delete <name> # Remove a profile
52
+ ```
53
+
54
+ Install Hissuno skills into agent environments:
55
+
56
+ ```bash
57
+ hissuno skills install # Install to ~/.claude/skills/hissuno/
58
+ hissuno skills install --cursor # Install to ~/.cursor/skills/hissuno/
59
+ hissuno skills install --path <dir> # Install to a custom directory
60
+ hissuno skills status # Check installation status across known locations
61
+ hissuno skills uninstall # Remove installed skills
62
+ ```
63
+
64
+ ## When to Use Which Command
65
+
66
+ | Goal | Command | Example |
67
+ |------|---------|---------|
68
+ | Understand what data exists | `hissuno types` | "What can I access?" |
69
+ | Browse recent items | `hissuno list <type>` | "Show me open bugs" |
70
+ | Look up a specific item | `hissuno get <type> <id>` | "Get details for issue abc-123" |
71
+ | Find items by meaning | `hissuno search <query>` | "Find feedback about checkout flow" |
72
+ | Create new data | `hissuno add <type>` | "Log a bug about login failures" |
73
+ | Traverse relationships | `hissuno get <type> <id> --json` | "What companies are affected by this issue?" |
74
+ | Connect a data source | `hissuno integrate` | "Connect Intercom" |
75
+ | View current connection | `hissuno config show` | "Which instance am I connected to?" |
76
+ | Switch environment | `hissuno profile use <name>` | "Switch to staging" |
77
+
78
+ Use `search` for semantic (meaning-based) matching. Use `list` when you want to browse with structured filters (status, priority, source, etc.).
79
+
80
+ ## Common Workflows
81
+
82
+ ### Investigate a Feature Area
83
+ 1. `hissuno list scopes` to find the relevant product scope
84
+ 2. `hissuno get scopes <id>` to see related issues, feedback, and knowledge
85
+ 3. `hissuno get issues <id>` on specific issues for full details and RICE scores
86
+
87
+ ### Find Customer Pain Points
88
+ 1. `hissuno list feedback --source intercom --status closed` to see recent conversations
89
+ 2. `hissuno search "the problem area"` across all types
90
+ 3. Cross-reference with `hissuno list issues --status open` to check existing issues
91
+
92
+ ### Log a Bug from Customer Feedback
93
+ 1. `hissuno search "the problem" --type issues` to check for duplicates
94
+ 2. If no duplicate: `hissuno add issues` with type=bug, title, description
95
+ 3. Optionally reference the feedback session ID in the description
96
+
97
+ ### Analyze a Customer Account
98
+ 1. `hissuno list customers --customer-type companies --stage active` to find the company
99
+ 2. `hissuno get customers <company-id> --customer-type companies` for company details and contacts
100
+ 3. `hissuno list customers --company-id <id>` to find contacts at the company
101
+ 4. Cross-reference with `hissuno list feedback --contact-id <id>` for full conversation history
102
+
103
+ ### Assess Goal Progress
104
+ 1. `hissuno list scopes` to find the scope
105
+ 2. `hissuno get scopes <id>` to see goals and related issues
106
+ 3. Review issue statuses and priorities to gauge progress toward each goal
107
+
108
+ ### Switch Between Environments
109
+ 1. `hissuno profile list` to see available profiles
110
+ 2. `hissuno profile use <name>` to switch
111
+ 3. `hissuno config show` to verify the active connection
112
+
113
+ ### Connect a Data Source
114
+ 1. `hissuno integrate` to see all integration statuses
115
+ 2. `hissuno integrate <platform>` to start the interactive setup wizard
116
+ 3. For syncable platforms: `hissuno integrate <platform> sync` to trigger initial data pull
117
+
118
+ ## CLI Reference
119
+
120
+ The `hissuno` CLI is the primary interface for Claude Code users. See `references/CLI-REFERENCE.md` for the full command reference.
121
+
122
+ Quick examples:
123
+ ```bash
124
+ hissuno types # List resource types
125
+ hissuno list issues --status open --priority high # Browse open high-priority issues
126
+ hissuno list customers # List contacts (default)
127
+ hissuno list customers --customer-type companies # List companies
128
+ hissuno list scopes # List product areas and initiatives
129
+ hissuno search "checkout flow" # Semantic search across all types
130
+ hissuno get feedback <id> # Full session detail + relationships
131
+ hissuno get customers <id> # Contact details + company relationship
132
+ hissuno add issues # Interactive issue creation
133
+ hissuno add scopes # Create a product scope with goals
134
+ hissuno update scopes <id> # Modify scope name, type, or goals
135
+ hissuno integrate # List all integration statuses
136
+ hissuno integrate intercom sync # Sync Intercom conversations
137
+ hissuno config show # View active connection
138
+ hissuno profile list # List profiles
139
+ hissuno profile use staging # Switch to staging profile
140
+ hissuno skills install # Install skills for Claude Code
141
+ ```
142
+
143
+ ## MCP Access (Alternative)
144
+
145
+ Everything above can also be accessed via MCP tools if you prefer structured tool calls over CLI. See `references/MCP-TOOLS.md` for setup and usage.
@@ -0,0 +1,353 @@
1
+ # Hissuno CLI Reference
2
+
3
+ Complete command reference for the `hissuno` CLI.
4
+
5
+ ## Global Options
6
+
7
+ | Option | Description |
8
+ |--------|-------------|
9
+ | `--json` | Output as JSON instead of formatted markdown |
10
+ | `-V, --version` | Show version number |
11
+ | `-h, --help` | Show help |
12
+
13
+ ---
14
+
15
+ ## Commands
16
+
17
+ ### `hissuno setup`
18
+
19
+ Infrastructure wizard. Sets up a new Hissuno instance from scratch:
20
+ 1. Check prerequisites (Node.js 20+, git)
21
+ 2. Clone repository
22
+ 3. Install dependencies and build widget
23
+ 4. Detect/install PostgreSQL with pgvector
24
+ 5. Configure `.env.local`
25
+ 6. Push database schema
26
+ 7. Seed demo data (optional)
27
+ 8. Auto-configure CLI (optional)
28
+ 9. Start the server
29
+
30
+ ```bash
31
+ npm i -g hissuno
32
+ hissuno setup
33
+ ```
34
+
35
+ ---
36
+
37
+ ### `hissuno config`
38
+
39
+ Manual configuration wizard. Connects the CLI to an existing Hissuno instance:
40
+ 1. **Authentication** - enter your API key and Hissuno URL (default: `http://localhost:3000`)
41
+ 2. **Project** - auto-detects the project associated with your API key
42
+ 3. **Data sources** - optionally connect integrations (Intercom, Gong, Slack, etc.)
43
+
44
+ ```bash
45
+ hissuno config
46
+ ```
47
+
48
+ Saves configuration to `~/.hissuno/config.json`.
49
+
50
+ ---
51
+
52
+ ### `hissuno config show`
53
+
54
+ Display current configuration (active profile, API key, URL, project).
55
+
56
+ ```bash
57
+ hissuno config show
58
+ hissuno config show --json
59
+ ```
60
+
61
+ Shows the active profile name, masked API key, base URL, and project ID.
62
+
63
+ ---
64
+
65
+ ### `hissuno profile`
66
+
67
+ Manage multiple CLI profiles for different Hissuno instances or projects.
68
+
69
+ ```bash
70
+ hissuno profile list # List all profiles (* marks active)
71
+ hissuno profile use <name> # Switch active profile
72
+ hissuno profile create <name> # Create a new profile via config wizard
73
+ hissuno profile delete <name> # Remove a profile
74
+ ```
75
+
76
+ **Subcommands:**
77
+
78
+ | Subcommand | Args | Description |
79
+ |------------|------|-------------|
80
+ | `list` | | List all profiles with active indicator |
81
+ | `use` | `<name>` (required) | Switch to a different profile |
82
+ | `create` | `<name>` (required) | Run config wizard and save as a named profile |
83
+ | `delete` | `<name>` (required) | Remove a profile (cannot delete the active profile) |
84
+
85
+ Profiles are stored in `~/.hissuno/config.json` under a `profiles` key.
86
+
87
+ ---
88
+
89
+ ### `hissuno skills`
90
+
91
+ Install Hissuno skills (SKILL.md + references) into agent environments.
92
+
93
+ ```bash
94
+ hissuno skills install # Install to ~/.claude/skills/hissuno/
95
+ hissuno skills install --cursor # Install to ~/.cursor/skills/hissuno/
96
+ hissuno skills install --path <dir> # Install to a custom directory
97
+ hissuno skills install --force # Overwrite without prompting
98
+ hissuno skills uninstall # Remove from default location
99
+ hissuno skills uninstall --cursor # Remove from Cursor location
100
+ hissuno skills status # Check installation across known locations
101
+ ```
102
+
103
+ **Subcommands:**
104
+
105
+ | Subcommand | Description |
106
+ |------------|-------------|
107
+ | `install` | Copy bundled skills to an agent environment |
108
+ | `uninstall` | Remove installed skills |
109
+ | `status` | Show install state for Claude Code and Cursor locations |
110
+
111
+ **Install options:**
112
+
113
+ | Option | Description |
114
+ |--------|-------------|
115
+ | `--cursor` | Target `~/.cursor/skills/hissuno/` instead of Claude Code |
116
+ | `--path <dir>` | Target a custom directory (mutually exclusive with `--cursor`) |
117
+ | `--force` | Overwrite existing installation without confirmation |
118
+
119
+ ---
120
+
121
+ ### `hissuno status`
122
+
123
+ Check connection health. Verifies the CLI can reach the configured Hissuno instance.
124
+
125
+ ```bash
126
+ hissuno status
127
+ ```
128
+
129
+ ---
130
+
131
+ ### `hissuno types`
132
+
133
+ List all available resource types with their filters and fields.
134
+
135
+ ```bash
136
+ hissuno types
137
+ hissuno types --json
138
+ ```
139
+
140
+ ---
141
+
142
+ ### `hissuno list <type>`
143
+
144
+ List resources with optional filters.
145
+
146
+ ```bash
147
+ hissuno list feedback
148
+ hissuno list issues --status open --priority high
149
+ hissuno list customers --search "john" --limit 5
150
+ hissuno list customers --customer-type companies --stage active
151
+ hissuno list scopes
152
+ ```
153
+
154
+ **Arguments:**
155
+ | Argument | Description |
156
+ |----------|-------------|
157
+ | `type` | `knowledge`, `feedback`, `issues`, `customers`, `scopes` |
158
+
159
+ **Options (feedback):**
160
+ | Option | Description |
161
+ |--------|-------------|
162
+ | `--source <source>` | `widget`, `slack`, `intercom`, `gong`, `api`, `manual` |
163
+ | `--status <status>` | `active`, `closing_soon`, `awaiting_idle_response`, `closed` |
164
+ | `--tags <tags>` | Comma-separated tag list |
165
+ | `--contact-id <id>` | Filter by contact UUID |
166
+ | `--search <query>` | Text search |
167
+
168
+ **Options (issues):**
169
+ | Option | Description |
170
+ |--------|-------------|
171
+ | `--issue-type <type>` | `bug`, `feature_request`, `change_request` |
172
+ | `--priority <priority>` | `low`, `medium`, `high` |
173
+ | `--status <status>` | `open`, `ready`, `in_progress`, `resolved`, `closed` |
174
+ | `--search <query>` | Text search |
175
+
176
+ **Options (customers):**
177
+ | Option | Description |
178
+ |--------|-------------|
179
+ | `--customer-type <type>` | `contacts` (default) or `companies` |
180
+ | `--search <query>` | Search by name or email (contacts) / name or domain (companies) |
181
+ | `--company-id <id>` | Filter contacts by company UUID |
182
+ | `--role <role>` | Filter contacts by role |
183
+ | `--stage <stage>` | Filter companies by stage (`prospect`, `onboarding`, `active`, `churned`, `expansion`) |
184
+ | `--industry <industry>` | Filter companies by industry |
185
+
186
+ **Options (scopes):**
187
+ No type-specific filters. Use `--limit` to control result count.
188
+
189
+ **Common options:**
190
+ | Option | Description |
191
+ |--------|-------------|
192
+ | `--limit <n>` | Max results (default: 20) |
193
+
194
+ ---
195
+
196
+ ### `hissuno get <type> <id>`
197
+
198
+ Get full details of a specific resource, including all graph relationships.
199
+
200
+ ```bash
201
+ hissuno get issues abc-123
202
+ hissuno get feedback def-456 --json
203
+ hissuno get customers ghi-789
204
+ hissuno get customers xyz-456 --customer-type companies
205
+ hissuno get scopes jkl-012
206
+ ```
207
+
208
+ **Arguments:**
209
+ | Argument | Description |
210
+ |----------|-------------|
211
+ | `type` | `knowledge`, `feedback`, `issues`, `customers`, `scopes` |
212
+ | `id` | Resource UUID |
213
+
214
+ **Options:**
215
+ | Option | Description |
216
+ |--------|-------------|
217
+ | `--customer-type <type>` | For `customers` type: `contacts` (default) or `companies` |
218
+
219
+ The `get` command also fetches and displays all related entities (companies, contacts, issues, feedback sessions, knowledge sources, product scopes) for the requested resource.
220
+
221
+ ---
222
+
223
+ ### `hissuno search <query>`
224
+
225
+ Search across resources using natural language (semantic search).
226
+
227
+ ```bash
228
+ hissuno search "checkout flow issues"
229
+ hissuno search "login failures" --type issues
230
+ hissuno search "payment" --type customers --limit 5 --json
231
+ ```
232
+
233
+ **Arguments:**
234
+ | Argument | Description |
235
+ |----------|-------------|
236
+ | `query` | Natural language search query |
237
+
238
+ **Options:**
239
+ | Option | Description |
240
+ |--------|-------------|
241
+ | `--type <type>` | Limit to one type: `knowledge`, `feedback`, `issues`, `customers` |
242
+ | `--limit <n>` | Max results (default: 10) |
243
+
244
+ Note: `scopes` is not searchable via this command. `customers` search covers contacts only (companies don't have semantic search).
245
+
246
+ ---
247
+
248
+ ### `hissuno add <type>`
249
+
250
+ Create a new resource interactively. Prompts for required fields.
251
+
252
+ ```bash
253
+ hissuno add issues # Create a bug, feature request, or change request
254
+ hissuno add customers # Create a contact or company (prompts for sub-type)
255
+ hissuno add customers --customer-type companies # Create a company directly
256
+ hissuno add feedback # Log a feedback session
257
+ hissuno add scopes # Create a product scope with optional goals
258
+ ```
259
+
260
+ **Supported types:** `issues`, `customers`, `feedback`, `scopes`
261
+
262
+ Knowledge sources cannot be added via CLI (use the Hissuno dashboard).
263
+
264
+ **Interactive prompts by type:**
265
+
266
+ **issues:**
267
+ - Type (bug / feature request / change request)
268
+ - Title
269
+ - Description
270
+ - Priority (optional: low / medium / high)
271
+
272
+ **customers (contacts):**
273
+ - Name
274
+ - Email
275
+ - Role (optional)
276
+ - Title (optional)
277
+ - Phone (optional)
278
+ - Company ID (optional)
279
+ - Is champion? (optional)
280
+
281
+ **customers (companies):**
282
+ - Company name
283
+ - Domain (e.g., acme.com)
284
+ - Industry (optional)
285
+ - ARR (optional, number)
286
+ - Stage (optional: prospect / onboarding / active / churned / expansion)
287
+ - Employee count (optional, number)
288
+ - Plan tier (optional)
289
+ - Country (optional)
290
+ - Notes (optional)
291
+
292
+ **feedback:**
293
+ - Messages (loop: select role + enter content, empty to finish)
294
+ - Name/title (optional)
295
+ - Tags (optional, comma-separated)
296
+
297
+ **scopes:**
298
+ - Name
299
+ - Type (product_area / initiative)
300
+ - Description (optional)
301
+ - Goals (optional, loop: enter goal text, empty to finish, max 10)
302
+
303
+ ---
304
+
305
+ ### `hissuno update <type> <id>`
306
+
307
+ Update an existing resource interactively.
308
+
309
+ ```bash
310
+ hissuno update scopes <id>
311
+ ```
312
+
313
+ **Supported types:** `scopes`
314
+
315
+ **Interactive prompts (scopes):**
316
+ - Change name? (shows current)
317
+ - Change type? (shows current)
318
+ - Change description?
319
+ - Manage goals? (add new, replace all, clear all, or keep current)
320
+
321
+ ---
322
+
323
+ ### `hissuno integrate [platform] [action]`
324
+
325
+ Manage integrations with external platforms.
326
+
327
+ **Supported platforms:** `intercom`, `gong`, `zendesk`, `slack`, `github`, `jira`, `linear`
328
+
329
+ ```bash
330
+ hissuno integrate # List all integrations with status
331
+ hissuno integrate <platform> # Interactive setup wizard
332
+ hissuno integrate <platform> status # Detailed status
333
+ hissuno integrate <platform> connect # Connect (OAuth or token)
334
+ hissuno integrate <platform> configure # Update settings
335
+ hissuno integrate <platform> sync # Trigger manual sync
336
+ hissuno integrate <platform> disconnect # Disconnect
337
+ ```
338
+
339
+ **Platform-specific connect options:**
340
+
341
+ | Option | Platforms | Description |
342
+ |--------|-----------|-------------|
343
+ | `--access-key <key>` | gong | Access key |
344
+ | `--access-key-secret <secret>` | gong | Access key secret |
345
+ | `--base-url <url>` | gong | Base URL (default: https://api.gong.io) |
346
+ | `--subdomain <sub>` | zendesk | Zendesk subdomain |
347
+ | `--email <email>` | zendesk | Admin email |
348
+ | `--api-token <token>` | zendesk | API token |
349
+ | `--access-token <token>` | intercom | Access token |
350
+ | `--sync-frequency <freq>` | gong, zendesk, intercom | `manual`, `1h`, `6h`, `24h` |
351
+ | `--mode <mode>` | sync action | `incremental` (default) or `full` |
352
+
353
+ See `references/INTEGRATIONS.md` for full platform details.
@@ -0,0 +1,51 @@
1
+ # Companies
2
+
3
+ Customer companies with revenue data, health scores, and contact associations. Part of the "customers" umbrella alongside contacts.
4
+
5
+ ## CLI Support
6
+
7
+ Companies are accessible via the `customers` type with `--customer-type companies`.
8
+
9
+ ```bash
10
+ hissuno list customers --customer-type companies # List all companies
11
+ hissuno list customers --customer-type companies --stage active # Filter by stage
12
+ hissuno list customers --customer-type companies --industry SaaS # Filter by industry
13
+ hissuno get customers <id> --customer-type companies # Company details
14
+ hissuno add customers --customer-type companies # Create a company
15
+ ```
16
+
17
+ ## Key Fields
18
+
19
+ | Field | Type | Description |
20
+ |-------|------|-------------|
21
+ | name | string | Company name |
22
+ | domain | string | Company domain (e.g., acme.com) |
23
+ | industry | string | Industry sector |
24
+ | arr | number | Annual recurring revenue |
25
+ | stage | string | Customer stage (prospect, active, churned, etc.) |
26
+ | health_score | integer | 0-100 health score |
27
+ | renewal_date | timestamp | Next renewal date |
28
+ | plan_tier | string | Subscription tier |
29
+
30
+ ## Relationships
31
+
32
+ Companies connect to:
33
+ - **Contacts** - people at this company
34
+ - **Feedback sessions** - conversations from company contacts
35
+ - **Issues** - bugs or requests affecting this company
36
+ - **Knowledge sources** - relevant documentation
37
+ - **Product scopes** - product areas this company uses
38
+
39
+ ## CLI Examples
40
+
41
+ ```bash
42
+ hissuno list customers --customer-type companies # List all companies
43
+ hissuno list customers --customer-type companies --stage active # Active companies
44
+ hissuno list customers --customer-type companies --search "acme" # Search by name/domain
45
+ hissuno get customers <id> --customer-type companies # Full company details
46
+ hissuno add customers --customer-type companies # Create interactively
47
+ ```
48
+
49
+ Also accessible through relationships:
50
+ - Contact relationships: `hissuno get customers <contact-id>` shows the linked company
51
+ - Issue/feedback relationships: `hissuno get issues <id>` shows related companies in the graph
@@ -0,0 +1,83 @@
1
+ # Contacts
2
+
3
+ Individual customer contacts with linked feedback history and company associations. Part of the "customers" umbrella alongside companies.
4
+
5
+ ## Listing
6
+
7
+ ```bash
8
+ hissuno list customers # List contacts (default)
9
+ hissuno list customers --customer-type contacts # Explicit contacts
10
+ hissuno list customers --search "john" --limit 5
11
+ hissuno list customers --company-id <uuid>
12
+ ```
13
+
14
+ | Filter | CLI Option | Values |
15
+ |--------|-----------|--------|
16
+ | search | `--search <query>` | Search by name or email |
17
+ | company_id | `--company-id <id>` | Filter by company UUID |
18
+ | role | `--role <role>` | Filter by role |
19
+
20
+ ## Detail
21
+
22
+ `hissuno get customers <id>` returns:
23
+
24
+ - Name, email, phone, title, role
25
+ - Company association (company ID and URL)
26
+ - Champion status
27
+ - Last contacted timestamp
28
+ - Notes, custom fields
29
+ - **Relationships** - linked feedback sessions, issues, companies, knowledge sources, product scopes
30
+
31
+ ## Search
32
+
33
+ Semantic vector search. Falls back to name/email text matching for contacts without embeddings.
34
+
35
+ ```bash
36
+ hissuno search "john" --type customers
37
+ ```
38
+
39
+ ## Creation
40
+
41
+ ```bash
42
+ hissuno add customers # Prompts for sub-type
43
+ hissuno add customers --customer-type contacts # Direct to contact creation
44
+ ```
45
+
46
+ Interactive prompts:
47
+ 1. Name (required)
48
+ 2. Email (required)
49
+ 3. Role (optional)
50
+ 4. Title (optional)
51
+ 5. Phone (optional)
52
+ 6. Company ID (optional)
53
+ 7. Is champion? (optional)
54
+
55
+ **MCP add fields:**
56
+
57
+ | Field | Required | Type | Description |
58
+ |-------|----------|------|-------------|
59
+ | `name` | Yes | string | Full name |
60
+ | `email` | Yes | string | Email address |
61
+ | `role` | No | string | Role/position |
62
+ | `title` | No | string | Job title |
63
+ | `phone` | No | string | Phone number |
64
+ | `company_id` | No | string | UUID of associated company |
65
+ | `is_champion` | No | boolean | Whether this is a product champion |
66
+
67
+ ## Relationships
68
+
69
+ Contacts connect to:
70
+ - **Companies** - the organization they belong to
71
+ - **Feedback sessions** - conversations from this contact
72
+ - **Issues** - bugs or requests they reported
73
+ - **Knowledge sources** - documentation they referenced
74
+ - **Product scopes** - product areas they engage with
75
+
76
+ ## CLI Examples
77
+
78
+ ```bash
79
+ hissuno list customers --search "john" --limit 5
80
+ hissuno list customers --company-id <uuid>
81
+ hissuno get customers <id>
82
+ hissuno add customers --customer-type contacts
83
+ ```