nolo-cli 0.98.0-alpha.4 → 0.98.1
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 +1 -1
- package/{_executeModel-HYZ4NXRJ.js → _executeModel-YEIQBSEM.js} +74 -67
- package/action-PNPQLJHG.js +20 -0
- package/{addContentAction-O7R66HEX.js → addContentAction-RBOUD7SJ.js} +12 -11
- package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-IODCR6TB.js} +18 -19
- package/{agentDeleteCommand-2YAHAZFJ.js → agentDeleteCommand-4PLHGGLA.js} +47 -42
- package/{agentEmailCommands-SLEQANTK.js → agentEmailCommands-NXWEK7QA.js} +97 -87
- package/agentListCommands-VRVS3BJL.js +742 -0
- package/{agentMachineCommands-KBI77S35.js → agentMachineCommands-DJH5VXOD.js} +48 -43
- package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-IRNZXVGE.js} +1 -1
- package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-B4T2DJ5H.js} +1 -1
- package/agentRecordCommands-SQCFY7TA.js +138 -0
- package/agentRunCommand-3HT2JILG.js +167 -0
- package/{agentRunControl-AVJR4JW4.js → agentRunControl-3HWA2LLQ.js} +2 -2
- package/{agentRuntimeLocal-VXZSDIGT.js → agentRuntimeLocal-7TFUAJON.js} +48 -39
- package/{agentSlice-ZOYISPZD.js → agentSlice-XTZIXRNX.js} +14 -13
- package/{appDeleteCommands-32MHLR4L.js → appDeleteCommands-EZLI7EIO.js} +46 -41
- package/{appDeployCommands-WCQOUSOB.js → appDeployCommands-QBWG5BGL.js} +46 -41
- package/{appDeployStatusCommands-6QKB7DYN.js → appDeployStatusCommands-ZLG46B3T.js} +46 -41
- package/{appGetCommands-SFAPP5PB.js → appGetCommands-P4D34JD2.js} +46 -41
- package/{appListCommands-EKUBDRUO.js → appListCommands-JMYHZBQH.js} +46 -41
- package/{authCommand-F4EFRRX6.js → authCommand-NHDLY3IB.js} +118 -24
- package/{authCommands-RGOGCPP6.js → authCommands-UDBJVSZU.js} +7 -5
- package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-MAR5LPAC.js} +10 -8
- package/{chromeCommands-FZYAU75D.js → chromeCommands-K27J4OVZ.js} +124 -28
- package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-IXRLN57H.js} +4 -3
- package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
- package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
- package/{chunk-53HEEOTT.js → chunk-2WJ57RJA.js} +83 -16
- package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
- package/{chunk-2D66PZ54.js → chunk-3WHINT3R.js} +24 -77
- package/{chunk-ABQYVJBJ.js → chunk-46Y5D2BZ.js} +5 -5
- package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
- package/{chunk-H62HCIUP.js → chunk-4FFUDT6D.js} +24 -21
- package/chunk-4LCOCOR5.js +50 -0
- package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
- package/{chunk-IIVGDG4I.js → chunk-4YSOUKUR.js} +13 -7
- package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
- package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
- package/chunk-5J3PYNUP.js +255 -0
- package/chunk-5MMAK75Q.js +15 -0
- package/{chunk-JPGCXHNM.js → chunk-5OA5HMTL.js} +1 -1
- package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
- package/{chunk-3BMYXEUW.js → chunk-6O4IK4V2.js} +1 -1
- package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
- package/{chunk-DNCEALKX.js → chunk-7MMSLEPA.js} +22 -29
- package/{chunk-L5UXH3B2.js → chunk-7TKWCTSY.js} +22 -6
- package/chunk-A4SQRTZ6.js +15 -0
- package/{chunk-7S4YWN7P.js → chunk-ADBZWMFB.js} +4 -4
- package/chunk-AGIM7IMJ.js +147 -0
- package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
- package/{chunk-Q554LLSI.js → chunk-AUDNYVRC.js} +1 -1
- package/chunk-BMQ2MJUK.js +153 -0
- package/{chunk-6YTOJY35.js → chunk-BZ7NPA6G.js} +35 -2
- package/chunk-CHOZJMJS.js +78 -0
- package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
- package/{chunk-37NKTC3Q.js → chunk-CYYWWZV7.js} +1 -1
- package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
- package/chunk-DZ7R5V3Y.js +164 -0
- package/{chunk-3VNWWVKB.js → chunk-E3YWHWCR.js} +50 -18
- package/{chunk-V4MJDUSR.js → chunk-E73ON47R.js} +2 -2
- package/{chunk-KQ4ONNQD.js → chunk-EKPKW6RM.js} +155 -8
- package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
- package/{chunk-HJUYAD4A.js → chunk-FJ5BGMNM.js} +5 -5
- package/{chunk-2F7RJC6L.js → chunk-FOXQ7BAB.js} +1 -1
- package/{chunk-6IG4XSS6.js → chunk-FY7DCYW7.js} +88 -17
- package/{chunk-J4MOO56S.js → chunk-GARACBQB.js} +10 -2
- package/chunk-GMZLP5DV.js +82 -0
- package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
- package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
- package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
- package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
- package/{chunk-VLTIYV3X.js → chunk-HP57OUJO.js} +4 -4
- package/{chunk-G4EBXCWF.js → chunk-IM6ZMFRL.js} +550 -515
- package/{chunk-34BLIAHQ.js → chunk-JY3XHK42.js} +47 -67
- package/{chunk-GPCZ7UXG.js → chunk-K6U4NKFJ.js} +1 -1
- package/{chunk-6VFARHZW.js → chunk-KQQMCLDJ.js} +934 -1091
- package/{chunk-T37GTQYU.js → chunk-KVKYLJOA.js} +20 -11
- package/{chunk-4OEFYTWL.js → chunk-LKERWYPX.js} +67 -48
- package/{chunk-OEVAY4J6.js → chunk-LNVJHIGA.js} +18 -20
- package/{chunk-LS2ZANRJ.js → chunk-LOCNXNOU.js} +1 -1
- package/chunk-M6NBAHCD.js +7881 -0
- package/{chunk-PUOC4YRO.js → chunk-M7VLQGQP.js} +11 -0
- package/chunk-NFG4GW2E.js +13536 -0
- package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
- package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
- package/chunk-NWENLDMM.js +42 -0
- package/{chunk-AEOE4Z6Q.js → chunk-NZWAO6LH.js} +13 -15
- package/chunk-OCZKATRC.js +129 -0
- package/chunk-OW4APERY.js +870 -0
- package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
- package/{chunk-TOP2VXOR.js → chunk-PCF3QU5Q.js} +5 -5
- package/{chunk-WV42OMV7.js → chunk-PTDYOADJ.js} +8 -8
- package/{chunk-PKUGW3X6.js → chunk-SDUYSRTJ.js} +23 -28
- package/{chunk-5H7KJX7J.js → chunk-SEB5HAUU.js} +5 -5
- package/{chunk-6D6VBVEW.js → chunk-SNMQMOD2.js} +80 -14
- package/{chunk-ITM7D3UQ.js → chunk-TN3SIMJZ.js} +11 -9
- package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
- package/{chunk-Z77CRGTW.js → chunk-TVCAR26G.js} +1 -1
- package/chunk-TY3TIUJK.js +89 -0
- package/{chunk-I3TQJXQ7.js → chunk-U3C3IA32.js} +9 -2
- package/{chunk-RG6JBBX5.js → chunk-U7XXEI5R.js} +166 -13
- package/{chunk-UZGQNTVW.js → chunk-UA324D4O.js} +8 -6
- package/{chunk-V7BKTIF6.js → chunk-UFUTWXPR.js} +19 -17
- package/chunk-UJXNKP5V.js +760 -0
- package/{chunk-UKZDAFYT.js → chunk-UM4PH574.js} +6 -10
- package/{chunk-XDJFSBVV.js → chunk-UUMRZHVT.js} +24 -5
- package/{chunk-GEPUP7OO.js → chunk-UVKDJUTL.js} +3 -3
- package/{chunk-5ZYCLPXL.js → chunk-V4BX25AC.js} +873 -227
- package/{chunk-ZCYXJSTU.js → chunk-V5OWQOJZ.js} +19 -88
- package/{chunk-NA35QHCF.js → chunk-V7Y6KRAH.js} +1 -1
- package/{chunk-3DII57IT.js → chunk-VCAQFMVN.js} +1 -1
- package/{chunk-JRQFUXY7.js → chunk-VEYL5MO5.js} +99 -22
- package/chunk-VIWDGTDA.js +8 -0
- package/chunk-VJVNU77E.js +83 -0
- package/{chunk-UKWGR5SS.js → chunk-VY6VFGKR.js} +194 -1144
- package/{chunk-BP4XNZRM.js → chunk-W72ISAKC.js} +4 -4
- package/{chunk-DHDMC6FO.js → chunk-WCGC6S77.js} +14 -9
- package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
- package/{chunk-HVURBGF3.js → chunk-XFUBXRVI.js} +6 -6
- package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
- package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
- package/{chunk-ETI2NYVF.js → chunk-YPOPJAKN.js} +4 -4
- package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
- package/chunk-YV25TM3R.js +780 -0
- package/{chunk-PDIBG2WC.js → chunk-ZDXOUUPB.js} +67 -45
- package/{chunk-YRPASJCG.js → chunk-ZH7YLZC5.js} +10 -10
- package/chunk-ZRAU6T47.js +56 -0
- package/commandRegistry-YXINJIJK.js +833 -0
- package/{contentThunks-G55OKUFE.js → contentThunks-ZZVD2LBR.js} +36 -34
- package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
- package/{createAgentAutomationAction-D2J2O5GS.js → createAgentAutomationAction-B2TFWNDC.js} +38 -36
- package/createDialogAction-DVG2MYBF.js +69 -0
- package/{createPageAction-FHZBN7DJ.js → createPageAction-UXBWURHH.js} +45 -42
- package/{chunk-AJ3A3445.js → cursorProvider-YGGNMVWX.js} +2496 -9897
- package/{dbSlice-XVWBAGYN.js → dbSlice-Q25STFGJ.js} +11 -10
- package/{deleteFile-YG6QMJLU.js → deleteFile-AJ2EZMHT.js} +7 -6
- package/{dialogCommands-5J56DFWN.js → dialogCommands-243UITH3.js} +49 -45
- package/{dialogSlice-D4V3HURH.js → dialogSlice-B77ICP3A.js} +40 -33
- package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
- package/{docCreateCommands-KYI2DC2U.js → docCreateCommands-RT6AVFDR.js} +48 -43
- package/{docDeleteCommands-67REUSRY.js → docDeleteCommands-TMKHOR5F.js} +49 -44
- package/{docReadCommands-HOSVSBDJ.js → docReadCommands-KIDSKS6N.js} +47 -42
- package/{docStore-5LROPEEP.js → docStore-NBER5SWJ.js} +16 -12
- package/{docUpdateCommands-EMGCSMXY.js → docUpdateCommands-C6OCR767.js} +48 -43
- package/{fetchMessages-EIU7UFFK.js → fetchMessages-I5ICDDHM.js} +5 -5
- package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +4 -4
- package/{handleSendMessageAction-QBPDYSLZ.js → handleSendMessageAction-4DBKTZDW.js} +110 -86
- package/index.js +87 -884
- package/{localDialogRead-BTFJ4V2I.js → localDialogRead-ZHZ3KXDM.js} +2 -2
- package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-TU6OBC76.js} +9 -6
- package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-VKWVOPPI.js} +1 -1
- package/{machineCommands-4ISPVTPN.js → machineCommands-Y2BN2TCO.js} +91 -81
- package/machineWsRunDispatch-POB6IF6W.js +154 -0
- package/{memberThunks-QGFLFVCI.js → memberThunks-R75S3RWP.js} +20 -18
- package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
- package/oauthTokenStore-ITEB663N.js +23 -0
- package/package.json +1 -1
- package/pdf-U6KSUEZZ.js +26435 -0
- package/processSpawn-SOAV3FEV.js +11 -0
- package/profileConfig-ZGOFORWV.js +43 -0
- package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-TEBH7FDX.js} +7 -7
- package/{providerRegistry-757OWH3O.js → providerRegistry-CBJLNCET.js} +11 -7
- package/{read-COE3ZYR6.js → read-SRQMNO26.js} +7 -6
- package/{readDocTool-5USN4A6V.js → readDocTool-RC3JUNJ2.js} +5 -3
- package/{readlineWorkspace-JFADM567.js → readlineWorkspace-OLCGKYLQ.js} +2704 -2060
- package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-46XQV5Q7.js} +21 -25
- package/{runAgentClientLoop-JFFIFP7N.js → runAgentClientLoop-BFVCLCBO.js} +75 -69
- package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-PIVSBZRZ.js} +4 -4
- package/runtimeModeArgs-2Y7BALTO.js +31 -0
- package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-J4V5ADQF.js} +15 -13
- package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-UHHV2QZW.js} +22 -26
- package/{chunk-AFUORTY4.js → settingThunks-PPZZZOWN.js} +226 -940
- package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
- package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
- package/{spaceCommands-NKJVJCQQ.js → spaceCommands-WQBSC4VD.js} +51 -46
- package/{streamAgentChatTurn-HFVTDCFD.js → streamAgentChatTurn-M7V35IXY.js} +199 -104
- package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-A2TMVGAE.js} +18 -19
- package/{tableCommands-O6NWHFKV.js → tableCommands-6U4BMLRR.js} +10 -10
- package/{toolApiClient-QVJ6HDNN.js → toolApiClient-EJT6TMFG.js} +3 -3
- package/tools-4XIEV6FW.js +116 -0
- package/{tuiSummaryLlmCaller-WFRWERGK.js → tuiSummaryLlmCaller-Q65IBDGO.js} +24 -21
- package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
- package/{updateDialogTitleAction-PER2C6MR.js → updateDialogTitleAction-TFQFP7FE.js} +82 -44
- package/action-YVYQEAAV.js +0 -31
- package/agentListCommands-KMS675GZ.js +0 -406
- package/agentRecordCommands-IPPPUHG4.js +0 -128
- package/agentRunCommand-24XO4RDT.js +0 -155
- package/browser-image-compression-MFDTD7K6.js +0 -1763
- package/chatQueueReduxAdapter-PMAMSHG7.js +0 -186
- package/chunk-M76ECQRD.js +0 -13658
- package/chunk-MEYIRKDN.js +0 -8967
- package/chunk-OCSGDPAT.js +0 -18885
- package/chunk-Q5FJJ6XI.js +0 -103
- package/chunk-S7Z2HMCN.js +0 -25
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YPREESF4.js +0 -225
- package/createDialogAction-E2EVICIE.js +0 -65
- package/machineWsRunDispatch-L4MKXQAO.js +0 -144
- package/settingSlice-ZQZVUPKK.js +0 -204
- package/syncMapping-N6RGXGBW.js +0 -437
- package/tools-BBBCUOUZ.js +0 -110
- package/{chunk-VMFTFOWF.js → chunk-3AH7LNUB.js} +7 -7
- package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
- package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
|
@@ -5,20 +5,18 @@ import {
|
|
|
5
5
|
} from "./chunk-ZJ7UHBJS.js";
|
|
6
6
|
import {
|
|
7
7
|
deleteDialog,
|
|
8
|
-
|
|
9
|
-
initReactI18next,
|
|
10
|
-
instance,
|
|
8
|
+
runtime_default,
|
|
11
9
|
toast
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NFG4GW2E.js";
|
|
13
11
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
formatISO
|
|
13
|
+
} from "./chunk-ZRAU6T47.js";
|
|
16
14
|
import {
|
|
17
15
|
require_react
|
|
18
16
|
} from "./chunk-YDH3FDFQ.js";
|
|
19
17
|
import {
|
|
20
18
|
isSystemAdmin
|
|
21
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-A4SQRTZ6.js";
|
|
22
20
|
import {
|
|
23
21
|
asRecordOrEmpty
|
|
24
22
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -27,7 +25,7 @@ import {
|
|
|
27
25
|
addContentAction,
|
|
28
26
|
checkSpaceMembership,
|
|
29
27
|
localSpaceAuthorityPatchStamp
|
|
30
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E73ON47R.js";
|
|
31
29
|
import {
|
|
32
30
|
createSpaceKey,
|
|
33
31
|
normalizeSpaceId
|
|
@@ -41,7 +39,24 @@ import {
|
|
|
41
39
|
uploadFileAction,
|
|
42
40
|
upsertSSREntity,
|
|
43
41
|
write
|
|
44
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4FFUDT6D.js";
|
|
43
|
+
import {
|
|
44
|
+
DEVICE_LOCAL_OWNER_ID,
|
|
45
|
+
getRuntimeServerContext,
|
|
46
|
+
isDeviceLocalSpaceBody,
|
|
47
|
+
resolveReplicationServers,
|
|
48
|
+
scheduleDeleteReplication,
|
|
49
|
+
scheduleWriteReplication
|
|
50
|
+
} from "./chunk-UJXNKP5V.js";
|
|
51
|
+
import {
|
|
52
|
+
buildTombstoneRecord
|
|
53
|
+
} from "./chunk-D2MDMY2M.js";
|
|
54
|
+
import {
|
|
55
|
+
extractUserId
|
|
56
|
+
} from "./chunk-M2EJHDJP.js";
|
|
57
|
+
import {
|
|
58
|
+
isRecord
|
|
59
|
+
} from "./chunk-KUG52IAP.js";
|
|
45
60
|
import {
|
|
46
61
|
SEPARATOR,
|
|
47
62
|
asTrimmedNonEmptyStringArray,
|
|
@@ -53,41 +68,26 @@ import {
|
|
|
53
68
|
rowKey,
|
|
54
69
|
splitKey,
|
|
55
70
|
ulid
|
|
56
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-3AH7LNUB.js";
|
|
57
72
|
import {
|
|
58
73
|
asOptionalFiniteNumber
|
|
59
74
|
} from "./chunk-WWC7I6TA.js";
|
|
60
75
|
import {
|
|
61
|
-
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import {
|
|
64
|
-
DEVICE_LOCAL_OWNER_ID,
|
|
65
|
-
createAsyncThunk,
|
|
66
|
-
getRuntimeServerContext,
|
|
67
|
-
isDeviceLocalSpaceBody,
|
|
68
|
-
resolveReplicationServers,
|
|
69
|
-
scheduleDeleteReplication,
|
|
70
|
-
scheduleWriteReplication
|
|
71
|
-
} from "./chunk-UKWGR5SS.js";
|
|
76
|
+
createAsyncThunk
|
|
77
|
+
} from "./chunk-VY6VFGKR.js";
|
|
72
78
|
import {
|
|
73
79
|
createClientLogger,
|
|
74
80
|
isAbortError
|
|
75
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-HIM3FCLF.js";
|
|
76
82
|
import {
|
|
77
83
|
selectIdentityUserId
|
|
78
84
|
} from "./chunk-SEJ5OS6F.js";
|
|
79
85
|
import {
|
|
80
|
-
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import {
|
|
83
|
-
isRecord
|
|
84
|
-
} from "./chunk-KUG52IAP.js";
|
|
86
|
+
asOptionalPositiveFiniteNumber
|
|
87
|
+
} from "./chunk-U6VC4MU4.js";
|
|
85
88
|
import {
|
|
86
89
|
asTrimmedString
|
|
87
90
|
} from "./chunk-3EUW3WEO.js";
|
|
88
|
-
import {
|
|
89
|
-
asOptionalPositiveFiniteNumber
|
|
90
|
-
} from "./chunk-U6VC4MU4.js";
|
|
91
91
|
import {
|
|
92
92
|
asOptionalTrimmedString
|
|
93
93
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -97,7 +97,6 @@ import {
|
|
|
97
97
|
|
|
98
98
|
// packages/render/table/tableStore.ts
|
|
99
99
|
var import_react = __toESM(require_react(), 1);
|
|
100
|
-
var import_date_fns2 = __toESM(require_date_fns(), 1);
|
|
101
100
|
import { ulid as ulid3 } from "ulid";
|
|
102
101
|
|
|
103
102
|
// packages/render/table/fetchAndCacheTableRows.ts
|
|
@@ -434,25 +433,7 @@ function addColumnOptionInMeta(meta, input, deps) {
|
|
|
434
433
|
}
|
|
435
434
|
|
|
436
435
|
// packages/render/table/createTableAction.ts
|
|
437
|
-
var import_date_fns = __toESM(require_date_fns(), 1);
|
|
438
436
|
import { ulid as ulid2 } from "ulid";
|
|
439
|
-
|
|
440
|
-
// packages/app/i18n/client.ts
|
|
441
|
-
instance.use(initReactI18next).init({
|
|
442
|
-
...i18nBaseConfig,
|
|
443
|
-
lng: "zh-CN" /* ZH_CN */,
|
|
444
|
-
fallbackLng: {
|
|
445
|
-
["en" /* EN */]: ["en" /* EN */],
|
|
446
|
-
["zh-CN" /* ZH_CN */]: ["zh-CN" /* ZH_CN */, "en" /* EN */],
|
|
447
|
-
["zh-Hant" /* ZH_HANT */]: ["zh-Hant" /* ZH_HANT */, "zh-CN" /* ZH_CN */, "en" /* EN */],
|
|
448
|
-
["ja" /* JA */]: ["ja" /* JA */, "en" /* EN */],
|
|
449
|
-
default: ["en" /* EN */]
|
|
450
|
-
},
|
|
451
|
-
compatibilityJSON: "v3"
|
|
452
|
-
});
|
|
453
|
-
var client_default = instance;
|
|
454
|
-
|
|
455
|
-
// packages/render/table/createTableAction.ts
|
|
456
437
|
var DEFAULT_COLUMNS = [
|
|
457
438
|
{
|
|
458
439
|
name: "title",
|
|
@@ -554,9 +535,9 @@ var createTableAction = async ({
|
|
|
554
535
|
const spaceId = customSpaceId ?? getCurrentSpaceId();
|
|
555
536
|
const tableId = ulid2();
|
|
556
537
|
const now = /* @__PURE__ */ new Date();
|
|
557
|
-
const nowIso =
|
|
538
|
+
const nowIso = formatISO(now);
|
|
558
539
|
const dbKey = metaKey(userId, tableId);
|
|
559
|
-
const defaultTitle =
|
|
540
|
+
const defaultTitle = runtime_default.t("space:newTable", {
|
|
560
541
|
defaultValue: "\u65B0\u5EFA\u8868\u683C"
|
|
561
542
|
});
|
|
562
543
|
const title = asOptionalTrimmedString(customTitle) ?? defaultTitle;
|
|
@@ -924,7 +905,7 @@ var addRow = createTableCommand(
|
|
|
924
905
|
});
|
|
925
906
|
try {
|
|
926
907
|
const { dbKey, rowId } = rowKey.create(tenantId, tableId);
|
|
927
|
-
const nowIso =
|
|
908
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
928
909
|
const row = {
|
|
929
910
|
dbKey,
|
|
930
911
|
tenantId,
|
|
@@ -985,7 +966,7 @@ var deleteRow = createTableCommand(
|
|
|
985
966
|
if (!row) {
|
|
986
967
|
throw new Error(`\u5F53\u524D\u8868\u4E2D\u627E\u4E0D\u5230\u8981\u5220\u9664\u7684\u884C\uFF1A${dbKey}`);
|
|
987
968
|
}
|
|
988
|
-
const nowIso =
|
|
969
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
989
970
|
const tombstoneRow = {
|
|
990
971
|
...row,
|
|
991
972
|
deletedAt: nowIso,
|
|
@@ -1063,7 +1044,7 @@ var addColumn = createTableCommand(
|
|
|
1063
1044
|
const result = addColumnToMeta(
|
|
1064
1045
|
meta,
|
|
1065
1046
|
{ columnName },
|
|
1066
|
-
{ id: ulid3(), nowIso:
|
|
1047
|
+
{ id: ulid3(), nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1067
1048
|
);
|
|
1068
1049
|
if (!result.ok) {
|
|
1069
1050
|
throw new Error(result.error);
|
|
@@ -1104,7 +1085,7 @@ var deleteColumn = createTableCommand(
|
|
|
1104
1085
|
meta,
|
|
1105
1086
|
state.rows,
|
|
1106
1087
|
{ columnName },
|
|
1107
|
-
{ nowIso:
|
|
1088
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1108
1089
|
);
|
|
1109
1090
|
if (!result.ok) {
|
|
1110
1091
|
throw new Error(result.error);
|
|
@@ -1146,7 +1127,7 @@ var reorderColumn = createTableCommand(
|
|
|
1146
1127
|
const result = reorderColumnInMeta(
|
|
1147
1128
|
meta,
|
|
1148
1129
|
{ fromIndex, toIndex },
|
|
1149
|
-
{ nowIso:
|
|
1130
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1150
1131
|
);
|
|
1151
1132
|
if (!result.ok) {
|
|
1152
1133
|
throw new Error(result.error);
|
|
@@ -1187,7 +1168,7 @@ var renameColumnLabel = createTableCommand(
|
|
|
1187
1168
|
const result = renameColumnLabelInMeta(
|
|
1188
1169
|
meta,
|
|
1189
1170
|
{ columnId, label: newLabel },
|
|
1190
|
-
{ nowIso:
|
|
1171
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1191
1172
|
);
|
|
1192
1173
|
if (!result.ok) {
|
|
1193
1174
|
throw new Error(result.error);
|
|
@@ -1225,7 +1206,7 @@ var updateColumnWidth = createTableCommand(
|
|
|
1225
1206
|
const result = updateColumnWidthInMeta(
|
|
1226
1207
|
meta,
|
|
1227
1208
|
{ columnId, width },
|
|
1228
|
-
{ nowIso:
|
|
1209
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1229
1210
|
);
|
|
1230
1211
|
if (!result.ok) {
|
|
1231
1212
|
throw new Error(result.error);
|
|
@@ -1263,7 +1244,7 @@ var addColumnOption = createTableCommand(
|
|
|
1263
1244
|
const result = addColumnOptionInMeta(
|
|
1264
1245
|
meta,
|
|
1265
1246
|
{ columnId, option },
|
|
1266
|
-
{ nowIso:
|
|
1247
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1267
1248
|
);
|
|
1268
1249
|
if (!result.ok) {
|
|
1269
1250
|
throw new Error(result.error);
|
|
@@ -1305,7 +1286,7 @@ var renameTable = createTableCommand(
|
|
|
1305
1286
|
if (!meta || meta.tenantId !== tenantId || meta.tableId !== tableId) {
|
|
1306
1287
|
throw new Error("\u5F53\u524D\u6CA1\u6709\u52A0\u8F7D\u5BF9\u5E94\u7684\u8868\u5B9A\u4E49");
|
|
1307
1288
|
}
|
|
1308
|
-
const nowIso =
|
|
1289
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
1309
1290
|
setState((s) => ({ ...s, error: null }));
|
|
1310
1291
|
try {
|
|
1311
1292
|
if (dispatch) {
|
|
@@ -1346,7 +1327,7 @@ var updateTableIcon = createTableCommand(
|
|
|
1346
1327
|
if (!meta || meta.tenantId !== tenantId || meta.tableId !== tableId) {
|
|
1347
1328
|
throw new Error("\u5F53\u524D\u6CA1\u6709\u52A0\u8F7D\u5BF9\u5E94\u7684\u8868\u5B9A\u4E49");
|
|
1348
1329
|
}
|
|
1349
|
-
const nowIso =
|
|
1330
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
1350
1331
|
setState((s) => ({ ...s, error: null }));
|
|
1351
1332
|
try {
|
|
1352
1333
|
if (dispatch) {
|
|
@@ -1384,7 +1365,7 @@ var updateCell = createTableCommand(
|
|
|
1384
1365
|
const { dbKey, columnName, value } = args;
|
|
1385
1366
|
setState((s) => ({ ...s, error: null }));
|
|
1386
1367
|
try {
|
|
1387
|
-
const nowIso =
|
|
1368
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
1388
1369
|
if (dispatch) {
|
|
1389
1370
|
await safeDispatch(
|
|
1390
1371
|
dispatch,
|
|
@@ -1453,11 +1434,11 @@ var ENTITY_DELETE_STRATEGIES = {
|
|
|
1453
1434
|
await dispatch(deleteTable({ dbKey: key })).unwrap();
|
|
1454
1435
|
},
|
|
1455
1436
|
file: async (key, { thunkAPI }) => {
|
|
1456
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1437
|
+
const { deleteFileAction } = await import("./deleteFile-AJ2EZMHT.js");
|
|
1457
1438
|
await deleteFileAction(key, thunkAPI);
|
|
1458
1439
|
},
|
|
1459
1440
|
image: async (key, { thunkAPI }) => {
|
|
1460
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1441
|
+
const { deleteFileAction } = await import("./deleteFile-AJ2EZMHT.js");
|
|
1461
1442
|
await deleteFileAction(key, thunkAPI);
|
|
1462
1443
|
},
|
|
1463
1444
|
agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
|
|
@@ -2097,11 +2078,11 @@ var uploadAndAddFileToSpaceAction = async (payload, thunkAPI) => {
|
|
|
2097
2078
|
const state3 = getState();
|
|
2098
2079
|
const userId = selectIdentityUserId(state3);
|
|
2099
2080
|
if (!userId) {
|
|
2100
|
-
|
|
2081
|
+
throw new Error("Cannot upload a file to a space without an authenticated user.");
|
|
2101
2082
|
}
|
|
2102
2083
|
try {
|
|
2103
2084
|
const id = ulid();
|
|
2104
|
-
const dbKey = fileKey.single(userId
|
|
2085
|
+
const dbKey = fileKey.single(userId, id);
|
|
2105
2086
|
const contentType = "file" /* FILE */;
|
|
2106
2087
|
const fileCategory = resolveFileCategory({
|
|
2107
2088
|
mimeType: file.type,
|
|
@@ -2391,7 +2372,6 @@ var updateContentCategory = createAsyncThunk(
|
|
|
2391
2372
|
|
|
2392
2373
|
export {
|
|
2393
2374
|
fetchAndCacheTableRows,
|
|
2394
|
-
client_default,
|
|
2395
2375
|
getTableState,
|
|
2396
2376
|
loadTableRows,
|
|
2397
2377
|
addRow,
|