@openscout/protocol 0.2.39 → 0.2.40
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-identity.d.ts +2 -0
- package/dist/agent-identity.js +11 -0
- package/package.json +1 -1
- package/src/agent-identity.ts +12 -0
package/dist/agent-identity.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export interface AgentIdentityAlias {
|
|
|
32
32
|
export declare function normalizeAgentIdentitySegment(value: string): string;
|
|
33
33
|
export declare const normalizeAgentSelectorSegment: typeof normalizeAgentIdentitySegment;
|
|
34
34
|
export declare const SCOUT_DISPATCHER_AGENT_ID = "scout";
|
|
35
|
+
export declare const BUILT_IN_AGENT_DEFINITION_IDS: ReadonlySet<string>;
|
|
36
|
+
export declare function isBuiltInAgentDefinitionId(value: string | null | undefined): boolean;
|
|
35
37
|
export declare function isReservedAgentDefinitionId(value: string | null | undefined): boolean;
|
|
36
38
|
export declare function parseAgentIdentity(value: string): AgentIdentity | null;
|
|
37
39
|
export declare function formatAgentIdentity(input: AgentIdentityInput, options?: {
|
package/dist/agent-identity.js
CHANGED
|
@@ -25,6 +25,17 @@ export function normalizeAgentIdentitySegment(value) {
|
|
|
25
25
|
}
|
|
26
26
|
export const normalizeAgentSelectorSegment = normalizeAgentIdentitySegment;
|
|
27
27
|
export const SCOUT_DISPATCHER_AGENT_ID = "scout";
|
|
28
|
+
export const BUILT_IN_AGENT_DEFINITION_IDS = new Set([
|
|
29
|
+
SCOUT_DISPATCHER_AGENT_ID,
|
|
30
|
+
"builder",
|
|
31
|
+
"reviewer",
|
|
32
|
+
"research",
|
|
33
|
+
]);
|
|
34
|
+
export function isBuiltInAgentDefinitionId(value) {
|
|
35
|
+
if (!value)
|
|
36
|
+
return false;
|
|
37
|
+
return BUILT_IN_AGENT_DEFINITION_IDS.has(normalizeAgentIdentitySegment(value));
|
|
38
|
+
}
|
|
28
39
|
const RESERVED_AGENT_DEFINITION_IDS = new Set([
|
|
29
40
|
SCOUT_DISPATCHER_AGENT_ID,
|
|
30
41
|
]);
|
package/package.json
CHANGED
package/src/agent-identity.ts
CHANGED
|
@@ -67,6 +67,18 @@ export const normalizeAgentSelectorSegment = normalizeAgentIdentitySegment;
|
|
|
67
67
|
|
|
68
68
|
export const SCOUT_DISPATCHER_AGENT_ID = "scout";
|
|
69
69
|
|
|
70
|
+
export const BUILT_IN_AGENT_DEFINITION_IDS: ReadonlySet<string> = new Set([
|
|
71
|
+
SCOUT_DISPATCHER_AGENT_ID,
|
|
72
|
+
"builder",
|
|
73
|
+
"reviewer",
|
|
74
|
+
"research",
|
|
75
|
+
]);
|
|
76
|
+
|
|
77
|
+
export function isBuiltInAgentDefinitionId(value: string | null | undefined): boolean {
|
|
78
|
+
if (!value) return false;
|
|
79
|
+
return BUILT_IN_AGENT_DEFINITION_IDS.has(normalizeAgentIdentitySegment(value));
|
|
80
|
+
}
|
|
81
|
+
|
|
70
82
|
const RESERVED_AGENT_DEFINITION_IDS: ReadonlySet<string> = new Set([
|
|
71
83
|
SCOUT_DISPATCHER_AGENT_ID,
|
|
72
84
|
]);
|