diffcat-cli 0.2.1 → 0.3.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/README.md +34 -5
- package/connectors/workbuddy/cli.json +3 -3
- package/connectors/workbuddy/connector-meta.json +10 -4
- package/connectors/workbuddy/skills/diffcat/SKILL.md +39 -15
- package/connectors/workbuddy/skills/diffcat/references/knowledge.md +26 -0
- package/connectors/workbuddy/skills/diffcat/references/operations.md +12 -0
- package/connectors/workbuddy/skills/diffcat/references/safety.md +1 -1
- package/dist/capability-authorization.d.ts +23 -0
- package/dist/capability-authorization.js +36 -0
- package/dist/capability-authorization.js.map +1 -0
- package/dist/client.d.ts +4 -1
- package/dist/client.js +14 -0
- package/dist/client.js.map +1 -1
- package/dist/device-login.d.ts +0 -1
- package/dist/device-login.js +0 -2
- package/dist/device-login.js.map +1 -1
- package/dist/index.js +73 -40
- package/dist/index.js.map +1 -1
- package/dist/knowledge-store.d.ts +55 -0
- package/dist/knowledge-store.js +265 -0
- package/dist/knowledge-store.js.map +1 -0
- package/dist/knowledge-types.d.ts +47 -0
- package/dist/knowledge-types.js +2 -0
- package/dist/knowledge-types.js.map +1 -0
- package/dist/types.d.ts +18 -0
- package/knowledge/catalog.json +542 -0
- package/knowledge/topics/documents/consignment-reconciliation.md +7 -0
- package/knowledge/topics/documents/crowdfunding-order.md +7 -0
- package/knowledge/topics/documents/direct-order.md +7 -0
- package/knowledge/topics/documents/expense-request.md +7 -0
- package/knowledge/topics/documents/inbound-order.md +7 -0
- package/knowledge/topics/documents/invoice-request.md +7 -0
- package/knowledge/topics/documents/leave-request.md +7 -0
- package/knowledge/topics/documents/outbound-order.md +7 -0
- package/knowledge/topics/documents/purchase-request.md +7 -0
- package/knowledge/topics/documents/refund-request.md +7 -0
- package/knowledge/topics/documents/sales-order.md +17 -0
- package/knowledge/topics/documents/stocktake-order.md +7 -0
- package/knowledge/topics/documents/supply-entry-order.md +7 -0
- package/knowledge/topics/documents/supply-issue-request.md +7 -0
- package/knowledge/topics/documents/supply-purchase-request.md +7 -0
- package/knowledge/topics/documents/supply-stocktake-order.md +7 -0
- package/knowledge/topics/guides/document-drafts.md +13 -0
- package/knowledge/topics/guides/login-and-authorization.md +12 -0
- package/knowledge/topics/guides/master-data-and-query.md +13 -0
- package/knowledge/topics/guides/recovery.md +13 -0
- package/knowledge/topics/guides/workflow-tasks.md +12 -0
- package/knowledge/topics/modules/administration.md +12 -0
- package/knowledge/topics/modules/crowdfunding.md +14 -0
- package/knowledge/topics/modules/finance.md +14 -0
- package/knowledge/topics/modules/inventory.md +14 -0
- package/knowledge/topics/modules/operations.md +14 -0
- package/knowledge/topics/modules/organization.md +16 -0
- package/knowledge/topics/modules/partner.md +11 -0
- package/knowledge/topics/modules/project.md +17 -0
- package/knowledge/topics/modules/sales.md +15 -0
- package/knowledge/topics/overview/navigation.md +21 -0
- package/knowledge/topics/overview/system.md +14 -0
- package/knowledge/topics/troubleshooting/document-correction.md +16 -0
- package/knowledge/topics/troubleshooting/permission-and-not-found.md +12 -0
- package/knowledge/topics/troubleshooting/workflow-stuck.md +11 -0
- package/package.json +2 -1
- package/plugins/diffcat/.codex-plugin/plugin.json +7 -5
- package/plugins/diffcat/README.md +7 -1
- package/plugins/diffcat/skills/diffcat/SKILL.md +32 -7
- package/plugins/diffcat/skills/diffcat/agents/openai.yaml +2 -2
- package/plugins/diffcat/skills/diffcat/references/authentication.md +12 -5
- package/plugins/diffcat/skills/diffcat/references/capabilities.md +1 -0
- package/plugins/diffcat/skills/diffcat/references/knowledge.md +40 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Business knowledge and diagnosis
|
|
2
|
+
|
|
3
|
+
Use the packaged knowledge graph for feature explanations, module guidance, workflow descriptions, and troubleshooting. It is versioned independently from the internal project wiki and contains only end-user business knowledge.
|
|
4
|
+
|
|
5
|
+
## Load knowledge progressively
|
|
6
|
+
|
|
7
|
+
After the mandatory login check succeeds:
|
|
8
|
+
|
|
9
|
+
1. Run `diffcat --profile <name> --pretty knowledge search "<user question>" --limit 5`.
|
|
10
|
+
2. Select the best topic by title, summary, and matched headings. If several topics fit materially different meanings, ask one business-language clarification.
|
|
11
|
+
3. Run `diffcat --profile <name> --pretty knowledge get <topic-id>` only for selected topics. Follow related topics only when they answer part of the request.
|
|
12
|
+
4. Use `knowledge outline` when the request is broad or search terms are unknown. Do not load every topic at once.
|
|
13
|
+
|
|
14
|
+
Static `outline`, `search`, and `get` validate the active login on every call. They do not require `knowledge.flows.read` or another business capability.
|
|
15
|
+
|
|
16
|
+
## Route three common question types
|
|
17
|
+
|
|
18
|
+
### Current workflow
|
|
19
|
+
|
|
20
|
+
Load the matching document topic first. Then inspect and, when needed, request the narrowly scoped `knowledge.flows.read` capability. Run `knowledge flow <flow-code-or-entity-name>` and explain the returned published version, ordered nodes, labeled branches, node responsibilities, policies, and assignee display names.
|
|
21
|
+
|
|
22
|
+
Responsibility text is merged in this order: current published node remark, packaged node guidance, generic node-type guidance. Preserve the reported source when confidence matters. Never expose raw conditions, actions, internal configuration, snapshots, or assignee IDs.
|
|
23
|
+
|
|
24
|
+
If the capability or matching menu is unavailable, answer from the static topic only and say plainly that the current published version, actual assignees, and latest branches could not be confirmed.
|
|
25
|
+
|
|
26
|
+
### Module usage
|
|
27
|
+
|
|
28
|
+
Load the matching module topic. Explain, in this order: where to enter, what master data or prior records are needed, the main actions, important states, downstream effects, and related modules. Use live reads only when the user asks about their own records or current configuration.
|
|
29
|
+
|
|
30
|
+
### Troubleshooting and correction
|
|
31
|
+
|
|
32
|
+
If the user says an order or document is wrong but gives no number, ask for the document number before querying. Once provided:
|
|
33
|
+
|
|
34
|
+
1. Query until exactly one document is identified, then load its detail.
|
|
35
|
+
2. Use `auth status` subject data to compare the current user with the creator, department, role, and possible handlers.
|
|
36
|
+
3. Inspect status, `myFlowTasks`, edit/withdraw/resubmit flags when present, and relevant downstream documents.
|
|
37
|
+
4. Load `troubleshooting.document-correction` and the matching document topic.
|
|
38
|
+
5. Recommend the least disruptive valid route: edit a draft; withdraw and edit when explicitly allowed; have the current handler reject or return it; resubmit after rejection/withdrawal; preserve the old document and rebuild; or handle downstream reversal/adjustment first.
|
|
39
|
+
|
|
40
|
+
Provide diagnosis and suggested steps only. Do not call edit, withdraw, cancel, rebuild, reverse, or other write behavior unless a separately registered live capability explicitly supports that operation and the user clearly asks for it. The current release does not add those write capabilities.
|