Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ssntpl/openclaw-otper",
"version": "0.1.2",
"version": "0.1.3",
"description": "OpenClaw plugin for Otper boards (https://otper.com) — exposes Otper boards, lists, cards, labels, comments, and today's priorities as agent tools.",
"author": "SSNTPL <info@ssntpl.com>",
"license": "MIT",
Expand Down Expand Up @@ -39,7 +39,7 @@
]
},
"dependencies": {
"@ssntpl/otper-cli": "^0.1.5"
"@ssntpl/otper-cli": "^0.1.7"
},
"devDependencies": {
"@types/node": "^20.16.10",
Expand Down
10 changes: 7 additions & 3 deletions tools/shared.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OtperClient, resolveConfig } from "@ssntpl/otper-cli";
import { OtperClient, resolveConfig, toOtperDateTime } from "@ssntpl/otper-cli";

export interface PluginConfig {
token?: string;
Expand Down Expand Up @@ -52,7 +52,11 @@ export function fmtDate(iso: string | null | undefined): string {
return iso.replace("T", " ").replace(/\.\d+Z?$/, "").replace(/Z$/, " UTC");
}

/** Today's date as YYYY-MM-DD HH:MM:SS, used as default `assigned_at`. */
/**
* Otper-formatted "now" (YYYY-MM-DD HH:MM:SS UTC). Otper rejects ISO-8601
* strings with milliseconds; this helper matches what its DateTime scalar
* accepts.
*/
export function nowIso(): string {
return new Date().toISOString();
return toOtperDateTime();
}
Loading