@cheezmil/coraek 1.0.0 → 1.0.1

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/lib/client.js CHANGED
@@ -5,7 +5,7 @@ window.__ModuleLoader__.load({
5
5
  var exports = module.exports;
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
7
  //#region src/client/index.ts
8
- /** aek-home owns the surface; aek-base contributes no client UI. */
8
+ /** aek-home owns the surface; coraek contributes no client UI. */
9
9
  const inject = [];
10
10
  /** Identity no-op: the AEK brand now lives in aek-home's own surface. */
11
11
  function apply(_ctx) {}
package/lib/index.js CHANGED
@@ -1,7 +1,42 @@
1
+ import { Args, Command, Command as Command$1, Flags, run } from "@oclif/core";
2
+ //#region lib/types/cli.js
3
+ /**
4
+ * Base command class for all AEK CLI commands.
5
+ */
6
+ var AEKCommand = class extends Command$1 {};
7
+ //#endregion
8
+ //#region lib/types/coraek.js
9
+ /**
10
+ * AEK framework layer identity.
11
+ *
12
+ * "cor" = Latin heart, "aek" = Agent Enhance Kit. Coraek is the heart of AEK.
13
+ * Coraek is the heart of AEK — the runtime layer that gives agents life.
14
+ */
15
+ const CORAEK_VERSION = "1.0.0";
16
+ const CORAEK_NAME = "coraek";
17
+ /** Print the framework identity line. */
18
+ function announceCoraek() {
19
+ console.log(`coraek ${CORAEK_VERSION}`);
20
+ }
21
+ //#endregion
1
22
  //#region lib/types/index.js
2
23
  /**
3
- * AEK base identity layer. Prints the `aek web:` readiness line.
4
- * @module @cheezmil/aek-base
24
+ * AEK base identity layer, host half. Prints the `aek web:` readiness line.
25
+ * The dsh web-app bundle's own `dsh web:` line is suppressed via
26
+ * `printUrl: false` in the web profile's cordis patch, so AEK surfaces the
27
+ * AEK-prefixed URL instead. Set `DSH_CLIENT_TITLE` at build time to rebrand
28
+ * the document title; this host half owns the process-stdout announcement.
29
+ *
30
+ * 类型 re-export 说明:
31
+ * 所有 AEK 插件通过 `@cheezmil/coraek/types` 导入 Context/Volatile/ClientContext,
32
+ * 而不是直接 import `@deepseek-ai/cordis`(框架底层,保持不变)。这做了两件事:
33
+ * 1. AEK 插件和 dsh 插件在 import 来源上一眼可辨(对话中 AI 能区分)
34
+ * 2. 未来若切换框架底层,只需改 coraek 一处,所有插件自动跟随
35
+ *
36
+ * - AEK 插件导入:`import type { Context } from '@cheezmil/coraek/types'`
37
+ * - dsh 插件导入:`import type { Context } from '@deepseek-ai/cordis'`(框架底层,保持不变)
38
+ *
39
+ * @module @cheezmil/coraek
5
40
  */
6
41
  /** Stable Coraek plugin name. */
7
42
  const name = "coraek";
@@ -9,7 +44,8 @@ const name = "coraek";
9
44
  const inject = ["webServer"];
10
45
  const ANNOUNCED_ROOTS = /* @__PURE__ */ new WeakSet();
11
46
  /**
12
- * Print the `aek web:` readiness line.
47
+ * Print the `aek web:` readiness line once the connection service mounts.
48
+ * @param ctx - plugin context carrying the webServer service.
13
49
  */
14
50
  function apply(ctx) {
15
51
  ctx.inject(["connection"], (connectionCtx) => {
@@ -19,10 +55,5 @@ function apply(ctx) {
19
55
  console.log(`aek web: ${url}`);
20
56
  });
21
57
  }
22
- const CORAEK_VERSION = "1.0.0";
23
- const CORAEK_NAME = "coraek";
24
- function announceCoraek() {
25
- console.log(`coraek ${CORAEK_VERSION}`);
26
- }
27
58
  //#endregion
28
- export { CORAEK_NAME, CORAEK_VERSION, announceCoraek, apply, inject, name };
59
+ export { AEKCommand, Args, CORAEK_NAME, CORAEK_VERSION, Command, Flags, announceCoraek, apply, inject, name, run };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * AEK CLI layer — re-exports oclif core plus AEK-specific conventions.
3
+ *
4
+ * All AEK plugins should import CLI primitives from here instead of
5
+ * importing @oclif/core directly.
6
+ *
7
+ * @module @cheezmil/coraek/cli
8
+ */
9
+ export { Command, Args, Flags, run } from '@oclif/core';
10
+ import { Command } from '@oclif/core';
11
+ declare module '@oclif/core' {
12
+ class ExitError extends Error {
13
+ code: number;
14
+ constructor(code: number | undefined, message?: string);
15
+ }
16
+ }
17
+ /**
18
+ * Base command class for all AEK CLI commands.
19
+ */
20
+ export declare abstract class AEKCommand extends Command {
21
+ }
22
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1,13 @@
1
+ import type { SidebarBrandMarkOwnerProps } from '@deepseek-ai/dsh-client-ui-sidebar/client';
2
+ /**
3
+ * The AEK brand mark — an orange slice, at the requested square edge.
4
+ * @param props.size - square edge in pixels.
5
+ * @returns the orange-slice svg (aria-hidden; pair with the name for accessibility).
6
+ */
7
+ export declare function AekBrandMark({ size }: SidebarBrandMarkOwnerProps): import("react").JSX.Element;
8
+ /**
9
+ * The AEK brand name wordmark.
10
+ * @returns the AEK name as localized text.
11
+ */
12
+ export declare function AekBrandName(): import("react").JSX.Element;
13
+ //# sourceMappingURL=Brand.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * AEK base identity layer, client half. With aek-home as the direct-render
3
+ * application root and the dsh sidebar/shell disabled, there are no sidebar
4
+ * brand slots to fill; the client half is an identity no-op. The host half
5
+ * still prints `aek web:` and pins the AEK home dir.
6
+ * @module @cheezmil/coraek/src/client/index
7
+ */
8
+ import type { Context as ClientContext } from '@deepseek-ai/cordis';
9
+ export type { Context as ClientContext } from '@deepseek-ai/cordis';
10
+ /** aek-home owns the surface; coraek contributes no client UI. */
11
+ export declare const inject: readonly string[];
12
+ /** Identity no-op: the AEK brand now lives in aek-home's own surface. */
13
+ export declare function apply(_ctx: ClientContext): void;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * AEK framework layer identity.
3
+ *
4
+ * "cor" = Latin heart, "aek" = Agent Enhance Kit. Coraek is the heart of AEK.
5
+ * Coraek is the heart of AEK — the runtime layer that gives agents life.
6
+ */
7
+ export declare const CORAEK_VERSION = "1.0.0";
8
+ export declare const CORAEK_NAME = "coraek";
9
+ /** Print the framework identity line. */
10
+ export declare function announceCoraek(): void;
11
+ //# sourceMappingURL=coraek.d.ts.map
@@ -0,0 +1,33 @@
1
+ /**
2
+ * AEK base identity layer, host half. Prints the `aek web:` readiness line.
3
+ * The dsh web-app bundle's own `dsh web:` line is suppressed via
4
+ * `printUrl: false` in the web profile's cordis patch, so AEK surfaces the
5
+ * AEK-prefixed URL instead. Set `DSH_CLIENT_TITLE` at build time to rebrand
6
+ * the document title; this host half owns the process-stdout announcement.
7
+ *
8
+ * 类型 re-export 说明:
9
+ * 所有 AEK 插件通过 `@cheezmil/coraek/types` 导入 Context/Volatile/ClientContext,
10
+ * 而不是直接 import `@deepseek-ai/cordis`(框架底层,保持不变)。这做了两件事:
11
+ * 1. AEK 插件和 dsh 插件在 import 来源上一眼可辨(对话中 AI 能区分)
12
+ * 2. 未来若切换框架底层,只需改 coraek 一处,所有插件自动跟随
13
+ *
14
+ * - AEK 插件导入:`import type { Context } from '@cheezmil/coraek/types'`
15
+ * - dsh 插件导入:`import type { Context } from '@deepseek-ai/cordis'`(框架底层,保持不变)
16
+ *
17
+ * @module @cheezmil/coraek
18
+ */
19
+ import type { Context } from '@deepseek-ai/cordis';
20
+ export type { Context } from '@deepseek-ai/cordis';
21
+ export type { Volatile } from '@deepseek-ai/cosmokit';
22
+ /** Stable Coraek plugin name. */
23
+ export declare const name = "coraek";
24
+ /** Services required before the AEK URL line can print. */
25
+ export declare const inject: string[];
26
+ /**
27
+ * Print the `aek web:` readiness line once the connection service mounts.
28
+ * @param ctx - plugin context carrying the webServer service.
29
+ */
30
+ export declare function apply(ctx: Context): void;
31
+ export * from './cli.ts';
32
+ export * from './coraek.ts';
33
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cheezmil/coraek",
3
3
  "description": "AEK base identity layer: pins the AEK home dir and prints the `aek web:` startup line; the client half is an identity no-op (aek-home owns the surface)",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },