@2digits/tlo-mcp 0.1.14 → 0.1.16

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +18 -18
  2. package/package.json +13 -14
package/dist/index.d.mts CHANGED
@@ -5,7 +5,7 @@ import * as Redacted from "effect/Redacted";
5
5
  import * as Schema from "effect/Schema";
6
6
  import * as HttpClient from "@effect/platform/HttpClient";
7
7
  import * as Brand from "effect/Brand";
8
- import * as effect_ConfigError0 from "effect/ConfigError";
8
+ import * as _$effect_ConfigError0 from "effect/ConfigError";
9
9
 
10
10
  //#region src/services/TloConfig.d.ts
11
11
  interface TloConfigShape {
@@ -25,8 +25,7 @@ declare const TloApiError_base: Schema.TaggedErrorClass<TloApiError, "TloApiErro
25
25
  endpoint: Schema.optional<typeof Schema.String>;
26
26
  }>;
27
27
  /**
28
- * Error returned when the TLO API indicates failure.
29
- * This occurs when success: false in the response envelope.
28
+ * Error returned when the TLO API indicates failure. This occurs when success: false in the response envelope.
30
29
  */
31
30
  declare class TloApiError extends TloApiError_base {}
32
31
  declare const TloAuthError_base: Schema.TaggedErrorClass<TloAuthError, "TloAuthError", {
@@ -35,8 +34,7 @@ declare const TloAuthError_base: Schema.TaggedErrorClass<TloAuthError, "TloAuthE
35
34
  message: typeof Schema.String;
36
35
  }>;
37
36
  /**
38
- * Error for authentication failures.
39
- * Session token expired or invalid credentials.
37
+ * Error for authentication failures. Session token expired or invalid credentials.
40
38
  */
41
39
  declare class TloAuthError extends TloAuthError_base {}
42
40
  declare const TloNetworkError_base: Schema.TaggedErrorClass<TloNetworkError, "TloNetworkError", {
@@ -47,8 +45,7 @@ declare const TloNetworkError_base: Schema.TaggedErrorClass<TloNetworkError, "Tl
47
45
  endpoint: Schema.optional<typeof Schema.String>;
48
46
  }>;
49
47
  /**
50
- * Error for network/transport failures.
51
- * Connection refused, timeout, etc.
48
+ * Error for network/transport failures. Connection refused, timeout, etc.
52
49
  */
53
50
  declare class TloNetworkError extends TloNetworkError_base {}
54
51
  declare const TloParseError_base: Schema.TaggedErrorClass<TloParseError, "TloParseError", {
@@ -58,8 +55,7 @@ declare const TloParseError_base: Schema.TaggedErrorClass<TloParseError, "TloPar
58
55
  cause: Schema.optional<typeof Schema.Unknown>;
59
56
  }>;
60
57
  /**
61
- * Error when response parsing fails.
62
- * Unexpected response format from TLO.
58
+ * Error when response parsing fails. Unexpected response format from TLO.
63
59
  */
64
60
  declare class TloParseError extends TloParseError_base {}
65
61
  type TloError = TloApiError | TloAuthError | TloNetworkError | TloParseError;
@@ -80,7 +76,9 @@ declare class TeamLeaderClient extends TeamLeaderClient_base {}
80
76
  declare const TeamLeaderClientLive: Layer.Layer<TeamLeaderClient, never, TloConfig | TloHttpClient>;
81
77
  //#endregion
82
78
  //#region src/schemas/time.d.ts
83
- /** Raw activity from TLO API response. Field names match the API exactly. */
79
+ /**
80
+ * Raw activity from TLO API response. Field names match the API exactly.
81
+ */
84
82
  declare const ActivityRaw: Schema.Struct<{
85
83
  ID: typeof Schema.Number;
86
84
  FOLDERID: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
@@ -753,8 +751,8 @@ declare const TloConfigFromEnv: Effect.Effect<{
753
751
  baseUrl: string;
754
752
  sessionToken: Redacted.Redacted<string>;
755
753
  cookies: ReadonlyMap<string, string>;
756
- }, effect_ConfigError0.ConfigError, never>;
757
- declare const TloConfigLive: Layer.Layer<TloConfig, effect_ConfigError0.ConfigError, never>;
754
+ }, _$effect_ConfigError0.ConfigError, never>;
755
+ declare const TloConfigLive: Layer.Layer<TloConfig, _$effect_ConfigError0.ConfigError, never>;
758
756
  //#endregion
759
757
  //#region src/layers/TloLive.d.ts
760
758
  declare const TloServicesLive: Layer.Layer<BoardService | TimeService, never, TeamLeaderClient>;
@@ -763,15 +761,16 @@ declare const TloLive: Layer.Layer<BoardService | TimeService, never, TloConfig>
763
761
  //#endregion
764
762
  //#region src/schemas/common.d.ts
765
763
  /**
766
- * TeamLeader Orbit uses YYYYMMDDHHMMSS format for dates.
767
- * Example: "20251117143000" = Nov 17, 2025 14:30:00
764
+ * TeamLeader Orbit uses YYYYMMDDHHMMSS format for dates. Example: "20251117143000" = Nov 17, 2025 14:30:00.
768
765
  */
769
766
  declare const TloDateString: Schema.brand<Schema.filter<typeof Schema.String>, "TloDateString">;
770
767
  type TloDateString = typeof TloDateString.Type;
771
768
  /**
772
769
  * Format Date to YYYYMMDDHHMMSS string.
770
+ *
771
+ * @param date - Date to format.
773
772
  */
774
- declare function formatTloDate(d: Date): TloDateString;
773
+ declare function formatTloDate(date: Date): TloDateString;
775
774
  /**
776
775
  * Transform between TLO date strings and JavaScript Date objects.
777
776
  */
@@ -784,9 +783,10 @@ type TloId = string & Brand.Brand<'TloId'>;
784
783
  declare const TloId: Brand.Brand.Constructor<TloId>;
785
784
  declare const TloIdSchema: Schema.BrandSchema<string & Brand.Brand<"TloId">, string, never>;
786
785
  /**
787
- * Standard TLO API response envelope schema.
788
- * Note: Most endpoints return data directly without this wrapper.
789
- * Kept for potential use with endpoints that do use the envelope pattern.
786
+ * Standard TLO API response envelope schema. Note: Most endpoints return data directly without this wrapper. Kept for
787
+ * potential use with endpoints that do use the envelope pattern.
788
+ *
789
+ * @param dataSchema - Data schema to wrap.
790
790
  */
791
791
  declare function TloResponse<$A, $I, $R>(dataSchema: Schema.Schema<$A, $I, $R>): Schema.Struct<{
792
792
  success: typeof Schema.Boolean;
package/package.json CHANGED
@@ -1,27 +1,25 @@
1
1
  {
2
2
  "name": "@2digits/tlo-mcp",
3
- "version": "0.1.14",
4
- "public": true,
3
+ "version": "0.1.16",
5
4
  "repository": {
6
5
  "type": "git",
7
6
  "url": "git+https://github.com/2digits-agency/configs.git",
8
7
  "directory": "packages/tlo-mcp"
9
8
  },
10
- "type": "module",
11
- "types": "./dist/index.d.mts",
12
9
  "bin": {
13
10
  "tlo-mcp": "./dist/bin.mjs"
14
11
  },
15
12
  "files": [
16
13
  "dist"
17
14
  ],
15
+ "type": "module",
16
+ "sideEffects": false,
17
+ "types": "./dist/index.d.mts",
18
18
  "exports": {
19
19
  ".": "./dist/index.mjs",
20
20
  "./bin": "./dist/bin.mjs",
21
21
  "./package.json": "./package.json"
22
22
  },
23
- "sideEffects": false,
24
- "license": "MIT",
25
23
  "dependencies": {
26
24
  "@effect/ai": "0.35.0",
27
25
  "@effect/cli": "0.75.0",
@@ -33,20 +31,21 @@
33
31
  },
34
32
  "devDependencies": {
35
33
  "@arethetypeswrong/core": "0.18.2",
36
- "@effect/language-service": "0.83.1",
34
+ "@effect/language-service": "0.85.1",
37
35
  "@effect/vitest": "0.29.0",
38
- "@typescript/native-preview": "7.0.0-dev.20260325.1",
36
+ "@typescript/native-preview": "7.0.0-dev.20260411.1",
39
37
  "publint": "0.3.18",
40
- "tsdown": "0.21.4",
41
38
  "typescript": "6.0.2",
42
- "vitest": "4.1.1",
39
+ "vite-plus": "0.1.16",
40
+ "vitest": "npm:@voidzero-dev/vite-plus-test@0.1.16",
43
41
  "@2digits/tsconfig": "0.8.7"
44
42
  },
43
+ "public": true,
45
44
  "scripts": {
46
- "build": "tsdown --minify --config-loader unconfig",
47
- "dev": "tsdown --watch --config-loader unconfig",
48
- "test": "vitest run",
49
- "test:watch": "vitest",
45
+ "build": "vp pack --minify --config-loader unconfig",
46
+ "dev": "vp pack --watch --config-loader unconfig",
47
+ "test": "vp test run",
48
+ "test:watch": "vp test",
50
49
  "types": "tsc --noEmit"
51
50
  }
52
51
  }