@cursor/july 0.1.80 → 0.1.82
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/AGENTS.md +0 -12
- package/dist/channels/github/cursor-account.d.ts +11 -0
- package/dist/channels/github/cursor-account.d.ts.map +1 -1
- package/dist/channels/github/cursor-account.js +13 -0
- package/dist/channels/github/github-channel.d.ts.map +1 -1
- package/dist/channels/github/github-channel.js +29 -1
- package/dist/channels/github/types.d.ts +8 -0
- package/dist/channels/github/types.d.ts.map +1 -1
- package/dist/channels/origin/origin-channel.d.ts.map +1 -1
- package/dist/channels/origin/origin-channel.js +32 -10
- package/dist/channels/origin/types.d.ts +7 -0
- package/dist/channels/origin/types.d.ts.map +1 -1
- package/dist/channels/slack/cursor-account.d.ts.map +1 -1
- package/dist/channels/slack/cursor-account.js +2 -2
- package/dist/channels/slack/dispatch.d.ts +3 -0
- package/dist/channels/slack/dispatch.d.ts.map +1 -1
- package/dist/channels/slack/dispatch.js +18 -18
- package/dist/channels/slack/interactive.d.ts +2 -0
- package/dist/channels/slack/interactive.d.ts.map +1 -1
- package/dist/channels/slack/interactive.js +4 -16
- package/dist/channels/slack/slack-channel.d.ts +1 -1
- package/dist/channels/slack/slack-channel.d.ts.map +1 -1
- package/dist/channels/slack/slack-channel.js +21 -10
- package/dist/channels/slack/types.d.ts +7 -0
- package/dist/channels/slack/types.d.ts.map +1 -1
- package/dist/channels.d.ts.map +1 -1
- package/dist/channels.js +4 -0
- package/dist/continuation.d.ts +20 -0
- package/dist/continuation.d.ts.map +1 -0
- package/dist/continuation.js +18 -0
- package/dist/docs/404.html +1 -1
- package/dist/docs/ab.html +2 -2
- package/dist/docs/assets/{app.e4_wtjUS.js → app.BEHVaPKt.js} +1 -1
- package/dist/docs/assets/chunks/{@localSearchIndexroot.BGiMJpnL.js → @localSearchIndexroot.Vvio4stV.js} +1 -1
- package/dist/docs/assets/chunks/{VPLocalSearchBox.DbdzyEie.js → VPLocalSearchBox.D2-5PKih.js} +1 -1
- package/dist/docs/assets/chunks/{theme.D8HpLrLK.js → theme.uNqJ4MUO.js} +2 -2
- package/dist/docs/building-with-agents.html +2 -2
- package/dist/docs/concepts.html +2 -2
- package/dist/docs/deployment.html +2 -2
- package/dist/docs/evals.html +2 -2
- package/dist/docs/example-agents/approval-buddy.html +2 -2
- package/dist/docs/example-agents/benny.html +2 -2
- package/dist/docs/example-agents/bugbot.html +2 -2
- package/dist/docs/example-agents/codebase-wiki.html +2 -2
- package/dist/docs/example-agents/codeowners-review.html +2 -2
- package/dist/docs/example-agents/concierge.html +2 -2
- package/dist/docs/example-agents/fsd.html +2 -2
- package/dist/docs/example-agents/index.html +2 -2
- package/dist/docs/example-agents/knowledge-base.html +2 -2
- package/dist/docs/example-agents/oncall.html +2 -2
- package/dist/docs/example-agents/security-reviewer.html +2 -2
- package/dist/docs/example-agents/slack-agent.html +2 -2
- package/dist/docs/example-agents/weather-agent.html +2 -2
- package/dist/docs/guides/agent-to-agent.html +2 -2
- package/dist/docs/guides/cloud-runtime.html +2 -2
- package/dist/docs/guides/convert-automation.html +2 -2
- package/dist/docs/guides/github.html +2 -2
- package/dist/docs/guides/human-in-the-loop.html +2 -2
- package/dist/docs/guides/mcp-oauth.html +2 -2
- package/dist/docs/guides/opentelemetry.html +2 -2
- package/dist/docs/guides/slack.html +2 -2
- package/dist/docs/guides/webhooks.html +2 -2
- package/dist/docs/hillclimbing.html +2 -2
- package/dist/docs/index.html +2 -2
- package/dist/docs/quickstart.html +2 -2
- package/dist/docs/reference/agent-config.html +2 -2
- package/dist/docs/reference/artifacts.html +2 -2
- package/dist/docs/reference/channels.html +2 -2
- package/dist/docs/reference/cli.html +2 -2
- package/dist/docs/reference/connections.html +2 -2
- package/dist/docs/reference/hooks.html +2 -2
- package/dist/docs/reference/http-api.html +2 -2
- package/dist/docs/reference/instructions.html +2 -2
- package/dist/docs/reference/playground.html +2 -2
- package/dist/docs/reference/project-layout.html +2 -2
- package/dist/docs/reference/prompt.html +2 -2
- package/dist/docs/reference/schedules.html +2 -2
- package/dist/docs/reference/sessions.html +2 -2
- package/dist/docs/reference/skills.html +2 -2
- package/dist/docs/reference/subagents.html +2 -2
- package/dist/docs/reference/tools.html +2 -2
- package/dist/docs/scaffolding-agents.html +2 -2
- package/dist/docs/storage.html +2 -2
- package/dist/docs/templates/agentic-owners.html +2 -2
- package/dist/docs/templates/demo.html +2 -2
- package/dist/docs/templates/pr-autofixer.html +2 -2
- package/dist/docs/templates/security-reviewer.html +2 -2
- package/dist/docs/templates/triage.html +2 -2
- package/dist/docs/troubleshooting.html +2 -2
- package/dist/files.d.ts +9 -3
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +9 -3
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/internal/continuation-channel.d.ts +29 -0
- package/dist/internal/continuation-channel.d.ts.map +1 -0
- package/dist/internal/continuation-channel.js +88 -0
- package/dist/internal/continuation-identity.d.ts +95 -0
- package/dist/internal/continuation-identity.d.ts.map +1 -0
- package/dist/internal/continuation-identity.js +445 -0
- package/dist/internal/deploy-manifest.d.ts +12 -2
- package/dist/internal/deploy-manifest.d.ts.map +1 -1
- package/dist/internal/deploy-manifest.js +15 -7
- package/dist/internal/discovery.d.ts.map +1 -1
- package/dist/internal/discovery.js +32 -5
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +18 -8
- package/dist/internal/session-engine.d.ts +24 -0
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +104 -34
- package/dist/internal/session-store.d.ts.map +1 -1
- package/dist/internal/session-store.js +6 -0
- package/dist/internal/skills-sync.d.ts +25 -0
- package/dist/internal/skills-sync.d.ts.map +1 -0
- package/dist/internal/skills-sync.js +96 -0
- package/dist/playground/assets/{index-DJzcIeGt.css → index-ChETdG-_.css} +1 -1
- package/dist/playground/assets/{index-K3Sxyx0I.js → index-CkuIrhg4.js} +3 -3
- package/dist/playground/index.html +2 -2
- package/dist/types.d.ts +44 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/channels/github/cursor-account.ts +20 -0
- package/src/channels/github/github-channel.ts +52 -1
- package/src/channels/github/types.ts +8 -0
- package/src/channels/origin/origin-channel.ts +48 -10
- package/src/channels/origin/types.ts +7 -0
- package/src/channels/slack/cursor-account.ts +1 -0
- package/src/channels/slack/dispatch.ts +44 -2
- package/src/channels/slack/interactive.ts +5 -0
- package/src/channels/slack/slack-channel.ts +23 -2
- package/src/channels/slack/types.ts +7 -0
- package/src/channels.ts +7 -0
- package/src/continuation.ts +49 -0
- package/src/files.ts +10 -3
- package/src/index.ts +30 -1
- package/src/internal/continuation-channel.ts +129 -0
- package/src/internal/continuation-identity.ts +597 -0
- package/src/internal/deploy-manifest.ts +36 -3
- package/src/internal/discovery.ts +40 -2
- package/src/internal/server.ts +23 -9
- package/src/internal/session-engine.ts +132 -37
- package/src/internal/session-store.ts +6 -0
- package/src/internal/skills-sync.ts +107 -0
- package/src/types.ts +55 -0
package/src/types.ts
CHANGED
|
@@ -11,9 +11,21 @@
|
|
|
11
11
|
import type { InteractionUpdate, SDKCustomTool, ToolName } from "@cursor/sdk";
|
|
12
12
|
import type { z } from "zod";
|
|
13
13
|
import type { ABConfigFile } from "./ab.js";
|
|
14
|
+
import type {
|
|
15
|
+
ContinuationClaim,
|
|
16
|
+
ContinuationIdentity,
|
|
17
|
+
MailboxContinuation,
|
|
18
|
+
} from "./continuation.js";
|
|
14
19
|
import type { OtelConfig, OtelDefinition } from "./otel.js";
|
|
15
20
|
import type { StorageDefinition } from "./storage.js";
|
|
16
21
|
|
|
22
|
+
export type {
|
|
23
|
+
ContinuationClaim,
|
|
24
|
+
ContinuationIdentity,
|
|
25
|
+
ConversationType,
|
|
26
|
+
MailboxContinuation,
|
|
27
|
+
} from "./continuation.js";
|
|
28
|
+
|
|
17
29
|
// ============================================================================
|
|
18
30
|
// JSON
|
|
19
31
|
// ============================================================================
|
|
@@ -240,8 +252,26 @@ export interface AgentConfig {
|
|
|
240
252
|
* it only shapes what the model can call.
|
|
241
253
|
*/
|
|
242
254
|
tools?: ToolName[];
|
|
255
|
+
/**
|
|
256
|
+
* Hosted architecture this agent deploys onto. Omit or `"v1"` keeps the
|
|
257
|
+
* current control plane and engine-minted conversation keys. `"v2"`
|
|
258
|
+
* deploys onto the v2 control plane (v2 APIs and schemas). Omitted
|
|
259
|
+
* channel `continuation` then inherits from declared events (`github.pr/v2`,
|
|
260
|
+
* `github.issue/v2`, `github.none/v2`, `slack.thread/v2`, `origin.pr/v2`,
|
|
261
|
+
* `none/v2`). An explicit per-channel selector still overrides.
|
|
262
|
+
*
|
|
263
|
+
* ```ts
|
|
264
|
+
* export default defineAgent({
|
|
265
|
+
* architecture: "v2",
|
|
266
|
+
* });
|
|
267
|
+
* ```
|
|
268
|
+
*/
|
|
269
|
+
architecture?: AgentArchitecture;
|
|
243
270
|
}
|
|
244
271
|
|
|
272
|
+
/** Hosted architecture on {@link AgentConfig.architecture}. */
|
|
273
|
+
export type AgentArchitecture = "v1" | "v2";
|
|
274
|
+
|
|
245
275
|
/**
|
|
246
276
|
* Built-in tools on {@link AgentConfig.builtinTools}. Each enabled
|
|
247
277
|
* capability materializes as ordinary server tools at discovery time, so
|
|
@@ -1595,8 +1625,21 @@ export interface SendMessageOptions {
|
|
|
1595
1625
|
* Channel-local continuation token. When it addresses an existing session
|
|
1596
1626
|
* the message is a follow-up; otherwise a new session is created keyed by
|
|
1597
1627
|
* this token. Omit to always create a fresh session.
|
|
1628
|
+
*
|
|
1629
|
+
* `/v2` selectors refuse this field — pass {@link mailboxContinuation} or
|
|
1630
|
+
* a structured {@link claim} instead.
|
|
1598
1631
|
*/
|
|
1599
1632
|
continuationToken?: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* v2 mailbox stamp from the control plane (or the pack's builtin extract
|
|
1635
|
+
* on local serve). Ignored on v1.
|
|
1636
|
+
*/
|
|
1637
|
+
mailboxContinuation?: MailboxContinuation;
|
|
1638
|
+
/**
|
|
1639
|
+
* v2 host join. Never a concatenated `pr:owner/repo#N` string — the
|
|
1640
|
+
* registry mints `cont:` bytes from this claim.
|
|
1641
|
+
*/
|
|
1642
|
+
claim?: ContinuationClaim;
|
|
1600
1643
|
/** Initial channel state for newly created sessions. */
|
|
1601
1644
|
state?: JsonValue;
|
|
1602
1645
|
/**
|
|
@@ -2057,6 +2100,12 @@ export type ChannelDefinition<TState = JsonValue> = ChannelConfig<TState> &
|
|
|
2057
2100
|
export interface HttpChannelConfig {
|
|
2058
2101
|
/** Route auth chain. Defaults to `[localDevStrict()]`. */
|
|
2059
2102
|
auth?: AuthPolicy[];
|
|
2103
|
+
/**
|
|
2104
|
+
* Continuation selector. Omitted inherits {@link AgentConfig.architecture}:
|
|
2105
|
+
* `"none/v1"` unless the agent set `architecture: "v2"` (then `"none/v2"`
|
|
2106
|
+
* → `evt:`). Override with an explicit `"none/v1"` or `"none/v2"`.
|
|
2107
|
+
*/
|
|
2108
|
+
continuation?: ContinuationIdentity;
|
|
2060
2109
|
/**
|
|
2061
2110
|
* Transform the inbound message before the agent sees it (e.g. prepend
|
|
2062
2111
|
* request-specific context).
|
|
@@ -2549,6 +2598,12 @@ export interface ResolvedAgent {
|
|
|
2549
2598
|
hosting?: AgentHostingOptions;
|
|
2550
2599
|
/** Validated turn admission limits from {@link AgentConfig.concurrency}. */
|
|
2551
2600
|
concurrency?: AgentConcurrencyOptions;
|
|
2601
|
+
/**
|
|
2602
|
+
* Validated architecture from {@link AgentConfig.architecture}.
|
|
2603
|
+
* `"v2"` deploys onto the v2 control plane and stamps kind `/v2`
|
|
2604
|
+
* continuation defaults onto channels that omitted a selector.
|
|
2605
|
+
*/
|
|
2606
|
+
architecture?: AgentArchitecture;
|
|
2552
2607
|
tools: DiscoveredTool[];
|
|
2553
2608
|
skills: DiscoveredSkill[];
|
|
2554
2609
|
connections: DiscoveredConnection[];
|