@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.
- package/CHANGELOG.md +75 -0
- package/README.md +16 -1
- package/agents/README.md +8 -0
- package/agents/shared/zeyos-agent-operating-guide.md +54 -3
- package/agents/shared/zeyos-entity-reference.md +5 -4
- package/agents/shared/zeyos-query-patterns.md +40 -1
- package/agents/zeyos/SKILL.md +50 -7
- package/agents/zeyos-account-intelligence/references/workflows.md +9 -3
- package/agents/zeyos-billing-insights/SKILL.md +1 -1
- package/agents/zeyos-billing-insights/references/workflows.md +26 -3
- package/agents/zeyos-calendar-and-scheduling/SKILL.md +45 -0
- package/agents/zeyos-calendar-and-scheduling/references/workflows.md +49 -0
- package/agents/zeyos-collections-and-dunning/SKILL.md +3 -1
- package/agents/zeyos-collections-and-dunning/references/workflows.md +7 -4
- package/agents/zeyos-data-quality-and-governance/SKILL.md +62 -0
- package/agents/zeyos-data-quality-and-governance/references/workflows.md +59 -0
- package/agents/zeyos-document-and-approval/SKILL.md +41 -0
- package/agents/zeyos-document-and-approval/references/workflows.md +43 -0
- package/agents/zeyos-mail-operations/SKILL.md +21 -0
- package/agents/zeyos-mail-operations/references/workflows.md +20 -0
- package/agents/zeyos-procurement-and-supplier-performance/SKILL.md +36 -0
- package/agents/zeyos-procurement-and-supplier-performance/references/workflows.md +46 -0
- package/agents/zeyos-time-tracking/SKILL.md +2 -0
- package/agents/zeyos-time-tracking/references/workflows.md +68 -0
- package/agents/zeyos-work-management/SKILL.md +4 -3
- package/agents/zeyos-work-management/references/workflows.md +63 -2
- package/docs/03-cli/02-commands.md +54 -2
- package/docs/03-cli/03-configuration.md +1 -0
- package/okf/concepts/calendar-timezones.md +10 -0
- package/okf/concepts/confirmation-and-side-effects.md +14 -0
- package/okf/concepts/currency-and-rounding.md +10 -0
- package/okf/concepts/idempotency-and-deduplication.md +10 -0
- package/okf/concepts/index.md +8 -0
- package/okf/concepts/null-empty-missing.md +10 -0
- package/okf/concepts/official-versus-latest.md +10 -0
- package/okf/concepts/ownership-versus-attention.md +15 -0
- package/okf/concepts/untrusted-business-content.md +10 -0
- package/okf/metrics/account-address-completeness.md +10 -0
- package/okf/metrics/index.md +3 -0
- package/okf/metrics/stock-movement-by-storage.md +10 -0
- package/okf/metrics/supplier-delivery-performance.md +10 -0
- package/okf/playbooks/activity-timeline.md +11 -0
- package/okf/playbooks/calendar-availability.md +11 -0
- package/okf/playbooks/campaign-recipient-coverage.md +12 -0
- package/okf/playbooks/document-approval.md +10 -0
- package/okf/playbooks/duplicate-account-review.md +11 -0
- package/okf/playbooks/effective-customer-price.md +11 -0
- package/okf/playbooks/index.md +8 -0
- package/okf/playbooks/missing-billing-addresses.md +12 -0
- package/okf/playbooks/supplier-scorecard.md +10 -0
- package/package.json +4 -2
- package/scripts/data/okf-curation.mjs +188 -0
- 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
|
+
}
|