@2digits/tlo-mcp 0.1.15 → 0.1.17
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/index.d.mts +15 -15
- package/package.json +16 -17
package/dist/index.d.mts
CHANGED
|
@@ -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
|
-
/**
|
|
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]>>;
|
|
@@ -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(
|
|
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
|
-
*
|
|
789
|
-
*
|
|
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,52 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/tlo-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"public": true,
|
|
3
|
+
"version": "0.1.17",
|
|
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
|
-
"@effect/cli": "0.75.
|
|
25
|
+
"@effect/cli": "0.75.1",
|
|
28
26
|
"@effect/experimental": "0.60.0",
|
|
29
27
|
"@effect/platform": "0.96.0",
|
|
30
28
|
"@effect/platform-node": "0.106.0",
|
|
31
29
|
"@effect/rpc": "0.75.0",
|
|
32
|
-
"effect": "3.21.
|
|
30
|
+
"effect": "3.21.1"
|
|
33
31
|
},
|
|
34
32
|
"devDependencies": {
|
|
35
33
|
"@arethetypeswrong/core": "0.18.2",
|
|
36
|
-
"@effect/language-service": "0.
|
|
34
|
+
"@effect/language-service": "0.85.1",
|
|
37
35
|
"@effect/vitest": "0.29.0",
|
|
38
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
36
|
+
"@typescript/native-preview": "7.0.0-dev.20260419.1",
|
|
39
37
|
"publint": "0.3.18",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"vitest": "
|
|
38
|
+
"typescript": "6.0.3",
|
|
39
|
+
"vite-plus": "0.1.18",
|
|
40
|
+
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.18",
|
|
43
41
|
"@2digits/tsconfig": "0.8.7"
|
|
44
42
|
},
|
|
43
|
+
"public": true,
|
|
45
44
|
"scripts": {
|
|
46
|
-
"build": "
|
|
47
|
-
"dev": "
|
|
48
|
-
"test": "
|
|
49
|
-
"test:watch": "
|
|
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
|
}
|