@intentic/sandbox-contract 1.429.0 → 1.430.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/dist/contracts/accounts.contract.d.ts +7 -0
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.d.ts +24 -0
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +84 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/bookmarks.contract.d.ts +101 -0
- package/dist/contracts/bookmarks.contract.d.ts.map +1 -0
- package/dist/contracts/bookmarks.contract.js +51 -0
- package/dist/contracts/bookmarks.contract.js.map +1 -0
- package/dist/contracts/browser.contract.d.ts +176 -0
- package/dist/contracts/browser.contract.d.ts.map +1 -0
- package/dist/contracts/browser.contract.js +150 -0
- package/dist/contracts/browser.contract.js.map +1 -0
- package/dist/contracts/capabilities.contract.d.ts +36 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/device.contract.d.ts +60 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/device.contract.js +4 -0
- package/dist/contracts/device.contract.js.map +1 -1
- package/dist/contracts/remote.contract.d.ts +120 -0
- package/dist/contracts/remote.contract.d.ts.map +1 -0
- package/dist/contracts/remote.contract.js +80 -0
- package/dist/contracts/remote.contract.js.map +1 -0
- package/dist/contracts/runner.contract.d.ts +14 -14
- package/dist/contracts/seal.contract.d.ts +20 -0
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +26 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +150 -0
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +57 -1
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/translator.contract.d.ts +7 -0
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/events/failure-rows.d.ts +2 -2
- package/dist/events/failure-rows.d.ts.map +1 -1
- package/dist/events/failure-rows.js +13 -13
- package/dist/events/failure-rows.js.map +1 -1
- package/dist/events/resume.d.ts.map +1 -1
- package/dist/events/resume.js +12 -12
- package/dist/events/resume.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/events/system-events.d.ts +16 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/index.d.ts +10 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/netd/browser-wire.d.ts +50 -1
- package/dist/netd/browser-wire.d.ts.map +1 -1
- package/dist/netd/browser-wire.js +22 -0
- package/dist/netd/browser-wire.js.map +1 -1
- package/dist/netd/generated/browser-wire.d.ts +135 -0
- package/dist/netd/generated/browser-wire.d.ts.map +1 -1
- package/dist/netd/generated/wire.d.ts +14 -0
- package/dist/netd/generated/wire.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +6 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +1 -0
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +18 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +4 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/schemas/agent.d.ts +16 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +3 -4
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +8 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +12 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/bookmarks.d.ts +85 -0
- package/dist/schemas/bookmarks.d.ts.map +1 -0
- package/dist/schemas/bookmarks.js +56 -0
- package/dist/schemas/bookmarks.js.map +1 -0
- package/dist/schemas/browser-tools.d.ts +167 -0
- package/dist/schemas/browser-tools.d.ts.map +1 -0
- package/dist/schemas/browser-tools.js +121 -0
- package/dist/schemas/browser-tools.js.map +1 -0
- package/dist/schemas/browsing.d.ts +139 -0
- package/dist/schemas/browsing.d.ts.map +1 -0
- package/dist/schemas/browsing.js +83 -0
- package/dist/schemas/browsing.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +36 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +3 -0
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/context-trim.js +3 -3
- package/dist/schemas/context-trim.js.map +1 -1
- package/dist/schemas/device-remote.d.ts +84 -0
- package/dist/schemas/device-remote.d.ts.map +1 -0
- package/dist/schemas/device-remote.js +54 -0
- package/dist/schemas/device-remote.js.map +1 -0
- package/dist/schemas/hosts.d.ts +6 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +6 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/keep-warm.d.ts.map +1 -1
- package/dist/schemas/keep-warm.js +2 -3
- package/dist/schemas/keep-warm.js.map +1 -1
- package/dist/schemas/providers/handoff.d.ts.map +1 -1
- package/dist/schemas/providers/handoff.js +11 -11
- package/dist/schemas/providers/handoff.js.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +14 -0
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +6 -2
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/schemas/providers/switched.js +1 -1
- package/dist/schemas/providers/switched.js.map +1 -1
- package/dist/schemas/queued-trial-retry.d.ts +7 -0
- package/dist/schemas/queued-trial-retry.d.ts.map +1 -0
- package/dist/schemas/queued-trial-retry.js +8 -0
- package/dist/schemas/queued-trial-retry.js.map +1 -0
- package/dist/schemas/remote-access.d.ts +137 -0
- package/dist/schemas/remote-access.d.ts.map +1 -0
- package/dist/schemas/remote-access.js +71 -0
- package/dist/schemas/remote-access.js.map +1 -0
- package/dist/schemas/seal.d.ts +1 -1
- package/dist/schemas/seal.d.ts.map +1 -1
- package/dist/schemas/seal.js +1 -1
- package/dist/schemas/seal.js.map +1 -1
- package/dist/schemas/settings.d.ts +26 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +5 -0
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/terminal.d.ts +136 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +41 -1
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/state/auth-state.d.ts.map +1 -1
- package/dist/state/auth-state.js +1 -0
- package/dist/state/auth-state.js.map +1 -1
- package/dist/state/definition.d.ts +52 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/runtime-state.d.ts +3 -0
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +1 -0
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/text/land-rows.d.ts.map +1 -1
- package/dist/text/land-rows.js +13 -17
- package/dist/text/land-rows.js.map +1 -1
- package/dist/text/notice-rows.js +6 -6
- package/dist/text/notice-rows.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/bookmarks.contract.ts +66 -0
- package/src/contracts/browser.contract.ts +181 -0
- package/src/contracts/device.contract.ts +15 -0
- package/src/contracts/remote.contract.ts +104 -0
- package/src/contracts/system.contract.ts +78 -0
- package/src/events/failure-rows.ts +13 -14
- package/src/events/resume.test.ts +3 -3
- package/src/events/resume.ts +12 -18
- package/src/events/sandbox-notice.ts +2 -0
- package/src/index.ts +15 -6
- package/src/netd/browser-wire.ts +84 -0
- package/src/netd/generated/browser-wire.json +894 -0
- package/src/netd/generated/browser-wire.ts +62 -3
- package/src/netd/generated/netd-wire.json +75 -0
- package/src/netd/generated/wire.ts +11 -2
- package/src/netd/wire-manifests.test.ts +76 -1
- package/src/protocol/ingress-contract.fixture.json +4 -0
- package/src/protocol/raw/raw-json-routes.ts +3 -0
- package/src/protocol/raw/raw-routes.ts +11 -0
- package/src/schemas/agent.ts +3 -4
- package/src/schemas/bookmarks.ts +79 -0
- package/src/schemas/browser-tools.ts +164 -0
- package/src/schemas/browsing.ts +129 -0
- package/src/schemas/capabilities.ts +9 -0
- package/src/schemas/context-trim.test.ts +6 -6
- package/src/schemas/context-trim.ts +3 -3
- package/src/schemas/device-remote.ts +106 -0
- package/src/schemas/hosts.ts +13 -0
- package/src/schemas/keep-warm.test.ts +1 -1
- package/src/schemas/keep-warm.ts +2 -3
- package/src/schemas/providers/handoff.test.ts +8 -10
- package/src/schemas/providers/handoff.ts +11 -12
- package/src/schemas/providers/provider-oauth.ts +10 -2
- package/src/schemas/providers/switched.test.ts +6 -6
- package/src/schemas/providers/switched.ts +1 -1
- package/src/schemas/queued-trial-retry.ts +14 -0
- package/src/schemas/remote-access.ts +140 -0
- package/src/schemas/seal.ts +2 -1
- package/src/schemas/settings.ts +9 -0
- package/src/schemas/terminal.ts +59 -1
- package/src/state/auth-state.ts +3 -0
- package/src/state/runtime-state.ts +4 -0
- package/src/text/land-rows.ts +13 -18
- package/src/text/notice-rows.ts +6 -6
- package/src/text/transcript-fold.test.ts +37 -37
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"land-rows.js","sourceRoot":"","sources":["../../src/text/land-rows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAA0B,MAAM,6BAA6B,CAAC;AAQjF,MAAM,cAAc,GAAG,CAAC,IAA2E,EAAU,EAAE;IAC3G,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;QAC3C,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"land-rows.js","sourceRoot":"","sources":["../../src/text/land-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AAI,CAAC;IAC3F,MAAM,GAAG,GAAkB;QACvB,IAAI,EAAE,QAAQ;QAEd,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,uBAAuB,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QACxH,UAAU,EAAE,UAAU,CAAC;YACnB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,IAAI,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;SACtJ,CAAC;KACL,CAAC;IACF,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QACxC,GAAG,CAAC,YAAY,GAAG,aAAa,CAAC;IACrC,CAAC;IACD,OAAO,GAAG,CAAC;AACf,CAAC,CAAC"}
|
package/dist/text/notice-rows.js
CHANGED
|
@@ -4,8 +4,8 @@ import { freshStartLine, freshStartNotice, handedOffLine, handedOffNotice } from
|
|
|
4
4
|
import { switchedLine, switchedNotice } from "../schemas/providers/switched.js";
|
|
5
5
|
const STARTING_KINDS = new Set(["context_trim", "handoff", "fresh_start", "switched", "workspace_repaired"]);
|
|
6
6
|
const repairedLine = (layers) => layers === 0
|
|
7
|
-
? "This conversation's copy
|
|
8
|
-
: `
|
|
7
|
+
? "This conversation's workspace copy failed to start, so it was rebuilt."
|
|
8
|
+
: `Workspace copy rebuilt; ${String(layers)} dependency ${layers === 1 ? "layer" : "layers"} set aside, reinstall if needed.`;
|
|
9
9
|
export const isStartingFrame = (event) => STARTING_KINDS.has(event.kind);
|
|
10
10
|
export const startingRow = (event) => {
|
|
11
11
|
switch (event.kind) {
|
|
@@ -22,10 +22,10 @@ export const startingRow = (event) => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
const MOVED_LINES = {
|
|
25
|
-
refused: ({ from, to }) => `Ran on ${to}:
|
|
26
|
-
spent: ({ from, to }) => `Ran on ${to}:
|
|
27
|
-
reach: ({ from, to }) => `Ran on ${to}:
|
|
28
|
-
cold: ({ from, to }) => `Moved from ${from} to ${to}
|
|
25
|
+
refused: ({ from, to }) => `Ran on ${to}: ${from}'s plan or organization doesn't allow it.`,
|
|
26
|
+
spent: ({ from, to }) => `Ran on ${to}: ${from} looks used up; pick it in the composer to override.`,
|
|
27
|
+
reach: ({ from, to }) => `Ran on ${to}: this conversation's people may not use ${from}.`,
|
|
28
|
+
cold: ({ from, to }) => `Moved from ${from} to ${to}: more room, and the cache had expired.`,
|
|
29
29
|
};
|
|
30
30
|
export const accountMovedRow = (move) => ({
|
|
31
31
|
role: "notice",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notice-rows.js","sourceRoot":"","sources":["../../src/text/notice-rows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAsB,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACnH,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAMhF,MAAM,cAAc,GAAoC,IAAI,GAAG,CAAwB,CAAC,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAGrK,MAAM,YAAY,GAAG,CAAC,MAAc,EAAU,EAAE,CAC5C,MAAM,KAAK,CAAC;IACR,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"notice-rows.js","sourceRoot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CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CACjE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/sandbox-contract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.430.0",
|
|
4
4
|
"description": "oRPC wire contract for the intentic sandbox daemon, shared by the daemon and its browser client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -395,10 +395,10 @@
|
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
"dependencies": {
|
|
398
|
-
"@intentic/base": "1.
|
|
399
|
-
"@intentic/constants": "1.
|
|
400
|
-
"@intentic/extension-manifest": "1.
|
|
401
|
-
"@intentic/registry": "1.
|
|
398
|
+
"@intentic/base": "1.430.0",
|
|
399
|
+
"@intentic/constants": "1.430.0",
|
|
400
|
+
"@intentic/extension-manifest": "1.430.0",
|
|
401
|
+
"@intentic/registry": "1.430.0",
|
|
402
402
|
"@orpc/contract": "1.16.1",
|
|
403
403
|
"zod": "4.6.7"
|
|
404
404
|
},
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import {
|
|
3
|
+
BookmarkAddSchema,
|
|
4
|
+
BookmarkChangedSchema,
|
|
5
|
+
BookmarkEditSchema,
|
|
6
|
+
BookmarkMoveSchema,
|
|
7
|
+
BookmarkRemoveSchema,
|
|
8
|
+
BookmarksQuerySchema,
|
|
9
|
+
BookmarksSchema,
|
|
10
|
+
} from "../schemas/bookmarks.js";
|
|
11
|
+
|
|
12
|
+
// What a browser profile keeps on purpose (schemas/bookmarks.ts), read whole since a tree is small; every change is
|
|
13
|
+
// pushed as the `bookmarks` runtime domain, so every star, bar and manager open on the profile moves at once. The box
|
|
14
|
+
// itself, like the browsers they belong to (system.contract.ts): no control token reaches them, and only a maintainer,
|
|
15
|
+
// who may drive the browser, reads or changes what it keeps.
|
|
16
|
+
const bookmarksRoute = procedure.meta({ control: "never", floor: "maintainer" });
|
|
17
|
+
|
|
18
|
+
export const bookmarksContract = {
|
|
19
|
+
list: bookmarksRoute
|
|
20
|
+
.route({
|
|
21
|
+
method: "GET",
|
|
22
|
+
path: "/bookmarks",
|
|
23
|
+
summary: "A browser's bookmarks",
|
|
24
|
+
description:
|
|
25
|
+
"Every bookmark and folder one of the sandbox's browser profiles keeps, in their folders and order: the bookmarks bar, and everything else. Your own window's are `_own`; the first read takes in what Chromium itself kept in that profile.",
|
|
26
|
+
})
|
|
27
|
+
.input(BookmarksQuerySchema)
|
|
28
|
+
.output(BookmarksSchema),
|
|
29
|
+
add: bookmarksRoute
|
|
30
|
+
.route({
|
|
31
|
+
method: "POST",
|
|
32
|
+
path: "/bookmarks",
|
|
33
|
+
summary: "Bookmark a page, or make a folder",
|
|
34
|
+
description: "Adds a bookmark, or a new folder, to one of a profile's folders: at the end, or at the place given.",
|
|
35
|
+
})
|
|
36
|
+
.input(BookmarkAddSchema)
|
|
37
|
+
.output(BookmarkChangedSchema),
|
|
38
|
+
edit: bookmarksRoute
|
|
39
|
+
.route({
|
|
40
|
+
method: "POST",
|
|
41
|
+
path: "/bookmarks/edit",
|
|
42
|
+
summary: "Rename a bookmark or change where it goes",
|
|
43
|
+
description: "Changes a bookmark's name or address, or a folder's name, and can move either into another folder, at its end.",
|
|
44
|
+
})
|
|
45
|
+
.input(BookmarkEditSchema)
|
|
46
|
+
.output(BookmarkChangedSchema),
|
|
47
|
+
move: bookmarksRoute
|
|
48
|
+
.route({
|
|
49
|
+
method: "POST",
|
|
50
|
+
path: "/bookmarks/move",
|
|
51
|
+
summary: "Move a bookmark or folder",
|
|
52
|
+
description:
|
|
53
|
+
"Puts a bookmark or a folder at a place in a folder, the one it is in or another. A folder cannot go inside itself, and the two roots stay where they are.",
|
|
54
|
+
})
|
|
55
|
+
.input(BookmarkMoveSchema)
|
|
56
|
+
.output(BookmarkChangedSchema),
|
|
57
|
+
remove: bookmarksRoute
|
|
58
|
+
.route({
|
|
59
|
+
method: "POST",
|
|
60
|
+
path: "/bookmarks/remove",
|
|
61
|
+
summary: "Remove a bookmark or folder",
|
|
62
|
+
description: "Removes a bookmark, or a folder with everything in it. Removing one already gone answers the same.",
|
|
63
|
+
})
|
|
64
|
+
.input(BookmarkRemoveSchema)
|
|
65
|
+
.output(BookmarkChangedSchema),
|
|
66
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import {
|
|
3
|
+
AnswerFileChooserInputSchema,
|
|
4
|
+
AnswerPermissionInputSchema,
|
|
5
|
+
BrowserDownloadSchema,
|
|
6
|
+
BrowserPageToolInputSchema,
|
|
7
|
+
BrowserRecordingSchema,
|
|
8
|
+
BrowserWindowInputSchema,
|
|
9
|
+
DevToolsResultSchema,
|
|
10
|
+
DownloadIdParamSchema,
|
|
11
|
+
DownloadTicketSchema,
|
|
12
|
+
DropFilesInputSchema,
|
|
13
|
+
SaveDownloadInputSchema,
|
|
14
|
+
SaveDownloadResultSchema,
|
|
15
|
+
SetSitePermissionInputSchema,
|
|
16
|
+
SitePermissionsSchema,
|
|
17
|
+
SiteQuerySchema,
|
|
18
|
+
ViewSourceResultSchema,
|
|
19
|
+
} from "../schemas/browser-tools.js";
|
|
20
|
+
import { OkSchema } from "../schemas/shared.js";
|
|
21
|
+
|
|
22
|
+
// Everything a browser window does besides its pages (schemas/browser-tools.ts): its downloads, the files and the
|
|
23
|
+
// permissions its pages ask for, and the tools around a page. Each is operating the window, the way taking the wheel
|
|
24
|
+
// over its picture is (the browser view's ticket is redeemed at maintainer), so every route here is too, reads
|
|
25
|
+
// included: a download's name and a site's permissions say where the person has been.
|
|
26
|
+
const browserRoute = procedure.meta({ floor: "maintainer", control: "never" });
|
|
27
|
+
|
|
28
|
+
export const browserContract = {
|
|
29
|
+
downloads: browserRoute
|
|
30
|
+
.route({
|
|
31
|
+
method: "GET",
|
|
32
|
+
path: "/browser/downloads",
|
|
33
|
+
summary: "Every browser download",
|
|
34
|
+
description:
|
|
35
|
+
"Every download the sandbox's browser windows keep, newest first, whichever window it came from. A window's own state carries its profile's; this is all of them.",
|
|
36
|
+
})
|
|
37
|
+
.output(BrowserDownloadSchema.array()),
|
|
38
|
+
downloadTicket: browserRoute
|
|
39
|
+
.route({
|
|
40
|
+
method: "POST",
|
|
41
|
+
path: "/browser/downloads/{id}/ticket",
|
|
42
|
+
summary: "Fetch a download onto your computer",
|
|
43
|
+
description:
|
|
44
|
+
"A short-lived ticket for one finished download's file. Opening the browser downloads file route with it streams the file to your own browser, which saves it where you keep downloads.",
|
|
45
|
+
})
|
|
46
|
+
.input(DownloadIdParamSchema)
|
|
47
|
+
.output(DownloadTicketSchema),
|
|
48
|
+
saveDownload: browserRoute
|
|
49
|
+
.route({
|
|
50
|
+
method: "POST",
|
|
51
|
+
path: "/browser/downloads/{id}/save",
|
|
52
|
+
summary: "Save a download into the workspace",
|
|
53
|
+
description:
|
|
54
|
+
"Copies one finished download into a folder of the workspace, `downloads/` unless you name another. A name already taken there gets a number added rather than replacing what is there.",
|
|
55
|
+
})
|
|
56
|
+
.input(SaveDownloadInputSchema)
|
|
57
|
+
.output(SaveDownloadResultSchema),
|
|
58
|
+
cancelDownload: browserRoute
|
|
59
|
+
.route({
|
|
60
|
+
method: "POST",
|
|
61
|
+
path: "/browser/downloads/{id}/cancel",
|
|
62
|
+
summary: "Stop a download",
|
|
63
|
+
description: "Stops a download still arriving. One that already finished is left as it is.",
|
|
64
|
+
})
|
|
65
|
+
.input(DownloadIdParamSchema)
|
|
66
|
+
.output(OkSchema),
|
|
67
|
+
removeDownload: browserRoute
|
|
68
|
+
.route({
|
|
69
|
+
method: "DELETE",
|
|
70
|
+
path: "/browser/downloads/{id}",
|
|
71
|
+
summary: "Remove a download",
|
|
72
|
+
description: "Stops it if it is still arriving, deletes its file from the sandbox and drops it from the list. A copy saved into the workspace stays.",
|
|
73
|
+
})
|
|
74
|
+
.input(DownloadIdParamSchema)
|
|
75
|
+
.output(OkSchema),
|
|
76
|
+
answerFileChooser: browserRoute
|
|
77
|
+
.route({
|
|
78
|
+
method: "POST",
|
|
79
|
+
path: "/browser/windows/{name}/file-chooser",
|
|
80
|
+
summary: "Answer a page's file chooser",
|
|
81
|
+
description:
|
|
82
|
+
"Hands the page the files you uploaded for it, as though you had picked them in its own dialog, or cancels the ask when none are named.",
|
|
83
|
+
})
|
|
84
|
+
.input(AnswerFileChooserInputSchema)
|
|
85
|
+
.output(OkSchema),
|
|
86
|
+
dropFiles: browserRoute
|
|
87
|
+
.route({
|
|
88
|
+
method: "POST",
|
|
89
|
+
path: "/browser/windows/{name}/drop",
|
|
90
|
+
summary: "Drop files onto a page",
|
|
91
|
+
description:
|
|
92
|
+
"Drops uploaded files onto a page at a point, as dragging them there from your desktop does: into the file field under it, or onto whatever takes a drop.",
|
|
93
|
+
})
|
|
94
|
+
.input(DropFilesInputSchema)
|
|
95
|
+
.output(OkSchema),
|
|
96
|
+
answerPermission: browserRoute
|
|
97
|
+
.route({
|
|
98
|
+
method: "POST",
|
|
99
|
+
path: "/browser/windows/{name}/permission",
|
|
100
|
+
summary: "Answer a site's permission ask",
|
|
101
|
+
description:
|
|
102
|
+
"Allows or blocks what a site asked for, remembered for that site in this window's profile. Allowing your location can carry it, and the page is told that is where you are.",
|
|
103
|
+
})
|
|
104
|
+
.input(AnswerPermissionInputSchema)
|
|
105
|
+
.output(OkSchema),
|
|
106
|
+
site: browserRoute
|
|
107
|
+
.route({
|
|
108
|
+
method: "GET",
|
|
109
|
+
path: "/browser/windows/{name}/site",
|
|
110
|
+
summary: "A site's permissions",
|
|
111
|
+
description: "What one site may do in this window's profile: each permission this browser answers, allowed, blocked or asked each time.",
|
|
112
|
+
})
|
|
113
|
+
.input(SiteQuerySchema)
|
|
114
|
+
.output(SitePermissionsSchema),
|
|
115
|
+
setSitePermission: browserRoute
|
|
116
|
+
.route({
|
|
117
|
+
method: "PUT",
|
|
118
|
+
path: "/browser/windows/{name}/site",
|
|
119
|
+
summary: "Change a site's permission",
|
|
120
|
+
description: "Allows, blocks, or goes back to asking for one permission of one site, in this window's profile, from the next time the site asks.",
|
|
121
|
+
})
|
|
122
|
+
.input(SetSitePermissionInputSchema)
|
|
123
|
+
.output(OkSchema),
|
|
124
|
+
clearSiteData: browserRoute
|
|
125
|
+
.route({
|
|
126
|
+
method: "DELETE",
|
|
127
|
+
path: "/browser/windows/{name}/site",
|
|
128
|
+
summary: "Clear a site's cookies and data",
|
|
129
|
+
description:
|
|
130
|
+
"Deletes everything one site keeps in this window's profile: cookies, storage, caches and its service workers. It signs you out of that site.",
|
|
131
|
+
})
|
|
132
|
+
.input(SiteQuerySchema)
|
|
133
|
+
.output(OkSchema),
|
|
134
|
+
printPage: browserRoute
|
|
135
|
+
.route({
|
|
136
|
+
method: "POST",
|
|
137
|
+
path: "/browser/windows/{name}/pages/{pageId}/print",
|
|
138
|
+
summary: "Print a page to PDF",
|
|
139
|
+
description: "Prints a tab as a PDF, the way the browser's own print-to-PDF does, and lists it with the window's downloads.",
|
|
140
|
+
})
|
|
141
|
+
.input(BrowserPageToolInputSchema)
|
|
142
|
+
.output(BrowserDownloadSchema),
|
|
143
|
+
viewSource: browserRoute
|
|
144
|
+
.route({
|
|
145
|
+
method: "POST",
|
|
146
|
+
path: "/browser/windows/{name}/pages/{pageId}/source",
|
|
147
|
+
summary: "View a page's source",
|
|
148
|
+
description: "Opens the page's source in a new tab of the same window, as view-source: does.",
|
|
149
|
+
})
|
|
150
|
+
.input(BrowserPageToolInputSchema)
|
|
151
|
+
.output(ViewSourceResultSchema),
|
|
152
|
+
startRecording: browserRoute
|
|
153
|
+
.route({
|
|
154
|
+
method: "POST",
|
|
155
|
+
path: "/browser/windows/{name}/recording",
|
|
156
|
+
summary: "Record a browser window",
|
|
157
|
+
description:
|
|
158
|
+
"Starts recording the window's picture as the sandbox streams it, sound not included. It stops when you stop it, or by itself at its longest, and is listed with the window's downloads as an MP4.",
|
|
159
|
+
})
|
|
160
|
+
.input(BrowserWindowInputSchema)
|
|
161
|
+
.output(BrowserRecordingSchema),
|
|
162
|
+
stopRecording: browserRoute
|
|
163
|
+
.route({
|
|
164
|
+
method: "POST",
|
|
165
|
+
path: "/browser/windows/{name}/recording/stop",
|
|
166
|
+
summary: "Stop recording a browser window",
|
|
167
|
+
description: "Stops the window's recording and lists it with the window's downloads, as an MP4 of everything since it started.",
|
|
168
|
+
})
|
|
169
|
+
.input(BrowserWindowInputSchema)
|
|
170
|
+
.output(BrowserDownloadSchema),
|
|
171
|
+
devtools: browserRoute
|
|
172
|
+
.route({
|
|
173
|
+
method: "POST",
|
|
174
|
+
path: "/browser/windows/{name}/pages/{pageId}/devtools",
|
|
175
|
+
summary: "Open DevTools for a page",
|
|
176
|
+
description:
|
|
177
|
+
"Chromium's own DevTools for one tab: where its frontend is served, through this sandbox, with a ticket of its own. It inspects the page itself, so it can read and change anything the page can.",
|
|
178
|
+
})
|
|
179
|
+
.input(BrowserPageToolInputSchema)
|
|
180
|
+
.output(DevToolsResultSchema),
|
|
181
|
+
};
|
|
@@ -9,6 +9,7 @@ import { OkSchema } from "../schemas/shared.js";
|
|
|
9
9
|
import { ProjectDeliveryResultSchema, ProjectDeliverySchema } from "../schemas/project-delivery.js";
|
|
10
10
|
import { DialLoopbackSchema, StageArtifactResultSchema, StageArtifactSchema } from "../schemas/device-artifacts.js";
|
|
11
11
|
import { CopyFileResultSchema, CopyFileSchema } from "../schemas/device-files.js";
|
|
12
|
+
import { RemoteServiceInputSchema, RemoteServiceResultSchema, RemoteStartInputSchema, RemoteStartResultSchema } from "../schemas/device-remote.js";
|
|
12
13
|
import {
|
|
13
14
|
KeyringCaptureItemSchema,
|
|
14
15
|
KeyringCaptureResultSchema,
|
|
@@ -98,4 +99,18 @@ export const deviceContract = {
|
|
|
98
99
|
// The owner's phone, paired with this computer's keyring and filling its autofill, carried by this sandbox.
|
|
99
100
|
keyringPhonePair: oc.input(KeyringPhoneKeysSchema).output(KeyringPhonePairResultSchema),
|
|
100
101
|
keyringPhoneFill: oc.input(SignedKeyringPhoneFillSchema).output(KeyringPhoneFillResultSchema),
|
|
102
|
+
// People's remote desktop and terminals on this computer (2026-11-20, schemas/device-remote.ts), served by
|
|
103
|
+
// intentic-remoted, which the machine starts and keeps. Only the daemon calls these, never a tool, and only on an agent
|
|
104
|
+
// advertising `remote`. `remoteStart` hands over this link's uplink token and media key and answers once remoted's
|
|
105
|
+
// uplink to this sandbox is up; the machine refuses it (FORBIDDEN, naming the switches) while "Let people see the
|
|
106
|
+
// screen", "Let people use the mouse and keyboard" and "Let people open terminals" are all off on this link.
|
|
107
|
+
// `remoteStop` drops this link's uplink, and remoted with it when no other link holds one.
|
|
108
|
+
remoteStart: oc.input(RemoteStartInputSchema).output(RemoteStartResultSchema),
|
|
109
|
+
remoteStop: oc.output(OkSchema),
|
|
110
|
+
// Windows' lock screen and administrator prompts for people's remote access (2026-11-20, schemas/device-remote.ts):
|
|
111
|
+
// intentic-remoted's own Windows service read, installed or removed, the last two through one UAC prompt on the
|
|
112
|
+
// computer, which this call waits on (ten minutes at most). Only the daemon calls it, for a person with Full access,
|
|
113
|
+
// and only on an agent advertising `remote-service`; the machine refuses an install (FORBIDDEN) while all three people
|
|
114
|
+
// switches are off on this link.
|
|
115
|
+
remoteService: oc.input(RemoteServiceInputSchema).output(RemoteServiceResultSchema),
|
|
101
116
|
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import { OkSchema } from "../schemas/shared.js";
|
|
3
|
+
import {
|
|
4
|
+
RemoteDeviceInputSchema,
|
|
5
|
+
RemoteOpenScreenInputSchema,
|
|
6
|
+
RemoteOpenTerminalInputSchema,
|
|
7
|
+
RemoteScreenSchema,
|
|
8
|
+
RemoteServiceChangeInputSchema,
|
|
9
|
+
RemoteServiceSchema,
|
|
10
|
+
RemoteSessionInputSchema,
|
|
11
|
+
RemoteStatusSchema,
|
|
12
|
+
RemoteTerminalOpenedSchema,
|
|
13
|
+
RemoteTokenSchema,
|
|
14
|
+
} from "../schemas/remote-access.js";
|
|
15
|
+
|
|
16
|
+
// A person's remote screen and terminals on one of the owner's connected computers (schemas/remote-access.ts). Each
|
|
17
|
+
// answer is a socket's path and the token it opens with; the socket itself is netd's to carry and the computer's
|
|
18
|
+
// remoted to answer. Withheld from the panel and control tokens: a person opens these, never a program.
|
|
19
|
+
const remoteRoute = procedure.meta({ panel: false, control: "never" });
|
|
20
|
+
|
|
21
|
+
// Watching, which a member below Full access may do, read-only: floored at viewer, the handler deciding how far.
|
|
22
|
+
const watchRoute = procedure.meta({ panel: false, control: "never", floor: "viewer" });
|
|
23
|
+
|
|
24
|
+
export const remoteContract = {
|
|
25
|
+
status: watchRoute
|
|
26
|
+
.route({
|
|
27
|
+
method: "GET",
|
|
28
|
+
path: "/system/devices/{device}/remote",
|
|
29
|
+
summary: "Whether a remote screen or terminal can be opened on a device",
|
|
30
|
+
description:
|
|
31
|
+
"What the device's switches allow, its monitors and terminal environments, and the terminals open there now. Starts nothing: a device whose remote access has not run since it connected names no monitors yet.",
|
|
32
|
+
})
|
|
33
|
+
.input(RemoteDeviceInputSchema)
|
|
34
|
+
.output(RemoteStatusSchema),
|
|
35
|
+
openScreen: watchRoute
|
|
36
|
+
.route({
|
|
37
|
+
method: "POST",
|
|
38
|
+
path: "/system/devices/{device}/remote/screen",
|
|
39
|
+
summary: "Open a device's screen",
|
|
40
|
+
description:
|
|
41
|
+
"Starts the device's remote access if it is not running and answers where its media socket opens, with a token. Read-only unless the caller has Full access and the device allows control. Recorded in the audit log.",
|
|
42
|
+
})
|
|
43
|
+
.input(RemoteOpenScreenInputSchema)
|
|
44
|
+
.output(RemoteScreenSchema),
|
|
45
|
+
openTerminal: remoteRoute
|
|
46
|
+
.route({
|
|
47
|
+
method: "POST",
|
|
48
|
+
path: "/system/devices/{device}/remote/terminals",
|
|
49
|
+
summary: "Open a terminal on a device",
|
|
50
|
+
description:
|
|
51
|
+
"Starts the device's remote access if it is not running, opens a new terminal there and answers where its socket opens, with a token. Full access only, and only where the device allows terminals. Recorded in the audit log.",
|
|
52
|
+
})
|
|
53
|
+
.input(RemoteOpenTerminalInputSchema)
|
|
54
|
+
.output(RemoteTerminalOpenedSchema),
|
|
55
|
+
attachTerminal: remoteRoute
|
|
56
|
+
.route({
|
|
57
|
+
method: "POST",
|
|
58
|
+
path: "/system/devices/{device}/remote/terminals/{session}/attach",
|
|
59
|
+
summary: "Attach to a terminal open on a device",
|
|
60
|
+
description: "A fresh token for a terminal the device still holds. Not found once the terminal or the device's remote access has ended.",
|
|
61
|
+
})
|
|
62
|
+
.input(RemoteSessionInputSchema)
|
|
63
|
+
.output(RemoteTerminalOpenedSchema),
|
|
64
|
+
refresh: watchRoute
|
|
65
|
+
.route({
|
|
66
|
+
method: "POST",
|
|
67
|
+
path: "/system/devices/{device}/remote/sessions/{session}/token",
|
|
68
|
+
summary: "A fresher token for an open screen or terminal",
|
|
69
|
+
description: "For the open socket's `token` message, before the one it holds lapses. Read-only as the caller's first token was.",
|
|
70
|
+
})
|
|
71
|
+
.input(RemoteSessionInputSchema)
|
|
72
|
+
.output(RemoteTokenSchema),
|
|
73
|
+
closeTerminal: remoteRoute
|
|
74
|
+
.route({
|
|
75
|
+
method: "DELETE",
|
|
76
|
+
path: "/system/devices/{device}/remote/terminals/{session}",
|
|
77
|
+
summary: "Close a terminal on a device",
|
|
78
|
+
description: "Ends the terminal and every socket attached to it. Recorded in the audit log.",
|
|
79
|
+
})
|
|
80
|
+
.input(RemoteSessionInputSchema)
|
|
81
|
+
.output(OkSchema),
|
|
82
|
+
// Windows' lock screen and administrator prompts (schemas/device-remote.ts): read by anyone who can see the device,
|
|
83
|
+
// changed only with Full access.
|
|
84
|
+
service: watchRoute
|
|
85
|
+
.route({
|
|
86
|
+
method: "GET",
|
|
87
|
+
path: "/system/devices/{device}/remote/service",
|
|
88
|
+
summary: "Whether a Windows computer's lock screen and administrator prompts can be reached remotely",
|
|
89
|
+
description:
|
|
90
|
+
"Whether remote access's own Windows service is installed on the computer, its state and version, and whether it is older than the computer's agent. Without it a remote screen cannot show or use the sign-in and lock screen, Ctrl+Alt+Del or administrator prompts. Changes nothing.",
|
|
91
|
+
})
|
|
92
|
+
.input(RemoteDeviceInputSchema)
|
|
93
|
+
.output(RemoteServiceSchema),
|
|
94
|
+
changeService: remoteRoute
|
|
95
|
+
.route({
|
|
96
|
+
method: "POST",
|
|
97
|
+
path: "/system/devices/{device}/remote/service",
|
|
98
|
+
summary: "Set up, update or remove a Windows computer's lock-screen service",
|
|
99
|
+
description:
|
|
100
|
+
"Installs (or updates) or removes remote access's own Windows service on the computer. Windows asks the person at that computer for an administrator's yes, and this waits for the answer, up to ten minutes; a no comes back as `declined` with nothing changed. Full access only. Recorded in the audit log.",
|
|
101
|
+
})
|
|
102
|
+
.input(RemoteServiceChangeInputSchema)
|
|
103
|
+
.output(RemoteServiceSchema),
|
|
104
|
+
};
|
|
@@ -43,10 +43,13 @@ import {
|
|
|
43
43
|
import { AutoUpdateInputSchema, AutoUpdateSchema, SkipUpdateInputSchema } from "../schemas/updates.js";
|
|
44
44
|
import {
|
|
45
45
|
BrowserNameParamSchema,
|
|
46
|
+
BrowserPageActionInputSchema,
|
|
46
47
|
BrowserPageParamSchema,
|
|
47
48
|
BrowsersListSchema,
|
|
49
|
+
MoveBrowserPageInputSchema,
|
|
48
50
|
OpenBrowserInputSchema,
|
|
49
51
|
OpenBrowserResultSchema,
|
|
52
|
+
ReopenBrowserPageInputSchema,
|
|
50
53
|
DesktopStateSchema,
|
|
51
54
|
SubagentsListSchema,
|
|
52
55
|
TerminalNameParamSchema,
|
|
@@ -55,6 +58,14 @@ import {
|
|
|
55
58
|
TerminalsListSchema,
|
|
56
59
|
} from "../schemas/terminal.js";
|
|
57
60
|
import { UsageSummarySchema } from "../schemas/providers/usage.js";
|
|
61
|
+
import {
|
|
62
|
+
BrowsingForgetInputSchema,
|
|
63
|
+
BrowsingForgetResultSchema,
|
|
64
|
+
BrowsingHistoryQuerySchema,
|
|
65
|
+
BrowsingHistorySchema,
|
|
66
|
+
SearchSuggestQuerySchema,
|
|
67
|
+
SearchSuggestionsSchema,
|
|
68
|
+
} from "../schemas/browsing.js";
|
|
58
69
|
|
|
59
70
|
// The box itself (terminals, devices, sessions, spend), which no control token reaches whatever the floor.
|
|
60
71
|
const systemRoute = procedure.meta({ control: "never" });
|
|
@@ -343,6 +354,38 @@ export const systemContract = {
|
|
|
343
354
|
})
|
|
344
355
|
.input(BrowserNameParamSchema)
|
|
345
356
|
.output(OkSchema),
|
|
357
|
+
// The rest of what a tab's own menu does, over the roster rather than a picture socket for the same reason as
|
|
358
|
+
// closeBrowserPage: every window's tabs are on the strip, and only the one in front has a socket.
|
|
359
|
+
reopenBrowserPage: systemRoute
|
|
360
|
+
.route({
|
|
361
|
+
method: "POST",
|
|
362
|
+
path: "/system/browsers/{name}/closed",
|
|
363
|
+
summary: "Reopen a closed tab",
|
|
364
|
+
description:
|
|
365
|
+
"Brings back a tab closed in a browser window that is still open, at the place it had, as a browser's own Reopen closed tab does. Without a tab named it is the one closed last. Answers the tab it opened.",
|
|
366
|
+
})
|
|
367
|
+
.input(ReopenBrowserPageInputSchema)
|
|
368
|
+
.output(OpenBrowserResultSchema),
|
|
369
|
+
moveBrowserPage: systemRoute
|
|
370
|
+
.route({
|
|
371
|
+
method: "POST",
|
|
372
|
+
path: "/system/browsers/{name}/pages/{pageId}/move",
|
|
373
|
+
summary: "Move a tab along its window's strip",
|
|
374
|
+
description:
|
|
375
|
+
"Puts one tab at another place in its window's order, the order every view of the window draws its tabs in and the order your own window reopens them in.",
|
|
376
|
+
})
|
|
377
|
+
.input(MoveBrowserPageInputSchema)
|
|
378
|
+
.output(OkSchema),
|
|
379
|
+
browserPageAction: systemRoute
|
|
380
|
+
.route({
|
|
381
|
+
method: "POST",
|
|
382
|
+
path: "/system/browsers/{name}/pages/{pageId}/action",
|
|
383
|
+
summary: "Reload, duplicate or mute a tab",
|
|
384
|
+
description:
|
|
385
|
+
"Does one thing to one tab of a browser window, whether or not it is the tab in front: reloads it, opens a copy of it beside it, or mutes or unmutes it. Answers the tab acted on, or the copy.",
|
|
386
|
+
})
|
|
387
|
+
.input(BrowserPageActionInputSchema)
|
|
388
|
+
.output(OpenBrowserResultSchema),
|
|
346
389
|
// One tab, closed without watching its window: the Browsers strip shows every window's tabs, and only the window in
|
|
347
390
|
// front has a picture socket to say a close on.
|
|
348
391
|
closeBrowserPage: systemRoute
|
|
@@ -355,6 +398,41 @@ export const systemContract = {
|
|
|
355
398
|
})
|
|
356
399
|
.input(BrowserPageParamSchema)
|
|
357
400
|
.output(OkSchema),
|
|
401
|
+
// What the sandbox's browsers remember, one index per profile (schemas/browsing.ts): the address bar ranks it in the
|
|
402
|
+
// editor on every keystroke, so it ships whole once and then only what changed, by cursor.
|
|
403
|
+
browsingHistory: systemRoute
|
|
404
|
+
.route({
|
|
405
|
+
method: "GET",
|
|
406
|
+
path: "/system/browsing/history",
|
|
407
|
+
summary: "Where a browser has been",
|
|
408
|
+
description:
|
|
409
|
+
"The pages one of the sandbox's browsers has visited and the searches made in it, most worth suggesting first, for the address bar's suggestions and the history page. Hand back the cursor an answer gave to be told only what changed since. Each browser profile keeps its own: your own window's is `_own`, and nothing from an agent's browser is mixed into it.",
|
|
410
|
+
})
|
|
411
|
+
// Where the person went is theirs and the maintainers': a viewer reads the windows open, not their history.
|
|
412
|
+
.meta({ floor: "maintainer" })
|
|
413
|
+
.input(BrowsingHistoryQuerySchema)
|
|
414
|
+
.output(BrowsingHistorySchema),
|
|
415
|
+
forgetBrowsingHistory: systemRoute
|
|
416
|
+
.route({
|
|
417
|
+
method: "POST",
|
|
418
|
+
path: "/system/browsing/history/forget",
|
|
419
|
+
summary: "Forget part of a browser's history",
|
|
420
|
+
description:
|
|
421
|
+
"Removes pages from one browser profile's history: some addresses, everything visited in a stretch of time, or all of it. The address bar stops suggesting them at once. Chromium's own files inside the profile are not touched.",
|
|
422
|
+
})
|
|
423
|
+
.input(BrowsingForgetInputSchema)
|
|
424
|
+
.output(BrowsingForgetResultSchema),
|
|
425
|
+
// Fetched by the sandbox, so the engine sees the same address the browsing itself leaves from.
|
|
426
|
+
searchSuggestions: systemRoute
|
|
427
|
+
.route({
|
|
428
|
+
method: "GET",
|
|
429
|
+
path: "/system/browsing/suggest",
|
|
430
|
+
summary: "What a search engine suggests for some text",
|
|
431
|
+
description:
|
|
432
|
+
"Asks the chosen search engine what it would suggest for text typed into the address bar, from the sandbox's own address like the browsing itself. Answers an empty list rather than an error when the engine is slow or unreachable, since the address bar has its own suggestions to show.",
|
|
433
|
+
})
|
|
434
|
+
.input(SearchSuggestQuerySchema)
|
|
435
|
+
.output(SearchSuggestionsSchema),
|
|
358
436
|
// The picture and the hands come over /system/desktop-view; this is whether there is anything on it, and which windows
|
|
359
437
|
// a tab could show alone. Pushed through the `desktop` runtime domain as windows open, close and take the keyboard,
|
|
360
438
|
// and as their titles change while a view is open; never polled by the client.
|