@agentshouse/mdruntime-adapter 0.1.0-c3aeadd506101 → 0.1.0-c3b13eeb8d40f
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/actions.d.ts.map +1 -1
- package/dist/actions.js +1 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +68 -59
- package/dist/authored-path.d.ts +0 -1
- package/dist/authored-path.d.ts.map +1 -1
- package/dist/authored-path.js +2 -3
- package/dist/chunks.d.ts +2 -3
- package/dist/chunks.d.ts.map +1 -1
- package/dist/chunks.js +58 -31
- package/dist/discovery.d.ts +18 -5
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +132 -6
- package/dist/index.d.ts +3 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/model.d.ts +5 -5
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +17 -27
- package/dist/read.d.ts +5 -19
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +34 -35
- package/dist/refusal.d.ts +4 -1
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +11 -0
- package/dist/room-query.d.ts +3 -0
- package/dist/room-query.d.ts.map +1 -0
- package/dist/room-query.js +22 -0
- package/dist/session-content/index.d.ts +1 -1
- package/dist/session-content/parts.d.ts +4 -3
- package/dist/session-content/turn.d.ts +3 -3
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +5 -7
- package/dist/space-schema.d.ts.map +1 -1
- package/dist/space-schema.js +1 -8
- package/dist/stream.d.ts +2 -3
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +70 -86
- package/dist/transport.d.ts +27 -6
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +5 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +3 -5
- package/package.json +3 -2
- package/dist/app-reference.d.ts +0 -1
- package/dist/app-reference.d.ts.map +0 -1
- package/dist/app-reference.js +0 -2
- package/dist/crockford.d.ts +0 -3
- package/dist/crockford.d.ts.map +0 -1
- package/dist/crockford.js +0 -3
- package/dist/house-model.d.ts +0 -830
- package/dist/house-model.d.ts.map +0 -1
- package/dist/house-model.js +0 -465
- package/dist/room-types.d.ts +0 -4
- package/dist/room-types.d.ts.map +0 -1
- package/dist/room-types.js +0 -135
package/dist/write.js
CHANGED
|
@@ -29,7 +29,7 @@ function created(change, path) {
|
|
|
29
29
|
const { type, ...fields } = change.fields;
|
|
30
30
|
if (typeof type !== 'string' || type.length === 0)
|
|
31
31
|
return null;
|
|
32
|
-
return { op: 'create_typed', path, type, fields
|
|
32
|
+
return { op: 'create_typed', path, type, fields };
|
|
33
33
|
}
|
|
34
34
|
function operationOf(batch, change, handle) {
|
|
35
35
|
const path = nativePath(change.path, handle);
|
|
@@ -373,12 +373,10 @@ export function historyOutcome(status, body, locator, request) {
|
|
|
373
373
|
return unusable();
|
|
374
374
|
entries.push(entry);
|
|
375
375
|
}
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
const named = entries[0];
|
|
377
|
+
if (request.revision !== undefined && typeof named?.media_type !== 'string') {
|
|
378
378
|
if (named === undefined)
|
|
379
379
|
return { kind: 'no-history' };
|
|
380
|
-
if (typeof named.media_type === 'string')
|
|
381
|
-
return { kind: 'no-history' };
|
|
382
380
|
if (typeof named.content !== 'string')
|
|
383
381
|
return unusable();
|
|
384
382
|
return { kind: 'revision', content: named.content };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/mdruntime-adapter",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-c3b13eeb8d40f",
|
|
4
4
|
"description": "Agents House Adapter for the MD Runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"LICENSE"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@agentshouse/
|
|
27
|
+
"@agentshouse/mdmodel": "0.1.0-cb39915954ec5",
|
|
28
|
+
"@agentshouse/mdruntime": "0.1.0-cc7671cc3f267"
|
|
28
29
|
},
|
|
29
30
|
"repository": {
|
|
30
31
|
"type": "git",
|
package/dist/app-reference.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const APP_REFERENCE_PATTERN: RegExp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-reference.d.ts","sourceRoot":"","sources":["../src/app-reference.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,QAEjC,CAAC"}
|
package/dist/app-reference.js
DELETED
package/dist/crockford.d.ts
DELETED
package/dist/crockford.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crockford.d.ts","sourceRoot":"","sources":["../src/crockford.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,qCAAqC,CAAC;AAErE,eAAO,MAAM,mBAAmB,uCAA4B,CAAC;AAE7D,eAAO,MAAM,2BAA2B,QAAqC,CAAC"}
|
package/dist/crockford.js
DELETED