@nocobase/app-plugin-agents 1.0.0-beta.22 → 1.0.0-beta.23
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/CHANGELOG.md +21 -0
- package/dist/client/chat/client-id.d.ts +1 -2
- package/dist/client/chat/client-id.d.ts.map +1 -1
- package/dist/client/chat/client-id.js +1 -16
- package/dist/client/chat/client-id.js.map +1 -1
- package/dist/client/components/command-line.d.ts.map +1 -1
- package/dist/client/components/command-line.js +6 -7
- package/dist/client/components/command-line.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @nocobase/app-plugin-agents
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 58531da: Support plain HTTP origins when creating session and upload identifiers or copying text. Provide shared browser UUID and clipboard helpers so draft, submission and invitation actions work without secure-context APIs.
|
|
8
|
+
|
|
9
|
+
Document capability checks and user-facing explanations for secure-context browser features, require HTTP-compatible UUID and copy actions, and return an explicit copy result for localized recovery UI.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [58531da]
|
|
12
|
+
- @nocobase/app-client@4.0.0-beta.3
|
|
13
|
+
- @nocobase/app-cli@1.0.0-beta.27
|
|
14
|
+
- @nocobase/app-server@3.0.0-beta.3
|
|
15
|
+
- @nocobase/authorization@1.0.0-beta.15
|
|
16
|
+
- @nocobase/db@1.0.0-beta.22
|
|
17
|
+
- @nocobase/i18n@2.0.0-beta.1
|
|
18
|
+
- @nocobase/markdown-mermaid@0.1.0-beta.2
|
|
19
|
+
- @nocobase/service-provider@0.0.2-beta.2
|
|
20
|
+
- @nocobase/app-plugin-authentication@2.0.0-beta.13
|
|
21
|
+
- @nocobase/app-plugin-authorization@1.0.0-beta.31
|
|
22
|
+
- @nocobase/app-plugin-file@1.0.0-beta.26
|
|
23
|
+
|
|
3
24
|
## 1.0.0-beta.22
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-id.d.ts","sourceRoot":"","sources":["../../../client/chat/client-id.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"client-id.d.ts","sourceRoot":"","sources":["../../../client/chat/client-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export function createClientId() {
|
|
3
|
-
const bytes = crypto.getRandomValues(new Uint8Array(16));
|
|
4
|
-
bytes[6] = (bytes[6] & 0x0f) | 0x40;
|
|
5
|
-
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
6
|
-
const hex = [...bytes]
|
|
7
|
-
.map((byte) => byte.toString(16).padStart(2, '0'))
|
|
8
|
-
.join('');
|
|
9
|
-
return [
|
|
10
|
-
hex.slice(0, 8),
|
|
11
|
-
hex.slice(8, 12),
|
|
12
|
-
hex.slice(12, 16),
|
|
13
|
-
hex.slice(16, 20),
|
|
14
|
-
hex.slice(20),
|
|
15
|
-
].join('-');
|
|
16
|
-
}
|
|
1
|
+
export { createUuid as createClientId } from '@nocobase/app-client';
|
|
17
2
|
//# sourceMappingURL=client-id.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-id.js","sourceRoot":"","sources":["../../../client/chat/client-id.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"client-id.js","sourceRoot":"","sources":["../../../client/chat/client-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line.d.ts","sourceRoot":"","sources":["../../../client/components/command-line.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-line.d.ts","sourceRoot":"","sources":["../../../client/components/command-line.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAKpD,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,QAAgB,GACjB,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B,GAAG,YAAY,CA6Bf"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { copyText } from '@nocobase/app-client';
|
|
2
3
|
import { useTranslation } from '@nocobase/i18n/client';
|
|
3
4
|
import { CheckIcon, CopyIcon } from 'lucide-react';
|
|
4
5
|
import { useState } from 'react';
|
|
@@ -10,14 +11,12 @@ export function CommandLine({ command, expanded = false, }) {
|
|
|
10
11
|
const notify = useNotify();
|
|
11
12
|
const [copied, setCopied] = useState(false);
|
|
12
13
|
async function copy() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const copied = await copyText(command);
|
|
15
|
+
setCopied(copied);
|
|
16
|
+
if (copied)
|
|
16
17
|
window.setTimeout(() => setCopied(false), 2000);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
notify.error(error, t('command.copyFailed'));
|
|
20
|
-
}
|
|
18
|
+
else
|
|
19
|
+
notify.error(null, t('command.copyFailed'));
|
|
21
20
|
}
|
|
22
21
|
return (_jsxs("div", { className: 'flex items-start gap-2 rounded-lg border bg-muted p-2 pl-3', children: [_jsx("code", { className: `min-w-0 flex-1 py-1 font-mono text-xs break-all whitespace-pre-wrap select-all ${expanded ? '' : 'max-h-64 overflow-y-auto'}`, children: command }), _jsx(Button, { variant: 'ghost', size: 'icon-sm', "aria-label": copied ? t('command.copied') : t('command.copy'), onClick: () => void copy(), children: copied ? _jsx(CheckIcon, {}) : _jsx(CopyIcon, {}) })] }));
|
|
23
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line.js","sourceRoot":"","sources":["../../../client/components/command-line.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAqB,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,uFAAuF;AACvF,MAAM,UAAU,WAAW,CAAC,EAC1B,OAAO,EACP,QAAQ,GAAG,KAAK,GAIjB;IACC,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,KAAK,UAAU,IAAI;QACjB,
|
|
1
|
+
{"version":3,"file":"command-line.js","sourceRoot":"","sources":["../../../client/components/command-line.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAqB,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,uFAAuF;AACvF,MAAM,UAAU,WAAW,CAAC,EAC1B,OAAO,EACP,QAAQ,GAAG,KAAK,GAIjB;IACC,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,KAAK,UAAU,IAAI;QACjB,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvC,SAAS,CAAC,MAAM,CAAC,CAAC;QAClB,IAAI,MAAM;YAAE,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;;YACvD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAC,4DAA4D,aACzE,eACE,SAAS,EAAE,kFAAkF,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,0BAA0B,EAAE,YAExI,OAAO,GACH,EACP,KAAC,MAAM,IACL,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,SAAS,gBACF,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,EAC5D,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,IAAI,EAAE,YAEzB,MAAM,CAAC,CAAC,CAAC,KAAC,SAAS,KAAG,CAAC,CAAC,CAAC,KAAC,QAAQ,KAAG,GAC/B,IACL,CACP,CAAC;AACJ,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nocobase/app-plugin-agents",
|
|
3
3
|
"displayName": "Agents",
|
|
4
4
|
"description": "Agents for NocoBase applications: agents, the model services online agents call, their runs and conversations, and the runners people connect to run them (registration, the long-poll claim, slots, the sweeper, build jobs, and the runner and CLI tarballs the application serves).",
|
|
5
|
-
"version": "1.0.0-beta.
|
|
5
|
+
"version": "1.0.0-beta.23",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"prettier": "@nocobase/dev-config/prettier",
|
|
8
8
|
"engines": {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nocobase/app-plugin-agents",
|
|
3
3
|
"displayName": "Agents",
|
|
4
4
|
"description": "Agents for NocoBase applications: agents, the model services online agents call, their runs and conversations, and the runners people connect to run them (registration, the long-poll claim, slots, the sweeper, build jobs, and the runner and CLI tarballs the application serves).",
|
|
5
|
-
"version": "1.0.0-beta.
|
|
5
|
+
"version": "1.0.0-beta.23",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"prettier": "@nocobase/dev-config/prettier",
|
|
8
8
|
"engines": {
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"recharts": "^3.8.0",
|
|
189
189
|
"remark-gfm": "^4.0.1",
|
|
190
190
|
"@nocobase/app-cli": "^1.0.0-beta.27",
|
|
191
|
-
"@nocobase/app-client": "^4.0.0-beta.
|
|
191
|
+
"@nocobase/app-client": "^4.0.0-beta.3",
|
|
192
192
|
"@nocobase/app-plugin-authentication": "^2.0.0-beta.13",
|
|
193
193
|
"@nocobase/app-plugin-authorization": "^1.0.0-beta.31",
|
|
194
194
|
"@nocobase/app-plugin-file": "^1.0.0-beta.26",
|
|
@@ -216,8 +216,8 @@
|
|
|
216
216
|
"@nocobase/app-testing": "0.1.0-beta.6",
|
|
217
217
|
"@nocobase/db-postgres": "0.1.0-beta.5",
|
|
218
218
|
"@nocobase/db-sqlite": "0.1.0-beta.6",
|
|
219
|
-
"@nocobase/dev-config": "0.1.0-beta.
|
|
220
|
-
"@nocobase/jobs": "0.1.0-beta.
|
|
219
|
+
"@nocobase/dev-config": "0.1.0-beta.25",
|
|
220
|
+
"@nocobase/jobs": "0.1.0-beta.4"
|
|
221
221
|
},
|
|
222
222
|
"scripts": {
|
|
223
223
|
"build": "tsc -p tsconfig.json && node ./scripts/bundle-just-bash.mjs && nocobase-db-manifests",
|