weaver-work-cli 0.1.36 → 0.1.39
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 +4 -2
- package/dist/chunks/{archive-XBVH7JU7.js → archive-ENZYBBME.js} +559 -68
- package/dist/chunks/{archive-oa-MZM3EKFQ.js → archive-oa-YWLEC5V4.js} +4 -3
- package/dist/chunks/{asset-4XO7UOUW.js → asset-OOV6DWPA.js} +8 -7
- package/dist/chunks/asset-idle-RE632MY5.js +670 -0
- package/dist/chunks/{attachment-content-VXSWANAC.js → attachment-content-RWN2FCLL.js} +3 -3
- package/dist/chunks/{blog-PGZKOPSC.js → blog-PEPOJAL7.js} +5 -4
- package/dist/chunks/{caizhilian-BH4ZVGUN.js → caizhilian-WYIQDVPJ.js} +5 -4
- package/dist/chunks/{calendar-MXEMTIO4.js → calendar-CIARBAOX.js} +4 -3
- package/dist/chunks/{chunk-NCOVUAZK.js → chunk-36DIFZAH.js} +4 -3
- package/dist/chunks/{chunk-I6QGIBDM.js → chunk-BJGXMFGD.js} +4 -3
- package/dist/chunks/{chunk-TC6MZAO3.js → chunk-CQHGNCK2.js} +52 -2
- package/dist/chunks/{chunk-WXFPWCXG.js → chunk-EINRJHQ3.js} +3 -3
- package/dist/chunks/{chunk-JUXVYKII.js → chunk-EZGFHJFW.js} +201 -19
- package/dist/chunks/{chunk-VPUTVEMC.js → chunk-F2EQXUEE.js} +436 -290
- package/dist/chunks/{chunk-JYKABYCV.js → chunk-GVPJZXJ2.js} +3 -3
- package/dist/chunks/{chunk-6LLJFKJE.js → chunk-HJYVHXUQ.js} +1 -1
- package/dist/chunks/{chunk-T72N74ZT.js → chunk-I2HB737U.js} +5 -4
- package/dist/chunks/{chunk-VPXOPQJI.js → chunk-K3RUEEOL.js} +4 -2
- package/dist/chunks/{chunk-HXJQI5NM.js → chunk-KTCB5R5H.js} +3 -2
- package/dist/chunks/{chunk-XMGSYD6S.js → chunk-L4N7B7ZD.js} +4 -4
- package/dist/chunks/{chunk-QYGO5EE2.js → chunk-MUQUHKPG.js} +4 -3
- package/dist/chunks/{chunk-QHFANTX7.js → chunk-NLK2RZKG.js} +1348 -90
- package/dist/chunks/{chunk-F746NKNF.js → chunk-P2DAISYW.js} +1 -1
- package/dist/chunks/{chunk-BPE37FPB.js → chunk-T7JDJJ7H.js} +3 -3
- package/dist/chunks/{chunk-JNG42JKG.js → chunk-XXJOSZTQ.js} +6 -6
- package/dist/chunks/{chunk-5DQEEGCC.js → chunk-YS5DPN4T.js} +1 -1
- package/dist/chunks/{chunk-EG6ZU444.js → chunk-ZUX3P6BQ.js} +10 -5
- package/dist/chunks/{chunk-JCSN3JGM.js → chunk-ZXRNHZTE.js} +7 -6
- package/dist/chunks/{conflict-JAB2LJEZ.js → conflict-DRMDOL56.js} +2 -2
- package/dist/chunks/{contract-XI2EEIZU.js → contract-73MERZWN.js} +4 -3
- package/dist/chunks/{cowork-SCPGLBA4.js → cowork-HNGBPD7A.js} +4 -3
- package/dist/chunks/{ebuilder-form-EYLHNOTA.js → ebuilder-form-OY6DVNRK.js} +3 -3
- package/dist/chunks/{ehr-EAP77IMT.js → ehr-RAQNEQO7.js} +4 -3
- package/dist/chunks/{esb-2TGGXEE7.js → esb-6XV7C7YV.js} +4 -4
- package/dist/chunks/{fna-2X7ZE7BU.js → fna-XTSRB7G7.js} +4 -3
- package/dist/chunks/{host-Q4LZGCRU.js → host-3F5UM5GN.js} +3 -3
- package/dist/chunks/{host-XCLDDXKQ.js → host-A7J6GDUP.js} +3 -3
- package/dist/chunks/{host-I4NRK4MX.js → host-VGPVP7YF.js} +3 -3
- package/dist/chunks/{host-C6EL2RKL.js → host-YAQAPYNP.js} +3 -3
- package/dist/chunks/{host-UEI5FGDM.js → host-YMBXWFWX.js} +3 -3
- package/dist/chunks/{hrm-YXERJM76.js → hrm-TLHKC545.js} +3 -3
- package/dist/chunks/{im-A4VZN2TQ.js → im-YOUCFMUK.js} +3 -3
- package/dist/chunks/{invoice-2Z6YPMIS.js → invoice-WNBS2B4C.js} +3 -3
- package/dist/chunks/{jiuchuanhui-AR5GMKZB.js → jiuchuanhui-XABWS5RN.js} +4 -3
- package/dist/chunks/{lazy-dispatch-QXW7P4X3.js → lazy-dispatch-NLZ5UQQI.js} +5 -5
- package/dist/chunks/{mail-7GZ6CPBJ.js → mail-LRYMBFNL.js} +4 -3
- package/dist/chunks/{meeting-3NMGA3MB.js → meeting-ESXL6MFI.js} +13 -12
- package/dist/chunks/{okr-BZ6XUOAG.js → okr-EOV65SSF.js} +4 -3
- package/dist/chunks/{plan-DR5CMUYP.js → plan-YFPVKW6Y.js} +4 -3
- package/dist/chunks/{project-6J63MK33.js → project-MDVZUYQW.js} +4 -3
- package/dist/chunks/{registry-VRTNC6UR.js → registry-QCLZEDAP.js} +8 -8
- package/dist/chunks/{registry-KDD7DHNK.js → registry-VT5Y2HLA.js} +4 -4
- package/dist/chunks/{registry-TKX2E7C7.js → registry-YX4CSEMD.js} +3 -3
- package/dist/chunks/{room-recommend-XCWRMB5P.js → room-recommend-L3MWH4JW.js} +4 -4
- package/dist/chunks/{schedule-IVBICP32.js → schedule-UASAVDVD.js} +4 -4
- package/dist/chunks/{workflow-D74NFK3C.js → workflow-KDGIUCNW.js} +9 -6
- package/dist/core/output.js +16 -6
- package/dist/index.js +33 -28
- package/dist/internal/e10/auth/messages.js +1 -0
- package/dist/internal/e10/auth-recovery.js +127 -7
- package/dist/internal/e10/client.js +16 -2
- package/dist/internal/e10/context.js +16 -3
- package/dist/internal/e10/request-runtime.js +106 -8
- package/dist/shortcuts/archive/host.js +5 -2
- package/dist/shortcuts/archive/manifest.js +1 -1
- package/dist/shortcuts/archive/operations/borrow-list.js +13 -1
- package/dist/shortcuts/archive/operations/flow-url.js +1 -1
- package/dist/shortcuts/archive/operations/prelib.js +472 -0
- package/dist/shortcuts/archive/operations/registry.js +2 -0
- package/dist/shortcuts/archive/operations/upload.js +1 -1
- package/dist/shortcuts/archive-oa/host.js +2 -1
- package/dist/shortcuts/asset/host.js +6 -5
- package/dist/shortcuts/asset-idle/errors.js +44 -0
- package/dist/shortcuts/asset-idle/host.js +161 -0
- package/dist/shortcuts/asset-idle/index.js +114 -0
- package/dist/shortcuts/asset-idle/manifest.js +159 -0
- package/dist/shortcuts/asset-idle/operations/idle.js +47 -0
- package/dist/shortcuts/asset-idle/operations/registry.js +33 -0
- package/dist/shortcuts/asset-idle/operations/shared.js +142 -0
- package/dist/shortcuts/asset-idle/operations/types.js +9 -0
- package/dist/shortcuts/asset-idle/operations.js +15 -0
- package/dist/shortcuts/blog/host.js +3 -2
- package/dist/shortcuts/caizhilian/host.js +3 -2
- package/dist/shortcuts/calendar/host.js +2 -1
- package/dist/shortcuts/contract/host.js +2 -1
- package/dist/shortcuts/cowork/host.js +2 -1
- package/dist/shortcuts/ebuilder-form/host.js +3 -1
- package/dist/shortcuts/ehr/host.js +2 -1
- package/dist/shortcuts/esb/host.js +2 -1
- package/dist/shortcuts/fna/host.js +2 -1
- package/dist/shortcuts/hrm/host.js +2 -1
- package/dist/shortcuts/im/host.js +3 -2
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/host.js +5 -4
- package/dist/shortcuts/jiuchuanhui/host.js +2 -1
- package/dist/shortcuts/mail/host.js +2 -1
- package/dist/shortcuts/meeting/host.js +3 -2
- package/dist/shortcuts/meeting/invitation/text.js +71 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +1073 -50
- package/dist/shortcuts/meeting/operations/eb/crm-search.js +478 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +60 -1
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/invitation.js +122 -9
- package/dist/shortcuts/okr/host.js +2 -1
- package/dist/shortcuts/plan/host.js +2 -1
- package/dist/shortcuts/project/host.js +2 -1
- package/dist/shortcuts/workflow/host.js +3 -0
- package/dist/shortcuts/workflow/index.js +1 -1
- package/dist/shortcuts/workflow/operations/form.js +44 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +77 -26
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupStore.js +6 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/summaryCache.js +59 -117
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoDetailCache.js +44 -7
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoDetailFetcher.js +37 -29
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +20 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.detail.js +22 -18
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.groupSummary.js +34 -10
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +4 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +9 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.summary.js +110 -20
- package/docs/_catalog.md +3 -0
- package/docs/asset-idle.md +45 -0
- package/docs/e10-auth.md +1 -1
- package/docs/todo-smart-convert/subgroup-rules.md +1 -1
- package/package.json +1 -1
- package/scripts/package-skill.mjs +2 -0
- package/skill-template/business-info.json +14 -1
- package/skill-template/domains/asset-idle.md +13 -0
- package/skill-template/domains/wenshuding.md +3 -0
- package/skills/weaver-e10-archive-oa/SKILL.md +1 -0
- package/skills/weaver-e10-archive-oa/references/my-borrow.md +49 -0
- package/skills/weaver-e10-asset-idle/SKILL.md +73 -0
- package/skills/weaver-e10-asset-idle/references/idle-list.md +62 -0
- package/skills/weaver-e10-asset-idle/references/idle-stats-and-charts.md +65 -0
- package/skills/weaver-e10-asset-idle/references/source-manifest.json +193 -0
- package/skills/weaver-e10-asset-idle/references/widget-style.md +205 -0
- package/skills/weaver-e10-caizhilian/SKILL.md +29 -11
- package/skills/weaver-e10-caizhilian/references/auth-and-install.md +12 -0
- package/skills/weaver-e10-caizhilian/references/files.md +1 -1
- package/skills/weaver-e10-caizhilian/references/setting-encrypt.md +1 -1
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +45 -45
- package/skills/weaver-e10-cowork/SKILL.md +2 -0
- package/skills/weaver-e10-jucailin/SKILL.md +2 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +2 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +1 -1
- package/skills/weaver-e10-mail/SKILL.md +3 -0
- package/skills/weaver-e10-meeting/SKILL.md +250 -301
- package/skills/weaver-e10-meeting/references/meeting-eb.md +203 -0
- package/skills/weaver-e10-meeting/references/meeting-invitation.md +37 -5
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-shared/SKILL.md +5 -5
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +3 -3
- package/skills/weaver-e10-wenshuding/SKILL.md +29 -6
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +14 -0
- package/skills/weaver-e10-wenshuding/references/archive-download.md +2 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +1 -1
- package/skills/weaver-e10-wenshuding/references/archive-prelib-arrange.md +76 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +107 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +59 -0
- package/skills/weaver-e10-wenshuding/references/archive-upload.md +4 -1
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +108 -65
- package/skills/weaver-e10-workflow/SKILL.md +5 -2
- package/skills/weaver-e10-workflow/aigroup/default.json +154 -19
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +59 -27
- package/skills/weaver-e10-workflow/tools/todo-serve.cjs +113 -25
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +292 -42
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YS5DPN4T.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cacheScopeSuffix,
|
|
5
5
|
readCache,
|
|
6
6
|
writeCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P2DAISYW.js";
|
|
8
8
|
import {
|
|
9
9
|
EB_BASE,
|
|
10
10
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
meetingSuccess,
|
|
14
14
|
queryBody,
|
|
15
15
|
schemaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CQHGNCK2.js";
|
|
17
17
|
|
|
18
18
|
// src/shortcuts/meeting/operations/eb/room-recommend.ts
|
|
19
19
|
var ROOMS_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -121,7 +121,7 @@ async function loadFrequentRooms(env, options = {}) {
|
|
|
121
121
|
const counts = /* @__PURE__ */ new Map();
|
|
122
122
|
let requests = 0;
|
|
123
123
|
try {
|
|
124
|
-
const { getMeetingOperation } = await import("./registry-
|
|
124
|
+
const { getMeetingOperation } = await import("./registry-QCLZEDAP.js");
|
|
125
125
|
const listOp = getMeetingOperation("meeting.eb.meeting.list");
|
|
126
126
|
for (let pageNo = 1; pageNo <= 5; pageNo += 1) {
|
|
127
127
|
const page = await listOp.handler(
|
|
@@ -711,6 +711,7 @@ var E10AuthSession = class _E10AuthSession {
|
|
|
711
711
|
// src/internal/e10/auth/messages.ts
|
|
712
712
|
var E10_REAUTH_GUIDANCE = "\u8BF7\u7ED3\u5408\u5F53\u524D\u5BBF\u4E3B\u73AF\u5883\u9009\u62E9\u5408\u9002\u7684\u767B\u5F55\u65B9\u5F0F\uFF0C\u6062\u590D\u767B\u5F55\u540E\u91CD\u8BD5\u539F\u8BF7\u6C42\u3002";
|
|
713
713
|
var E10_AUTH_REQUIRED_MESSAGE = `E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002${E10_REAUTH_GUIDANCE}`;
|
|
714
|
+
var E10_XIAOE_RECOVERY_FAILED_MESSAGE = "E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002\u5DF2\u5C1D\u8BD5\u5C0F e \u81EA\u52A8\u91CD\u65B0\u83B7\u53D6\u767B\u5F55\u4FE1\u606F\uFF0C\u4F46\u672A\u53D6\u5F97\u53EF\u7528\u767B\u5F55\u6001\u3002\u8BF7\u5728\u5C0F e \u4E2D\u6062\u590D\u767B\u5F55\u540E\u91CD\u8BD5\u3002";
|
|
714
715
|
var E10_SESSION_EXPIRED_MESSAGE = `E10 \u767B\u5F55\u6001\u5DF2\u5931\u6548\uFF0C\u672C\u6B21\u64CD\u4F5C\u5DF2\u505C\u6B62\u3002${E10_REAUTH_GUIDANCE}`;
|
|
715
716
|
|
|
716
717
|
// src/core/package-paths.ts
|
|
@@ -754,12 +755,6 @@ function packageFileUrl(...segments) {
|
|
|
754
755
|
return pathToFileURL(packagePath(...segments));
|
|
755
756
|
}
|
|
756
757
|
|
|
757
|
-
// src/internal/e10/auth/xiaoe.ts
|
|
758
|
-
import { execFile } from "node:child_process";
|
|
759
|
-
import { accessSync, constants as fsConstants, existsSync as existsSync4, readFileSync as readFileSync3, readdirSync as readdirSync2, statSync } from "node:fs";
|
|
760
|
-
import { homedir as homedir2 } from "node:os";
|
|
761
|
-
import { join as join2 } from "node:path";
|
|
762
|
-
|
|
763
758
|
// src/core/runtime-agent.ts
|
|
764
759
|
var XIAOE_RUNTIME_AGENT_ALIASES = /* @__PURE__ */ new Set([
|
|
765
760
|
"xiaoe",
|
|
@@ -781,6 +776,10 @@ function isXiaoERuntime(options) {
|
|
|
781
776
|
}
|
|
782
777
|
|
|
783
778
|
// src/internal/e10/auth/xiaoe.ts
|
|
779
|
+
import { execFile } from "node:child_process";
|
|
780
|
+
import { accessSync, constants as fsConstants, existsSync as existsSync4, readFileSync as readFileSync3, readdirSync as readdirSync2, statSync } from "node:fs";
|
|
781
|
+
import { homedir as homedir2 } from "node:os";
|
|
782
|
+
import { join as join2 } from "node:path";
|
|
784
783
|
var DEFAULT_E10_BASE_URL = "https://www.e-cology.com.cn";
|
|
785
784
|
var XIAOE_AGENT_TYPE = "XiaoE";
|
|
786
785
|
var XIAOE_UNIFIED_LOGIN_MAP_ENV_KEYS = [
|
|
@@ -1630,6 +1629,7 @@ export {
|
|
|
1630
1629
|
E10AuthSession,
|
|
1631
1630
|
E10_REAUTH_GUIDANCE,
|
|
1632
1631
|
E10_AUTH_REQUIRED_MESSAGE,
|
|
1632
|
+
E10_XIAOE_RECOVERY_FAILED_MESSAGE,
|
|
1633
1633
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
1634
1634
|
isXiaoERuntimeAgent,
|
|
1635
1635
|
XIAOE_AGENT_TYPE,
|
|
@@ -405,18 +405,23 @@ function refMaxBytes(ctx) {
|
|
|
405
405
|
function bytesOf(value) {
|
|
406
406
|
return Buffer.byteLength(JSON.stringify(value ?? null, null, 2), "utf8");
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function isLinkField(key) {
|
|
409
|
+
if (!key) return false;
|
|
410
|
+
return /(?:^|[a-z0-9])(?:url|urls|uri|href|link|links)$/i.test(key);
|
|
411
|
+
}
|
|
412
|
+
function compactValue(value, arrayLimit, stringLimit, depth = 0, key) {
|
|
409
413
|
if (depth > 6) return "<omitted: too deep>";
|
|
414
|
+
const limit = isLinkField(key) ? Number.MAX_SAFE_INTEGER : stringLimit;
|
|
410
415
|
if (typeof value === "string") {
|
|
411
|
-
return value.length >
|
|
416
|
+
return value.length > limit ? `${value.slice(0, limit)}\u2026(truncated ${value.length - limit} chars)` : value;
|
|
412
417
|
}
|
|
413
418
|
if (Array.isArray(value)) {
|
|
414
|
-
return value.slice(0, arrayLimit).map((item) => compactValue(item, arrayLimit,
|
|
419
|
+
return value.slice(0, arrayLimit).map((item) => compactValue(item, arrayLimit, limit, depth + 1, key));
|
|
415
420
|
}
|
|
416
421
|
if (value && typeof value === "object") {
|
|
417
422
|
const out = {};
|
|
418
|
-
for (const [
|
|
419
|
-
out[
|
|
423
|
+
for (const [name, inner] of Object.entries(value)) {
|
|
424
|
+
out[name] = compactValue(inner, arrayLimit, stringLimit, depth + 1, name);
|
|
420
425
|
}
|
|
421
426
|
return out;
|
|
422
427
|
}
|
|
@@ -2,13 +2,14 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createE10RequestRuntime,
|
|
5
|
+
isE10SessionExpiredResponse,
|
|
5
6
|
requireE10Session
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EZGFHJFW.js";
|
|
7
8
|
import {
|
|
8
9
|
E10_REAUTH_GUIDANCE,
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError
|
|
14
15
|
} from "./chunk-LUSPKZKY.js";
|
|
@@ -264,7 +265,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
|
|
|
264
265
|
timeoutMs,
|
|
265
266
|
trustedHeaders: trustedInvoiceHeaders(token)
|
|
266
267
|
});
|
|
267
|
-
if (response
|
|
268
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
268
269
|
throw invoiceAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
269
270
|
}
|
|
270
271
|
if (response.parseError) {
|
|
@@ -331,7 +332,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
|
|
|
331
332
|
timeoutMs,
|
|
332
333
|
trustedHeaders: trustedInvoiceHeaders(token)
|
|
333
334
|
});
|
|
334
|
-
if (response
|
|
335
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
335
336
|
throw invoiceAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
336
337
|
}
|
|
337
338
|
if (response.parseError) {
|
|
@@ -373,7 +374,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
|
|
|
373
374
|
timeoutMs,
|
|
374
375
|
trustedHeaders: trustedInvoiceHeaders(token)
|
|
375
376
|
});
|
|
376
|
-
if (response
|
|
377
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
377
378
|
throw invoiceAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
378
379
|
}
|
|
379
380
|
if (response.parseError) {
|
|
@@ -400,7 +401,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
|
|
|
400
401
|
timeoutMs,
|
|
401
402
|
trustedHeaders: trustedInvoiceHeaders(token)
|
|
402
403
|
});
|
|
403
|
-
if (response
|
|
404
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
404
405
|
throw invoiceAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
405
406
|
}
|
|
406
407
|
const contentType = response.contentType;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
findCommonFreeSlots,
|
|
8
8
|
meetingEbConflictOperations,
|
|
9
9
|
runEbConflictCheck
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-EINRJHQ3.js";
|
|
11
|
+
import "./chunk-CQHGNCK2.js";
|
|
12
12
|
import "./chunk-LUSPKZKY.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
14
14
|
export {
|
|
@@ -3,12 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
E10ApiError,
|
|
5
5
|
createE10RequestRuntime,
|
|
6
|
+
isE10SessionExpiredResponse,
|
|
6
7
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZGFHJFW.js";
|
|
8
9
|
import {
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError,
|
|
14
15
|
isCliError,
|
|
@@ -308,7 +309,7 @@ function createContractHost(ctx, dependencies = {}) {
|
|
|
308
309
|
}
|
|
309
310
|
throw error;
|
|
310
311
|
}
|
|
311
|
-
if (response
|
|
312
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
312
313
|
throw contractAuthError(
|
|
313
314
|
"session_expired",
|
|
314
315
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
@@ -3,12 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
E10ApiError,
|
|
5
5
|
createE10RequestRuntime,
|
|
6
|
+
isE10SessionExpiredResponse,
|
|
6
7
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZGFHJFW.js";
|
|
8
9
|
import {
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError,
|
|
14
15
|
isCliError,
|
|
@@ -306,7 +307,7 @@ function createCoworkHost(ctx, dependencies = {}) {
|
|
|
306
307
|
coworkPerf.requestCount += 1;
|
|
307
308
|
coworkPerf.requestMs += Date.now() - reqStart;
|
|
308
309
|
}
|
|
309
|
-
if (response
|
|
310
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
310
311
|
throw coworkAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
311
312
|
}
|
|
312
313
|
if (response.parseError) {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createEbuilderFormHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MUQUHKPG.js";
|
|
6
6
|
import {
|
|
7
7
|
createEbuilderFormContinuationSigner
|
|
8
8
|
} from "./chunk-3SO6QL6U.js";
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
ebuilderValidationError
|
|
15
15
|
} from "./chunk-BYATLLEF.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-EZGFHJFW.js";
|
|
17
|
+
import "./chunk-XXJOSZTQ.js";
|
|
18
18
|
import {
|
|
19
19
|
isCliError,
|
|
20
20
|
toErrorEnvelope
|
|
@@ -3,12 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
E10ApiError,
|
|
5
5
|
createE10RequestRuntime,
|
|
6
|
+
isE10SessionExpiredResponse,
|
|
6
7
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZGFHJFW.js";
|
|
8
9
|
import {
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError,
|
|
14
15
|
isCliError,
|
|
@@ -276,7 +277,7 @@ function createEhrHost(ctx, dependencies = {}) {
|
|
|
276
277
|
} catch (error) {
|
|
277
278
|
mapRuntimeNetworkError(error);
|
|
278
279
|
}
|
|
279
|
-
if (response
|
|
280
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
280
281
|
throw ehrAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
281
282
|
}
|
|
282
283
|
if (response.parseError) {
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
assertNoForbiddenKeys,
|
|
10
10
|
esbManifest,
|
|
11
11
|
getEsbOperation
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HJYVHXUQ.js";
|
|
13
13
|
import {
|
|
14
14
|
createEsbHost
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BJGXMFGD.js";
|
|
16
16
|
import {
|
|
17
17
|
esbValidationError
|
|
18
18
|
} from "./chunk-GPMFD4RD.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-EZGFHJFW.js";
|
|
20
|
+
import "./chunk-XXJOSZTQ.js";
|
|
21
21
|
import {
|
|
22
22
|
isCliError,
|
|
23
23
|
toErrorEnvelope
|
|
@@ -3,12 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
E10ApiError,
|
|
5
5
|
createE10RequestRuntime,
|
|
6
|
+
isE10SessionExpiredResponse,
|
|
6
7
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZGFHJFW.js";
|
|
8
9
|
import {
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError,
|
|
14
15
|
isCliError,
|
|
@@ -251,7 +252,7 @@ function createFnaHost(ctx, dependencies = {}) {
|
|
|
251
252
|
} catch (error) {
|
|
252
253
|
mapRuntimeNetworkError(error);
|
|
253
254
|
}
|
|
254
|
-
if (response
|
|
255
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
255
256
|
throw fnaAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
256
257
|
}
|
|
257
258
|
if (response.parseError) {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
dirname,
|
|
8
8
|
mkdir,
|
|
9
9
|
writeFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I2HB737U.js";
|
|
11
11
|
import "./chunk-ZEDWSH32.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EZGFHJFW.js";
|
|
13
|
+
import "./chunk-XXJOSZTQ.js";
|
|
14
14
|
import "./chunk-LUSPKZKY.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
export {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
businessMessage,
|
|
5
5
|
createHrmHost,
|
|
6
6
|
isBusinessSuccess
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-36DIFZAH.js";
|
|
8
8
|
import "./chunk-OOUTBLZ4.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-EZGFHJFW.js";
|
|
10
|
+
import "./chunk-XXJOSZTQ.js";
|
|
11
11
|
import "./chunk-LUSPKZKY.js";
|
|
12
12
|
import "./chunk-BUSC6UAE.js";
|
|
13
13
|
export {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
createEsbHost,
|
|
7
7
|
isEsbFlowUnavailable,
|
|
8
8
|
triggerResultCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BJGXMFGD.js";
|
|
10
10
|
import "./chunk-GPMFD4RD.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-EZGFHJFW.js";
|
|
12
|
+
import "./chunk-XXJOSZTQ.js";
|
|
13
13
|
import "./chunk-LUSPKZKY.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
15
15
|
export {
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
extractApiBusinessError,
|
|
6
6
|
isAtustRedirect,
|
|
7
7
|
isLoginExpired
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K3RUEEOL.js";
|
|
9
9
|
import "./chunk-FMPJJYYI.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EZGFHJFW.js";
|
|
11
|
+
import "./chunk-XXJOSZTQ.js";
|
|
12
12
|
import "./chunk-LUSPKZKY.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
14
14
|
export {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
pickEbuilderDataKey,
|
|
8
8
|
resolveApiPrefix,
|
|
9
9
|
routeEbuilderPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MUQUHKPG.js";
|
|
11
11
|
import "./chunk-BYATLLEF.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EZGFHJFW.js";
|
|
13
|
+
import "./chunk-XXJOSZTQ.js";
|
|
14
14
|
import "./chunk-LUSPKZKY.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
export {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createHrmHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-36DIFZAH.js";
|
|
6
6
|
import {
|
|
7
7
|
getHrmOperation,
|
|
8
8
|
hrmOperationDefinitions
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
hrmValidationError
|
|
16
16
|
} from "./chunk-OOUTBLZ4.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-EZGFHJFW.js";
|
|
18
|
+
import "./chunk-XXJOSZTQ.js";
|
|
19
19
|
import {
|
|
20
20
|
isCliError,
|
|
21
21
|
toErrorEnvelope
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-2LV74IWP.js";
|
|
9
9
|
import {
|
|
10
10
|
createImHost
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I2HB737U.js";
|
|
12
12
|
import {
|
|
13
13
|
createImContinuationSigner
|
|
14
14
|
} from "./chunk-P26ZWSKU.js";
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
imValidationError
|
|
17
17
|
} from "./chunk-ZEDWSH32.js";
|
|
18
18
|
import "./chunk-YLCYX7LE.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-EZGFHJFW.js";
|
|
20
|
+
import "./chunk-XXJOSZTQ.js";
|
|
21
21
|
import {
|
|
22
22
|
isCliError,
|
|
23
23
|
toErrorEnvelope
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
invoicePartialError,
|
|
8
8
|
invoiceValidationError,
|
|
9
9
|
isInvoiceNetworkError
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-ZXRNHZTE.js";
|
|
11
|
+
import "./chunk-EZGFHJFW.js";
|
|
12
|
+
import "./chunk-XXJOSZTQ.js";
|
|
13
13
|
import {
|
|
14
14
|
isCliError,
|
|
15
15
|
toErrorEnvelope
|
|
@@ -3,12 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
E10ApiError,
|
|
5
5
|
createE10RequestRuntime,
|
|
6
|
+
isE10SessionExpiredResponse,
|
|
6
7
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZGFHJFW.js";
|
|
8
9
|
import {
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError,
|
|
14
15
|
isCliError,
|
|
@@ -260,7 +261,7 @@ function createJiuchuanhuiHost(ctx, dependencies = {}) {
|
|
|
260
261
|
} catch (error) {
|
|
261
262
|
mapRuntimeNetworkError(error);
|
|
262
263
|
}
|
|
263
|
-
if (response
|
|
264
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
264
265
|
throw jiuchuanhuiAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
265
266
|
}
|
|
266
267
|
if (response.parseError) {
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
createProgram,
|
|
6
6
|
registerCommands,
|
|
7
7
|
toCommandMetadata
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-GVPJZXJ2.js";
|
|
9
|
+
import "./chunk-ZUX3P6BQ.js";
|
|
10
10
|
import "./chunk-AJ62BGAW.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ZXRNHZTE.js";
|
|
12
|
+
import "./chunk-EZGFHJFW.js";
|
|
13
|
+
import "./chunk-XXJOSZTQ.js";
|
|
14
14
|
import "./chunk-LUSPKZKY.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
|
|
@@ -3,12 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
E10ApiError,
|
|
5
5
|
createE10RequestRuntime,
|
|
6
|
+
isE10SessionExpiredResponse,
|
|
6
7
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZGFHJFW.js";
|
|
8
9
|
import {
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError,
|
|
14
15
|
isCliError,
|
|
@@ -296,7 +297,7 @@ function createMailHost(ctx, dependencies = {}) {
|
|
|
296
297
|
mailPerf.requestCount += 1;
|
|
297
298
|
mailPerf.requestMs += Date.now() - reqStart;
|
|
298
299
|
}
|
|
299
|
-
if (response
|
|
300
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
300
301
|
throw mailAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
301
302
|
}
|
|
302
303
|
if (response.parseError) {
|
|
@@ -3,17 +3,17 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
meetingOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NLK2RZKG.js";
|
|
7
|
+
import "./chunk-T7JDJJ7H.js";
|
|
8
|
+
import "./chunk-L4N7B7ZD.js";
|
|
9
|
+
import "./chunk-P2DAISYW.js";
|
|
10
|
+
import "./chunk-EINRJHQ3.js";
|
|
11
|
+
import "./chunk-KTCB5R5H.js";
|
|
12
12
|
import {
|
|
13
13
|
degradeMeetingEnvToStandard,
|
|
14
14
|
meetingStateDir,
|
|
15
15
|
readCache
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YS5DPN4T.js";
|
|
17
17
|
import {
|
|
18
18
|
MeetingCliError,
|
|
19
19
|
asObject,
|
|
@@ -21,16 +21,17 @@ import {
|
|
|
21
21
|
meetingAuthError,
|
|
22
22
|
meetingNetworkError,
|
|
23
23
|
meetingValidationError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CQHGNCK2.js";
|
|
25
25
|
import {
|
|
26
26
|
E10ApiError,
|
|
27
27
|
createE10RequestRuntime,
|
|
28
|
+
isE10SessionExpiredResponse,
|
|
28
29
|
requireE10Session
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EZGFHJFW.js";
|
|
30
31
|
import {
|
|
31
32
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
32
33
|
getActiveProfile
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
34
35
|
import {
|
|
35
36
|
isCliError,
|
|
36
37
|
toErrorEnvelope
|
|
@@ -210,7 +211,7 @@ function createMeetingHost(ctx, dependencies = {}) {
|
|
|
210
211
|
} catch (error) {
|
|
211
212
|
mapRuntimeNetworkError(error);
|
|
212
213
|
}
|
|
213
|
-
if (response
|
|
214
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
214
215
|
throw meetingAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
215
216
|
}
|
|
216
217
|
if (response.status !== 200) {
|
|
@@ -256,7 +257,7 @@ function createMeetingHost(ctx, dependencies = {}) {
|
|
|
256
257
|
} catch (error) {
|
|
257
258
|
mapRuntimeNetworkError(error);
|
|
258
259
|
}
|
|
259
|
-
if (response
|
|
260
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
260
261
|
throw meetingAuthError("session_expired", E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
261
262
|
}
|
|
262
263
|
if (response.parseError) {
|
|
@@ -3,12 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
E10ApiError,
|
|
5
5
|
createE10RequestRuntime,
|
|
6
|
+
isE10SessionExpiredResponse,
|
|
6
7
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZGFHJFW.js";
|
|
8
9
|
import {
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError,
|
|
14
15
|
isCliError,
|
|
@@ -286,7 +287,7 @@ function createOkrHost(ctx, dependencies = {}) {
|
|
|
286
287
|
} catch (error) {
|
|
287
288
|
mapRuntimeNetworkError(error);
|
|
288
289
|
}
|
|
289
|
-
if (response
|
|
290
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
290
291
|
throw okrAuthError(
|
|
291
292
|
"session_expired",
|
|
292
293
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
@@ -3,12 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
E10ApiError,
|
|
5
5
|
createE10RequestRuntime,
|
|
6
|
+
isE10SessionExpiredResponse,
|
|
6
7
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZGFHJFW.js";
|
|
8
9
|
import {
|
|
9
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
11
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XXJOSZTQ.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError,
|
|
14
15
|
isCliError,
|
|
@@ -290,7 +291,7 @@ function createPlanHost(ctx, dependencies = {}) {
|
|
|
290
291
|
} catch (error) {
|
|
291
292
|
mapRuntimeNetworkError(error);
|
|
292
293
|
}
|
|
293
|
-
if (response
|
|
294
|
+
if (isE10SessionExpiredResponse(response)) {
|
|
294
295
|
throw planAuthError(
|
|
295
296
|
"session_expired",
|
|
296
297
|
E10_SESSION_EXPIRED_MESSAGE,
|