Add task due notify
This commit is contained in:
11
home/sam/bin/task-due-notify.sh
Executable file
11
home/sam/bin/task-due-notify.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Query tasks due soon (adjust filters as needed, e.g., due.before:now+1h for 1-hour reminders)
|
||||||
|
DUE_TASKS=$(task due.before:now+1h status:pending export | jq -r '.[] | .description + " (due: " + .due + ")"')
|
||||||
|
|
||||||
|
if [ -n "$DUE_TASKS" ]; then
|
||||||
|
while IFS= read -r task; do
|
||||||
|
notify-send "Task Due Soon" "$task" # Local Mako pop-up
|
||||||
|
curl -d "Task due soon: $task" https://ntfy.lab.audasmedia.com.au/tasks # Remote ntfy.sh (or swap to your Docker URL like http://YOUR_DOCKER_IP:PORT/task_topic)
|
||||||
|
done <<< "$DUE_TASKS"
|
||||||
|
fi
|
||||||
@@ -1,19 +1,25 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, python3Packages }:
|
{ lib
|
||||||
buildPythonPackage rec {
|
, python3Packages
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
python3Packages.buildPythonPackage rec {
|
||||||
pname = "agentops";
|
pname = "agentops";
|
||||||
version = "0.4.21";
|
version = "0.4.21";
|
||||||
|
pyproject = true;
|
||||||
|
build-system = with python3Packages; [ hatchling ];
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-47759c6dfd6ea58bad2f7764257e4778cb2e34ae180cef642f60f56adced6510";
|
hash = "sha256-R3Wcbf1upYutL3dkJX5HeMsuNK4YDO9kL2D1atztZRA=";
|
||||||
};
|
};
|
||||||
|
# Bypasses strict dependency version checks that fail in Nixpkgs
|
||||||
|
pythonRelaxDeps = [ "packaging" "psutil" "termcolor" ];
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
pydantic
|
pydantic requests httpx websockets aiohttp
|
||||||
requests
|
opentelemetry-api opentelemetry-exporter-otlp-proto-http
|
||||||
httpx
|
opentelemetry-instrumentation opentelemetry-sdk opentelemetry-semantic-conventions
|
||||||
websockets
|
ordered-set packaging psutil pyyaml termcolor wrapt
|
||||||
];
|
];
|
||||||
|
pythonImportsCheck = [ "agentops" ];
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Observability and DevTool Platform for AI Agents";
|
description = "Observability and DevTool Platform for AI Agents";
|
||||||
homepage = "https://github.com/AgentOps-AI/agentops";
|
homepage = "https://github.com/AgentOps-AI/agentops";
|
||||||
|
|||||||
26
pkgs/autogpt.nix
Normal file
26
pkgs/autogpt.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchFromGitHub, python3Packages }:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "autogpt";
|
||||||
|
version = "0.5.2";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Significant-Gravitas";
|
||||||
|
repo = "AutoGPT";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-0000000000000000000000000000000000000000000000000000"; # NEEDS UPDATE
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
openai
|
||||||
|
langchain
|
||||||
|
chromadb
|
||||||
|
sqlalchemy
|
||||||
|
beautifulsoup4
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "AutoGPT - Autonomous AI agent";
|
||||||
|
homepage = "https://github.com/Significant-Gravitas/AutoGPT";
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,22 +1,26 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, tmux, uv, python3Packages }:
|
{ lib
|
||||||
buildPythonPackage rec {
|
, python3Packages
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
python3Packages.buildPythonPackage rec {
|
||||||
pname = "cli-agent-orchestrator";
|
pname = "cli-agent-orchestrator";
|
||||||
version = "1.0.3";
|
version = "1.0.3";
|
||||||
|
pyproject = true;
|
||||||
|
build-system = with python3Packages; [ hatchling ];
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "awslabs";
|
owner = "awslabs";
|
||||||
repo = "cli-agent-orchestrator";
|
repo = "cli-agent-orchestrator";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-0000000000000000000000000000000000000000000000000000"; # NEEDS UPDATE
|
hash = "sha256-syfUQaHeubQnFLgAcIoMozcYA8wuFfcuR2at/J96FoE=";
|
||||||
};
|
};
|
||||||
|
# Relaxes version bounds on dependencies for NixOS compatibility
|
||||||
|
pythonRelaxDeps = true;
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
pydantic
|
fastapi pydantic sqlalchemy uvicorn websockets libtmux
|
||||||
requests
|
click requests aiofiles python-frontmatter watchdog
|
||||||
typer
|
apscheduler fastmcp
|
||||||
rich
|
|
||||||
python-dotenv
|
|
||||||
];
|
];
|
||||||
|
pythonImportsCheck = [ "cli_agent_orchestrator" ];
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "CLI Agent Orchestrator - multi-agent collaboration via tmux";
|
description = "CLI Agent Orchestrator - multi-agent collaboration via tmux";
|
||||||
homepage = "https://github.com/awslabs/cli-agent-orchestrator";
|
homepage = "https://github.com/awslabs/cli-agent-orchestrator";
|
||||||
|
|||||||
@@ -1,21 +1,31 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, python3Packages, opencv, protobuf }:
|
{ lib
|
||||||
buildPythonPackage rec {
|
, stdenv
|
||||||
|
, python3Packages
|
||||||
|
, fetchurl
|
||||||
|
, autoPatchelfHook
|
||||||
|
, opencv
|
||||||
|
, libglvnd
|
||||||
|
}:
|
||||||
|
python3Packages.buildPythonPackage rec {
|
||||||
pname = "mediapipe";
|
pname = "mediapipe";
|
||||||
version = "0.10.32";
|
version = "0.10.32";
|
||||||
src = fetchPypi {
|
format = "wheel";
|
||||||
inherit pname version;
|
src = fetchurl {
|
||||||
hash = "sha256-4b0941fbbbce41862f13cb1850c4878c13dbc62cd5e81e74880051b7a20ce3b6";
|
url = "https://files.pythonhosted.org/packages/e3/98/00cd8b2dcb563f2298655633e6611a791b2c1a7df1dae064b2b96084f1bf/mediapipe-0.10.32-py3-none-manylinux_2_28_x86_64.whl";
|
||||||
extension = "whl";
|
hash = "sha256-SwlB+7vOQYYvE8sYUMSHjBPbxizV6B50iABRt6IM47Y=";
|
||||||
dist = "manylinux_2_28_x86_64";
|
|
||||||
};
|
};
|
||||||
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
buildInputs = [
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
opencv
|
||||||
|
libglvnd
|
||||||
|
];
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
numpy
|
numpy
|
||||||
absl-py
|
absl-py
|
||||||
protobuf
|
protobuf
|
||||||
opencv4
|
opencv4
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "MediaPipe - Google's media processing framework";
|
description = "MediaPipe - Google's media processing framework";
|
||||||
homepage = "https://github.com/google/mediapipe";
|
homepage = "https://github.com/google/mediapipe";
|
||||||
|
|||||||
Reference in New Issue
Block a user