@tasks-timeline/components 0.2.1 → 0.2.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/dist/index.js
CHANGED
|
@@ -39508,19 +39508,21 @@ class QB {
|
|
|
39508
39508
|
this.config = t;
|
|
39509
39509
|
}
|
|
39510
39510
|
async getClient() {
|
|
39511
|
+
let t;
|
|
39511
39512
|
try {
|
|
39512
|
-
|
|
39513
|
-
return new t({
|
|
39514
|
-
apiKey: this.config.apiKey,
|
|
39515
|
-
baseURL: this.config.baseUrl || void 0,
|
|
39516
|
-
// Required for browser-based usage in this component library
|
|
39517
|
-
dangerouslyAllowBrowser: !0
|
|
39518
|
-
});
|
|
39513
|
+
t = await import("openai");
|
|
39519
39514
|
} catch {
|
|
39520
39515
|
throw new Error(
|
|
39521
39516
|
"The 'openai' package is required. Install it with: pnpm add openai"
|
|
39522
39517
|
);
|
|
39523
39518
|
}
|
|
39519
|
+
const n = t.default;
|
|
39520
|
+
return new n({
|
|
39521
|
+
apiKey: this.config.apiKey,
|
|
39522
|
+
baseURL: this.config.baseUrl || void 0,
|
|
39523
|
+
// Required for browser-based usage in this component library
|
|
39524
|
+
dangerouslyAllowBrowser: !0
|
|
39525
|
+
});
|
|
39524
39526
|
}
|
|
39525
39527
|
async chat(t, n, r, a, l) {
|
|
39526
39528
|
const u = await this.getClient(), p = [{ role: "system", content: t }];
|
|
@@ -39603,17 +39605,21 @@ class toe {
|
|
|
39603
39605
|
this.config = t;
|
|
39604
39606
|
}
|
|
39605
39607
|
async getClient() {
|
|
39608
|
+
let t;
|
|
39606
39609
|
try {
|
|
39607
|
-
|
|
39608
|
-
return new n({
|
|
39609
|
-
apiKey: this.config.apiKey,
|
|
39610
|
-
baseURL: this.config.baseUrl || void 0
|
|
39611
|
-
});
|
|
39610
|
+
t = await import("@anthropic-ai/sdk");
|
|
39612
39611
|
} catch {
|
|
39613
39612
|
throw new Error(
|
|
39614
39613
|
"The '@anthropic-ai/sdk' package is required. Install it with: pnpm add @anthropic-ai/sdk"
|
|
39615
39614
|
);
|
|
39616
39615
|
}
|
|
39616
|
+
const n = t.default;
|
|
39617
|
+
return new n({
|
|
39618
|
+
apiKey: this.config.apiKey,
|
|
39619
|
+
baseURL: this.config.baseUrl || void 0,
|
|
39620
|
+
// Required for browser-based usage in this component library
|
|
39621
|
+
dangerouslyAllowBrowser: !0
|
|
39622
|
+
});
|
|
39617
39623
|
}
|
|
39618
39624
|
async chat(t, n, r, a, l) {
|
|
39619
39625
|
const u = await this.getClient(), p = [];
|
|
@@ -39662,7 +39668,7 @@ class toe {
|
|
|
39662
39668
|
max_tokens: 4096,
|
|
39663
39669
|
system: t,
|
|
39664
39670
|
messages: p,
|
|
39665
|
-
tools: k
|
|
39671
|
+
tools: k.length > 0 ? k : void 0
|
|
39666
39672
|
}), T = {};
|
|
39667
39673
|
for (const M of w.content)
|
|
39668
39674
|
M.type === "text" ? T.text = (T.text || "") + M.text : M.type === "tool_use" && (T.toolCalls || (T.toolCalls = []), T.toolCalls.push({
|
|
@@ -62900,9 +62906,9 @@ const aZ = `@layer properties{@supports (((-webkit-hyphens:none)) and (not (marg
|
|
|
62900
62906
|
/* @__PURE__ */ b.jsx("h3", { className: "text-xl font-bold text-slate-900 dark:text-slate-100", children: "Tasks Timeline View" }),
|
|
62901
62907
|
/* @__PURE__ */ b.jsxs("p", { className: "text-xs text-slate-500 font-mono", children: [
|
|
62902
62908
|
"v",
|
|
62903
|
-
"0.2.
|
|
62909
|
+
"0.2.2",
|
|
62904
62910
|
" • Built at ",
|
|
62905
|
-
"
|
|
62911
|
+
"c0a72da"
|
|
62906
62912
|
] })
|
|
62907
62913
|
] }),
|
|
62908
62914
|
/* @__PURE__ */ b.jsx("p", { className: "text-sm text-slate-600 dark:text-slate-400 max-w-sm mx-auto leading-relaxed", children: "A high-fidelity, timeline-based task management tool designed for focus, clarity, and AI-assisted productivity." })
|
|
@@ -63134,9 +63140,9 @@ const aZ = `@layer properties{@supports (((-webkit-hyphens:none)) and (not (marg
|
|
|
63134
63140
|
] }),
|
|
63135
63141
|
/* @__PURE__ */ b.jsx("div", { className: "p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0", children: /* @__PURE__ */ b.jsxs("p", { className: "text-[10px] text-slate-400", children: [
|
|
63136
63142
|
"Timeline Tasks View • ",
|
|
63137
|
-
"0.2.
|
|
63143
|
+
"0.2.2",
|
|
63138
63144
|
" at ",
|
|
63139
|
-
"
|
|
63145
|
+
"c0a72da"
|
|
63140
63146
|
] }) })
|
|
63141
63147
|
] });
|
|
63142
63148
|
return l ? /* @__PURE__ */ b.jsx(
|