agent-afk 5.121.0 → 5.123.0
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/agent/facets/index.d.ts +1 -0
- package/dist/agent/facets/session-end-hook.d.ts +2 -0
- package/dist/agent/release-boundary-detect.d.ts +2 -1
- package/dist/agent/release-boundary-patterns.d.ts +12 -0
- package/dist/agent/safe-destruct-detect.d.ts +1 -0
- package/dist/cli.mjs +543 -543
- package/dist/index.mjs +98 -98
- package/dist/telegram.mjs +248 -248
- package/dist/web-ui-assets/app.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { FACET_VERSION, SessionFacetSchema, StoredSessionInputSchema, FacetOutcomeSchema, SubagentPersistenceSchema, SubagentInvocationSchema, WorldChangesSchema, type SessionFacet, type StoredSessionInput, type ToolEventInput, type FacetOutcome, type SubagentInvocation, type WorldChanges, } from './schema.js';
|
|
2
2
|
export { deriveSessionFacet, type DeriveOptions } from './derive.js';
|
|
3
3
|
export { getOrDeriveFacet, loadStoredSession, listSessionIds, type FacetStoreOptions, } from './store.js';
|
|
4
|
+
export { createFacetSessionEndHook } from './session-end-hook.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HookContext, HookDecision } from './hooks.js';
|
|
2
|
-
export declare const RELEASE_BOUNDARY_DETECT_REASON_PREFIX = "release-boundary observe-only:
|
|
2
|
+
export declare const RELEASE_BOUNDARY_DETECT_REASON_PREFIX = "release-boundary observe-only: sync-boundary command";
|
|
3
|
+
export declare const RELEASE_BOUNDARY_BLOCK_INJECT_CONTEXT: string;
|
|
3
4
|
export declare function detectReleaseBoundaryCommands(command: string): string[];
|
|
4
5
|
export declare function createReleaseBoundaryDetect(): (context: HookContext) => HookDecision;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ReleaseBoundaryTier = 'observe' | 'block';
|
|
2
|
+
export type ReleaseBoundaryPattern = {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly re: RegExp;
|
|
5
|
+
readonly tier: 'observe';
|
|
6
|
+
} | {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly re: RegExp;
|
|
9
|
+
readonly tier: 'block';
|
|
10
|
+
readonly blockReason: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const RELEASE_BOUNDARY_PATTERNS: readonly ReleaseBoundaryPattern[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HookContext, HookDecision } from './hooks.js';
|
|
2
2
|
export declare const SAFE_DESTRUCT_DETECT_REASON_PREFIX = "safe-destruct observe-only: destructive-command attempt";
|
|
3
|
+
export declare const SAFE_DESTRUCT_BLOCK_INJECT_CONTEXT: string;
|
|
3
4
|
export declare function detectDestructiveCommands(command: string): string[];
|
|
4
5
|
export declare function createSafeDestructDetect(): (context: HookContext) => HookDecision;
|