@memberjunction/core-actions 6.1.0-edge.2 → 6.1.0-edge.3
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/LICENSE +180 -4
- package/README.md +17 -0
- package/dist/config.d.ts +18 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +9 -0
- package/dist/config.js.map +1 -1
- package/dist/custom/ai/base-find-agents.action.d.ts +7 -5
- package/dist/custom/ai/base-find-agents.action.d.ts.map +1 -1
- package/dist/custom/ai/base-find-agents.action.js +30 -8
- package/dist/custom/ai/base-find-agents.action.js.map +1 -1
- package/dist/custom/ai/load-agent-spec.action.d.ts.map +1 -1
- package/dist/custom/ai/load-agent-spec.action.js +11 -5
- package/dist/custom/ai/load-agent-spec.action.js.map +1 -1
- package/dist/custom/ai/semantic-entity-search.helper.d.ts +17 -8
- package/dist/custom/ai/semantic-entity-search.helper.d.ts.map +1 -1
- package/dist/custom/ai/semantic-entity-search.helper.js +23 -10
- package/dist/custom/ai/semantic-entity-search.helper.js.map +1 -1
- package/dist/custom/web/perplexity-search.action.d.ts +5 -4
- package/dist/custom/web/perplexity-search.action.d.ts.map +1 -1
- package/dist/custom/web/perplexity-search.action.js +6 -5
- package/dist/custom/web/perplexity-search.action.js.map +1 -1
- package/package.json +39 -39
package/LICENSE
CHANGED
|
@@ -1,7 +1,183 @@
|
|
|
1
|
-
|
|
1
|
+
Business Source License 1.1
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
License text copyright (c) 2024 MariaDB plc, All Rights Reserved.
|
|
4
|
+
"Business Source License" is a trademark of MariaDB plc.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
-----------------------------------------------------------------------------
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
Parameters
|
|
9
|
+
|
|
10
|
+
Licensor: Blue Cypress, Inc.
|
|
11
|
+
|
|
12
|
+
Licensed Work: MemberJunction.
|
|
13
|
+
The Licensed Work is (c) 2023-2026 Blue Cypress, Inc.
|
|
14
|
+
|
|
15
|
+
Additional Use Grant: Subject to the terms of this License, Licensor grants
|
|
16
|
+
you the following additional rights to make Production
|
|
17
|
+
Use of the Licensed Work.
|
|
18
|
+
|
|
19
|
+
1. Internal Use
|
|
20
|
+
|
|
21
|
+
You may make production use of the Licensed Work for
|
|
22
|
+
your own internal business or organizational operations.
|
|
23
|
+
|
|
24
|
+
2. Nonprofit Use
|
|
25
|
+
|
|
26
|
+
If you are a Nonprofit, you may make production use of
|
|
27
|
+
the Licensed Work for the operations and activities of
|
|
28
|
+
your Organizational Family.
|
|
29
|
+
|
|
30
|
+
3. MemberJunction Certified Program Use
|
|
31
|
+
|
|
32
|
+
If you are authorized by Licensor under the
|
|
33
|
+
MemberJunction Certified Program to provide professional
|
|
34
|
+
services using the Licensed Work, you may make
|
|
35
|
+
production use of the Licensed Work in providing such
|
|
36
|
+
professional services to a client, provided that:
|
|
37
|
+
|
|
38
|
+
(a) the Licensed Work is deployed in, and the applicable
|
|
39
|
+
production use occurs within, an environment owned,
|
|
40
|
+
leased, licensed, subscribed to, or otherwise controlled
|
|
41
|
+
by that client; and
|
|
42
|
+
|
|
43
|
+
(b) the production use is for that client's own internal
|
|
44
|
+
business or organizational operations or is otherwise
|
|
45
|
+
independently permitted to that client under this
|
|
46
|
+
Additional Use Grant.
|
|
47
|
+
|
|
48
|
+
4. Definitions Applicable to the Additional Use Grant
|
|
49
|
+
|
|
50
|
+
"Affiliate" means, with respect to a specified Person,
|
|
51
|
+
any other Person that directly or indirectly Controls,
|
|
52
|
+
is Controlled by, or is under common Control with such
|
|
53
|
+
specified Person.
|
|
54
|
+
|
|
55
|
+
"Control" (including the terms "Controls," "Controlled
|
|
56
|
+
by," and "under common Control with") means the direct
|
|
57
|
+
or indirect possession of the power to direct or cause
|
|
58
|
+
the direction of the management and policies of a
|
|
59
|
+
Person, whether through ownership of voting interests,
|
|
60
|
+
by contract, or otherwise.
|
|
61
|
+
|
|
62
|
+
"Organizational Family" means, with respect to a Person,
|
|
63
|
+
(a) such Person and its Affiliates, and (b) any
|
|
64
|
+
nonprofit organization, governmental entity, chapter,
|
|
65
|
+
division, local affiliate, regional affiliate, state
|
|
66
|
+
affiliate, national affiliate, or other entity that is
|
|
67
|
+
formally affiliated with such Person through governing
|
|
68
|
+
documents, a charter, bylaws, a membership agreement, or
|
|
69
|
+
another written organizational instrument, and is
|
|
70
|
+
recognized under such documents as part of the same
|
|
71
|
+
organizational structure.
|
|
72
|
+
|
|
73
|
+
"Nonprofit" means a Person recognized by the Internal
|
|
74
|
+
Revenue Service as exempt from federal income taxation
|
|
75
|
+
under Section 501(c)(3), 501(c)(4), 501(c)(5), or
|
|
76
|
+
501(c)(6) of the Internal Revenue Code, or a foreign
|
|
77
|
+
organization recognized under substantially equivalent
|
|
78
|
+
laws.
|
|
79
|
+
|
|
80
|
+
A Person claiming eligibility as a Nonprofit shall, upon
|
|
81
|
+
Licensor's reasonable request, provide documentation
|
|
82
|
+
reasonably sufficient to demonstrate that it qualifies
|
|
83
|
+
as a Nonprofit. If such Person materially misrepresents,
|
|
84
|
+
or is unable to demonstrate, its qualification as a
|
|
85
|
+
Nonprofit, the rights granted to such Person under
|
|
86
|
+
Section 2 of this Additional Use Grant shall terminate.
|
|
87
|
+
|
|
88
|
+
"MemberJunction Certified Program" means Licensor's
|
|
89
|
+
then-current program for certifying and authorizing a
|
|
90
|
+
Person to provide professional services using the
|
|
91
|
+
Licensed Work.
|
|
92
|
+
|
|
93
|
+
"Person" means any individual, corporation, limited
|
|
94
|
+
liability company, partnership, association, nonprofit
|
|
95
|
+
organization, governmental entity, or other legal or
|
|
96
|
+
organizational entity.
|
|
97
|
+
|
|
98
|
+
Change Date: Four (4) years from the date the Licensed Work is first
|
|
99
|
+
made available.
|
|
100
|
+
|
|
101
|
+
Change License: MIT License.
|
|
102
|
+
|
|
103
|
+
For information about alternative licensing arrangements for the Licensed
|
|
104
|
+
Work, please contact Blue Cypress, Inc.
|
|
105
|
+
|
|
106
|
+
-----------------------------------------------------------------------------
|
|
107
|
+
|
|
108
|
+
Terms
|
|
109
|
+
|
|
110
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
111
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
112
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
113
|
+
production use.
|
|
114
|
+
|
|
115
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
116
|
+
available distribution of a specific version of the Licensed Work under this
|
|
117
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
118
|
+
the terms of the Change License, and the rights granted in the paragraph
|
|
119
|
+
above terminate.
|
|
120
|
+
|
|
121
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
122
|
+
currently in effect as described in this License, you must purchase a
|
|
123
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
124
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
125
|
+
|
|
126
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
127
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
128
|
+
separately for each version of the Licensed Work and the Change Date may vary
|
|
129
|
+
for each version of the Licensed Work released by Licensor.
|
|
130
|
+
|
|
131
|
+
You must conspicuously display this License on each original or modified copy
|
|
132
|
+
of the Licensed Work. If you receive the Licensed Work in original or
|
|
133
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
134
|
+
License apply to your use of that work.
|
|
135
|
+
|
|
136
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
137
|
+
terminate your rights under this License for the current and all other
|
|
138
|
+
versions of the Licensed Work.
|
|
139
|
+
|
|
140
|
+
This License does not grant you any right in any trademark or logo of
|
|
141
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
142
|
+
Licensor as expressly required by this License).
|
|
143
|
+
|
|
144
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
145
|
+
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
146
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
147
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
148
|
+
TITLE.
|
|
149
|
+
|
|
150
|
+
MariaDB hereby grants you permission to use this License's text to license
|
|
151
|
+
your works, and to refer to it using the trademark "Business Source License",
|
|
152
|
+
as long as you comply with the Covenants of Licensor below.
|
|
153
|
+
|
|
154
|
+
-----------------------------------------------------------------------------
|
|
155
|
+
|
|
156
|
+
Covenants of Licensor
|
|
157
|
+
|
|
158
|
+
In consideration of the right to use this License's text and the "Business
|
|
159
|
+
Source License" name and trademark, Licensor covenants to MariaDB, and to all
|
|
160
|
+
other recipients of the licensed work to be provided by Licensor:
|
|
161
|
+
|
|
162
|
+
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
163
|
+
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
164
|
+
where "compatible" means that software provided under the Change License
|
|
165
|
+
can be included in a program with software provided under GPL Version 2.0
|
|
166
|
+
or a later version. Licensor may specify additional Change Licenses without
|
|
167
|
+
limitation.
|
|
168
|
+
|
|
169
|
+
2. To either: (a) specify an additional grant of rights to use that does not
|
|
170
|
+
impose any additional restriction on the right granted in this License, as
|
|
171
|
+
the Additional Use Grant; or (b) insert the text "None".
|
|
172
|
+
|
|
173
|
+
3. To specify a Change Date.
|
|
174
|
+
|
|
175
|
+
4. Not to modify this License in any other way.
|
|
176
|
+
|
|
177
|
+
-----------------------------------------------------------------------------
|
|
178
|
+
|
|
179
|
+
Notice
|
|
180
|
+
|
|
181
|
+
The Business Source License (this document, or the "License") is not an Open
|
|
182
|
+
Source license. However, the Licensed Work will eventually be made available
|
|
183
|
+
under an Open Source License, as stated in this License.
|
package/README.md
CHANGED
|
@@ -112,6 +112,23 @@ module.exports = {
|
|
|
112
112
|
};
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
+
#### Choosing a web-search provider
|
|
116
|
+
|
|
117
|
+
Agents that do web research (Research Agent, Sage, the Web Research skill) are granted **both** the
|
|
118
|
+
`Perplexity Search` and `Google Custom Search` actions, and are instructed to prefer Perplexity and
|
|
119
|
+
fall back if one returns a missing-API-key error. Credential whichever you have:
|
|
120
|
+
|
|
121
|
+
| | Credentials | Availability |
|
|
122
|
+
|---|---|---|
|
|
123
|
+
| **Perplexity Search** *(recommended)* | `perplexityApiKey` — one key, no engine ID | Open to new customers |
|
|
124
|
+
| **Google Custom Search** | `google.customSearch.apiKey` **and** `.cx` | **Closed to new customers**; existing customers are served until **2027-01-01**, after which the Custom Search JSON API is discontinued |
|
|
125
|
+
|
|
126
|
+
New deployments should configure `perplexityApiKey`. Google's stated successor, Vertex AI Search, is
|
|
127
|
+
not a drop-in: it uses service-account auth against a data store over *your own* content and does not
|
|
128
|
+
return public web results, so it produces neither of the two values this config expects and there is
|
|
129
|
+
no MJ action for it. Deployments that already have Custom Search access can keep using it through
|
|
130
|
+
2026 and add `perplexityApiKey` whenever convenient — configuring both is supported.
|
|
131
|
+
|
|
115
132
|
## Action Catalog
|
|
116
133
|
|
|
117
134
|
All 100+ actions organized by category. Each action is registered with `@RegisterClass(BaseAction, "<name>")`.
|
package/dist/config.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ declare const apiIntegrationsSchema: z.ZodObject<{
|
|
|
7
7
|
* Perplexity AI API Key for AI-powered web search
|
|
8
8
|
* Used by: Perplexity Search action
|
|
9
9
|
* Get your API key from: https://www.perplexity.ai/settings/api
|
|
10
|
+
*
|
|
11
|
+
* This is the recommended web-search credential for new deployments — a single key with no
|
|
12
|
+
* engine ID, and open to new customers. See `google.customSearch` below for why.
|
|
10
13
|
*/
|
|
11
14
|
perplexityApiKey: z.ZodOptional<z.ZodString>;
|
|
12
15
|
/**
|
|
@@ -26,6 +29,12 @@ declare const apiIntegrationsSchema: z.ZodObject<{
|
|
|
26
29
|
* Used by: Google Custom Search action
|
|
27
30
|
* Get your API key from: https://developers.google.com/custom-search/v1/overview
|
|
28
31
|
* Get your CX from: https://programmablesearchengine.google.com/
|
|
32
|
+
*
|
|
33
|
+
* NOTE: the Custom Search JSON API is CLOSED TO NEW CUSTOMERS. Projects that already have it
|
|
34
|
+
* enabled are served until 2027-01-01, when the API is discontinued. New deployments should
|
|
35
|
+
* configure `perplexityApiKey` above instead — Google's stated successor (Vertex AI Search)
|
|
36
|
+
* searches your own indexed content rather than the public web and yields neither an API key
|
|
37
|
+
* nor a CX, so it is not a drop-in for this action.
|
|
29
38
|
*/
|
|
30
39
|
customSearch: z.ZodOptional<z.ZodObject<{
|
|
31
40
|
/**
|
|
@@ -113,6 +122,9 @@ declare const coreActionsConfigSchema: z.ZodObject<{
|
|
|
113
122
|
* Perplexity AI API Key for AI-powered web search
|
|
114
123
|
* Used by: Perplexity Search action
|
|
115
124
|
* Get your API key from: https://www.perplexity.ai/settings/api
|
|
125
|
+
*
|
|
126
|
+
* This is the recommended web-search credential for new deployments — a single key with no
|
|
127
|
+
* engine ID, and open to new customers. See `google.customSearch` below for why.
|
|
116
128
|
*/
|
|
117
129
|
perplexityApiKey: z.ZodOptional<z.ZodString>;
|
|
118
130
|
/**
|
|
@@ -132,6 +144,12 @@ declare const coreActionsConfigSchema: z.ZodObject<{
|
|
|
132
144
|
* Used by: Google Custom Search action
|
|
133
145
|
* Get your API key from: https://developers.google.com/custom-search/v1/overview
|
|
134
146
|
* Get your CX from: https://programmablesearchengine.google.com/
|
|
147
|
+
*
|
|
148
|
+
* NOTE: the Custom Search JSON API is CLOSED TO NEW CUSTOMERS. Projects that already have it
|
|
149
|
+
* enabled are served until 2027-01-01, when the API is discontinued. New deployments should
|
|
150
|
+
* configure `perplexityApiKey` above instead — Google's stated successor (Vertex AI Search)
|
|
151
|
+
* searches your own indexed content rather than the public web and yields neither an API key
|
|
152
|
+
* nor a CX, so it is not a drop-in for this action.
|
|
135
153
|
*/
|
|
136
154
|
customSearch: z.ZodOptional<z.ZodObject<{
|
|
137
155
|
/**
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,QAAA,MAAM,qBAAqB;IACzB
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,QAAA,MAAM,qBAAqB;IACzB;;;;;;;OAOG;;IAGH;;;;;OAKG;;IAGH;;;OAGG;;QAED;;;;;;;;;;;WAWG;;YAED;;eAEG;;YAEH;;eAEG;;;;;;;;;QAIL;;;;;WAKG;;YAED;;eAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIP,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,uBAAuB;IAC3B;;OAEG;;QAnEH;;;;;;;WAOG;;QAGH;;;;;WAKG;;QAGH;;;WAGG;;YAED;;;;;;;;;;;eAWG;;gBAED;;mBAEG;;gBAEH;;mBAEG;;;;;;;;;YAIL;;;;;eAKG;;gBAED;;mBAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcP,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAI1E;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,CA0CxD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,qBAAqB,CAGhE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C"}
|
package/dist/config.js
CHANGED
|
@@ -10,6 +10,9 @@ const apiIntegrationsSchema = z.object({
|
|
|
10
10
|
* Perplexity AI API Key for AI-powered web search
|
|
11
11
|
* Used by: Perplexity Search action
|
|
12
12
|
* Get your API key from: https://www.perplexity.ai/settings/api
|
|
13
|
+
*
|
|
14
|
+
* This is the recommended web-search credential for new deployments — a single key with no
|
|
15
|
+
* engine ID, and open to new customers. See `google.customSearch` below for why.
|
|
13
16
|
*/
|
|
14
17
|
perplexityApiKey: z.string().optional(),
|
|
15
18
|
/**
|
|
@@ -29,6 +32,12 @@ const apiIntegrationsSchema = z.object({
|
|
|
29
32
|
* Used by: Google Custom Search action
|
|
30
33
|
* Get your API key from: https://developers.google.com/custom-search/v1/overview
|
|
31
34
|
* Get your CX from: https://programmablesearchengine.google.com/
|
|
35
|
+
*
|
|
36
|
+
* NOTE: the Custom Search JSON API is CLOSED TO NEW CUSTOMERS. Projects that already have it
|
|
37
|
+
* enabled are served until 2027-01-01, when the API is discontinued. New deployments should
|
|
38
|
+
* configure `perplexityApiKey` above instead — Google's stated successor (Vertex AI Search)
|
|
39
|
+
* searches your own indexed content rather than the public web and yields neither an API key
|
|
40
|
+
* nor a CX, so it is not a drop-in for this action.
|
|
32
41
|
*/
|
|
33
42
|
customSearch: z.object({
|
|
34
43
|
/**
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,qBAAq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BACxC;iBACF;aACF;SACF,CAAC;QAEF,OAAO,GAAG,uBAAuB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACnD,OAAO,OAAO,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,0CAA0C,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACvE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,wBAAwB;IACtC,MAAM,MAAM,GAAG,oBAAoB,EAAE,CAAC;IACtC,OAAO,MAAM,CAAC,eAAe,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,GAAG,IAAI,CAAC;AACjB,CAAC"}
|
|
@@ -5,11 +5,13 @@ import { MJAIAgentEntityExtended } from "@memberjunction/ai-core-plus";
|
|
|
5
5
|
* Shared base for the "Find Best Agent" / "Find Candidate Agents" wrappers.
|
|
6
6
|
*
|
|
7
7
|
* Both rank agents for a task description via the unified
|
|
8
|
-
* {@link IRunViewProvider.SearchEntity} pipeline
|
|
9
|
-
* daily-synced "AI Agents Search" EntityDocument)
|
|
10
|
-
* agents
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* {@link IRunViewProvider.SearchEntity} pipeline in HYBRID mode — the semantic pass
|
|
9
|
+
* (backed by the daily-synced "AI Agents Search" EntityDocument) plus a lexical
|
|
10
|
+
* name/description pass, so agents not yet embedded by the daily sync (e.g. one just
|
|
11
|
+
* created by the Agent Manager) are still found by text. Results are then
|
|
12
|
+
* permission-filtered to agents the user can run, Sub-Agents dropped, and agent
|
|
13
|
+
* metadata hydrated from AIEngine's cache. Subclasses tune the invocation filter and
|
|
14
|
+
* whether sub-agent details are included in the output.
|
|
13
15
|
*
|
|
14
16
|
* Carries **no** `@RegisterClass` decorator so importing it does not register an
|
|
15
17
|
* extra action.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-find-agents.action.d.ts","sourceRoot":"","sources":["../../../src/custom/ai/base-find-agents.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE
|
|
1
|
+
{"version":3,"file":"base-find-agents.action.d.ts","sourceRoot":"","sources":["../../../src/custom/ai/base-find-agents.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE;;;;;;;;;;;;;;GAcG;AACH,8BAAsB,oBAAqB,SAAQ,UAAU;IACzD,sCAAsC;IACtC,SAAS,KAAK,UAAU,IAAI,MAAM,CAA4B;IAC9D,mCAAmC;IACnC,SAAS,CAAC,QAAQ,KAAK,WAAW,IAAI,MAAM,CAAC;IAC7C,kGAAkG;IAClG,SAAS,KAAK,sBAAsB,IAAI,OAAO,CAAkB;IAEjE;;;OAGG;IACH,SAAS,CAAC,qBAAqB,CAAC,MAAM,EAAE,uBAAuB,EAAE,EAAE,OAAO,EAAE,eAAe,GAAG,uBAAuB,EAAE;cAIvG,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAwGvF,iDAAiD;IACjD,SAAS,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAMxD,8EAA8E;IAC9E,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAoBrF,iGAAiG;IACjG,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAcrG"}
|
|
@@ -7,11 +7,13 @@ import { runSemanticEntitySearch, getActionParamValue, getActionBooleanParam } f
|
|
|
7
7
|
* Shared base for the "Find Best Agent" / "Find Candidate Agents" wrappers.
|
|
8
8
|
*
|
|
9
9
|
* Both rank agents for a task description via the unified
|
|
10
|
-
* {@link IRunViewProvider.SearchEntity} pipeline
|
|
11
|
-
* daily-synced "AI Agents Search" EntityDocument)
|
|
12
|
-
* agents
|
|
13
|
-
*
|
|
14
|
-
*
|
|
10
|
+
* {@link IRunViewProvider.SearchEntity} pipeline in HYBRID mode — the semantic pass
|
|
11
|
+
* (backed by the daily-synced "AI Agents Search" EntityDocument) plus a lexical
|
|
12
|
+
* name/description pass, so agents not yet embedded by the daily sync (e.g. one just
|
|
13
|
+
* created by the Agent Manager) are still found by text. Results are then
|
|
14
|
+
* permission-filtered to agents the user can run, Sub-Agents dropped, and agent
|
|
15
|
+
* metadata hydrated from AIEngine's cache. Subclasses tune the invocation filter and
|
|
16
|
+
* whether sub-agent details are included in the output.
|
|
15
17
|
*
|
|
16
18
|
* Carries **no** `@RegisterClass` decorator so importing it does not register an
|
|
17
19
|
* extra action.
|
|
@@ -46,8 +48,12 @@ export class BaseFindAgentsAction extends BaseAction {
|
|
|
46
48
|
if (!params.ContextUser) {
|
|
47
49
|
return { Success: false, ResultCode: 'MISSING_USER_CONTEXT', Message: 'User context required for permission filtering' };
|
|
48
50
|
}
|
|
49
|
-
// Rank via the unified SearchEntity pipeline (over-fetch 3x for
|
|
50
|
-
|
|
51
|
+
// Rank via the unified SearchEntity pipeline in HYBRID mode (over-fetch 3x for
|
|
52
|
+
// post-filtering). Hybrid adds a lexical name/description pass on top of semantic
|
|
53
|
+
// ranking, so agents the daily vector sync hasn't embedded yet — e.g. one just
|
|
54
|
+
// created by the Agent Manager — are still discoverable by text instead of being
|
|
55
|
+
// invisible until the next sync.
|
|
56
|
+
const search = await runSemanticEntitySearch(params, this.entityName, taskDescription, maxResults * 3, minimumSimilarityScore, 'hybrid');
|
|
51
57
|
if (!search.ok) {
|
|
52
58
|
return { Success: false, ResultCode: search.resultCode ?? 'SEARCH_FAILED', Message: search.message ?? 'Semantic search failed' };
|
|
53
59
|
}
|
|
@@ -60,10 +66,26 @@ export class BaseFindAgentsAction extends BaseAction {
|
|
|
60
66
|
const scoreById = new Map();
|
|
61
67
|
let matched = [];
|
|
62
68
|
for (const r of search.results) {
|
|
69
|
+
// Hybrid blends via RRF, so r.score is a tiny rank-based value — apply the
|
|
70
|
+
// cosine floor against the SEMANTIC component instead, and let ANY lexical
|
|
71
|
+
// (name/description) match pass regardless. The lexical pass is what surfaces
|
|
72
|
+
// newly-created, not-yet-embedded agents by name.
|
|
73
|
+
const semantic = r.components?.semantic;
|
|
74
|
+
const lexical = r.components?.lexical;
|
|
75
|
+
const passes = (semantic != null && semantic >= minimumSimilarityScore) || lexical != null;
|
|
76
|
+
if (!passes) {
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
63
79
|
const agent = agentsById.get(NormalizeUUID(r.recordId));
|
|
64
80
|
if (agent) {
|
|
65
81
|
matched.push(agent);
|
|
66
|
-
|
|
82
|
+
// Report the STRONGEST 0–1 signal that qualified this match. Using
|
|
83
|
+
// `semantic ?? lexical` would report a below-floor semantic component
|
|
84
|
+
// (e.g. 0.3) even when the match actually passed on a strong lexical hit
|
|
85
|
+
// (e.g. 0.85) — a misleadingly low score. Fall back to r.score only when
|
|
86
|
+
// neither component is present.
|
|
87
|
+
const reported = Math.max(semantic ?? 0, lexical ?? 0) || r.score;
|
|
88
|
+
scoreById.set(NormalizeUUID(agent.ID), reported);
|
|
67
89
|
}
|
|
68
90
|
}
|
|
69
91
|
// Permission-filter to agents the user can 'run'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-find-agents.action.js","sourceRoot":"","sources":["../../../src/custom/ai/base-find-agents.action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAEtH
|
|
1
|
+
{"version":3,"file":"base-find-agents.action.js","sourceRoot":"","sources":["../../../src/custom/ai/base-find-agents.action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAEtH;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAgB,oBAAqB,SAAQ,UAAU;IACzD,sCAAsC;IACtC,IAAc,UAAU,KAAa,OAAO,eAAe,CAAC,CAAC,CAAC;IAG9D,kGAAkG;IAClG,IAAc,sBAAsB,KAAc,OAAO,KAAK,CAAC,CAAC,CAAC;IAEjE;;;OAGG;IACO,qBAAqB,CAAC,MAAiC,EAAE,OAAwB;QACvF,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,KAAK,WAAW,CAAC,CAAC;IAChE,CAAC;IAES,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,IAAI,CAAC;YACD,MAAM,eAAe,GAAG,mBAAmB,CAAC,MAAM,EAAE,iB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EAAE,YAAY,CAAC,WAAW,IAAI,EAAE,EAAE,CAAC,CAAC;YAC7F,CAAC;QACL,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,iGAAiG;IACvF,gBAAgB,CAAC,KAA8B,EAAE,KAAa;QACpE,MAAM,IAAI,GAA4B;YAClC,OAAO,EAAE,KAAK,CAAC,EAAE;YACjB,SAAS,EAAE,KAAK,CAAC,IAAI;YACrB,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG;YAC9C,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,OAAO,EAAE,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;SAC9C,CAAC;QACF,IAAI,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC7C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,IAAI,IAAI,CAAC;QACjE,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-agent-spec.action.d.ts","sourceRoot":"","sources":["../../../src/custom/ai/load-agent-spec.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IAC/C;;;;;;;;OAQG;cACa,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"load-agent-spec.action.d.ts","sourceRoot":"","sources":["../../../src/custom/ai/load-agent-spec.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IAC/C;;;;;;;;OAQG;cACa,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA0FvF;;OAEG;IACH,OAAO,CAAC,eAAe;IAUvB;;OAEG;IACH,OAAO,CAAC,aAAa;IAKrB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAgB3B;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAmB3B"}
|
|
@@ -87,18 +87,24 @@ let LoadAgentSpecAction = class LoadAgentSpecAction extends BaseAction {
|
|
|
87
87
|
if (!('TechnicalDesign' in agentSpec)) {
|
|
88
88
|
agentSpec.TechnicalDesign = null;
|
|
89
89
|
}
|
|
90
|
-
//
|
|
91
|
-
|
|
92
|
-
//
|
|
90
|
+
// The AgentSpec OUTPUT PARAM must be the COMPLETE spec. Callers (e.g. Agent
|
|
91
|
+
// Manager) merge this object into the payload and Builder persists it, so a
|
|
92
|
+
// truncated value here would round-trip 100-char prompt prefixes back into the
|
|
93
|
+
// sub-agents' TemplateText on save (AgentSpecSync.savePrompts writes PromptText
|
|
94
|
+
// unconditionally), silently destroying their prompt templates. A loader must
|
|
95
|
+
// never emit a lossy value under the same key the writer reads.
|
|
93
96
|
params.Params.push({
|
|
94
97
|
Name: 'AgentSpec',
|
|
95
98
|
Type: 'Output',
|
|
96
|
-
Value:
|
|
99
|
+
Value: agentSpec
|
|
97
100
|
});
|
|
101
|
+
// Only the human-readable Message is truncated — it's a display surface where the
|
|
102
|
+
// size concern (very long sub-agent prompts) is real and nothing persists from it.
|
|
103
|
+
const displaySpec = this.truncatePromptTexts(agentSpec);
|
|
98
104
|
return {
|
|
99
105
|
Success: true,
|
|
100
106
|
ResultCode: 'SUCCESS',
|
|
101
|
-
Message: JSON.stringify(
|
|
107
|
+
Message: JSON.stringify(displaySpec, null, 2)
|
|
102
108
|
};
|
|
103
109
|
}
|
|
104
110
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-agent-spec.action.js","sourceRoot":"","sources":["../../../src/custom/ai/load-agent-spec.action.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,UAAU;IAC/C;;;;;;;;OAQG;IACO,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,IAAI,CAAC;YACD,wCAAwC;YACxC,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YACtD,MAAM,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;YAEhF,0BAA0B;YAC1B,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC1C,OAAO;oBACH,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,eAAe;oBAC3B,OAAO,EAAE,mDAAmD;iBAC/D,CAAC;YACN,CAAC;YAED,6CAA6C;YAC7C,MAAM,SAAS,GAAG,iEAAiE,CAAC;YACpF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;gBAClC,OAAO;oBACH,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,eAAe;oBAC3B,OAAO,EAAE,qCAAqC;iBACjD,CAAC;YACN,CAAC;YAED,2DAA2D;YAC3D,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;gBACtB,OAAO;oBACH,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,sBAAsB;oBAClC,OAAO,EAAE,uDAAuD;iBACnE,CAAC;YACN,CAAC;YAED,+CAA+C;YAC/C,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,gBAAgB,CACjD,OAAO,CAAC,IAAI,EAAE,EACd,MAAM,CAAC,WAAW,EAClB,gBAAgB,CACnB,CAAC;YAEF,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACZ,OAAO;oBACH,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,iBAAiB;oBAC7B,OAAO,EAAE,kBAAkB,OAAO,yBAAyB;iBAC9D,CAAC;YACN,CAAC;YAED,iCAAiC;YACjC,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;YAEpC,sFAAsF;YACtF,IAAI,CAAC,CAAC,wBAAwB,IAAI,SAAS,CAAC,EAAE,CAAC;gBAC3C,SAAS,CAAC,sBAAsB,GAAG,IAAI,CAAC;YAC5C,CAAC;YACD,IAAI,CAAC,CAAC,iBAAiB,IAAI,SAAS,CAAC,EAAE,CAAC;gBACpC,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC;YACrC,CAAC;YAED,
|
|
1
|
+
{"version":3,"file":"load-agent-spec.action.js","sourceRoot":"","sources":["../../../src/custom/ai/load-agent-spec.action.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,UAAU;IAC/C;;;;;;;;OAQG;IACO,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACr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ACpC,IAAI,MAAM,CAAC,UAAU,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,QAAQ,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC;oBACrG,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC;gBAC1E,CAAC;YACL,CAAC;QACL,CAAC;QAED,uCAAuC;QACvC,IAAI,QAAQ,CAAC,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YAC1D,KAAK,MAAM,aAAa,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;gBAC7C,IAAI,aAAa,CAAC,QAAQ,EAAE,CAAC;oBACzB,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;gBAC7D,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;CACJ,CAAA;AApKY,mBAAmB;IAD/B,aAAa,CAAC,UAAU,EAAE,iBAAiB,CAAC;GAChC,mBAAmB,CAoK/B"}
|
|
@@ -22,14 +22,23 @@ export interface SemanticSearchOutcome {
|
|
|
22
22
|
message?: string;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* Runs a
|
|
26
|
-
*
|
|
25
|
+
* Runs a ranked search over one entity via the invoking provider's
|
|
26
|
+
* {@link IRunViewProvider.SearchEntity}.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* `
|
|
32
|
-
*
|
|
28
|
+
* **`mode: 'semantic'` (default)** — a drop-in replacement for the old
|
|
29
|
+
* cosine-similarity vector services: `EntitySearchResult.score` is the raw cosine
|
|
30
|
+
* similarity (0–1), so the legacy `MinimumSimilarityScore` threshold maps directly
|
|
31
|
+
* onto `minScore` and the returned scores stay meaningful to existing callers.
|
|
32
|
+
*
|
|
33
|
+
* **`mode: 'hybrid'`** — fuses the semantic pass with a lexical (name/description
|
|
34
|
+
* `LIKE`) pass so records the daily vector sync hasn't embedded yet (e.g. a
|
|
35
|
+
* just-created agent) are still found by text. ⚠️ The pipeline blends via
|
|
36
|
+
* Reciprocal Rank Fusion, whose `score` is a tiny rank-based value (~`1/rrfK`) on a
|
|
37
|
+
* completely different scale from cosine — applying the caller's cosine `minScore`
|
|
38
|
+
* to it would filter out *everything*. So in hybrid mode we pass `minScore: 0` to the
|
|
39
|
+
* provider and the **caller** must re-apply its cosine floor against
|
|
40
|
+
* `EntitySearchResult.components.semantic` (and treat any `components.lexical` hit as a
|
|
41
|
+
* pass — that is the whole point of hybrid here). `topK` still bounds the result count.
|
|
33
42
|
*
|
|
34
43
|
* Prefers the caller's threaded `params.Provider` (multi-server clients,
|
|
35
44
|
* request-scoped server-side providers, transaction-scoped work — e.g. the
|
|
@@ -40,7 +49,7 @@ export interface SemanticSearchOutcome {
|
|
|
40
49
|
* that don't thread a provider (agents, MCP, CLI, scheduled jobs) — exactly
|
|
41
50
|
* like every other action.
|
|
42
51
|
*/
|
|
43
|
-
export declare function runSemanticEntitySearch(params: RunActionParams, entityName: string, searchText: string, topK: number, minScore: number): Promise<SemanticSearchOutcome>;
|
|
52
|
+
export declare function runSemanticEntitySearch(params: RunActionParams, entityName: string, searchText: string, topK: number, minScore: number, mode?: 'semantic' | 'hybrid' | 'lexical'): Promise<SemanticSearchOutcome>;
|
|
44
53
|
/** Case-insensitive lookup of a raw action parameter value. */
|
|
45
54
|
export declare function getActionParamValue(params: RunActionParams, name: string): unknown;
|
|
46
55
|
/** Case-insensitive boolean parameter accessor with a default. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-entity-search.helper.d.ts","sourceRoot":"","sources":["../../../src/custom/ai/semantic-entity-search.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAwC,MAAM,sBAAsB,CAAC;AAErG;;;;;;;;;GASG;AAEH,sGAAsG;AACtG,MAAM,WAAW,qBAAqB;IAClC,kFAAkF;IAClF,EAAE,EAAE,OAAO,CAAC;IACZ,yCAAyC;IACzC,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED
|
|
1
|
+
{"version":3,"file":"semantic-entity-search.helper.d.ts","sourceRoot":"","sources":["../../../src/custom/ai/semantic-entity-search.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAwC,MAAM,sBAAsB,CAAC;AAErG;;;;;;;;;GASG;AAEH,sGAAsG;AACtG,MAAM,WAAW,qBAAqB;IAClC,kFAAkF;IAClF,EAAE,EAAE,OAAO,CAAC;IACZ,yCAAyC;IACzC,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,uBAAuB,CACzC,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,UAAU,GAAG,QAAQ,GAAG,SAAsB,GACrD,OAAO,CAAC,qBAAqB,CAAC,CA6BhC;AAED,+DAA+D;AAC/D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAGlF;AAED,kEAAkE;AAClE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,OAAO,CAM3G"}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { Metadata } from "@memberjunction/core";
|
|
2
2
|
/**
|
|
3
|
-
* Runs a
|
|
4
|
-
*
|
|
3
|
+
* Runs a ranked search over one entity via the invoking provider's
|
|
4
|
+
* {@link IRunViewProvider.SearchEntity}.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `
|
|
10
|
-
*
|
|
6
|
+
* **`mode: 'semantic'` (default)** — a drop-in replacement for the old
|
|
7
|
+
* cosine-similarity vector services: `EntitySearchResult.score` is the raw cosine
|
|
8
|
+
* similarity (0–1), so the legacy `MinimumSimilarityScore` threshold maps directly
|
|
9
|
+
* onto `minScore` and the returned scores stay meaningful to existing callers.
|
|
10
|
+
*
|
|
11
|
+
* **`mode: 'hybrid'`** — fuses the semantic pass with a lexical (name/description
|
|
12
|
+
* `LIKE`) pass so records the daily vector sync hasn't embedded yet (e.g. a
|
|
13
|
+
* just-created agent) are still found by text. ⚠️ The pipeline blends via
|
|
14
|
+
* Reciprocal Rank Fusion, whose `score` is a tiny rank-based value (~`1/rrfK`) on a
|
|
15
|
+
* completely different scale from cosine — applying the caller's cosine `minScore`
|
|
16
|
+
* to it would filter out *everything*. So in hybrid mode we pass `minScore: 0` to the
|
|
17
|
+
* provider and the **caller** must re-apply its cosine floor against
|
|
18
|
+
* `EntitySearchResult.components.semantic` (and treat any `components.lexical` hit as a
|
|
19
|
+
* pass — that is the whole point of hybrid here). `topK` still bounds the result count.
|
|
11
20
|
*
|
|
12
21
|
* Prefers the caller's threaded `params.Provider` (multi-server clients,
|
|
13
22
|
* request-scoped server-side providers, transaction-scoped work — e.g. the
|
|
@@ -18,7 +27,7 @@ import { Metadata } from "@memberjunction/core";
|
|
|
18
27
|
* that don't thread a provider (agents, MCP, CLI, scheduled jobs) — exactly
|
|
19
28
|
* like every other action.
|
|
20
29
|
*/
|
|
21
|
-
export async function runSemanticEntitySearch(params, entityName, searchText, topK, minScore) {
|
|
30
|
+
export async function runSemanticEntitySearch(params, entityName, searchText, topK, minScore, mode = 'semantic') {
|
|
22
31
|
const md = (params.Provider ?? Metadata.Provider);
|
|
23
32
|
if (!md) {
|
|
24
33
|
return {
|
|
@@ -28,13 +37,17 @@ export async function runSemanticEntitySearch(params, entityName, searchText, to
|
|
|
28
37
|
message: 'No metadata provider available — semantic search requires a configured provider (threaded or global).',
|
|
29
38
|
};
|
|
30
39
|
}
|
|
40
|
+
// In hybrid mode the blended score is RRF (rank-based, ~1/rrfK), NOT cosine, so the
|
|
41
|
+
// caller's cosine floor must not be applied to it here — the caller re-applies it
|
|
42
|
+
// against components.semantic. Semantic/lexical modes keep the score on their own scale.
|
|
43
|
+
const providerMinScore = mode === 'hybrid' ? 0 : minScore;
|
|
31
44
|
const searchParams = {
|
|
32
45
|
entityName,
|
|
33
46
|
searchText,
|
|
34
47
|
options: {
|
|
35
|
-
mode
|
|
48
|
+
mode,
|
|
36
49
|
topK,
|
|
37
|
-
minScore,
|
|
50
|
+
minScore: providerMinScore,
|
|
38
51
|
contextUser: params.ContextUser,
|
|
39
52
|
},
|
|
40
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-entity-search.helper.js","sourceRoot":"","sources":["../../../src/custom/ai/semantic-entity-search.helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AA0BhD
|
|
1
|
+
{"version":3,"file":"semantic-entity-search.helper.js","sourceRoot":"","sources":["../../../src/custom/ai/semantic-entity-search.helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AA0BhD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CACzC,MAAuB,EACvB,UAAkB,E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AAI,KAAK,KAAK,IAAI;QAAE,OAAO,YAAY,CAAC;IAC/D,IAAI,OAAO,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC;IACrE,OAAO,YAAY,CAAC;AACxB,CAAC"}
|
|
@@ -23,7 +23,7 @@ import { BaseAction } from "@memberjunction/actions";
|
|
|
23
23
|
* Value: 'climate change research papers 2024'
|
|
24
24
|
* }, {
|
|
25
25
|
* Name: 'Model',
|
|
26
|
-
* Value: '
|
|
26
|
+
* Value: 'sonar-pro'
|
|
27
27
|
* }, {
|
|
28
28
|
* Name: 'ReturnRelatedQuestions',
|
|
29
29
|
* Value: true
|
|
@@ -52,9 +52,10 @@ export declare class PerplexitySearchAction extends BaseAction {
|
|
|
52
52
|
*
|
|
53
53
|
* @param params - The action parameters containing:
|
|
54
54
|
* - Query: Search query text (required)
|
|
55
|
-
* - Model: Perplexity model to use (default: '
|
|
56
|
-
* Options:
|
|
57
|
-
*
|
|
55
|
+
* - Model: Perplexity model to use (default: 'sonar')
|
|
56
|
+
* Options: sonar, sonar-pro, sonar-reasoning-pro, sonar-deep-research
|
|
57
|
+
* Note: the legacy llama-3.1-sonar-* identifiers were retired by Perplexity in
|
|
58
|
+
* February 2025 and now fail with an invalid-model error.
|
|
58
59
|
* - MaxTokens: Maximum tokens in response (default: 1000)
|
|
59
60
|
* - Temperature: Sampling temperature 0-2 (default: 0.2)
|
|
60
61
|
* - TopP: Nucleus sampling threshold (default: 0.9)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perplexity-search.action.d.ts","sourceRoot":"","sources":["../../../src/custom/web/perplexity-search.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IAElD
|
|
1
|
+
{"version":3,"file":"perplexity-search.action.d.ts","sourceRoot":"","sources":["../../../src/custom/web/perplexity-search.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IAElD;;;;;;;;;;;;;;;;;;OAkBG;cACa,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA6JvF;;OAEG;IACH,OAAO,CAAC,cAAc;IAMtB;;OAEG;IACH,OAAO,CAAC,aAAa;IAKrB;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,OAAO,CAAC,eAAe;IAOvB;;OAEG;IACH,OAAO,CAAC,cAAc;IAQtB;;OAEG;IACH,OAAO,CAAC,iBAAiB;CAO5B"}
|
|
@@ -31,7 +31,7 @@ import { getApiIntegrationsConfig } from "../../config.js";
|
|
|
31
31
|
* Value: 'climate change research papers 2024'
|
|
32
32
|
* }, {
|
|
33
33
|
* Name: 'Model',
|
|
34
|
-
* Value: '
|
|
34
|
+
* Value: 'sonar-pro'
|
|
35
35
|
* }, {
|
|
36
36
|
* Name: 'ReturnRelatedQuestions',
|
|
37
37
|
* Value: true
|
|
@@ -60,9 +60,10 @@ let PerplexitySearchAction = class PerplexitySearchAction extends BaseAction {
|
|
|
60
60
|
*
|
|
61
61
|
* @param params - The action parameters containing:
|
|
62
62
|
* - Query: Search query text (required)
|
|
63
|
-
* - Model: Perplexity model to use (default: '
|
|
64
|
-
* Options:
|
|
65
|
-
*
|
|
63
|
+
* - Model: Perplexity model to use (default: 'sonar')
|
|
64
|
+
* Options: sonar, sonar-pro, sonar-reasoning-pro, sonar-deep-research
|
|
65
|
+
* Note: the legacy llama-3.1-sonar-* identifiers were retired by Perplexity in
|
|
66
|
+
* February 2025 and now fail with an invalid-model error.
|
|
66
67
|
* - MaxTokens: Maximum tokens in response (default: 1000)
|
|
67
68
|
* - Temperature: Sampling temperature 0-2 (default: 0.2)
|
|
68
69
|
* - TopP: Nucleus sampling threshold (default: 0.9)
|
|
@@ -87,7 +88,7 @@ let PerplexitySearchAction = class PerplexitySearchAction extends BaseAction {
|
|
|
87
88
|
return this.createErrorResult("Perplexity API key not found. Set perplexityApiKey in mj.config.cjs or PERPLEXITY_API_KEY environment variable", "MISSING_API_KEY");
|
|
88
89
|
}
|
|
89
90
|
// Get optional parameters
|
|
90
|
-
const model = this.getStringParam(params, 'model') || '
|
|
91
|
+
const model = this.getStringParam(params, 'model') || 'sonar';
|
|
91
92
|
const maxTokens = this.getNumericParam(params, 'maxtokens', 1000);
|
|
92
93
|
const temperature = this.getNumericParam(params, 'temperature', 0.2);
|
|
93
94
|
const topP = this.getNumericParam(params, 'topp', 0.9);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perplexity-search.action.js","sourceRoot":"","sources":["../../../src/custom/web/perplexity-search.action.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU;IAElD
|
|
1
|
+
{"version":3,"file":"perplexity-search.action.js","sourceRoot":"","sources":["../../../src/custom/web/perplexity-search.action.ts"],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B,UAAU,EAAE,IAAI;SACnB,CAAC;IACN,CAAC;CACJ,CAAA;AA3OY,sBAAsB;IADlC,aAAa,CAAC,UAAU,EAAE,mBAAmB,CAAC;GAClC,sBAAsB,CA2OlC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/core-actions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.1.0-edge.
|
|
4
|
+
"version": "6.1.0-edge.3",
|
|
5
5
|
"description": "Library of generated and custom actions for the core MemberJunction framework. This library is maintained by MemberJunction and includes actions for use within the framework itself.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"/dist"
|
|
10
10
|
],
|
|
11
11
|
"author": "MemberJunction.com",
|
|
12
|
-
"license": "
|
|
12
|
+
"license": "BUSL-1.1",
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@csstools/css-calc": "^3.0.0",
|
|
15
15
|
"@csstools/css-color-parser": "^4.0.1",
|
|
@@ -19,43 +19,43 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@asamuzakjp/css-color": "^4.1.2",
|
|
21
21
|
"@dagrejs/dagre": "^1.1.8",
|
|
22
|
-
"@memberjunction/actions": "6.1.0-edge.
|
|
23
|
-
"@memberjunction/actions-base": "6.1.0-edge.
|
|
24
|
-
"@memberjunction/ai": "6.1.0-edge.
|
|
25
|
-
"@memberjunction/ai-agent-manager": "6.1.0-edge.
|
|
26
|
-
"@memberjunction/ai-agents": "6.1.0-edge.
|
|
27
|
-
"@memberjunction/ai-betty-bot": "6.1.0-edge.
|
|
28
|
-
"@memberjunction/ai-core-plus": "6.1.0-edge.
|
|
29
|
-
"@memberjunction/ai-engine-base": "6.1.0-edge.
|
|
30
|
-
"@memberjunction/ai-mcp-client": "6.1.0-edge.
|
|
31
|
-
"@memberjunction/ai-prompts": "6.1.0-edge.
|
|
32
|
-
"@memberjunction/ai-vector-sync": "6.1.0-edge.
|
|
33
|
-
"@memberjunction/aiengine": "6.1.0-edge.
|
|
34
|
-
"@memberjunction/clustering-engine": "6.1.0-edge.
|
|
35
|
-
"@memberjunction/code-execution": "6.1.0-edge.
|
|
36
|
-
"@memberjunction/communication-engine": "6.1.0-edge.
|
|
37
|
-
"@memberjunction/communication-types": "6.1.0-edge.
|
|
38
|
-
"@memberjunction/content-autotagging": "6.1.0-edge.
|
|
39
|
-
"@memberjunction/core": "6.1.0-edge.
|
|
40
|
-
"@memberjunction/core-entities": "6.1.0-edge.
|
|
41
|
-
"@memberjunction/core-entities-server": "6.1.0-edge.
|
|
42
|
-
"@memberjunction/esignature": "6.1.0-edge.
|
|
43
|
-
"@memberjunction/export-engine": "6.1.0-edge.
|
|
44
|
-
"@memberjunction/external-change-detection": "6.1.0-edge.
|
|
45
|
-
"@memberjunction/generic-database-provider": "6.1.0-edge.
|
|
46
|
-
"@memberjunction/geo-core": "6.1.0-edge.
|
|
47
|
-
"@memberjunction/global": "6.1.0-edge.
|
|
48
|
-
"@memberjunction/integration-engine": "6.1.0-edge.
|
|
49
|
-
"@memberjunction/interactive-component-types": "6.1.0-edge.
|
|
50
|
-
"@memberjunction/lists": "6.1.0-edge.
|
|
51
|
-
"@memberjunction/lists-base": "6.1.0-edge.
|
|
52
|
-
"@memberjunction/react-linter": "6.1.0-edge.
|
|
53
|
-
"@memberjunction/record-set-processor": "6.1.0-edge.
|
|
54
|
-
"@memberjunction/record-set-processor-base": "6.1.0-edge.
|
|
55
|
-
"@memberjunction/search-engine": "6.1.0-edge.
|
|
56
|
-
"@memberjunction/sql-dialect": "6.1.0-edge.
|
|
57
|
-
"@memberjunction/sqlserver-dataprovider": "6.1.0-edge.
|
|
58
|
-
"@memberjunction/storage": "6.1.0-edge.
|
|
22
|
+
"@memberjunction/actions": "6.1.0-edge.3",
|
|
23
|
+
"@memberjunction/actions-base": "6.1.0-edge.3",
|
|
24
|
+
"@memberjunction/ai": "6.1.0-edge.3",
|
|
25
|
+
"@memberjunction/ai-agent-manager": "6.1.0-edge.3",
|
|
26
|
+
"@memberjunction/ai-agents": "6.1.0-edge.3",
|
|
27
|
+
"@memberjunction/ai-betty-bot": "6.1.0-edge.3",
|
|
28
|
+
"@memberjunction/ai-core-plus": "6.1.0-edge.3",
|
|
29
|
+
"@memberjunction/ai-engine-base": "6.1.0-edge.3",
|
|
30
|
+
"@memberjunction/ai-mcp-client": "6.1.0-edge.3",
|
|
31
|
+
"@memberjunction/ai-prompts": "6.1.0-edge.3",
|
|
32
|
+
"@memberjunction/ai-vector-sync": "6.1.0-edge.3",
|
|
33
|
+
"@memberjunction/aiengine": "6.1.0-edge.3",
|
|
34
|
+
"@memberjunction/clustering-engine": "6.1.0-edge.3",
|
|
35
|
+
"@memberjunction/code-execution": "6.1.0-edge.3",
|
|
36
|
+
"@memberjunction/communication-engine": "6.1.0-edge.3",
|
|
37
|
+
"@memberjunction/communication-types": "6.1.0-edge.3",
|
|
38
|
+
"@memberjunction/content-autotagging": "6.1.0-edge.3",
|
|
39
|
+
"@memberjunction/core": "6.1.0-edge.3",
|
|
40
|
+
"@memberjunction/core-entities": "6.1.0-edge.3",
|
|
41
|
+
"@memberjunction/core-entities-server": "6.1.0-edge.3",
|
|
42
|
+
"@memberjunction/esignature": "6.1.0-edge.3",
|
|
43
|
+
"@memberjunction/export-engine": "6.1.0-edge.3",
|
|
44
|
+
"@memberjunction/external-change-detection": "6.1.0-edge.3",
|
|
45
|
+
"@memberjunction/generic-database-provider": "6.1.0-edge.3",
|
|
46
|
+
"@memberjunction/geo-core": "6.1.0-edge.3",
|
|
47
|
+
"@memberjunction/global": "6.1.0-edge.3",
|
|
48
|
+
"@memberjunction/integration-engine": "6.1.0-edge.3",
|
|
49
|
+
"@memberjunction/interactive-component-types": "6.1.0-edge.3",
|
|
50
|
+
"@memberjunction/lists": "6.1.0-edge.3",
|
|
51
|
+
"@memberjunction/lists-base": "6.1.0-edge.3",
|
|
52
|
+
"@memberjunction/react-linter": "6.1.0-edge.3",
|
|
53
|
+
"@memberjunction/record-set-processor": "6.1.0-edge.3",
|
|
54
|
+
"@memberjunction/record-set-processor-base": "6.1.0-edge.3",
|
|
55
|
+
"@memberjunction/search-engine": "6.1.0-edge.3",
|
|
56
|
+
"@memberjunction/sql-dialect": "6.1.0-edge.3",
|
|
57
|
+
"@memberjunction/sqlserver-dataprovider": "6.1.0-edge.3",
|
|
58
|
+
"@memberjunction/storage": "6.1.0-edge.3",
|
|
59
59
|
"@types/d3-cloud": "^1.2.9",
|
|
60
60
|
"@types/d3-force": "^3.0.10",
|
|
61
61
|
"@types/d3-hierarchy": "^3.1.7",
|