@inline-openclaw/inline 0.0.70 → 0.0.71-alpha.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/README.md +14 -13
- package/dist/account-inspect-api.js +1069 -1034
- package/dist/account-inspect-api.js.map +4 -4
- package/dist/approval-handler.runtime.js +1586 -2828
- package/dist/approval-handler.runtime.js.map +7 -8
- package/dist/channel-plugin-api.js +1602 -2833
- package/dist/channel-plugin-api.js.map +9 -10
- package/dist/configured-state.js +28 -8
- package/dist/configured-state.js.map +2 -2
- package/dist/index.js +28 -8
- package/dist/index.js.map +2 -2
- package/dist/runtime-register-api.js +1660 -2833
- package/dist/runtime-register-api.js.map +8 -9
- package/dist/runtime-setter-api.js +28 -8
- package/dist/runtime-setter-api.js.map +2 -2
- package/dist/secret-contract-api.js +30 -10
- package/dist/secret-contract-api.js.map +2 -2
- package/dist/setup-entry.js +28 -8
- package/dist/setup-entry.js.map +2 -2
- package/dist/setup-plugin-api.js +1069 -1034
- package/dist/setup-plugin-api.js.map +4 -4
- package/package.json +4 -4
|
@@ -4,25 +4,45 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
7
12
|
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
8
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (canCache)
|
|
31
|
+
cache.set(mod, to);
|
|
16
32
|
return to;
|
|
17
33
|
};
|
|
18
34
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
35
|
+
var __returnValue = (v) => v;
|
|
36
|
+
function __exportSetter(name, newValue) {
|
|
37
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
38
|
+
}
|
|
19
39
|
var __export = (target, all) => {
|
|
20
40
|
for (var name in all)
|
|
21
41
|
__defProp(target, name, {
|
|
22
42
|
get: all[name],
|
|
23
43
|
enumerable: true,
|
|
24
44
|
configurable: true,
|
|
25
|
-
set: (
|
|
45
|
+
set: __exportSetter.bind(all, name)
|
|
26
46
|
});
|
|
27
47
|
};
|
|
28
48
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
@@ -42,5 +62,5 @@ export {
|
|
|
42
62
|
setInlineRuntime
|
|
43
63
|
};
|
|
44
64
|
|
|
45
|
-
//# debugId=
|
|
65
|
+
//# debugId=71657B97B76E66BA64756E2164756E21
|
|
46
66
|
//# sourceMappingURL=runtime-setter-api.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import type { PluginRuntime } from \"openclaw/plugin-sdk/core\"\nimport { createPluginRuntimeStore } from \"openclaw/plugin-sdk/runtime-store\"\n\nconst {\n setRuntime: setInlineRuntime,\n clearRuntime: clearInlineRuntime,\n tryGetRuntime: getOptionalInlineRuntime,\n getRuntime: getInlineRuntime,\n} = createPluginRuntimeStore<PluginRuntime>({\n pluginId: \"inline\",\n errorMessage: \"Inline runtime not initialized\",\n})\n\nexport {\n clearInlineRuntime,\n getInlineRuntime,\n getOptionalInlineRuntime,\n setInlineRuntime,\n}\n"
|
|
6
6
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;AAEA;AAAA,EACE,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,eAAe;AAAA,EACf,YAAY;AAAA,IACV,yBAAwC;AAAA,EAC1C,UAAU;AAAA,EACV,cAAc;AAChB,CAAC;",
|
|
8
|
+
"debugId": "71657B97B76E66BA64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -4,25 +4,45 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
7
12
|
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
8
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (canCache)
|
|
31
|
+
cache.set(mod, to);
|
|
16
32
|
return to;
|
|
17
33
|
};
|
|
18
34
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
35
|
+
var __returnValue = (v) => v;
|
|
36
|
+
function __exportSetter(name, newValue) {
|
|
37
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
38
|
+
}
|
|
19
39
|
var __export = (target, all) => {
|
|
20
40
|
for (var name in all)
|
|
21
41
|
__defProp(target, name, {
|
|
22
42
|
get: all[name],
|
|
23
43
|
enumerable: true,
|
|
24
44
|
configurable: true,
|
|
25
|
-
set: (
|
|
45
|
+
set: __exportSetter.bind(all, name)
|
|
26
46
|
});
|
|
27
47
|
};
|
|
28
48
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
@@ -78,10 +98,10 @@ var channelSecrets = {
|
|
|
78
98
|
};
|
|
79
99
|
var inlineSecrets = channelSecrets;
|
|
80
100
|
export {
|
|
81
|
-
|
|
101
|
+
channelSecrets,
|
|
82
102
|
collectRuntimeConfigAssignments,
|
|
83
|
-
|
|
103
|
+
secretTargetRegistryEntries
|
|
84
104
|
};
|
|
85
105
|
|
|
86
|
-
//# debugId=
|
|
106
|
+
//# debugId=2960D8C622BCD05264756E2164756E21
|
|
87
107
|
//# sourceMappingURL=secret-contract-api.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import {\n collectSimpleChannelFieldAssignments,\n getChannelSurface,\n type ResolverContext,\n type SecretDefaults,\n type SecretTargetRegistryEntry,\n} from \"openclaw/plugin-sdk/channel-secret-basic-runtime\"\n\nexport const secretTargetRegistryEntries: SecretTargetRegistryEntry[] = [\n {\n id: \"channels.inline.accounts.*.token\",\n targetType: \"channels.inline.accounts.*.token\",\n configFile: \"openclaw.json\",\n pathPattern: \"channels.inline.accounts.*.token\",\n secretShape: \"secret_input\",\n expectedResolvedValue: \"string\",\n includeInPlan: true,\n includeInConfigure: true,\n includeInAudit: true,\n },\n {\n id: \"channels.inline.token\",\n targetType: \"channels.inline.token\",\n configFile: \"openclaw.json\",\n pathPattern: \"channels.inline.token\",\n secretShape: \"secret_input\",\n expectedResolvedValue: \"string\",\n includeInPlan: true,\n includeInConfigure: true,\n includeInAudit: true,\n },\n]\n\nexport function collectRuntimeConfigAssignments(params: {\n config: { channels?: Record<string, unknown> }\n defaults?: SecretDefaults\n context: ResolverContext\n}): void {\n const resolved = getChannelSurface(params.config, \"inline\")\n if (!resolved) {\n return\n }\n\n collectSimpleChannelFieldAssignments({\n channelKey: \"inline\",\n field: \"token\",\n channel: resolved.channel,\n surface: resolved.surface,\n defaults: params.defaults,\n context: params.context,\n topInactiveReason: \"no enabled Inline account inherits this top-level token.\",\n accountInactiveReason: \"Inline account is disabled.\",\n })\n}\n\nexport const channelSecrets = {\n secretTargetRegistryEntries,\n collectRuntimeConfigAssignments,\n}\n\nexport const inlineSecrets = channelSecrets\n"
|
|
6
6
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAQO,IAAM,8BAA2D;AAAA,EACtE;AAAA,IACE,IAAI;AAAA,IACJ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,aAAa;AAAA,IACb,uBAAuB;AAAA,IACvB,eAAe;AAAA,IACf,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,EAClB;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,aAAa;AAAA,IACb,uBAAuB;AAAA,IACvB,eAAe;AAAA,IACf,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,EAClB;AACF;AAEO,SAAS,+BAA+B,CAAC,QAIvC;AAAA,EACP,MAAM,WAAW,kBAAkB,OAAO,QAAQ,QAAQ;AAAA,EAC1D,IAAI,CAAC,UAAU;AAAA,IACb;AAAA,EACF;AAAA,EAEA,qCAAqC;AAAA,IACnC,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,SAAS,SAAS;AAAA,IAClB,SAAS,SAAS;AAAA,IAClB,UAAU,OAAO;AAAA,IACjB,SAAS,OAAO;AAAA,IAChB,mBAAmB;AAAA,IACnB,uBAAuB;AAAA,EACzB,CAAC;AAAA;AAGI,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AACF;AAEO,IAAM,gBAAgB;",
|
|
8
|
+
"debugId": "2960D8C622BCD05264756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
package/dist/setup-entry.js
CHANGED
|
@@ -4,25 +4,45 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
7
12
|
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
8
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (canCache)
|
|
31
|
+
cache.set(mod, to);
|
|
16
32
|
return to;
|
|
17
33
|
};
|
|
18
34
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
35
|
+
var __returnValue = (v) => v;
|
|
36
|
+
function __exportSetter(name, newValue) {
|
|
37
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
38
|
+
}
|
|
19
39
|
var __export = (target, all) => {
|
|
20
40
|
for (var name in all)
|
|
21
41
|
__defProp(target, name, {
|
|
22
42
|
get: all[name],
|
|
23
43
|
enumerable: true,
|
|
24
44
|
configurable: true,
|
|
25
|
-
set: (
|
|
45
|
+
set: __exportSetter.bind(all, name)
|
|
26
46
|
});
|
|
27
47
|
};
|
|
28
48
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
@@ -44,5 +64,5 @@ export {
|
|
|
44
64
|
setup_entry_default as default
|
|
45
65
|
};
|
|
46
66
|
|
|
47
|
-
//# debugId=
|
|
67
|
+
//# debugId=6A58ADFA2235F27E64756E2164756E21
|
|
48
68
|
//# sourceMappingURL=setup-entry.js.map
|
package/dist/setup-entry.js.map
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import { defineBundledChannelSetupEntry } from \"openclaw/plugin-sdk/channel-entry-contract\"\n\nexport default defineBundledChannelSetupEntry({\n importMetaUrl: import.meta.url,\n plugin: {\n specifier: \"./setup-plugin-api.js\",\n exportName: \"inlineSetupPlugin\",\n },\n secrets: {\n specifier: \"./secret-contract-api.js\",\n exportName: \"channelSecrets\",\n },\n})\n"
|
|
6
6
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAEA,IAAe,qDAA+B;AAAA,EAC5C,eAAe,YAAY;AAAA,EAC3B,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA,EACA,SAAS;AAAA,IACP,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AACF,CAAC;",
|
|
8
|
+
"debugId": "6A58ADFA2235F27E64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|