@senguoyun/dsh-arkme 0.1.37 → 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.
Files changed (38) hide show
  1. package/lib/client.js +2150 -472
  2. package/lib/client.js.map +1 -1
  3. package/lib/index.js +14 -1
  4. package/lib/persistent-extension.js +1 -1
  5. package/lib/{persistent-runtime-Bc6X98km.js → persistent-runtime-DLrd2RMI.js} +10234 -196
  6. package/lib/sdk.js +31 -0
  7. package/lib/types/arkme-service.d.ts +14 -1
  8. package/lib/types/arkme-service.d.ts.map +1 -1
  9. package/lib/types/client/ArkmeAttachmentStrip.d.ts.map +1 -1
  10. package/lib/types/client/ArkmeNoteDetails.d.ts +4 -2
  11. package/lib/types/client/ArkmeNoteDetails.d.ts.map +1 -1
  12. package/lib/types/client/ArkmePersistentShell.d.ts +7 -1
  13. package/lib/types/client/ArkmePersistentShell.d.ts.map +1 -1
  14. package/lib/types/client/ArkmeRichContent.d.ts +2 -1
  15. package/lib/types/client/ArkmeRichContent.d.ts.map +1 -1
  16. package/lib/types/client/ArkmeSidebar.d.ts.map +1 -1
  17. package/lib/types/client/api.d.ts +1 -1
  18. package/lib/types/client/api.d.ts.map +1 -1
  19. package/lib/types/client/arkme-theme.d.ts +1 -0
  20. package/lib/types/client/arkme-theme.d.ts.map +1 -1
  21. package/lib/types/client/composer-draft-store.d.ts +1 -1
  22. package/lib/types/client/composer-draft-store.d.ts.map +1 -1
  23. package/lib/types/client/conversation-memory-cache.d.ts +10 -0
  24. package/lib/types/client/conversation-memory-cache.d.ts.map +1 -1
  25. package/lib/types/client/ui-controller.d.ts +2 -1
  26. package/lib/types/client/ui-controller.d.ts.map +1 -1
  27. package/lib/types/host-api.d.ts.map +1 -1
  28. package/lib/types/sdk/index.d.ts +15 -2
  29. package/lib/types/sdk/index.d.ts.map +1 -1
  30. package/lib/types/services/chat-service.d.ts +17 -1
  31. package/lib/types/services/chat-service.d.ts.map +1 -1
  32. package/lib/types/services/file-transfers.d.ts +1 -0
  33. package/lib/types/services/file-transfers.d.ts.map +1 -1
  34. package/lib/types/services/record-service.d.ts +4 -0
  35. package/lib/types/services/record-service.d.ts.map +1 -1
  36. package/lib/types/types.d.ts +53 -1
  37. package/lib/types/types.d.ts.map +1 -1
  38. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
+ import { A as inspectNativeBundleArtifactV3, D as bundleSha256, E as arkmeSandboxEntryId, F as assertExtensionArtifactSize, G as validateVoiceprintPcm16Wav, I as canonicalExtensionJson, J as arkmeRichBackgroundSound, K as isRecordingInstantOnOrAfterUnixEpoch, L as sha256Hex, M as packLocalNativeBundleDirectoryV3, N as readNativeBundleTarballV3, O as canonicalBundleJson, P as renderArkmeSandboxHostEntry, R as unpackArkmeExtension, S as ARKME_BUNDLE_ARTIFACT_KIND, T as ArkmeBundleArtifactError, U as ARKME_EXTENSION_RUNTIME_UNAVAILABLE_MESSAGE, W as ArkmeService, X as ARKME_PROVIDER_CONTRACT_VERSION, Y as ARKME_DEFAULT_SHARE_WEBSITE, _ as arkmeClientContentDigest, at as arkmeNormalizedFileMimeType, b as verifyExtensionResolutionSignature, c as persistentExtensionBundleDirectory, ct as recordingImportFileKind, d as readPersistentExtensionActivation, dt as ArkmePluginError, et as ARKME_WORLD_PUBLISH_MAX_IMAGES, f as refreshPersistentClientWrapper, ft as ArkmeOutgoingCallError, g as activeProfileExtensionOwnerConflicts, h as renderArkmeBundleClientBundle, i as invokePersistentArkmeExtension, it as arkmeCanInlineLocalFile, j as packBundleFiles, k as inspectBundleArtifact, l as persistentExtensionPackageIdentity, lt as sameRecordingImportIdentity, m as writePersistentExtensionActivation, nt as ARKME_RUNTIME_INSTANCE_ID, o as persistentArkmeExtensionRuntimeState, ot as arkmePickedFileKind, p as repairPersistentExtensionInstallation, q as arkmeFileBackgroundSound, r as deactivatePersistentArkmeExtension, rt as ARKME_TOOL_FILE_MAX_BYTES, s as materializePersistentExtensionBundle, st as isArkmeBotAvatarRef, t as activatePersistentArkmeExtension, tt as ARKME_WORLD_PUBLISH_MAX_IMAGE_BYTES, u as quarantinePersistentExtension, v as arkmeClientContentDigestFromSource, w as ARKME_NATIVE_BUNDLE_ARTIFACT_KIND, x as verifyNativeBundleResolutionSignature, y as verifyBundleResolutionSignature, z as ARKME_EXTENSION_FORMAT } from "./persistent-runtime-DLrd2RMI.js";
1
2
  import { a as securePrivateDirectory, c as securePrivateFileSync, i as prepareProfilePackageManager, n as isArkmeProfilePackageName, o as securePrivateDirectorySync, r as localExtensionPnpmArgs, s as securePrivateFile, t as applyArkmeProfileBundlePolicy } from "./profile-bundle-policy-CvojZuTD.js";
2
- import { A as inspectNativeBundleArtifactV3, D as bundleSha256, E as arkmeSandboxEntryId, F as assertExtensionArtifactSize, G as validateVoiceprintPcm16Wav, I as canonicalExtensionJson, J as arkmeRichBackgroundSound, K as isRecordingInstantOnOrAfterUnixEpoch, L as sha256Hex, M as packLocalNativeBundleDirectoryV3, N as readNativeBundleTarballV3, O as canonicalBundleJson, P as renderArkmeSandboxHostEntry, R as unpackArkmeExtension, S as ARKME_BUNDLE_ARTIFACT_KIND, T as ArkmeBundleArtifactError, U as ARKME_EXTENSION_RUNTIME_UNAVAILABLE_MESSAGE, W as ArkmeService, X as ARKME_PROVIDER_CONTRACT_VERSION, Y as ARKME_DEFAULT_SHARE_WEBSITE, _ as arkmeClientContentDigest, at as arkmeNormalizedFileMimeType, b as verifyExtensionResolutionSignature, c as persistentExtensionBundleDirectory, ct as recordingImportFileKind, d as readPersistentExtensionActivation, dt as ArkmePluginError, et as ARKME_WORLD_PUBLISH_MAX_IMAGES, f as refreshPersistentClientWrapper, ft as ArkmeOutgoingCallError, g as activeProfileExtensionOwnerConflicts, h as renderArkmeBundleClientBundle, i as invokePersistentArkmeExtension, it as arkmeCanInlineLocalFile, j as packBundleFiles, k as inspectBundleArtifact, l as persistentExtensionPackageIdentity, lt as sameRecordingImportIdentity, m as writePersistentExtensionActivation, nt as ARKME_RUNTIME_INSTANCE_ID, o as persistentArkmeExtensionRuntimeState, ot as arkmePickedFileKind, p as repairPersistentExtensionInstallation, q as arkmeFileBackgroundSound, r as deactivatePersistentArkmeExtension, rt as ARKME_TOOL_FILE_MAX_BYTES, s as materializePersistentExtensionBundle, st as isArkmeBotAvatarRef, t as activatePersistentArkmeExtension, tt as ARKME_WORLD_PUBLISH_MAX_IMAGE_BYTES, u as quarantinePersistentExtension, v as arkmeClientContentDigestFromSource, w as ARKME_NATIVE_BUNDLE_ARTIFACT_KIND, x as verifyNativeBundleResolutionSignature, y as verifyBundleResolutionSignature, z as ARKME_EXTENSION_FORMAT } from "./persistent-runtime-Bc6X98km.js";
3
3
  import { _ as parsePluginUpdateManifest, b as validatePluginUpdateServiceOrigin, d as writePluginUpdateLifecycleLog, f as PluginUpdateInstallStateStore, g as existingCachedPluginArtifactPath, h as downloadAndCachePluginArtifact, m as PluginUpdateArtifactError, n as buildTargetInstallArgs, o as reconcilePluginUpdaterProfilePolicy, p as ARKME_PLUGIN_PACKAGE_NAME$1, t as assertTargetArtifactIntegrity, u as detachManagedProfilePluginLink, v as pluginUpdateEndpointUrl, y as validatePluginUpdateArtifactOrigin } from "./plugin-updater-helper-BByw0ZyG.js";
4
4
  import { i as invokeArkmeBundle, n as arkmeBundleActive, r as deactivateArkmeBundle } from "./bundle-runtime-BTzRlc6V.js";
5
5
  import { t as ArkmeExtensionInstallStore } from "./install-store-C1tAM346.js";
@@ -1811,7 +1811,9 @@ function timelineCursorParam(params) {
1811
1811
  const sendAtMillis = numberParam(cursor, "sendAtMillis", 0);
1812
1812
  const itemUid = stringParam(cursor, "itemUid");
1813
1813
  const beforeSequence = numberParam(cursor, "beforeSequence", 0);
1814
+ const afterSequence = numberParam(cursor, "afterSequence", 0);
1814
1815
  if (beforeSequence > 0) return { beforeSequence };
1816
+ if (afterSequence > 0) return { afterSequence };
1815
1817
  return sendAtMillis > 0 && itemUid !== "" ? {
1816
1818
  sendAtMillis,
1817
1819
  itemUid
@@ -2382,6 +2384,11 @@ async function dispatchArkmeHostOperation(service, operation, params, updateMana
2382
2384
  ...cursor === void 0 ? {} : { cursor }
2383
2385
  });
2384
2386
  }
2387
+ case "source.timeline-around": return await service.readSourceAround(stringParam(params, "sourceRef"), stringParam(params, "itemUid"), numberParam(params, "recordOwnerUserId", 0), {
2388
+ beforeLimit: numberParam(params, "beforeLimit", 20),
2389
+ afterLimit: numberParam(params, "afterLimit", 20),
2390
+ ...requestSignal === void 0 ? {} : { signal: requestSignal }
2391
+ });
2385
2392
  case "source.members": return await service.listSourceMembers(stringParam(params, "sourceRef"), { activeOnly: params.activeOnly !== false });
2386
2393
  case "source.member-records": return await service.sourceMemberRecords(stringParam(params, "sourceRef"), stringParam(params, "memberRef"), conversationMemberRecordModeParam(params), {
2387
2394
  limit: numberParam(params, "limit", 30),
@@ -2407,6 +2414,12 @@ async function dispatchArkmeHostOperation(service, operation, params, updateMana
2407
2414
  case "message-actions.copy-link": return await service.copyMessageActionsLink(stringParam(params, "conversationRef").trim(), messageActionRefsParam(params), requestSignal === void 0 ? {} : { signal: requestSignal });
2408
2415
  case "source.message-copy-link.resolve": return await service.resolveMessageCopyLink(stringParam(params, "sid"), requestSignal === void 0 ? {} : { signal: requestSignal });
2409
2416
  case "source.message-copy-link.extend": return await service.extendMessageCopyLink(stringParam(params, "sid"), numberParam(params, "itemIndex", 0), stringParam(params, "textContent"), stringParam(params, "recordUid"), requestSignal === void 0 ? {} : { signal: requestSignal });
2417
+ case "source.message-extension.context": return await service.sourceMessageExtensionContext(stringParam(params, "sourceRef"), stringParam(params, "messageActionRef"), requestSignal === void 0 ? {} : { signal: requestSignal });
2418
+ case "source.message-extension.extend": return await service.extendSourceMessage(stringParam(params, "sourceRef"), stringParam(params, "messageActionRef"), stringParam(params, "textContent"), stringParam(params, "recordUid"), [...new Set(stringListParam(params, "fileRefs").map((value) => value.trim()).filter((value) => value !== ""))], {
2419
+ ...stringParam(params, "relationUid") === "" ? {} : { relationUid: stringParam(params, "relationUid") },
2420
+ ...stringParam(params, "parentRecordUid") === "" ? {} : { parentRecordUid: stringParam(params, "parentRecordUid") },
2421
+ ...requestSignal === void 0 ? {} : { signal: requestSignal }
2422
+ });
2410
2423
  case "source.shared-recording-detail": return await service.sharedRecordingDetail(stringParam(params, "detailRef"), requestSignal === void 0 ? {} : { signal: requestSignal });
2411
2424
  case "source.message-snapshot.detail": return await service.messageSnapshotDetail(stringParam(params, "sourceRef"), stringParam(params, "actionRef"), requestSignal === void 0 ? {} : { signal: requestSignal });
2412
2425
  case "source.message-location.set":
@@ -1,2 +1,2 @@
1
- import { a as persistentArkmeExtensionActive, i as invokePersistentArkmeExtension, n as applyPersistentArkmeHostExtension, o as persistentArkmeExtensionRuntimeState, r as deactivatePersistentArkmeExtension, t as activatePersistentArkmeExtension } from "./persistent-runtime-Bc6X98km.js";
1
+ import { a as persistentArkmeExtensionActive, i as invokePersistentArkmeExtension, n as applyPersistentArkmeHostExtension, o as persistentArkmeExtensionRuntimeState, r as deactivatePersistentArkmeExtension, t as activatePersistentArkmeExtension } from "./persistent-runtime-DLrd2RMI.js";
2
2
  export { activatePersistentArkmeExtension, applyPersistentArkmeHostExtension, deactivatePersistentArkmeExtension, invokePersistentArkmeExtension, persistentArkmeExtensionActive, persistentArkmeExtensionRuntimeState };