@opengeni/contracts 5.1.1-canary.36079201993001 → 5.1.1
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/atlassian.js +1 -1
- package/dist/{chunk-2KSPFPTV.js → chunk-4X45RNDK.js} +5 -33
- package/dist/chunk-4X45RNDK.js.map +1 -0
- package/dist/{chunk-5HUNU3AG.js → chunk-XWQOCVP6.js} +2 -2
- package/dist/connect.js +1 -1
- package/dist/connection-authority.js +2 -2
- package/dist/google-drive.js +1 -1
- package/dist/host-mcp-bindings.js +2 -2
- package/dist/index.d.ts +11 -66
- package/dist/index.js +1 -1
- package/dist/personal-github.js +1 -1
- package/package.json +1 -1
- package/src/agent-learning.ts +2 -2
- package/src/index.ts +4 -45
- package/dist/chunk-2KSPFPTV.js.map +0 -1
- /package/dist/{chunk-5HUNU3AG.js.map → chunk-XWQOCVP6.js.map} +0 -0
package/dist/atlassian.js
CHANGED
|
@@ -313,8 +313,8 @@ var AgentLearningDefaults = z6.object({
|
|
|
313
313
|
}).strict();
|
|
314
314
|
var DEFAULT_AGENT_LEARNING = Object.freeze({
|
|
315
315
|
knowledge: "automatic",
|
|
316
|
-
instructions: "
|
|
317
|
-
skills: "
|
|
316
|
+
instructions: "review_first",
|
|
317
|
+
skills: "review_first"
|
|
318
318
|
});
|
|
319
319
|
var AgentLearningOverrides = AgentLearningDefaults.partial();
|
|
320
320
|
var AgentLearningOverridePatch = z6.object({
|
|
@@ -10489,7 +10489,6 @@ var FIRST_PARTY_MCP_TOOL_NAMES = [
|
|
|
10489
10489
|
"environment_set_variable",
|
|
10490
10490
|
"capability_catalog_search",
|
|
10491
10491
|
"capability_authorization_request",
|
|
10492
|
-
"custom_mcp_setup_request",
|
|
10493
10492
|
"github_connect_link",
|
|
10494
10493
|
"github_repositories_list",
|
|
10495
10494
|
"social_connections_list",
|
|
@@ -13530,17 +13529,7 @@ var RotateSessionMcpCredentialsRequest = z48.object({
|
|
|
13530
13529
|
expectedCredentialVersion: z48.number().int().min(1).max(2147483646),
|
|
13531
13530
|
expectedServerUrl: httpsUrl,
|
|
13532
13531
|
headers: z48.record(z48.string(), z48.string())
|
|
13533
|
-
}).strict()
|
|
13534
|
-
z48.object({
|
|
13535
|
-
id: SessionMcpServerId,
|
|
13536
|
-
expectedCredentialVersion: z48.number().int().min(1).max(2147483646),
|
|
13537
|
-
expectedServerUrl: httpsUrl,
|
|
13538
|
-
/** Resolve from the authenticated caller's native account inventory. */
|
|
13539
|
-
nativeConnectionId: z48.string().uuid(),
|
|
13540
|
-
/** Explicit opt-in; must match the selected account's bound MCP URL. */
|
|
13541
|
-
replacementServerUrl: httpsUrl.optional()
|
|
13542
|
-
}).strict()
|
|
13543
|
-
)
|
|
13532
|
+
}).strict()
|
|
13544
13533
|
).min(1).max(64)
|
|
13545
13534
|
}).strict();
|
|
13546
13535
|
var RotateSessionMcpCredentialsReceipt = z48.object({
|
|
@@ -14536,7 +14525,7 @@ Required native document reports (persisted; completion requires current-head in
|
|
|
14536
14525
|
return `Previous session goal (frozen at logical-turn acceptance; objective revision ${snapshot.objectiveRevision}; status completed): ${snapshot.text}
|
|
14537
14526
|
Success criteria: ${snapshot.successCriteria ?? "none specified"}.${rootConstraints} This goal is complete and remains as historical context. If the user provides a new long-running objective, create it with opengeni__goal_set; goal_update cannot revise a completed goal.`;
|
|
14538
14527
|
}
|
|
14539
|
-
const policy = snapshot.mutationPolicy === "review_changes" ? "Semantic changes are proposals until a user applies them." : "You may
|
|
14528
|
+
const policy = snapshot.mutationPolicy === "review_changes" ? "Semantic changes are proposals until a user applies them." : snapshot.mutationPolicy === "preserve_intent" ? "You may directly refine wording without changing intent; adaptations and replacements are proposals until a user applies them." : "You may autonomously refine, adapt, or replace the goal when explicit user direction or material new evidence justifies it.";
|
|
14540
14529
|
return `Standing session goal (frozen at logical-turn acceptance; objective revision ${snapshot.objectiveRevision}; status ${snapshot.state}): ${snapshot.text}
|
|
14541
14530
|
Success criteria: ${snapshot.successCriteria ?? "none specified"}.${rootConstraints}${reports}
|
|
14542
14531
|
Mutation policy: ${snapshot.mutationPolicy}. ${policy} Treat later ordinary messages as additional context unless they explicitly redirect this objective. Root constraints are user/API authority and cannot be widened, removed, or rewritten by an agent. Semantic goal changes use opengeni__goal_update with the expected objective revision, change kind, and rationale.`;
|
|
@@ -18613,25 +18602,8 @@ var ToolAuthNeededPayload = z48.object({
|
|
|
18613
18602
|
action: z48.enum(["connect", "add_credentials", "enable"]),
|
|
18614
18603
|
rationale: z48.string().min(1).max(2e3),
|
|
18615
18604
|
requiredVariables: z48.array(VariableSetVariableName).max(64).default([])
|
|
18616
|
-
}).optional(),
|
|
18617
|
-
/** An agent suggestion, not a catalog entry or authority to contact this URL. */
|
|
18618
|
-
setupRequest: z48.object({
|
|
18619
|
-
kind: z48.literal("mcp"),
|
|
18620
|
-
name: z48.string().trim().min(1).max(256),
|
|
18621
|
-
endpointUrl: z48.string().url().max(2048).refine((url) => {
|
|
18622
|
-
const parsed = new URL(url);
|
|
18623
|
-
return parsed.protocol === "https:" && !parsed.username && !parsed.password && !parsed.hash && !parsed.search;
|
|
18624
|
-
}),
|
|
18625
|
-
rationale: z48.string().trim().min(1).max(2e3)
|
|
18626
18605
|
}).optional()
|
|
18627
18606
|
}).superRefine((payload, context) => {
|
|
18628
|
-
if (payload.setupRequest && (payload.capability || payload.authoritySource === "host")) {
|
|
18629
|
-
context.addIssue({
|
|
18630
|
-
code: "custom",
|
|
18631
|
-
message: "A setup proposal cannot carry connection authority",
|
|
18632
|
-
path: ["setupRequest"]
|
|
18633
|
-
});
|
|
18634
|
-
}
|
|
18635
18607
|
if (payload.authoritySource === "host") {
|
|
18636
18608
|
if (payload.reason !== "unsupported_auth") {
|
|
18637
18609
|
context.addIssue({
|
|
@@ -23410,4 +23382,4 @@ export {
|
|
|
23410
23382
|
AtlassianDisconnectRequest,
|
|
23411
23383
|
atlassianScopesAllowRead
|
|
23412
23384
|
};
|
|
23413
|
-
//# sourceMappingURL=chunk-
|
|
23385
|
+
//# sourceMappingURL=chunk-4X45RNDK.js.map
|