arcane-os 0.33.1 → 0.33.2
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.33.2
|
|
4
|
+
|
|
5
|
+
- Initialize the shared file manager's default tree provider before an
|
|
6
|
+
already-ready DBOPFS starts loading. Preserve deferred readiness, custom
|
|
7
|
+
providers, duplicate-ready handling and component disposal without adding
|
|
8
|
+
a startup wait.
|
|
9
|
+
- Correct the isolated-model question runner's sentence and Unicode matcher
|
|
10
|
+
literals so the public module imports successfully. Keep complete questions,
|
|
11
|
+
answers and provider metadata while adding the existing sentence count.
|
|
12
|
+
- Retain standalone app-root hosting through `/node_modules/arcane-os/...`;
|
|
13
|
+
this patch requires no app-local SDK changes or copied `/arcane` tree.
|
|
14
|
+
|
|
3
15
|
## 0.33.1
|
|
4
16
|
|
|
5
17
|
- Preserve application and pre-existing body classes when the shared header
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ version-locked SDK runtime, while an integrated Arcane checkout uses its live
|
|
|
19
19
|
`arcane/` runtime. Both profiles share the theme, packaging, event, cancellation,
|
|
20
20
|
and browser run contracts while retaining their selected application layout.
|
|
21
21
|
|
|
22
|
-
This checkout defines the `0.33.
|
|
22
|
+
This checkout defines the `0.33.2` SDK contract. Applications pin one exact npm
|
|
23
23
|
version and lockfile; registry state is deliberately not baked into application
|
|
24
24
|
artifacts.
|
|
25
25
|
|
|
@@ -85,7 +85,7 @@ Create one browser application, install its pinned SDK, and start its source
|
|
|
85
85
|
server:
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
|
-
npx arcane-os@0.33.
|
|
88
|
+
npx arcane-os@0.33.2 new hello-speech --path ./hello-speech --target browser
|
|
89
89
|
cd hello-speech
|
|
90
90
|
npm install
|
|
91
91
|
```
|
|
@@ -753,6 +753,11 @@ Slots: `title`, `preview`, `metadata`, `actions`.
|
|
|
753
753
|
|
|
754
754
|
Browses, filters, selects, opens, and acts on app-scoped files.
|
|
755
755
|
|
|
756
|
+
The default tree provider is initialized before storage readiness starts the
|
|
757
|
+
first load. Already-ready DBOPFS loads immediately; otherwise the component
|
|
758
|
+
starts on `dbopfs-ready`. Both paths retain the same `file-manager-ready` event
|
|
759
|
+
and `destroy()` cleanup, without delaying unrelated component startup.
|
|
760
|
+
|
|
756
761
|
### Public surface
|
|
757
762
|
|
|
758
763
|
Methods/properties: `setProvider()`, `loadAll()`, `setFilter()`, `select()`, `clearSelection()`, `destroy()`.
|
package/package.json
CHANGED
|
@@ -452,16 +452,6 @@
|
|
|
452
452
|
return isVisibleEntry({name:fileName,path:fileName,kind:'file'});
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
window.addEventListener(
|
|
456
|
-
'dbopfs-ready',
|
|
457
|
-
init,
|
|
458
|
-
{once:true,signal:lifecycleController.signal}
|
|
459
|
-
);
|
|
460
|
-
|
|
461
|
-
if(window.dbopfs?.ready){
|
|
462
|
-
init();
|
|
463
|
-
}
|
|
464
|
-
|
|
465
455
|
fileUpload.addEventListener(
|
|
466
456
|
'change',
|
|
467
457
|
()=>uploadFiles().catch(
|
|
@@ -698,6 +688,17 @@
|
|
|
698
688
|
}
|
|
699
689
|
};
|
|
700
690
|
|
|
691
|
+
// Immediate readiness can enter loadTree before init reaches its first await.
|
|
692
|
+
window.addEventListener(
|
|
693
|
+
'dbopfs-ready',
|
|
694
|
+
init,
|
|
695
|
+
{once:true,signal:lifecycleController.signal}
|
|
696
|
+
);
|
|
697
|
+
|
|
698
|
+
if(window.dbopfs?.ready){
|
|
699
|
+
init();
|
|
700
|
+
}
|
|
701
|
+
|
|
701
702
|
function activeTreeProvider(){
|
|
702
703
|
return provider||dbopfsTreeProvider;
|
|
703
704
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Is from 'strong-type';
|
|
2
2
|
const is=new Is(false);
|
|
3
3
|
|
|
4
|
-
const SENTENCE_BOUNDARY
|
|
5
|
-
const WORD_OR_NUMBER
|
|
4
|
+
const SENTENCE_BOUNDARY = /[.!?]+(?:["'\u2019\u201d)\]}]+)?(?=\s|$)/gu;
|
|
5
|
+
const WORD_OR_NUMBER = /[\p{L}\p{N}]/u;
|
|
6
6
|
|
|
7
7
|
function codedError(code,message,ErrorType=Error){
|
|
8
8
|
const error=new ErrorType(message);
|