Skip to content

Commit 6402865

Browse files
committed
feat: implement daily bucket telemetry and context-aware snapshots, bump to v1.3.0
1 parent a173493 commit 6402865

11 files changed

Lines changed: 140 additions & 85 deletions

File tree

cmd/agentsecrets/commands/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func auditLog(project *config.ProjectConfig, cmdArgs []string, secretKeys []stri
159159
// ensureKeychainAuthForEnv establishes a keychain-auth session for commands
160160
// that use DisableFlagParsing (env, exec) and therefore skip PersistentPreRunE.
161161
func ensureKeychainAuthForEnv() error {
162-
// keychain-auth integration is temporarily disabled in v1.2.0
162+
// keychain-auth integration is temporarily disabled in v1.3.0
163163
return nil
164164

165165
/*

cmd/agentsecrets/commands/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func runExec(cmd *cobra.Command, args []string) {
121121
// exec is a machine-to-machine protocol (stdin/stdout JSON) so we use stderr
122122
// for any setup messages and skip the spinner UI.
123123
func ensureKeychainAuthForExec() error {
124-
// keychain-auth integration is temporarily disabled in v1.2.0
124+
// keychain-auth integration is temporarily disabled in v1.3.0
125125
return nil
126126

127127
/*

cmd/agentsecrets/commands/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func runInit(cmd *cobra.Command, args []string) error {
163163
ui.Info("Config written to .agentsecrets/project.json")
164164
ui.Info("Run 'agentsecrets project create <name>' or 'agentsecrets project use <name>' to link this folder.")
165165

166-
// Phase 3: Setup keychain-auth daemon (Disabled in v1.2.0)
166+
// Phase 3: Setup keychain-auth daemon (Disabled in v1.3.0)
167167
/*
168168
if err := ui.Spinner("Configuring secure keychain daemon...", func() error {
169169
return keychainauth.AutoSetup()

cmd/agentsecrets/commands/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func keychainAuthMiddleware(cmd *cobra.Command, args []string) error {
125125
return err
126126
}
127127

128-
// keychain-auth integration is temporarily disabled in v1.2.0
128+
// keychain-auth integration is temporarily disabled in v1.3.0
129129
// to ensure cross-platform stability (Windows support).
130130
// We will revert to direct keyring access for now.
131131
return nil

integrations/openclaw/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: agentsecrets
33
description: Zero-knowledge secrets infrastructure — AI agents manage the complete credential lifecycle without ever seeing values
4-
version: "1.2.0"
4+
version: "1.3.0"
55
tags:
66
- security
77
- credentials

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Variables
44
BINARY_NAME=agentsecrets
5-
VERSION?=1.2.0
5+
VERSION?=1.3.0
66
BUILD_DIR=bin
77
GO=go
88
GOFMT=gofmt

pkg/config/update_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestIsNewer(t *testing.T) {
1212
want bool
1313
}{
1414
{"1.1.3", "1.1.2", true},
15-
{"1.2.0", "1.1.2", true},
15+
{"1.3.0", "1.1.2", true},
1616
{"2.0.0", "1.1.2", true},
1717
{"1.1.2", "1.1.2", false},
1818
{"1.1.1", "1.1.2", false},

pkg/secrets/secrets.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/The-17/agentsecrets/pkg/config"
1313
"github.com/The-17/agentsecrets/pkg/crypto"
1414
"github.com/The-17/agentsecrets/pkg/keyring"
15+
"github.com/The-17/agentsecrets/pkg/telemetry"
1516
)
1617

1718
// Service coordinates all secret-related operations.
@@ -250,6 +251,8 @@ func (s *Service) Pull(targetKeys []string) error {
250251
_ = keyring.SetSecret(project.ProjectID, env, s.Key, plaintext)
251252
}
252253

254+
telemetry.RecordSecretCount(len(secretsMap))
255+
253256
if isSelective && len(secretsMap) == 0 {
254257
// Even if empty, we want to ensure .env footprint is laid down
255258
}
@@ -286,6 +289,8 @@ func (s *Service) Push() error {
286289
return err
287290
}
288291

292+
telemetry.RecordSecretCount(len(localSecrets))
293+
289294
if len(localSecrets) == 0 {
290295
return nil
291296
}

0 commit comments

Comments
 (0)