devframe 1.3.3 → 1.3.5
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/adapters/cac.mjs +1 -1
- package/dist/adapters/dev.mjs +1 -1
- package/dist/adapters/initiate.mjs +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/{dev-Cu_iwSCy.mjs → dev-DF1pEq0n.mjs} +1 -1
- package/dist/in-page-channel/index.mjs +1 -1
- package/dist/{instance-shell-Coid7CP6.mjs → instance-shell-C0yMifrP.mjs} +1 -1
- package/dist/{interactive-auth-BURwIAvE.mjs → interactive-auth-CZ3CPfEs.mjs} +1 -1
- package/dist/internal/index.mjs +1 -1
- package/dist/node/auth.mjs +1 -1
- package/dist/recipes/interactive-auth.mjs +1 -1
- package/dist/{shared-state-COV7NCbd.mjs → shared-state-DiAsLHP8.mjs} +3 -2
- package/dist/{state-B_yjfeqo.mjs → state-TdDWqiG-.mjs} +2 -1
- package/dist/utils/shared-state.mjs +1 -1
- package/package.json +5 -5
package/dist/adapters/cac.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as colors } from "../nostics-InlX4tmd.mjs";
|
|
2
2
|
import { s as importAgenticMcp } from "../_shared-CtXCQFTV.mjs";
|
|
3
3
|
import { createBuild } from "./build.mjs";
|
|
4
|
-
import { t as createDevServer } from "../dev-
|
|
4
|
+
import { t as createDevServer } from "../dev-DF1pEq0n.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import cac$1 from "cac";
|
|
7
7
|
// src/adapters/flags.ts
|
package/dist/adapters/dev.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as resolveDevServerPort, o as resolveMcpConnectionMeta } from "../_shared-CtXCQFTV.mjs";
|
|
2
|
-
import { t as createDevServer } from "../dev-
|
|
2
|
+
import { t as createDevServer } from "../dev-DF1pEq0n.mjs";
|
|
3
3
|
export { createDevServer, resolveDevServerPort, resolveMcpConnectionMeta };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as getInstanceInternals, r as initDevframe } from "../dev-
|
|
1
|
+
export { n as getInstanceInternals, r as initDevframe } from "../dev-DF1pEq0n.mjs";
|
package/dist/client/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { t as hash } from "../hash-DHqpWeMO.mjs";
|
|
|
3
3
|
import { createEventEmitter } from "../utils/events.mjs";
|
|
4
4
|
import { withBase, withProtocol } from "../utils/url.mjs";
|
|
5
5
|
import { nanoid } from "../utils/nanoid.mjs";
|
|
6
|
-
import { t as createSharedState } from "../shared-state-
|
|
6
|
+
import { t as createSharedState } from "../shared-state-DiAsLHP8.mjs";
|
|
7
7
|
import { i as structuredCloneStringify, n as structuredCloneParse, t as structuredCloneDeserialize } from "../structured-clone-D1dOCZvc.mjs";
|
|
8
8
|
import { createStreamReader, createStreamSink } from "../utils/streaming-channel.mjs";
|
|
9
9
|
import { toAgentToolName } from "../utils/agent-tool-name.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { open } from "./utils/open.mjs";
|
|
2
2
|
import { a as resolveMcpConfig, c as joinURL, d as withoutLeadingSlash, i as resolveDevServerPort, l as withBase, n as normalizeBasePath, r as resolveBasePath, s as importAgenticMcp, t as loadAutoMcpAdapter } from "./_shared-CtXCQFTV.mjs";
|
|
3
3
|
import { t as diagnostics } from "./diagnostics-DC1-WcvN.mjs";
|
|
4
|
-
import { a as isAddressInUse, i as normalizeHttpServerUrl, n as resolveInstanceRegister, o as listenWithLoopbackTwin, t as createInstanceShell } from "./instance-shell-
|
|
4
|
+
import { a as isAddressInUse, i as normalizeHttpServerUrl, n as resolveInstanceRegister, o as listenWithLoopbackTwin, t as createInstanceShell } from "./instance-shell-C0yMifrP.mjs";
|
|
5
5
|
import { t as resolveStaticAssetsSource } from "./remote-assets-DhonNeo_.mjs";
|
|
6
6
|
import { mountStaticHandler } from "./utils/serve-static.mjs";
|
|
7
7
|
import { DEVFRAME_CONNECTION_META_FILENAME } from "./constants.mjs";
|
|
@@ -2,7 +2,7 @@ import { a as defineDiagnostics, i as createBirpc, n as argsToJsonSchema, o as D
|
|
|
2
2
|
import { r as registerBrowserAgentTool } from "../browser-agent-DmAotroz.mjs";
|
|
3
3
|
import { nanoid } from "../utils/nanoid.mjs";
|
|
4
4
|
import { createEventEmitter } from "../utils/events.mjs";
|
|
5
|
-
import { t as createSharedState } from "../shared-state-
|
|
5
|
+
import { t as createSharedState } from "../shared-state-DiAsLHP8.mjs";
|
|
6
6
|
// src/in-page-channel/diagnostics.ts
|
|
7
7
|
const diagnostics = /* #__PURE__ */ defineDiagnostics({
|
|
8
8
|
docsBase: "https://devfra.me/errors",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as validateOriginCandidate } from "./origin-Ck7mLbKU.mjs";
|
|
2
2
|
import { c as joinURL, d as withoutLeadingSlash, f as withoutTrailingSlash, u as withLeadingSlash } from "./_shared-CtXCQFTV.mjs";
|
|
3
3
|
import "./constants.mjs";
|
|
4
|
-
import { n as createInteractiveAuth } from "./interactive-auth-
|
|
4
|
+
import { n as createInteractiveAuth } from "./interactive-auth-CZ3CPfEs.mjs";
|
|
5
5
|
import { t as diagnostics } from "./diagnostics-DC1-WcvN.mjs";
|
|
6
6
|
import { t as getInternalContext } from "./context-BTxC4QrJ.mjs";
|
|
7
7
|
import { createServer } from "node:http";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as colors } from "./nostics-InlX4tmd.mjs";
|
|
2
2
|
import { isAnonymousRpcMethod } from "./constants.mjs";
|
|
3
|
-
import { a as getTempAuthCodeInfo, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "./state-
|
|
3
|
+
import { a as getTempAuthCodeInfo, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "./state-TdDWqiG-.mjs";
|
|
4
4
|
import { t as getInternalContext } from "./context-BTxC4QrJ.mjs";
|
|
5
5
|
import { n as defineRpcFunction } from "./define-C8h-fyD3.mjs";
|
|
6
6
|
// src/utils/simple-schema.ts
|
package/dist/internal/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { t as diagnostics } from "../diagnostics-DC1-WcvN.mjs";
|
|
|
6
6
|
import { t as createH3DevframeHost } from "../host-h3-D1uj5EM8.mjs";
|
|
7
7
|
import { t as importRuntimeModule } from "../import-runtime-module-DsdqJ1gK.mjs";
|
|
8
8
|
import { i as registerDevframeInstance, n as listLiveDevframeInstances, r as probeDevframeOrigin } from "../instance-registry-DwmnWyCK.mjs";
|
|
9
|
-
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-
|
|
9
|
+
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-C0yMifrP.mjs";
|
|
10
10
|
import { t as createContextRpcServer } from "../rpc-core-BmDHiDR6.mjs";
|
|
11
11
|
import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../wire-codec-BdngvzfH.mjs";
|
|
12
12
|
// src/agent/stringify.ts
|
package/dist/node/auth.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as revokeAuthToken, t as revokeActiveConnectionsForToken } from "../revoke-D6KA3vwr.mjs";
|
|
2
|
-
import { a as getTempAuthCodeInfo, i as getTempAuthCode, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "../state-
|
|
2
|
+
import { a as getTempAuthCodeInfo, i as getTempAuthCode, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "../state-TdDWqiG-.mjs";
|
|
3
3
|
export { buildOtpAuthUrl, describeUA, exchangeTempAuthCode, getTempAuthCode, getTempAuthCodeInfo, refreshTempAuthCode, revokeActiveConnectionsForToken, revokeAuthToken, verifyAuthToken };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createAuthBanner, n as createInteractiveAuth } from "../interactive-auth-
|
|
1
|
+
export { t as createAuthBanner, n as createInteractiveAuth } from "../interactive-auth-CZ3CPfEs.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createEventEmitter } from "./utils/events.mjs";
|
|
2
2
|
import { nanoid } from "./utils/nanoid.mjs";
|
|
3
|
-
// ../../node_modules/.pnpm/immer@11.2.
|
|
3
|
+
// ../../node_modules/.pnpm/immer@11.2.10/node_modules/immer/dist/immer.mjs
|
|
4
4
|
var NOTHING = Symbol.for("immer-nothing");
|
|
5
5
|
var DRAFTABLE = Symbol.for("immer-draftable");
|
|
6
6
|
var DRAFT_STATE = Symbol.for("immer-state");
|
|
@@ -556,7 +556,8 @@ var Immer2 = class {
|
|
|
556
556
|
];
|
|
557
557
|
};
|
|
558
558
|
if (isBoolean(config?.autoFreeze)) this.setAutoFreeze(config.autoFreeze);
|
|
559
|
-
|
|
559
|
+
const strictShallowCopy = config?.useStrictShallowCopy;
|
|
560
|
+
if (isBoolean(strictShallowCopy) || strictShallowCopy === "class_only") this.setUseStrictShallowCopy(strictShallowCopy);
|
|
560
561
|
if (isBoolean(config?.useStrictIteration)) this.setUseStrictIteration(config.useStrictIteration);
|
|
561
562
|
}
|
|
562
563
|
createDraft(base) {
|
|
@@ -1265,7 +1265,8 @@ function buildOtpAuthUrl(baseUrl, code = getTempAuthCode()) {
|
|
|
1265
1265
|
* without entering the code again.
|
|
1266
1266
|
*/
|
|
1267
1267
|
function verifyAuthToken(token, session, storage) {
|
|
1268
|
-
|
|
1268
|
+
const trusted = storage.value().trusted;
|
|
1269
|
+
if (!token || !Object.hasOwn(trusted, token) || !trusted[token]) return false;
|
|
1269
1270
|
session.meta.clientAuthToken = token;
|
|
1270
1271
|
session.meta.isTrusted = true;
|
|
1271
1272
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createSharedState } from "../shared-state-
|
|
1
|
+
export { t as createSharedState } from "../shared-state-DiAsLHP8.mjs";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devframe",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5",
|
|
5
5
|
"description": "Framework for building one portable devtool integration that runs in any viewer.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"skills"
|
|
78
78
|
],
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@devframes/agentic": "1.3.
|
|
80
|
+
"@devframes/agentic": "1.3.5",
|
|
81
81
|
"cac": "^7.0.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
@@ -95,12 +95,12 @@
|
|
|
95
95
|
"pathe": "^2.0.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@devframes/agentic": "1.3.
|
|
98
|
+
"@devframes/agentic": "1.3.5",
|
|
99
99
|
"@standard-schema/spec": "^1.1.0",
|
|
100
100
|
"birpc": "^4.2.0",
|
|
101
101
|
"cac": "^7.1.0",
|
|
102
102
|
"get-port-please": "^3.2.0",
|
|
103
|
-
"immer": "^11.2.
|
|
103
|
+
"immer": "^11.2.10",
|
|
104
104
|
"launch-editor": "^2.14.2",
|
|
105
105
|
"mlly": "^1.8.2",
|
|
106
106
|
"mrmime": "^2.0.1",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"ua-parser-modern": "^0.1.1",
|
|
116
116
|
"valibot": "^1.5.0",
|
|
117
117
|
"whenexpr": "^0.1.2",
|
|
118
|
-
"ws": "^8.
|
|
118
|
+
"ws": "^8.23.0"
|
|
119
119
|
},
|
|
120
120
|
"scripts": {
|
|
121
121
|
"build": "tsdown",
|