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.
- package/dist/cli.js +403 -397
- package/dist/default-project-knowledge/INSTRUCTIONS.md +7 -0
- package/dist/default-project-knowledge/rules/project-workflow.md +6 -0
- package/dist/index.js +405 -399
- package/dist/types/cli/agent-runtime-bootstrap.d.ts +1 -0
- package/dist/types/cli/base-tool-bootstrap.d.ts +2 -0
- package/dist/types/cli/handlers/community-handler.d.ts +2 -28
- package/dist/types/cli/handlers/files-handler.d.ts +1 -0
- package/dist/types/cli/handlers/message-feedback-handler.d.ts +2 -0
- package/dist/types/cli/handlers/pet-handler.d.ts +1 -0
- package/dist/types/cli/handlers/workflow-handler.d.ts +0 -11
- package/dist/types/cli/memory-coordinator.d.ts +1 -0
- package/dist/types/cli/pet-runtime.d.ts +5 -0
- package/dist/types/cli/project-template-seeder.d.ts +2 -2
- package/dist/types/cli/runtime-hook-bootstrap.d.ts +1 -0
- package/dist/types/cli/skills-query-service.d.ts +6 -1
- package/dist/types/cli/stdio-agent-session-bootstrap.d.ts +1 -0
- package/dist/types/cli/tool-bootstrap-community-registration.d.ts +0 -6
- package/dist/types/cli/tool-bootstrap-core-registration.d.ts +1 -0
- package/dist/types/cli/tool-bootstrap.d.ts +1 -0
- package/dist/types/cli/turn-skill-autopersist.d.ts +0 -25
- package/dist/types/protocol/methods.d.ts +0 -201
- package/dist/types/protocol/wire/agent-methods.d.ts +10 -205
- package/dist/types/protocol/wire/notification-payloads.d.ts +7 -0
- package/dist/types/runtime/community/community-consent-client.d.ts +9 -186
- package/dist/types/runtime/community/community-discovery-coordinator.d.ts +1 -1
- package/dist/types/runtime/infra/default-path-service.d.ts +1 -1
- package/dist/types/runtime/infra/feedback-event-store.d.ts +19 -0
- package/dist/types/runtime/infra/feedback-upload-client.d.ts +1 -0
- package/dist/types/runtime/infra/project-data-paths.d.ts +5 -5
- package/dist/types/runtime/infra/skill-resolver.d.ts +4 -0
- package/dist/types/runtime/pet/daily-journey-summarizer.d.ts +25 -0
- package/dist/types/runtime/pet/index.d.ts +2 -1
- package/dist/types/runtime/pet/journey-catchup.d.ts +14 -0
- package/dist/types/runtime/pet/journey-day-aggregator.d.ts +27 -0
- package/dist/types/runtime/pet/journey-narrative-prompt.d.ts +8 -0
- package/dist/types/runtime/pet/pet-profile-service.d.ts +14 -1
- package/dist/types/runtime/ports/path-service.d.ts +1 -1
- package/dist/types/runtime/ports/tool-contracts.d.ts +1 -0
- package/dist/types/runtime/prompt/instruction-loader.d.ts +7 -7
- package/dist/types/skills/plugins/plugin-marketplace.d.ts +1 -1
- package/dist/types/skills/skill-system/skill-validation.d.ts +10 -0
- package/dist/types/skills/tools/community-seek-tool.d.ts +0 -33
- package/dist/types/skills/tools/instructions-tool.d.ts +2 -2
- package/dist/types/skills/tools/skill-tool.d.ts +1 -1
- package/dist/vendor/hatch-pet/LICENSE.txt +201 -201
- package/dist/vendor/hatch-pet/NOTICE.md +25 -25
- package/dist/vendor/hatch-pet/references/animation-rows.md +29 -29
- package/dist/vendor/hatch-pet/references/codex-pet-contract.md +35 -35
- package/dist/vendor/hatch-pet/references/qa-rubric.md +66 -66
- package/dist/vendor/hatch-pet/scripts/compose_atlas.py +169 -169
- package/dist/vendor/hatch-pet/scripts/derive_running_left_from_running_right.py +150 -150
- package/dist/vendor/hatch-pet/scripts/extract_strip_frames.py +408 -408
- package/dist/vendor/hatch-pet/scripts/inspect_frames.py +256 -256
- package/dist/vendor/hatch-pet/scripts/make_contact_sheet.py +96 -96
- package/dist/vendor/hatch-pet/scripts/prepare_pet_run.py +834 -834
- package/dist/vendor/hatch-pet/scripts/render_animation_previews.py +78 -78
- package/dist/vendor/hatch-pet/scripts/validate_atlas.py +157 -157
- package/package.json +1 -1
- package/dist/types/runtime/community/activity-event-emitter.d.ts +0 -31
- package/dist/types/runtime/community/activity-event.d.ts +0 -62
- package/dist/types/runtime/community/community-desensitization-red-team-cli.d.ts +0 -7
- package/dist/types/runtime/community/community-desensitization.d.ts +0 -29
- package/dist/types/runtime/community/community-pet-publisher.d.ts +0 -27
- package/dist/types/runtime/community/community-signal-reporter.d.ts +0 -19
- package/dist/types/runtime/community/community-telemetry-metadata.d.ts +0 -4
- package/dist/types/runtime/community/community-telemetry-recorder.d.ts +0 -6
- package/dist/types/runtime/community/community-telemetry-types.d.ts +0 -1
- package/dist/types/runtime/community/pet-activity-sink.d.ts +0 -36
- package/dist/types/runtime/community/pet-key.d.ts +0 -7
- package/dist/types/runtime/community/roaming-gate.d.ts +0 -19
- package/dist/types/runtime/community/social-emission.d.ts +0 -16
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { CommunityTelemetryEvent } from "./community-telemetry-types.js";
|
|
2
|
-
type SafeTelemetryMetadataValue = string | number | boolean;
|
|
3
|
-
export declare function sanitizeCommunityTelemetryMetadata(event: CommunityTelemetryEvent, metadata: unknown): Record<string, SafeTelemetryMetadataValue> | undefined;
|
|
4
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type CommunityRecordTelemetryInput } from "./community-consent-client.js";
|
|
2
|
-
export interface CommunityTelemetryRecorder {
|
|
3
|
-
recordTelemetry(input: CommunityRecordTelemetryInput): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export declare function createDefaultCommunityTelemetryRecorder(): CommunityTelemetryRecorder | null;
|
|
6
|
-
export declare function recordCommunityTelemetryBestEffort(recorder: CommunityTelemetryRecorder | null | undefined, input: CommunityRecordTelemetryInput): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CommunityTelemetryEvent = "community.journey.view" | "community.share.generated" | "community.sandbox.violation" | "community.desensitization.hit" | "registry.install_failed";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type ActivityEventType, type ActivitySpatialAnchor } from "./activity-event.js";
|
|
2
|
-
import { type ActivityEmitStatus, type ActivityEventEmitter } from "./activity-event-emitter.js";
|
|
3
|
-
import { type CommunityConsentClient } from "./community-consent-client.js";
|
|
4
|
-
import type { ConfigPort } from "../ports/config-port.js";
|
|
5
|
-
/** 一条要发射的活动:类型 + 空间锚点(街区/店铺)+ 可选对端 + 敏感度。actorPetId/ts/id 由 sink 注入。 */
|
|
6
|
-
export interface PetActivityInput {
|
|
7
|
-
type: ActivityEventType;
|
|
8
|
-
anchor?: ActivitySpatialAnchor;
|
|
9
|
-
peerRef?: string;
|
|
10
|
-
/** 高敏感内容 → 升级问人,不自动外发(DR3);默认 false。 */
|
|
11
|
-
highSensitivity?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export type PetActivityEmitStatus = ActivityEmitStatus | "escalate";
|
|
14
|
-
export interface PetActivitySink {
|
|
15
|
-
/** 发一条活动事件。绝不抛(任何失败都 best-effort 吞掉)。 */
|
|
16
|
-
emit(input: PetActivityInput): Promise<PetActivityEmitStatus>;
|
|
17
|
-
}
|
|
18
|
-
export interface PetActivitySinkDeps {
|
|
19
|
-
actorPetId: string;
|
|
20
|
-
consent: Pick<CommunityConsentClient, "getConsent">;
|
|
21
|
-
emitter: ActivityEventEmitter;
|
|
22
|
-
now: () => number;
|
|
23
|
-
newId: () => string;
|
|
24
|
-
}
|
|
25
|
-
/** 纯逻辑 sink(可注入,供测试)。游历闸定 visibility,emitter 落库。 */
|
|
26
|
-
export declare function createPetActivitySink(deps: PetActivitySinkDeps): PetActivitySink;
|
|
27
|
-
/**
|
|
28
|
-
* 由 (owner,device) 派生本 agent 自家宠物的 actorPetId。env 由 gateway 注入。
|
|
29
|
-
* 缺 owner/device(dev / 未登录)→ null(无身份不发,fail-safe)。
|
|
30
|
-
*/
|
|
31
|
-
export declare function resolveActorPetId(configPort?: ConfigPort): string | null;
|
|
32
|
-
/**
|
|
33
|
-
* 默认 sink:从 env 解析 actorPetId + 构造 consent/transport。
|
|
34
|
-
* 无身份 / 无 token(dev)→ null(调用方 ?.emit 即 no-op,fail-safe 不发)。
|
|
35
|
-
*/
|
|
36
|
-
export declare function createDefaultPetActivitySink(configPort?: ConfigPort): PetActivitySink | null;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 由 (ownerUserId, deviceId) 派生不可逆 petKey。sha256 截断;owner/device 原文绝不出现在结果里。
|
|
3
|
-
* 用 NUL(charCode 0)分隔,避免 ("a b","c") 与 ("a","b c") 撞键(owner/device 不含 NUL)。
|
|
4
|
-
*/
|
|
5
|
-
export declare function derivePetKey(ownerUserId: string, deviceId: string): string;
|
|
6
|
-
/** 是否是合法 petKey 形状(pk_ + 24 位 hex)。 */
|
|
7
|
-
export declare function isPetKey(value: unknown): value is string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type CarryOutLevel = "capability-meta" | "sanitized-story";
|
|
2
|
-
export type CarryOutVisibility = "owner" | "community";
|
|
3
|
-
export interface RoamingContext {
|
|
4
|
-
/** 设置-宠物「外出游历」总闸(DR2,默认 OFF / 首启知情 opt-in)。 */
|
|
5
|
-
roamingEnabled: boolean;
|
|
6
|
-
/** 本次带出物是否含高敏感内容(由调用方的敏感度判定给出)。 */
|
|
7
|
-
highSensitivity: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface CarryOutDecision {
|
|
10
|
-
level: CarryOutLevel;
|
|
11
|
-
visibility: CarryOutVisibility;
|
|
12
|
-
/** 高敏感 → 自动升级问人一次(DR3),不静默外发。 */
|
|
13
|
-
escalateToAsk: boolean;
|
|
14
|
-
reason: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 决定带出级别 / 可见性 / 是否升级。纯函数,无副作用。优先级:高敏感 > 游历闸。
|
|
18
|
-
*/
|
|
19
|
-
export declare function decideCarryOut(ctx: RoamingContext): CarryOutDecision;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type RoamingContext } from "./roaming-gate.js";
|
|
2
|
-
import type { CarryOutLevel } from "./roaming-gate.js";
|
|
3
|
-
import type { CreateActivityEventInput } from "./activity-event.js";
|
|
4
|
-
export type SocialEmissionAction = "emit-community" | "owner-only" | "escalate";
|
|
5
|
-
export interface GatedSocialEvent {
|
|
6
|
-
action: SocialEmissionAction;
|
|
7
|
-
/** 已按 DR2/DR3 设好 visibility 的事件(escalate / owner-only 时 visibility=owner)。 */
|
|
8
|
-
event: CreateActivityEventInput;
|
|
9
|
-
carryOutLevel: CarryOutLevel;
|
|
10
|
-
reason: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 过游历闸决定一条社交事件的最终归宿。纯函数,不发射。
|
|
14
|
-
* 调用方:escalate → 升级问用户;emit-community / owner-only → 交 emitter.emit(gated.event)。
|
|
15
|
-
*/
|
|
16
|
-
export declare function gateSocialEvent(base: CreateActivityEventInput, ctx: RoamingContext): GatedSocialEvent;
|