@seed-hypermedia/client 0.0.119 → 0.0.120
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/apps.mjs +2 -2
- package/dist/auto-link.mjs +3 -3
- package/dist/blocks-to-markdown.mjs +3 -3
- package/dist/capability.mjs +2 -2
- package/dist/{chunk-J2QF2I3H.mjs → chunk-2PE27W5B.mjs} +1 -1
- package/dist/{chunk-6RZWE7TK.mjs → chunk-5AZOE4Q5.mjs} +2 -2
- package/dist/{chunk-PTCL6IO7.mjs → chunk-7JPEO4TT.mjs} +1 -1
- package/dist/{chunk-RJ77FJD2.mjs → chunk-AUSRVZFD.mjs} +1 -1
- package/dist/{chunk-BFXGJBSN.mjs → chunk-GJ6YS46E.mjs} +3 -3
- package/dist/{chunk-MY2L74E7.mjs → chunk-GWTLB7T3.mjs} +1 -1
- package/dist/{chunk-JLSJJMOD.mjs → chunk-HMNKYPBH.mjs} +2 -2
- package/dist/{chunk-PUKRJHZR.mjs → chunk-I4V4HM2N.mjs} +1 -1
- package/dist/{chunk-F37OTY5W.mjs → chunk-MKFVGDC7.mjs} +1 -1
- package/dist/{chunk-IC3KRDNX.mjs → chunk-QPEJDS7J.mjs} +2 -2
- package/dist/{chunk-P5EQ4NJ7.mjs → chunk-RJNFOKDJ.mjs} +1 -1
- package/dist/{chunk-TSK67IPM.mjs → chunk-UBZRS3WZ.mjs} +1 -1
- package/dist/{chunk-PON3NHRS.mjs → chunk-UFGIG6N3.mjs} +1 -1
- package/dist/{chunk-37I7X7G7.mjs → chunk-VDVSVU2L.mjs} +1 -1
- package/dist/{chunk-KTOBQK6C.mjs → chunk-VKUYLOTP.mjs} +4 -2
- package/dist/{chunk-JMP3HYRE.mjs → chunk-ZRMEB4UQ.mjs} +3 -3
- package/dist/client.mjs +2 -2
- package/dist/comment.mjs +2 -2
- package/dist/document-state.mjs +2 -2
- package/dist/editorblock-to-hmblock.mjs +2 -2
- package/dist/hm-resolver.mjs +2 -2
- package/dist/hm-types.d.ts +66 -0
- package/dist/hm-types.mjs +1 -1
- package/dist/hmblock-to-editorblock.mjs +2 -2
- package/dist/index.mjs +13 -13
- package/dist/pdf-to-blocks.mjs +3 -3
- package/dist/resource-read.mjs +4 -4
- package/dist/schema-engine.mjs +2 -2
- package/dist/schema-registry.generated.mjs +1 -1
- package/dist/schema-resolve.mjs +4 -4
- package/dist/schema-subtypes.mjs +4 -4
- package/dist/schema-types.generated.d.ts +4 -2
- package/dist/signed-blob.mjs +2 -2
- package/dist/tei-to-blocks.mjs +2 -2
- package/dist/unicode.mjs +1 -1
- package/package.json +1 -1
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
schemaForCid,
|
|
11
11
|
structFields,
|
|
12
12
|
validate
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UBZRS3WZ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
HM_SCHEMAS
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5AZOE4Q5.mjs";
|
|
17
17
|
import {
|
|
18
18
|
parseCidString
|
|
19
19
|
} from "./chunk-VWSAFDOL.mjs";
|
|
20
20
|
import {
|
|
21
21
|
packHmId,
|
|
22
22
|
unpackHmId
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VKUYLOTP.mjs";
|
|
24
24
|
|
|
25
25
|
// src/schema-resolve.ts
|
|
26
26
|
var DAG_CBOR_CODE = 113;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RJNFOKDJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
normalizeQuerySort,
|
|
6
6
|
unpackHmId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VKUYLOTP.mjs";
|
|
8
8
|
|
|
9
9
|
// src/blocks-to-markdown.ts
|
|
10
10
|
import { stringify as stringifyYaml } from "yaml";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "./chunk-PJ2RFT5A.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveDocumentState
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VDVSVU2L.mjs";
|
|
11
11
|
import {
|
|
12
12
|
entityQueryPathToHmIdPath,
|
|
13
13
|
packHmId,
|
|
14
14
|
unpackHmId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VKUYLOTP.mjs";
|
|
16
16
|
|
|
17
17
|
// src/auto-link.ts
|
|
18
18
|
import { CID } from "multiformats/cid";
|
|
@@ -288,11 +288,12 @@ var HMDocumentMetadataSchema = z.object({
|
|
|
288
288
|
cover: z.string().optional(),
|
|
289
289
|
siteUrl: z.string().optional(),
|
|
290
290
|
/**
|
|
291
|
-
* The
|
|
291
|
+
* The app environment an agent's mount document names (an http(s) origin). A document with
|
|
292
292
|
* `type: hm://hyper.media/agent` and this field is an agent: its versionless hm:// id is the
|
|
293
293
|
* agent's id, and that server must register it under exactly that id. A space's agents are
|
|
294
294
|
* found by querying its documents for this type; nothing else registers an agent with a space.
|
|
295
295
|
*/
|
|
296
|
+
appEnvironmentUrl: z.string().optional(),
|
|
296
297
|
agentServerUrl: z.string().optional(),
|
|
297
298
|
/**
|
|
298
299
|
* Resource type: hm://hyper.media/page (custom HTML page), hm://hyper.media/app (an app, whose
|
|
@@ -347,7 +348,8 @@ var DOCUMENT_ATTRIBUTE_DESCRIPTIONS = {
|
|
|
347
348
|
thumbnail: "Deprecated image field kept for older documents.",
|
|
348
349
|
cover: "Wide cover image shown in headers and cards.",
|
|
349
350
|
siteUrl: "Published website URL for a space.",
|
|
350
|
-
|
|
351
|
+
appEnvironmentUrl: "App environment a space is bound to, on its home document; read before agentServerUrl.",
|
|
352
|
+
agentServerUrl: "App environment that hosts the agent this document mounts.",
|
|
351
353
|
type: "Resource type, such as a custom HTML page, an app or a tool.",
|
|
352
354
|
html: "UnixFS folder holding a custom HTML page.",
|
|
353
355
|
inputSchema: "Schema of the input a page or tool takes.",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I4V4HM2N.mjs";
|
|
4
4
|
import {
|
|
5
5
|
extractCommentIdFromUrl,
|
|
6
6
|
hmDomainUrlToWebUrl,
|
|
7
7
|
resolveId
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RJNFOKDJ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
unpackHmId
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VKUYLOTP.mjs";
|
|
12
12
|
|
|
13
13
|
// src/resource-read.ts
|
|
14
14
|
async function resolveIdWithClient(rawId, options = {}) {
|
package/dist/client.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient,
|
|
3
3
|
deserializeQueryString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I4V4HM2N.mjs";
|
|
5
5
|
import "./chunk-CBELM7KX.mjs";
|
|
6
6
|
import "./chunk-O5MHN2EO.mjs";
|
|
7
7
|
import "./chunk-PJ2RFT5A.mjs";
|
|
8
8
|
import "./chunk-LVAHHQIK.mjs";
|
|
9
9
|
import "./chunk-DR3HJ6BV.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-VKUYLOTP.mjs";
|
|
11
11
|
import "./chunk-AHQWDCHV.mjs";
|
|
12
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
13
|
export {
|
package/dist/comment.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
deleteComment,
|
|
5
5
|
trimTrailingEmptyBlocks,
|
|
6
6
|
updateComment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2PE27W5B.mjs";
|
|
8
8
|
import "./chunk-JKKS35IS.mjs";
|
|
9
9
|
import "./chunk-LVAHHQIK.mjs";
|
|
10
10
|
import "./chunk-DR3HJ6BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-VKUYLOTP.mjs";
|
|
12
12
|
import "./chunk-AHQWDCHV.mjs";
|
|
13
13
|
import "./chunk-7P6ASYW6.mjs";
|
|
14
14
|
export {
|
package/dist/document-state.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
followToDocument,
|
|
5
5
|
resolveDocumentState,
|
|
6
6
|
resolveEditableDocument
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-VDVSVU2L.mjs";
|
|
8
|
+
import "./chunk-VKUYLOTP.mjs";
|
|
9
9
|
import "./chunk-AHQWDCHV.mjs";
|
|
10
10
|
import "./chunk-7P6ASYW6.mjs";
|
|
11
11
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
editorBlockToHMBlock,
|
|
3
3
|
editorBlocksToHMBlockNodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MKFVGDC7.mjs";
|
|
5
5
|
import "./chunk-JKKS35IS.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-VKUYLOTP.mjs";
|
|
7
7
|
import "./chunk-AHQWDCHV.mjs";
|
|
8
8
|
import "./chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
package/dist/hm-resolver.mjs
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
hmDomainUrlToWebUrl,
|
|
4
4
|
resolveHypermediaUrl,
|
|
5
5
|
resolveId
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-RJNFOKDJ.mjs";
|
|
7
|
+
import "./chunk-VKUYLOTP.mjs";
|
|
8
8
|
import "./chunk-AHQWDCHV.mjs";
|
|
9
9
|
import "./chunk-7P6ASYW6.mjs";
|
|
10
10
|
export {
|