mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
fix(plugin-sdk): use narrow memory authorization capability type
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { MemoryPluginCapability } from "openclaw/plugin-sdk/memory-host-core";
|
||||
import type { MemoryAuthorizationCapabilities } from "openclaw/plugin-sdk/memory-authorization";
|
||||
|
||||
/** Keep the lazy plugin entrypoint from loading the conformance suite just to declare legacy mode. */
|
||||
export const MEMORY_CORE_AUTHORIZATION_CAPABILITIES = Object.freeze({
|
||||
@@ -12,4 +12,4 @@ export const MEMORY_CORE_AUTHORIZATION_CAPABILITIES = Object.freeze({
|
||||
scopedStatus: false,
|
||||
exposureReceipts: false,
|
||||
egressReceipts: false,
|
||||
}) satisfies NonNullable<MemoryPluginCapability["authorization"]>;
|
||||
}) satisfies MemoryAuthorizationCapabilities;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { MemoryPluginCapability } from "openclaw/plugin-sdk/memory-host-core";
|
||||
import type { MemoryAuthorizationCapabilities } from "openclaw/plugin-sdk/memory-authorization";
|
||||
|
||||
/** Keep plugin registration lazy: the public conformance suite is not a runtime dependency here. */
|
||||
export const LANCEDB_MEMORY_AUTHORIZATION_CAPABILITIES = Object.freeze({
|
||||
@@ -12,4 +12,4 @@ export const LANCEDB_MEMORY_AUTHORIZATION_CAPABILITIES = Object.freeze({
|
||||
scopedStatus: false,
|
||||
exposureReceipts: false,
|
||||
egressReceipts: false,
|
||||
}) satisfies NonNullable<MemoryPluginCapability["authorization"]>;
|
||||
}) satisfies MemoryAuthorizationCapabilities;
|
||||
|
||||
@@ -78,6 +78,16 @@ describe("type suppression inventory", () => {
|
||||
"src/infra/kysely-sync.types.test.ts:61:@ts-expect-error Kysely checks order references and selected aliases.",
|
||||
"src/plugin-sdk/plugin-entry.reply-trigger.test.ts:8:@ts-expect-error Trigger eligibility is only supported for before_agent_reply.",
|
||||
"src/plugin-sdk/plugin-entry.reply-trigger.test.ts:10:@ts-expect-error An empty trigger list cannot prove that a hook is inactive.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:271:@ts-expect-error retrieve only permits broker-internal candidate selection.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:278:@ts-expect-error retrieve only permits broker-internal candidate selection.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:280:@ts-expect-error the context and plan must name the same content operation.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:290:@ts-expect-error retrieve only permits broker-internal candidate selection.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:347:@ts-expect-error retrieve may select candidates only inside the broker.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:353:@ts-expect-error the mutation kind must match the context and plan operation.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:359:@ts-expect-error retrieve may not invoke an import action.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:365:@ts-expect-error retrieve may not invoke a sync action.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:367:@ts-expect-error retrieve may not produce a content-bearing export payload.",
|
||||
"src/plugins/contracts/memory-authorization.contract.test.ts:373:@ts-expect-error retrieve may not invoke a status action.",
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user