@zeyos/client 0.4.0 → 0.6.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 (53) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +16 -1
  3. package/agents/README.md +8 -0
  4. package/agents/shared/zeyos-agent-operating-guide.md +54 -3
  5. package/agents/shared/zeyos-entity-reference.md +5 -4
  6. package/agents/shared/zeyos-query-patterns.md +40 -1
  7. package/agents/zeyos/SKILL.md +50 -7
  8. package/agents/zeyos-account-intelligence/references/workflows.md +9 -3
  9. package/agents/zeyos-billing-insights/SKILL.md +1 -1
  10. package/agents/zeyos-billing-insights/references/workflows.md +26 -3
  11. package/agents/zeyos-calendar-and-scheduling/SKILL.md +45 -0
  12. package/agents/zeyos-calendar-and-scheduling/references/workflows.md +49 -0
  13. package/agents/zeyos-collections-and-dunning/SKILL.md +3 -1
  14. package/agents/zeyos-collections-and-dunning/references/workflows.md +7 -4
  15. package/agents/zeyos-data-quality-and-governance/SKILL.md +62 -0
  16. package/agents/zeyos-data-quality-and-governance/references/workflows.md +59 -0
  17. package/agents/zeyos-document-and-approval/SKILL.md +41 -0
  18. package/agents/zeyos-document-and-approval/references/workflows.md +43 -0
  19. package/agents/zeyos-mail-operations/SKILL.md +21 -0
  20. package/agents/zeyos-mail-operations/references/workflows.md +20 -0
  21. package/agents/zeyos-procurement-and-supplier-performance/SKILL.md +36 -0
  22. package/agents/zeyos-procurement-and-supplier-performance/references/workflows.md +46 -0
  23. package/agents/zeyos-time-tracking/SKILL.md +2 -0
  24. package/agents/zeyos-time-tracking/references/workflows.md +68 -0
  25. package/agents/zeyos-work-management/SKILL.md +4 -3
  26. package/agents/zeyos-work-management/references/workflows.md +63 -2
  27. package/docs/03-cli/02-commands.md +54 -2
  28. package/docs/03-cli/03-configuration.md +1 -0
  29. package/okf/concepts/calendar-timezones.md +10 -0
  30. package/okf/concepts/confirmation-and-side-effects.md +14 -0
  31. package/okf/concepts/currency-and-rounding.md +10 -0
  32. package/okf/concepts/idempotency-and-deduplication.md +10 -0
  33. package/okf/concepts/index.md +8 -0
  34. package/okf/concepts/null-empty-missing.md +10 -0
  35. package/okf/concepts/official-versus-latest.md +10 -0
  36. package/okf/concepts/ownership-versus-attention.md +15 -0
  37. package/okf/concepts/untrusted-business-content.md +10 -0
  38. package/okf/metrics/account-address-completeness.md +10 -0
  39. package/okf/metrics/index.md +3 -0
  40. package/okf/metrics/stock-movement-by-storage.md +10 -0
  41. package/okf/metrics/supplier-delivery-performance.md +10 -0
  42. package/okf/playbooks/activity-timeline.md +11 -0
  43. package/okf/playbooks/calendar-availability.md +11 -0
  44. package/okf/playbooks/campaign-recipient-coverage.md +12 -0
  45. package/okf/playbooks/document-approval.md +10 -0
  46. package/okf/playbooks/duplicate-account-review.md +11 -0
  47. package/okf/playbooks/effective-customer-price.md +11 -0
  48. package/okf/playbooks/index.md +8 -0
  49. package/okf/playbooks/missing-billing-addresses.md +12 -0
  50. package/okf/playbooks/supplier-scorecard.md +10 -0
  51. package/package.json +4 -2
  52. package/scripts/data/okf-curation.mjs +188 -0
  53. package/scripts/lib/live-test-config.mjs +20 -0
@@ -0,0 +1,20 @@
1
+ export function resolveLiveConfig({ known, liveConfig = {}, env = process.env }) {
2
+ let url = known.url ?? env.npm_config_url ?? null;
3
+ let instance = known.instance ?? env.npm_config_instance ?? null;
4
+
5
+ if (known.live && !url && !instance) {
6
+ if (liveConfig.url) {
7
+ url = liveConfig.url;
8
+ } else {
9
+ instance = liveConfig.instance ?? null;
10
+ }
11
+ }
12
+
13
+ return {
14
+ url,
15
+ instance,
16
+ clientIdArg: known.clientId ?? env.npm_config_client_id ?? env.ZEYOS_CLIENT_ID ?? liveConfig.clientId ?? null,
17
+ clientSecretArg: known.clientSecret ?? env.npm_config_client_secret ?? env.ZEYOS_CLIENT_SECRET ?? liveConfig.clientSecret ?? null,
18
+ port: known.port ?? env.npm_config_port ?? ((url || instance) ? liveConfig.port ?? null : null)
19
+ };
20
+ }