@chatpanel/events 0.14.0 → 0.16.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/capability.js +4 -0
- package/index.js +23 -0
- package/memory.js +638 -0
- package/package.json +13 -3
- package/schedule.js +374 -0
- package/scopes.js +1 -1
- package/view.js +88 -0
- package/voice-intents.js +613 -0
- package/widget.js +153 -0
package/capability.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { CLASSES, EFFECTS, EGRESS, ACTOR_KINDS, SCOPE_KINDS, EventError } from './event.js';
|
|
14
14
|
import { DATA_SCOPES } from './scopes.js';
|
|
15
|
+
import { validateView } from './view.js';
|
|
15
16
|
|
|
16
17
|
export { DATA_SCOPES } from './scopes.js';
|
|
17
18
|
|
|
@@ -39,6 +40,9 @@ export function validateCapability(c) {
|
|
|
39
40
|
if (!c.output || typeof c.output.render !== 'function') {
|
|
40
41
|
throw new EventError('SHAPE', 'capability.output.render required — canonical value and rendering are separate');
|
|
41
42
|
}
|
|
43
|
+
// A capability MAY ship its own UI. Optional, and validated against this capability so a
|
|
44
|
+
// view can never name a capability its owner isn't already allowed to call.
|
|
45
|
+
if (c.view != null) validateView(c.view, c);
|
|
42
46
|
// A class-R capability that declares egress is a contradiction: R is a determinism
|
|
43
47
|
// guarantee, and a network round-trip is not deterministic.
|
|
44
48
|
if (c.class === 'R' && c.egress !== 'none') {
|
package/index.js
CHANGED
|
@@ -29,6 +29,8 @@ export { defineSearchEngine, reconcileEngines, attemptOrder, ENGINE_KINDS, Searc
|
|
|
29
29
|
export { defineToolGroup, createToolGroupRegistry, ToolGroupError } from './tool-groups.js';
|
|
30
30
|
export { toolNeedFor } from './tool-need.js';
|
|
31
31
|
export { parseFlowchart, layoutFlowchart, renderFlowchartSvg } from './flowchart.js';
|
|
32
|
+
export { validateView, validateViewInvocation, viewResult } from './view.js';
|
|
33
|
+
export { validateWidget, validateWidgetMessage, effectiveGrants, widgetIcon, WIDGET_SURFACES } from './widget.js';
|
|
32
34
|
export { fuseRRF, planQueries, multiSearch } from './rrf.js';
|
|
33
35
|
export {
|
|
34
36
|
ACCESS_LOG_VERSION, ACCESS_LOG_MAX, redactAccessArgs, makeAccessEvent,
|
|
@@ -43,13 +45,34 @@ export { defineModel, defineMiddleware, defineRouteStrategy, createModelRouter,
|
|
|
43
45
|
export { makeSourceStore, manifestText, shortUrl, readSource, sourceId } from './sources-retrieval.js';
|
|
44
46
|
export { classifySource, extractUrls, hostMatches, meetReach, sourcePolicyFor, DEFAULT_INTERNAL_PATTERNS, INTERNAL_PATTERN_CATALOG } from './sources.js';
|
|
45
47
|
export { defineRule, createRuleEngine, SUPPRESSED, RuleError } from './rules.js';
|
|
48
|
+
export {
|
|
49
|
+
SCHEDULE_KINDS, TRIGGER_KINDS, JOB_ACTIONS, MISSED_POLICIES, ScheduleError,
|
|
50
|
+
validateSchedule, nextFireAt, occurrencesBetween, nextWakeAt,
|
|
51
|
+
defineTrigger, createTriggerRegistry, BUILTIN_TRIGGERS,
|
|
52
|
+
timerTrigger, meetingStartedTrigger, meetingEndedTrigger, personJoinedTrigger,
|
|
53
|
+
phraseTrigger, topicTrigger, questionTrigger, voiceCommandTrigger,
|
|
54
|
+
defineJob, dueJobs, jobsForEvent, occurrenceKey,
|
|
55
|
+
} from './schedule.js';
|
|
46
56
|
export { defineMeetingAnalyzer, createAnalyzerRegistry, CADENCES, AnalyzerError } from './meeting-analyzers.js';
|
|
57
|
+
export {
|
|
58
|
+
DEFAULT_WAKE, MAX_COMMANDS_PER_DELTA, DAYPART_HOUR, VoiceIntentError,
|
|
59
|
+
compileWake, findWakeCommand, parseCommand, commandsFromSegments,
|
|
60
|
+
parseDuration, parseClock, parseWhen, parseNumberWords, normalizeSpeech, tokenize, editDistance,
|
|
61
|
+
defineVoiceIntent, createVoiceIntentRegistry, defaultVoiceIntents, BUILTIN_VOICE_INTENTS,
|
|
62
|
+
timerIntent, reminderIntent, noteIntent, monitorIntent,
|
|
63
|
+
} from './voice-intents.js';
|
|
47
64
|
export { explainMcpError, packageFromArgs } from './mcp-errors.js';
|
|
48
65
|
export { createManifest, ManifestError, SOURCES } from './manifest.js';
|
|
49
66
|
export { createKernel, meetDecisions, KernelError, REQUIRED_PLUGINS, ALLOW_ALL } from './kernel.js';
|
|
50
67
|
export { replay, formatReport, parseJsonl, toJsonl } from './harness.js';
|
|
51
68
|
export { compileQuery, findMatches, matchIndexFor, expandReplacement, replaceMatch, replaceAll, replaceAllInRange, MAX_MATCHES } from './text-search.js';
|
|
52
69
|
export { DATA_SCOPES } from './scopes.js';
|
|
70
|
+
export {
|
|
71
|
+
MEMORY_VERSION, MEMORY_KINDS, MEMORY_KIND_NAMES, AMBIENT_KINDS, MAX_MEMORY_CHARS, MIN_MEMORY_CHARS,
|
|
72
|
+
DEFAULT_MAX_MEMORIES, DEFAULT_BLOCK_CHARS, SAME_FACT, MEMORY_TOOL_SPEC, MEMORY_UPCASTERS, MemoryError,
|
|
73
|
+
normalizeMemory, isValidMemory, memoryKey, slotOf, similarity, containment, candidatesFrom, reconcile, matchForForget,
|
|
74
|
+
recall, memoryBlock, markUsed, pruneMemories, memoryToolSystem, upcastMemory,
|
|
75
|
+
} from './memory.js';
|
|
53
76
|
export { SOURCE_TRUST, SkillSourceError, defineSkillSource, createSkillSourceRegistry } from './skill-sources.js';
|
|
54
77
|
export { SKILL_MANIFEST_VERSION, SKILL_CONTEXTS, SKILL_HISTORY_SCOPES, SKILL_MCP_MODES, SKILL_TRUST, SKILL_FILE_KINDS, SKILL_UPCASTERS, SkillManifestError, isSafeSkillPath, originOf, trustOf, skillFiles, needsBridge, declaredAccess, originLabel, sameSkillOrigin, skillIsStale, validateSkill, upcastSkill, upcastSkills, normalizeSkill } from './skill-manifest.js';
|
|
55
78
|
export { SKILL_VARS, SKILL_VAR_NAMES, skillVar, skillVarPattern, parseSkillVars, lintSkillPrompt, suggestSkillVar, substituteSkillVars, skillVarGuidance, SkillVarError } from './skill-vars.js';
|