@owlmeans/api-config-client 0.1.18-rc.42 → 0.1.18-rc.43
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 +2 -2
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/api-config-client/SKILL.md +1 -1
- package/build/entrypoints.d.ts +1 -1
- package/build/entrypoints.d.ts.map +1 -1
- package/build/middleware.d.ts.map +1 -1
- package/build/middleware.js +3 -1
- package/build/middleware.js.map +1 -1
- package/package.json +6 -5
- package/src/middleware.ts +4 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Client-side middleware that fetches server config from `GET /assets/config.json`
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
bun add @owlmeans/api-config-client@^0.1.18-rc.
|
|
14
|
+
bun add @owlmeans/api-config-client@^0.1.18-rc.43
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
@@ -48,7 +48,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
48
48
|
your project's skill store (`.agents/skills/`):
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
51
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.47
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/api-config-client",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"version": "0.1.18-rc.43",
|
|
5
|
+
"generatedAt": "2026-10-03T20:05:07.598Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/api-config-client
|
|
9
9
|
|
|
10
10
|
**Layer:** Client
|
|
11
|
-
**Install:** `"@owlmeans/api-config-client": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/api-config-client": "^0.1.18-rc.43"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
Consumes the declaration shared by `@owlmeans/api-config` and answered by
|
|
14
14
|
`@owlmeans/api-config-server`.
|
package/build/entrypoints.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** The browser-local binding of the shared runtime-config protocol. */
|
|
2
|
-
export declare const entrypoints: import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<
|
|
2
|
+
export declare const entrypoints: import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").OpenRequest, import("@owlmeans/entrypoint").OpenValue>>[];
|
|
3
3
|
//# sourceMappingURL=entrypoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAIA,uEAAuE;AACvE,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAIA,uEAAuE;AACvE,eAAO,MAAM,WAAW,2MAAoB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAYnD,eAAO,MAAM,mBAAmB,EAAE,UAsBjC,CAAA"}
|
package/build/middleware.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { MiddlewareType, MiddlewareStage, assertContext } from '@owlmeans/context';
|
|
2
2
|
import { API_CONFIG } from '@owlmeans/api-config';
|
|
3
3
|
import { mergeConfig } from '@owlmeans/config';
|
|
4
|
+
import { logger } from '@owlmeans/log';
|
|
5
|
+
const log = logger('api-config-client');
|
|
4
6
|
export const apiConfigMiddleware = {
|
|
5
7
|
type: MiddlewareType.Context,
|
|
6
8
|
stage: MiddlewareStage.Loading,
|
|
@@ -18,7 +20,7 @@ export const apiConfigMiddleware = {
|
|
|
18
20
|
mergeConfig(target, config);
|
|
19
21
|
}
|
|
20
22
|
catch (e) {
|
|
21
|
-
|
|
23
|
+
log.warn('API config not loaded', e);
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
}
|
package/build/middleware.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEtC,MAAM,GAAG,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAA;AAEvC,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,IAAI,EAAE,cAAc,CAAC,OAAO;IAC5B,KAAK,EAAE,eAAe,CAAC,OAAO;IAC9B,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;QACnB,MAAM,OAAO,GAAG,aAAa,CAC3B,GAAU,EAAE,uBAAuB,CACpC,CAAA;QACD,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAA8B,UAAU,CAAC,CAAA;QAC1E,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAA;YACjD,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC;gBACpC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAA;YACnD,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAA;gBAClC,MAAM,MAAM,GAAiB,OAAO,CAAC,GAA8B,CAAA;gBACnE,WAAW,CAAC,MAAM,EAAE,MAAsB,CAAC,CAAA;YAC7C,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,GAAG,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAA;YACtC,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/api-config-client",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.43",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,10 +21,11 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/api-config": "^0.1.18-rc.
|
|
25
|
-
"@owlmeans/client-context": "^0.1.18-rc.
|
|
26
|
-
"@owlmeans/client-entrypoint": "^0.1.18-rc.
|
|
27
|
-
"@owlmeans/context": "^0.1.18-rc.32"
|
|
24
|
+
"@owlmeans/api-config": "^0.1.18-rc.41",
|
|
25
|
+
"@owlmeans/client-context": "^0.1.18-rc.46",
|
|
26
|
+
"@owlmeans/client-entrypoint": "^0.1.18-rc.45",
|
|
27
|
+
"@owlmeans/context": "^0.1.18-rc.32",
|
|
28
|
+
"@owlmeans/log": "^0.1.18-rc.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@owlmeans/dep-config": "workspace:*",
|
package/src/middleware.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { API_CONFIG } from '@owlmeans/api-config'
|
|
|
6
6
|
import { mergeConfig } from '@owlmeans/config'
|
|
7
7
|
import type { CommonConfig } from '@owlmeans/config'
|
|
8
8
|
import type { ClientContext, ClientConfig } from '@owlmeans/client-context'
|
|
9
|
+
import { logger } from '@owlmeans/log'
|
|
10
|
+
|
|
11
|
+
const log = logger('api-config-client')
|
|
9
12
|
|
|
10
13
|
export const apiConfigMiddleware: Middleware = {
|
|
11
14
|
type: MiddlewareType.Context,
|
|
@@ -25,7 +28,7 @@ export const apiConfigMiddleware: Middleware = {
|
|
|
25
28
|
const target: CommonConfig = context.cfg as unknown as CommonConfig
|
|
26
29
|
mergeConfig(target, config as CommonConfig)
|
|
27
30
|
} catch (e) {
|
|
28
|
-
|
|
31
|
+
log.warn('API config not loaded', e)
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
}
|