qlogicagent 2.16.7 → 2.16.9

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 (72) hide show
  1. package/dist/cli.js +403 -397
  2. package/dist/default-project-knowledge/INSTRUCTIONS.md +7 -0
  3. package/dist/default-project-knowledge/rules/project-workflow.md +6 -0
  4. package/dist/index.js +405 -399
  5. package/dist/types/cli/agent-runtime-bootstrap.d.ts +1 -0
  6. package/dist/types/cli/base-tool-bootstrap.d.ts +2 -0
  7. package/dist/types/cli/handlers/community-handler.d.ts +2 -28
  8. package/dist/types/cli/handlers/files-handler.d.ts +1 -0
  9. package/dist/types/cli/handlers/message-feedback-handler.d.ts +2 -0
  10. package/dist/types/cli/handlers/pet-handler.d.ts +1 -0
  11. package/dist/types/cli/handlers/workflow-handler.d.ts +0 -11
  12. package/dist/types/cli/memory-coordinator.d.ts +1 -0
  13. package/dist/types/cli/pet-runtime.d.ts +5 -0
  14. package/dist/types/cli/project-template-seeder.d.ts +2 -2
  15. package/dist/types/cli/runtime-hook-bootstrap.d.ts +1 -0
  16. package/dist/types/cli/skills-query-service.d.ts +6 -1
  17. package/dist/types/cli/stdio-agent-session-bootstrap.d.ts +1 -0
  18. package/dist/types/cli/tool-bootstrap-community-registration.d.ts +0 -6
  19. package/dist/types/cli/tool-bootstrap-core-registration.d.ts +1 -0
  20. package/dist/types/cli/tool-bootstrap.d.ts +1 -0
  21. package/dist/types/cli/turn-skill-autopersist.d.ts +0 -25
  22. package/dist/types/protocol/methods.d.ts +0 -201
  23. package/dist/types/protocol/wire/agent-methods.d.ts +10 -205
  24. package/dist/types/protocol/wire/notification-payloads.d.ts +7 -0
  25. package/dist/types/runtime/community/community-consent-client.d.ts +9 -186
  26. package/dist/types/runtime/community/community-discovery-coordinator.d.ts +1 -1
  27. package/dist/types/runtime/infra/default-path-service.d.ts +1 -1
  28. package/dist/types/runtime/infra/feedback-event-store.d.ts +19 -0
  29. package/dist/types/runtime/infra/feedback-upload-client.d.ts +1 -0
  30. package/dist/types/runtime/infra/project-data-paths.d.ts +5 -5
  31. package/dist/types/runtime/infra/skill-resolver.d.ts +4 -0
  32. package/dist/types/runtime/pet/daily-journey-summarizer.d.ts +25 -0
  33. package/dist/types/runtime/pet/index.d.ts +2 -1
  34. package/dist/types/runtime/pet/journey-catchup.d.ts +14 -0
  35. package/dist/types/runtime/pet/journey-day-aggregator.d.ts +27 -0
  36. package/dist/types/runtime/pet/journey-narrative-prompt.d.ts +8 -0
  37. package/dist/types/runtime/pet/pet-profile-service.d.ts +14 -1
  38. package/dist/types/runtime/ports/path-service.d.ts +1 -1
  39. package/dist/types/runtime/ports/tool-contracts.d.ts +1 -0
  40. package/dist/types/runtime/prompt/instruction-loader.d.ts +7 -7
  41. package/dist/types/skills/plugins/plugin-marketplace.d.ts +1 -1
  42. package/dist/types/skills/skill-system/skill-validation.d.ts +10 -0
  43. package/dist/types/skills/tools/community-seek-tool.d.ts +0 -33
  44. package/dist/types/skills/tools/instructions-tool.d.ts +2 -2
  45. package/dist/types/skills/tools/skill-tool.d.ts +1 -1
  46. package/dist/vendor/hatch-pet/LICENSE.txt +201 -201
  47. package/dist/vendor/hatch-pet/NOTICE.md +25 -25
  48. package/dist/vendor/hatch-pet/references/animation-rows.md +29 -29
  49. package/dist/vendor/hatch-pet/references/codex-pet-contract.md +35 -35
  50. package/dist/vendor/hatch-pet/references/qa-rubric.md +66 -66
  51. package/dist/vendor/hatch-pet/scripts/compose_atlas.py +169 -169
  52. package/dist/vendor/hatch-pet/scripts/derive_running_left_from_running_right.py +150 -150
  53. package/dist/vendor/hatch-pet/scripts/extract_strip_frames.py +408 -408
  54. package/dist/vendor/hatch-pet/scripts/inspect_frames.py +256 -256
  55. package/dist/vendor/hatch-pet/scripts/make_contact_sheet.py +96 -96
  56. package/dist/vendor/hatch-pet/scripts/prepare_pet_run.py +834 -834
  57. package/dist/vendor/hatch-pet/scripts/render_animation_previews.py +78 -78
  58. package/dist/vendor/hatch-pet/scripts/validate_atlas.py +157 -157
  59. package/package.json +1 -1
  60. package/dist/types/runtime/community/activity-event-emitter.d.ts +0 -31
  61. package/dist/types/runtime/community/activity-event.d.ts +0 -62
  62. package/dist/types/runtime/community/community-desensitization-red-team-cli.d.ts +0 -7
  63. package/dist/types/runtime/community/community-desensitization.d.ts +0 -29
  64. package/dist/types/runtime/community/community-pet-publisher.d.ts +0 -27
  65. package/dist/types/runtime/community/community-signal-reporter.d.ts +0 -19
  66. package/dist/types/runtime/community/community-telemetry-metadata.d.ts +0 -4
  67. package/dist/types/runtime/community/community-telemetry-recorder.d.ts +0 -6
  68. package/dist/types/runtime/community/community-telemetry-types.d.ts +0 -1
  69. package/dist/types/runtime/community/pet-activity-sink.d.ts +0 -36
  70. package/dist/types/runtime/community/pet-key.d.ts +0 -7
  71. package/dist/types/runtime/community/roaming-gate.d.ts +0 -19
  72. package/dist/types/runtime/community/social-emission.d.ts +0 -16
@@ -23,6 +23,7 @@ export interface AgentRuntimeBootstrapDeps {
23
23
  projectRoot: string;
24
24
  pathService: PathService;
25
25
  memdir: ProjectMemoryStore;
26
+ getMemdir?: () => ProjectMemoryStore | null;
26
27
  currentUserId: string;
27
28
  memoryPrefetchState: MemoryPrefetchState;
28
29
  getLastUserMessage(): string | undefined;
@@ -1,11 +1,13 @@
1
1
  import type { NotificationMethod, NotificationMethodMap } from "../protocol/notifications.js";
2
2
  import type { ToolBootstrap } from "../runtime/ports/index.js";
3
+ import type { PathService } from "../runtime/ports/index.js";
3
4
  import type { MediaPersistence } from "../runtime/infra/media-persistence.js";
4
5
  import type { ModelPurpose } from "../runtime/infra/model-registry.js";
5
6
  import type { LLMTransport } from "./provider-core-facade.js";
6
7
  export interface BaseToolBootstrapDeps {
7
8
  verbose: boolean;
8
9
  toolBootstrap: ToolBootstrap;
10
+ pathService: PathService;
9
11
  mediaPersistence?: MediaPersistence;
10
12
  log(message: string): void;
11
13
  sendNotification<M extends NotificationMethod>(method: M, params: NotificationMethodMap[M]): void;
@@ -1,32 +1,17 @@
1
- import { type CommunityConsentClient, type CommunityConsentView } from "../../runtime/community/community-consent-client.js";
1
+ import { type CommunityConsentClient } from "../../runtime/community/community-consent-client.js";
2
2
  import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/index.js";
3
- export type { CommunityConsentClient, CommunityConsentView, CommunityInstallRiskTier, CommunityInstallResolution, CommunityListNoticesInput, CommunityNotice, CommunityPublishSkillInput, CommunityRecordSignalInput, CommunityRecordTelemetryInput, CommunityRegistryMatchInput, CommunitySignalEvent, SetCommunityConsentInput, } from "../../runtime/community/community-consent-client.js";
4
- export type { CommunityTelemetryEvent } from "../../runtime/community/community-telemetry-types.js";
5
- export interface CommunityConsentStore {
6
- read(): Promise<CommunityConsentView>;
7
- write(consent: CommunityConsentView): Promise<void>;
8
- }
3
+ export type { CommunityConsentClient, CommunityInstallRiskTier, CommunityInstallResolution, CommunityRegistryMatchInput, } from "../../runtime/community/community-consent-client.js";
9
4
  export interface CommunityHandlerHost {
10
5
  resolveCommunityConsentClient?: () => CommunityConsentClient | null;
11
- resolveCommunityConsentStore?: () => CommunityConsentStore;
12
6
  sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
13
7
  /** Push a JSON-RPC notification (e.g. pet.asset.updated after a community pet install hydrates the UI store). */
14
8
  sendNotification(method: string, params: Record<string, unknown>): void;
15
9
  /** Active owner id, so community pet install/publish land in the same profile pet.status reads. */
16
10
  memoryUserId?: string;
17
11
  }
18
- export declare const METHOD_CONSENT_REQUIRED_MESSAGE = "Community participation consent is required before publishing shared skills.";
19
- export declare function handleCommunityGetConsent(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
20
- export declare function handleCommunitySetConsent(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
21
- export declare function handleCommunityListShared(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
22
12
  export declare function handleCommunityMatchRegistry(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
23
13
  export declare function handleCommunityResolveInstall(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
24
14
  export declare function handleCommunityListResourceVersions(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
25
- export declare function handleCommunityGetRatingSummary(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
26
- export declare function handleCommunityRateResource(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
27
- export declare function handleCommunityReportResource(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
28
- export declare function handleCommunityListComments(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
29
- export declare function handleCommunityPostComment(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
30
15
  export declare function handleCommunityInstallResource(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
31
16
  /**
32
17
  * Handshake step ① — probe declared runtime dependencies (vetted catalog only).
@@ -36,14 +21,3 @@ export declare function handleCommunityInstallResource(this: CommunityHandlerHos
36
21
  export declare function handleCommunityRuntimeStatus(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
37
22
  /** Handshake step ② — install ONE vetted runtime dependency (catalog recipe only). */
38
23
  export declare function handleCommunityInstallRuntime(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
39
- export declare function handleCommunityPublishSkill(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
40
- export declare function handleCommunityPublishPet(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
41
- export declare function handleCommunityRecordSignal(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
42
- export declare function handleCommunityRecordTelemetry(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
43
- export declare function handleCommunityListPublishAudit(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
44
- export declare function handleCommunityWithdrawShared(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
45
- export declare function handleCommunityWithdrawAllShared(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
46
- export declare function handleCommunityListNotices(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
47
- export declare function handleCommunityMarkNoticeRead(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
48
- export declare function hasMethodSharingConsent(consent: CommunityConsentView): boolean;
49
- export declare function createFileCommunityConsentStore(): CommunityConsentStore;
@@ -7,6 +7,7 @@ import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/in
7
7
  export interface FilesHandlerHost {
8
8
  currentTurnId?: string;
9
9
  getActiveProjectRoot(): string;
10
+ sendNotification?(method: string, params: Record<string, unknown>): void;
10
11
  sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
11
12
  }
12
13
  export declare function resolveProjectDir(projectId: string): string | null;
@@ -21,6 +21,8 @@ export interface MessageFeedbackHandlerHost {
21
21
  export declare function handleMessageFeedbackSubmit(this: MessageFeedbackHandlerHost, msg: AgentRpcRequest): Promise<void>;
22
22
  export declare function handleMessageFeedbackRetract(this: MessageFeedbackHandlerHost, msg: AgentRpcRequest): Promise<void>;
23
23
  export declare function handleMessageFeedbackState(this: MessageFeedbackHandlerHost, msg: AgentRpcRequest): Promise<void>;
24
+ export declare function handleMessageFeedbackSummary(this: MessageFeedbackHandlerHost, msg: AgentRpcRequest): Promise<void>;
25
+ export declare function handleMessageFeedbackMemoryCandidates(this: MessageFeedbackHandlerHost, msg: AgentRpcRequest): Promise<void>;
24
26
  /**
25
27
  * Ship a pre-redacted batch to llmrouter (design §8.6). Not user-triggered — the redaction worker
26
28
  * is the normal caller; this RPC exists for manual/test flushes. Events MUST already be redacted
@@ -38,6 +38,7 @@ export declare function handlePetPreferencesUpdate(this: PetHandlerHost, msg: Ag
38
38
  export declare function handlePetJourneySnapshot(this: PetHandlerHost, msg: AgentRpcRequest): Promise<void>;
39
39
  export declare function handlePetJourneyList(this: PetHandlerHost, msg: AgentRpcRequest): Promise<void>;
40
40
  export declare function handlePetJourneyGet(this: PetHandlerHost, msg: AgentRpcRequest): Promise<void>;
41
+ export declare function handlePetJourneyCatchUp(this: PetHandlerHost, msg: AgentRpcRequest): Promise<void>;
41
42
  export declare function handlePetCustomDelete(this: PetHandlerHost, msg: AgentRpcRequest): Promise<void>;
42
43
  export declare function handlePetAssetImport(this: PetHandlerHost, msg: AgentRpcRequest): Promise<void>;
43
44
  /**
@@ -49,9 +49,6 @@ export interface WorkflowCoordinatorHost {
49
49
  }
50
50
  export interface WorkflowHandlerHost extends WorkflowCoordinatorHost {
51
51
  sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
52
- /** Community hub access for workflow.publishHub (same injection seam as CommunityHandlerHost). */
53
- resolveCommunityConsentClient?: () => import("../../runtime/community/community-consent-client.js").CommunityConsentClient | null;
54
- resolveCommunityConsentStore?: () => import("./community-handler.js").CommunityConsentStore;
55
52
  }
56
53
  /** A resolved workflow routing target: which project root an RPC operates on. */
57
54
  interface WorkflowTarget {
@@ -126,14 +123,6 @@ export declare function handleWorkflowSetPermissionScope(this: WorkflowHandlerHo
126
123
  export declare function handleWorkflowCapabilities(this: WorkflowHandlerHost, msg: AgentRpcRequest): Promise<void>;
127
124
  /** `workflow.export` — serialize one workflow as a sanitized portable bundle (no credentials). */
128
125
  export declare function handleWorkflowExport(this: WorkflowHandlerHost, msg: AgentRpcRequest): Promise<void>;
129
- /**
130
- * `workflow.publishHub` — publish a workflow to the community Hub (IT-5, spec D35):
131
- * sanitized bundle (D23 — credential values already stripped) becomes the gzip payload;
132
- * the WorkflowManifest is DERIVED from the record (trigger summary, node count, sensitive
133
- * capability kinds as declaredPermissions, credential/capability requirements), so the
134
- * publisher only supplies presentation fields. Same consent + review pipeline as skills.
135
- */
136
- export declare function handleWorkflowPublishHub(this: WorkflowHandlerHost, msg: AgentRpcRequest): Promise<void>;
137
126
  /**
138
127
  * `workflow.import` — materialize a portable bundle (or raw n8n JSON, format:"n8n") into a target
139
128
  * project. The caller creates/owns the project (frontend: WorkspaceStep → POST /api/projects);
@@ -29,6 +29,7 @@ export interface RegisterMemoryRuntimeHooksDeps {
29
29
  export declare function registerMemoryRuntimeHooks(deps: RegisterMemoryRuntimeHooksDeps): MemoryProviderState;
30
30
  export interface RegisterMemoryToolDeps {
31
31
  memdir: ProjectMemoryStore;
32
+ getMemdir?: () => ProjectMemoryStore;
32
33
  memoryProvider: MemoryToolProvider | null;
33
34
  memoryUserId: string;
34
35
  toolCatalog: ToolCatalog;
@@ -44,6 +44,9 @@ export interface PetRuntime {
44
44
  forgeGeneratePetdexAtlas(input: PetdexForgeInput): Promise<PetdexForgeOutput>;
45
45
  awardXp(event: string): Promise<void>;
46
46
  reactAfterTurn(messages: ChatMessage[]): Promise<void>;
47
+ /** Backfill missing daily journey summaries (per-owner, cross-project, idempotent, best-effort).
48
+ * Owns the LLM + project-listing side effects so stdio-server doesn't reach into runtime/infra. */
49
+ catchUpJourney(memoryUserId: string): Promise<string[]>;
47
50
  isActive(): boolean;
48
51
  }
49
52
  export interface PetRuntimeDeps {
@@ -51,5 +54,7 @@ export interface PetRuntimeDeps {
51
54
  resolveOwnerUserId?: () => string;
52
55
  resolveClientForPurpose(purpose: ModelPurpose): PetLlmClient | null;
53
56
  sendNotification(method: string, params: Record<string, unknown>): void;
57
+ /** Project ids for the cross-project journey backfill — injected so pet-runtime never imports the project store. */
58
+ listProjectIds?: () => string[];
54
59
  }
55
60
  export declare function createPetRuntime(deps: PetRuntimeDeps): PetRuntime;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copy global template files (~/.qlogicagent/INSTRUCTIONS.md + rules/) into a new project's
3
- * .qlogicagent/ directory. Only copies if the target does NOT already exist.
2
+ * Copy profile-scoped template files and packaged defaults into a project's
3
+ * .qlogicagent/ directory. Only copies files that do NOT already exist.
4
4
  */
5
5
  export declare function seedProjectFromGlobalTemplates(workspaceDir: string): void;
@@ -12,6 +12,7 @@ export interface RuntimeHookBootstrapDeps {
12
12
  sessionId: string;
13
13
  projectRoot: string;
14
14
  memdir: ProjectMemoryStore;
15
+ getMemdir?: () => ProjectMemoryStore | null;
15
16
  toolCatalog: ToolCatalog;
16
17
  currentUserId: string;
17
18
  prefetchState: MemoryPrefetchState;
@@ -8,7 +8,12 @@ export interface SkillListEntry {
8
8
  globallyDisabled: boolean;
9
9
  /** Muted in THIS project only (the project opt-out). */
10
10
  projectDisabled: boolean;
11
- category: "automation";
11
+ /** Frontmatter classification (Hub category vocabulary) — drives the card palette/tag. Undefined for unclassified legacy skills. */
12
+ category?: string;
13
+ /** Frontmatter author — agent-authored skills carry "用户". */
14
+ author?: string;
15
+ /** Provenance (lifecycle store): learned/created/promoted/copied = local origin; "installed" = from the Hub. */
16
+ source?: "learned" | "created" | "installed" | "promoted";
12
17
  displayName: {
13
18
  key: string;
14
19
  fallback: string;
@@ -28,6 +28,7 @@ export interface StdioAgentSessionBootstrapDeps {
28
28
  projectRoot: string;
29
29
  pathService: PathService;
30
30
  memdir: ProjectMemoryStore;
31
+ getMemdir?: () => ProjectMemoryStore | null;
31
32
  currentUserId: string;
32
33
  memoryPrefetchState: MemoryPrefetchState;
33
34
  getLastUserMessage(): string | undefined;
@@ -1,15 +1,9 @@
1
1
  import type { PortableTool } from "../skills/portable-tool.js";
2
- import { type CommunitySeekAnswerCandidate } from "../skills/tools/community-seek-tool.js";
3
2
  import { type CommunityDiscoveryResult } from "../runtime/community/community-discovery-coordinator.js";
4
- import { type PetActivitySink } from "../runtime/community/pet-activity-sink.js";
5
3
  export interface LocalCommunityToolRegistrationContext {
6
4
  tools: PortableTool<any>[];
7
5
  /** 测试可注入的发现实现;默认从 env consent client 构造协调器。 */
8
6
  discover?: (intent: string) => Promise<CommunityDiscoveryResult>;
9
- /** 测试可注入的经验答案源;默认经 consent client 调 hub /reviews/search(bge-m3 语义检索)。 */
10
- findAnswers?: (intent: string, topK: number) => Promise<CommunitySeekAnswerCandidate[]>;
11
- /** 测试可注入的活动发射 sink;默认从 env 解析 actorPetId 构造(无身份→null,不发)。 */
12
- petActivitySink?: PetActivitySink | null;
13
7
  }
14
8
  export declare const localCommunityToolRegistrationModule: import("../runtime/ports/tool-contracts.js").ToolRegistrationModule<LocalCommunityToolRegistrationContext>;
15
9
  export declare function registerLocalCommunityTools(context: LocalCommunityToolRegistrationContext): void;
@@ -15,6 +15,7 @@ export interface LocalCoreToolRegistrationContext {
15
15
  askUserCallback: ((questions: AskUserQuestion[]) => Promise<Record<string, string> | null>) | null;
16
16
  getAskUserCallback?: () => ((questions: AskUserQuestion[]) => Promise<Record<string, string> | null>) | null;
17
17
  onExecProgress?: (progress: ExecProgress) => void;
18
+ sendNotification?(method: string, params: Record<string, unknown>): void;
18
19
  getCwd(): string;
19
20
  activeProjectRoot(): string;
20
21
  resolveSandboxConfig(): SandboxConfig | undefined;
@@ -53,6 +53,7 @@ export interface BootstrapConfig {
53
53
  } | null;
54
54
  getTaskScopeKey?(): string | undefined;
55
55
  getCurrentTurnId?(): string | undefined;
56
+ sendNotification?(method: string, params: Record<string, unknown>): void;
56
57
  }
57
58
  /**
58
59
  * Create all locally-executable tools and install into centralized tool pool.
@@ -1,11 +1,6 @@
1
- import { type CommunityPublishSkillInput, type CommunityPublishSkillResult } from "../runtime/community/community-consent-client.js";
2
- import { type CommunityTelemetryRecorder } from "../runtime/community/community-telemetry-recorder.js";
3
1
  export interface TurnSkillAutoPersistHost {
4
2
  log(message: string): void;
5
3
  }
6
- export interface CommunitySkillPublisher {
7
- publishSkill(input: CommunityPublishSkillInput): Promise<CommunityPublishSkillResult>;
8
- }
9
4
  export type AutoPersistResult = {
10
5
  status: "ignored";
11
6
  } | {
@@ -14,34 +9,14 @@ export type AutoPersistResult = {
14
9
  } | {
15
10
  status: "created";
16
11
  skillPath: string;
17
- } | {
18
- status: "blocked";
19
- skillPath: string;
20
- reason: string;
21
12
  } | {
22
13
  status: "skipped";
23
14
  skillPath: string;
24
15
  reason: string;
25
16
  };
26
- export type CommunityPublishAuditDecision = "published" | "blocked" | "skipped";
27
- export interface CommunityPublishAuditEntry {
28
- eventTurnId: string;
29
- skillName: string;
30
- decision: CommunityPublishAuditDecision;
31
- reason: string;
32
- resourceId?: string;
33
- createdAt: string;
34
- }
35
- export declare const COMMUNITY_PUBLISH_AUDIT_FILE = "community-publish-audit.jsonl";
36
17
  export declare function maybeAutoPersistSkillInstruction(params: {
37
18
  instruction: unknown;
38
19
  eventTurnId: string;
39
20
  projectRoot: string;
40
21
  host: TurnSkillAutoPersistHost;
41
- communityPublisher?: CommunitySkillPublisher | null;
42
- communityTelemetryRecorder?: CommunityTelemetryRecorder | null;
43
22
  }): Promise<AutoPersistResult>;
44
- export declare function createDefaultCommunitySkillPublisher(): CommunitySkillPublisher | null;
45
- export declare function listCommunityPublishAuditEntries(input?: {
46
- limit?: number;
47
- }): CommunityPublishAuditEntry[];
@@ -342,31 +342,6 @@ export interface ConfigUpdateResult {
342
342
  reason: string;
343
343
  }>;
344
344
  }
345
- export interface CommunityConsentView {
346
- enabled: boolean;
347
- methodSharingEnabled: boolean;
348
- signalsEnabled: boolean;
349
- encounterEnabled: boolean;
350
- remoteSynced: boolean;
351
- }
352
- export interface CommunityGetConsentResult {
353
- ok: boolean;
354
- remoteAvailable: boolean;
355
- consent: CommunityConsentView;
356
- error?: string;
357
- }
358
- export interface CommunitySetConsentParams {
359
- enabled: boolean;
360
- methodSharingEnabled?: boolean;
361
- signalsEnabled?: boolean;
362
- encounterEnabled?: boolean;
363
- }
364
- export interface CommunitySetConsentResult {
365
- ok: boolean;
366
- remoteAvailable: boolean;
367
- consent: CommunityConsentView;
368
- warning?: string;
369
- }
370
345
  export interface CommunityMatchRegistryParams {
371
346
  intent: string;
372
347
  topK?: 1 | 2 | 3;
@@ -389,134 +364,6 @@ export interface CommunityMatchRegistryResult {
389
364
  ok: boolean;
390
365
  matches: CommunityRegistryMatchResult[];
391
366
  }
392
- export interface CommunitySharedResource {
393
- id: string;
394
- type: string;
395
- title: string;
396
- summary: string;
397
- visibility: string;
398
- latestVersion: string | null;
399
- withdrawn: boolean;
400
- withdrawnAt: string | null;
401
- }
402
- export interface CommunityListSharedResult {
403
- ok: boolean;
404
- resources: CommunitySharedResource[];
405
- }
406
- export interface CommunityWithdrawSharedParams {
407
- resourceId: string;
408
- reason?: string;
409
- }
410
- export interface CommunityWithdrawSharedResult {
411
- ok: boolean;
412
- resource: CommunitySharedResource;
413
- }
414
- export interface CommunityWithdrawAllSharedParams {
415
- reason?: string;
416
- }
417
- export interface CommunityWithdrawAllSharedResult {
418
- ok: boolean;
419
- resources: CommunitySharedResource[];
420
- }
421
- export interface CommunityNotice {
422
- id: number;
423
- resourceId: string;
424
- resourceType: string;
425
- title: string;
426
- event: "withdrawn";
427
- version: string | null;
428
- reason: string | null;
429
- read: boolean;
430
- createdAt: string;
431
- readAt: string | null;
432
- }
433
- export interface CommunityListNoticesParams {
434
- includeRead?: boolean;
435
- }
436
- export interface CommunityListNoticesResult {
437
- ok: boolean;
438
- notices: CommunityNotice[];
439
- }
440
- export interface CommunityMarkNoticeReadParams {
441
- noticeId: number;
442
- }
443
- export interface CommunityMarkNoticeReadResult {
444
- ok: boolean;
445
- notice: CommunityNotice;
446
- }
447
- export interface CommunityPublishSkillParams {
448
- id: string;
449
- title: string;
450
- summary: string;
451
- visibility?: "public" | "private";
452
- tags?: string[];
453
- manifest: Record<string, unknown>;
454
- version?: string;
455
- packageGzipBase64?: string;
456
- }
457
- export interface CommunityPublishedVersion {
458
- version: string;
459
- checksum: string;
460
- sizeBytes: number;
461
- }
462
- export interface CommunityPublishSkillResult {
463
- ok: boolean;
464
- resource: CommunitySharedResource;
465
- version?: CommunityPublishedVersion;
466
- }
467
- export interface CommunityPublishPetParams {
468
- id: string;
469
- name: string;
470
- summary: string;
471
- persona: string;
472
- visibility?: "public" | "private";
473
- tags?: string[];
474
- traits?: string[];
475
- assets?: Array<{
476
- kind: string;
477
- path: string;
478
- }>;
479
- }
480
- export interface CommunityPublishPetResult {
481
- ok: boolean;
482
- resource: CommunitySharedResource;
483
- version?: CommunityPublishedVersion;
484
- }
485
- export type CommunitySignalEvent = "installed" | "success" | "fail" | "neutral" | "kept" | "uninstalled" | "endorse" | "error";
486
- export interface CommunityRecordSignalParams {
487
- resourceId: string;
488
- event: CommunitySignalEvent;
489
- attribution?: string;
490
- metadata?: Record<string, unknown>;
491
- }
492
- export interface CommunityRecordSignalResult {
493
- ok: boolean;
494
- accepted: true;
495
- }
496
- export type CommunityTelemetryEvent = "community.journey.view" | "community.share.generated" | "community.sandbox.violation" | "community.desensitization.hit";
497
- export interface CommunityRecordTelemetryParams {
498
- event: CommunityTelemetryEvent;
499
- metadata?: Record<string, unknown>;
500
- }
501
- export interface CommunityRecordTelemetryResult {
502
- ok: boolean;
503
- accepted: true;
504
- }
505
- export interface CommunityListPublishAuditParams {
506
- limit?: number;
507
- }
508
- export interface CommunityPublishAuditEntry {
509
- eventTurnId: string;
510
- skillName: string;
511
- decision: "published" | "blocked" | "skipped";
512
- reason: string;
513
- resourceId?: string;
514
- createdAt: string;
515
- }
516
- export interface CommunityListPublishAuditResult {
517
- ok: boolean;
518
- entries: CommunityPublishAuditEntry[];
519
- }
520
367
  export type CommunityInstallRiskTier = "R0" | "R1" | "R2" | "R3";
521
368
  export type CommunityInstallSourceTier = "official" | "community";
522
369
  export type CommunityInstallTrustStage = "quarantine" | "trial" | "trusted";
@@ -813,42 +660,10 @@ export interface RpcMethodMap {
813
660
  params: ConfigUpdateParams;
814
661
  result: ConfigUpdateResult;
815
662
  };
816
- "community.getConsent": {
817
- params: undefined;
818
- result: CommunityGetConsentResult;
819
- };
820
- "community.setConsent": {
821
- params: CommunitySetConsentParams;
822
- result: CommunitySetConsentResult;
823
- };
824
663
  "community.matchRegistry": {
825
664
  params: CommunityMatchRegistryParams;
826
665
  result: CommunityMatchRegistryResult;
827
666
  };
828
- "community.listShared": {
829
- params: undefined;
830
- result: CommunityListSharedResult;
831
- };
832
- "community.withdrawShared": {
833
- params: CommunityWithdrawSharedParams;
834
- result: CommunityWithdrawSharedResult;
835
- };
836
- "community.withdrawAllShared": {
837
- params: CommunityWithdrawAllSharedParams;
838
- result: CommunityWithdrawAllSharedResult;
839
- };
840
- "community.listNotices": {
841
- params: CommunityListNoticesParams;
842
- result: CommunityListNoticesResult;
843
- };
844
- "community.markNoticeRead": {
845
- params: CommunityMarkNoticeReadParams;
846
- result: CommunityMarkNoticeReadResult;
847
- };
848
- "community.listPublishAudit": {
849
- params: CommunityListPublishAuditParams;
850
- result: CommunityListPublishAuditResult;
851
- };
852
667
  "community.resolveInstall": {
853
668
  params: CommunityResolveInstallParams;
854
669
  result: CommunityResolveInstallResult;
@@ -865,22 +680,6 @@ export interface RpcMethodMap {
865
680
  params: CommunityInstallRuntimeParams;
866
681
  result: CommunityInstallRuntimeResult;
867
682
  };
868
- "community.publishSkill": {
869
- params: CommunityPublishSkillParams;
870
- result: CommunityPublishSkillResult;
871
- };
872
- "community.publishPet": {
873
- params: CommunityPublishPetParams;
874
- result: CommunityPublishPetResult;
875
- };
876
- "community.recordSignal": {
877
- params: CommunityRecordSignalParams;
878
- result: CommunityRecordSignalResult;
879
- };
880
- "community.recordTelemetry": {
881
- params: CommunityRecordTelemetryParams;
882
- result: CommunityRecordTelemetryResult;
883
- };
884
683
  "todos.list": {
885
684
  params: TodosListParams;
886
685
  result: TodosListResult;